:root {
  color-scheme: light;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 5px 18px rgba(35, 55, 39, .06);
  --shadow-popover: 0 14px 36px rgba(25, 40, 30, .14);
  --text-measure: 68ch;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --bg: #f5f8f3;
  --surface: rgba(255, 255, 255, .94);
  --surface-raised: #f0f5ee;
  --surface-glass: rgba(250, 253, 248, .86);
  --hero-tint: #e7f0e2;
  --ink: #26372d;
  --muted: #6f7f73;
  --line: rgba(54, 91, 63, .15);
  --blue: #477a54;
  --cyan: #8ebc91;
  --pink: #e9a9a1;
  --green: #72a982;
  --gradient: linear-gradient(110deg, #477a54, #78aa83);
  --glow-one: rgba(118, 164, 111, .16);
  --glow-two: rgba(190, 218, 174, .22);
  --glow-three: rgba(237, 169, 161, .13);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --dock-h: 80px;
}

* { box-sizing: border-box; }
.icon-library { width: 0; height: 0; position: absolute; overflow: hidden; }
.ui-icon { width: 1.15em; height: 1.15em; display: inline-block; flex: 0 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
button .ui-icon { pointer-events: none; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 120px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 5% 5%, var(--glow-one), transparent 37rem),
    radial-gradient(ellipse at 94% 19%, var(--glow-two), transparent 39rem),
    radial-gradient(ellipse at 77% 92%, var(--glow-three), transparent 34rem),
    var(--bg);
  background-color: var(--bg);
  background-position: center;
  transition: color .25s, background-color .25s;
}
body.dark-theme {
  color-scheme: dark;
  --blue: #9fcca7;
  --cyan: #c2e2c1;
  --green: #91be99;
  --bg: #151b17;
  --surface: #202821;
  --surface-raised: #29342c;
  --surface-glass: rgba(29, 38, 32, .9);
  --hero-tint: #26342a;
  --ink: #f1f5ef;
  --muted: #a8b7a9;
  --line: rgba(210, 231, 211, .13);
  --glow-one: rgba(67, 115, 72, .25);
  --glow-two: rgba(108, 128, 74, .14);
  --glow-three: rgba(79, 106, 74, .12);
  background:
    radial-gradient(ellipse at 14% 4%, var(--glow-one), transparent 38rem),
    radial-gradient(ellipse at 89% 28%, var(--glow-two), transparent 38rem),
    radial-gradient(ellipse at 77% 92%, var(--glow-three), transparent 34rem),
    var(--bg);
}
html:has(body.dark-theme) { background: #151b17; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.shell { width: min(1240px, calc(100% - 44px)); margin-inline: auto; }

.topline {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  color: #f7f9ff;
  background: var(--gradient);
  font-size: 10px;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(1.3);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.07em; }
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--gradient);
  box-shadow: 0 7px 18px rgba(80, 125, 235, .25);
  font-size: 21px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.botanist-header-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-left: 4px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--blue) 24%, transparent); border-radius: 13px; color: #fff; background: var(--gradient); box-shadow: 0 5px 13px color-mix(in srgb, var(--blue) 18%, transparent); font-size: 11px; font-weight: 800; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.botanist-header-button:hover { transform: translateY(-2px); box-shadow: 0 8px 17px color-mix(in srgb, var(--blue) 26%, transparent); }
.botanist-header-button .ui-icon { width: 17px; height: 17px; }
.page-title-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: transform .2s, border-color .2s;
}
.icon-button:hover { transform: translateY(-2px); border-color: var(--blue); }
.command-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: min(680px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
.command-dialog::backdrop { background: rgba(15, 25, 20, .48); backdrop-filter: blur(7px); }
.command-panel { padding: 14px; }
.command-search-wrap {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--blue));
}
.command-search-wrap > .ui-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--blue); }
.command-search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 15px; }
.command-search-wrap input::placeholder { color: var(--muted); }
.command-search-wrap kbd,
.command-footer kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-family: inherit; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.command-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 8px 8px; }
.command-panel-heading h2 { margin: 0; font-size: 13px; letter-spacing: .01em; }
.command-panel-heading > span { color: var(--muted); font-size: 11px; }
.command-results { display: grid; max-height: min(440px, calc(100dvh - 220px)); gap: 4px; overflow-y: auto; }
.command-option { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 13px; text-align: left; color: var(--text); background: transparent; cursor: pointer; }
.command-option:hover,
.command-option.is-active { border-color: color-mix(in srgb, var(--blue) 22%, var(--line)); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.command-option-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.command-option-icon .ui-icon { width: 18px; height: 18px; }
.command-option-copy { display: grid; min-width: 0; gap: 3px; }
.command-option-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.command-option-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.command-option-hint { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.command-empty { margin: 0; padding: 24px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.command-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; padding: 12px 8px 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.command-footer span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 520px) {
  .command-panel { padding: 10px; }
  .command-dialog { border-radius: 20px; }
  .command-footer { justify-content: center; gap: 8px; }
}
.account-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, transparent);
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--blue) 21%, transparent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.account-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 20px color-mix(in srgb, var(--blue) 28%, transparent); }
.account-cta .ui-icon { width: 18px; height: 18px; }
.install-app-button { font-size: 20px; font-weight: 800; }
.install-app-button[hidden] { display: none; }
.collection-open { position: relative; }
.collection-open span { min-width: 16px; height: 16px; position: absolute; top: -5px; right: -5px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 800; }

.main-content { min-height: 70vh; padding-top: 32px; }
.page { animation: page-in .45s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-card {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 30px;
  background: linear-gradient(125deg, var(--surface) 0%, var(--hero-tint) 100%);
  box-shadow: 0 24px 66px rgba(45, 83, 52, .12);
}
.hero-copy { align-self: center; padding: clamp(28px, 5vw, 66px); }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
#hero-greeting { text-transform: none; letter-spacing: .02em; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin: 10px 0 14px; font-family: var(--serif); font-size: clamp(34px, 5vw, 57px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
h2 { margin-bottom: 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 15px; font-weight: 800; }
.gradient-text { color: transparent; background: var(--gradient); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-art { min-height: 340px; position: relative; overflow: hidden; background: var(--surface-raised); }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(27,38,68,.08), transparent 48%), linear-gradient(0deg, rgba(22,35,61,.32), transparent 38%); }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-art-label { position: absolute; z-index: 1; bottom: 20px; left: 23px; color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-orbit {
  width: 108px;
  height: 108px;
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .17);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  transform: rotate(8deg);
}
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 19px rgba(81, 116, 231, .2);
  font-size: 12px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 11px 24px rgba(81, 116, 231, .28); filter: saturate(1.08); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.secondary { color: var(--blue); border: 1px solid rgba(87,121,245,.2); background: rgba(87,121,245,.09); box-shadow: none; }
.button.ghost { color: var(--muted); border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.button.small { min-height: 34px; padding-inline: 12px; border-radius: 10px; font-size: 10px; }
.button.full { width: 100%; }

.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.home-fact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.home-fact > .ui-icon { width: 19px; height: 19px; color: var(--blue); }
.home-fact strong, .home-fact small { display: block; }
.home-fact strong { font-size: 13px; }
.home-fact small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.about-ask { margin-top: 14px; }
.about-banner .project-credit { margin-bottom: 0; }
.surface-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 9px 25px rgba(48, 70, 130, .055);
}
.home-widget { min-height: 210px; padding: 22px; }
.widget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.widget-head h2 { margin: 0; }
.muted { color: var(--muted); }
.challenge-badge { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--gradient); font-size: 17px; }
.challenge-badge .ui-icon { width: 18px; height: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 10px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 41px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
  font-size: 11px;
}
input::placeholder { color: #98a2b6; }
input:focus, select:focus { border-color: var(--blue); outline: 2px solid rgba(87,121,245,.12); }
.status-message { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 15px; }
.quick-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s, border-color .2s;
}
.quick-link:hover { transform: translateY(-3px); border-color: rgba(87,121,245,.5); }
.quick-link .quick-link-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 11px; color: #fff; background: var(--gradient); }
.quick-link .quick-link-icon .ui-icon { width: 17px; height: 17px; }
.quick-link span:last-child { margin-left: auto; color: var(--blue); }
.button > .ui-icon { width: 16px; height: 16px; }
.button.secondary > .ui-icon, .button.ghost > .ui-icon { color: var(--blue); }

.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 12px 0 22px; }
.page-title-row h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 48px); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) minmax(180px, .7fr); align-items: end; gap: 10px; margin: 18px 0 16px; }
.search-wrap { min-width: 0; position: relative; grid-column: 1 / -1; }
.search-input { min-height: 45px; padding-left: 15px; border-radius: 13px; background: var(--surface); box-shadow: 0 4px 12px rgba(45, 83, 52, .04); }
.search-suggestion { position: absolute; z-index: 7; top: calc(100% + 6px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 12px 30px rgba(35, 55, 39, .15); }
.search-suggestion-option { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border: 0; color: var(--ink); background: transparent; text-align: left; }
.search-suggestion-option:hover, .search-suggestion-option:focus-visible { background: var(--surface-raised); }
.search-suggestion-title { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-latin { overflow: hidden; color: var(--muted); font-family: var(--serif); font-size: 10px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.catalog-control, .catalog-sort-label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.catalog-control select, .catalog-sort-label select { min-height: 40px; width: 100%; border-radius: 12px; background: var(--surface); font-size: 10px; }
.care-filter-disclosure { margin: 0 0 13px; border-bottom: 1px solid var(--line); }
.care-filter-disclosure summary { min-height: 36px; position: relative; display: flex; align-items: center; gap: 8px; padding-left: 28px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; list-style: none; }
.care-filter-disclosure summary::-webkit-details-marker { display: none; }
.care-filter-disclosure summary::before, .care-filter-disclosure summary::after { content: ""; position: absolute; top: 50%; left: 8px; background: var(--blue); transform: translateY(-50%); }
.care-filter-disclosure summary::before { width: 10px; height: 2px; }
.care-filter-disclosure summary::after { width: 2px; height: 10px; left: 12px; }
.care-filter-disclosure[open] summary::after { opacity: 0; }
.care-filter-disclosure summary span { margin-left: auto; font-size: 9px; font-weight: 500; }
.care-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 0 12px; }
.care-filter-label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.care-filter-label select { min-height: 38px; width: 100%; border-radius: 11px; background: var(--surface); font-size: 10px; }
.catalogue-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.catalog-count { margin: 14px 0 13px; color: var(--muted); font-size: 11px; }
.flower-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.flower-grid[hidden] { display: none; }
.search-empty[hidden] { display: none; }
.search-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 20px; color: var(--muted); text-align: center; animation: search-empty-appear .35s ease both; }
.search-empty strong { color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); font-weight: 600; }
.search-empty strong .ui-icon { width: 22px; height: 22px; color: var(--blue); }
.search-empty span { max-width: 360px; font-size: 12px; line-height: 1.6; }
@keyframes search-empty-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.flower-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(45, 83, 52, .07);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: card-in .38s ease both;
}
.flower-card:hover { transform: translateY(-5px); border-color: rgba(71,122,84,.4); box-shadow: 0 18px 38px rgba(45, 83, 52, .15); }
@keyframes card-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.flower-photo-wrap { height: 205px; position: relative; overflow: hidden; background: linear-gradient(135deg,#e7efe2,#e4f1e8 52%,#f9e7e4); }
.flower-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.flower-card:hover .flower-photo { transform: scale(1.045); }
.flower-photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: color-mix(in srgb, var(--blue) 70%, var(--muted)); background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--surface) 92%, transparent), transparent 42%), linear-gradient(135deg, var(--surface-raised), var(--surface)); font-size: 10px; font-weight: 700; }
.flower-photo-placeholder[hidden] { display: none; }
.flower-photo-placeholder .ui-icon { width: 38px; height: 38px; }
.flower-photo-wrap::after { position: absolute; inset: 45% 0 0; content: ""; pointer-events: none; background: linear-gradient(0deg,rgba(12,20,36,.34),transparent); }
.flower-tag, .flower-number { position: absolute; z-index: 1; top: 11px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; color: white; background: rgba(25,34,56,.45); backdrop-filter: blur(9px); font-size: 9px; font-weight: 700; }
.flower-tag { left: 11px; }
.flower-number { right: 11px; }
.favorite-button {
  width: 38px;
  height: 38px;
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(25,34,56,.45);
  backdrop-filter: blur(9px);
}
.favorite-button .ui-icon { width: 19px; height: 19px; }
.favorite-button.is-favorite { color: #d5527a; background: #fff; }
.plant-note-indicator {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 2;
  top: 50px;
  right: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #39794c;
  background: rgba(246, 252, 242, .96);
  box-shadow: 0 3px 10px rgba(23, 53, 31, .16);
  backdrop-filter: blur(9px);
}
.plant-note-indicator .ui-icon { width: 17px; height: 17px; }
body.dark-theme .plant-note-indicator { color: #c7efc6; background: rgba(34, 62, 42, .96); }
.photo-credit { max-width: calc(100% - 22px); position: absolute; z-index: 2; bottom: 9px; left: 11px; overflow: hidden; color: #fff; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.photo-credit:hover { text-decoration: underline; }
.flower-info { min-height: 116px; display: flex; flex-direction: column; padding: 14px; }
.flower-card-name { min-width: 0; }
.flower-card-name h3 { overflow: hidden; text-overflow: ellipsis; }
.flower-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.flower-title-row > span { font-size: 20px; }
.flower-latin { margin-top: 4px; color: var(--muted); font-family: var(--serif); font-size: 11px; font-style: italic; }
.taxonomy-line { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.plant-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.plant-tag { padding: 5px 8px; border-radius: 999px; color: #477a54; background: rgba(114,169,130,.12); font-size: 9px; font-weight: 700; }
.plant-range {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 15px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--blue) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 91%, var(--blue) 9%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 50%, transparent);
}
.plant-range-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.plant-range-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 8px;
  color: var(--blue);
  background: color-mix(in srgb, var(--surface) 78%, var(--blue) 22%);
}
.plant-range-icon circle,
.plant-range-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.plant-range-regions { display: flex; flex-wrap: wrap; gap: 5px; }
.plant-range-chip,
.plant-range-more {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 17%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, var(--blue) 8%);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}
.plant-range-more { color: var(--blue); font-weight: 800; }
.plant-range-empty { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.plant-range-note { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.plant-range-footer { display: flex; justify-content: flex-end; }
.plant-range-source { color: var(--blue); font-size: 9px; font-weight: 750; text-decoration: none; text-underline-offset: 2px; }
.plant-range-source:hover { text-decoration: underline; }
.plant-range-detail { width: 100%; }
.plant-range-detail { gap: 12px; padding: 16px; border-radius: var(--radius-md); }
.plant-range-detail .plant-range-heading { font-size: var(--text-lg); }
.plant-range-detail .plant-range-icon { width: 28px; height: 28px; padding: 5px; border-radius: 10px; }
.plant-range-detail .plant-range-regions { gap: 7px; }
.plant-range-detail .plant-range-chip,
.plant-range-detail .plant-range-more { min-height: 30px; padding: 6px 11px; font-size: var(--text-xs); }
.plant-range-detail .plant-range-empty { font-size: var(--text-sm); }
.plant-range-detail .plant-range-note { max-width: var(--text-measure); font-size: var(--text-xs); }
.plant-range-detail .plant-range-source { font-size: var(--text-sm); }
.microclimate { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.microclimate-chip { min-height: 23px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-raised); font-size: 8px; line-height: 1.2; }
.microclimate-chip > .ui-icon { width: 13px; height: 13px; color: var(--blue); }
.plant-mark { width: 22px; height: 22px; display: block; flex: 0 0 auto; margin-top: 2px; color: var(--blue); }
body.dark-theme .microclimate-chip > .ui-icon, body.dark-theme .plant-mark { color: var(--cyan); }
body.dark-theme .button.secondary { color: var(--ink); border-color: color-mix(in srgb, var(--cyan) 30%, transparent); background: color-mix(in srgb, var(--cyan) 12%, var(--surface)); }
body.dark-theme .button.secondary > .ui-icon, body.dark-theme .button.ghost > .ui-icon { color: var(--cyan); }
.flower-description { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.botanical-meta { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.flower-card-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 10px; }
.flower-card-actions .button { flex: 1; padding-inline: 8px; }
.collection-card .flower-info { min-height: 112px; }
.collection-toggle { white-space: nowrap; }
.collection-toggle.is-saved { color: #a43f62; background: rgba(191,87,114,.12); }
.collection-no-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: var(--surface-raised); font-size: 54px; }
.collection-no-photo .ui-icon { width: 54px; height: 54px; color: var(--blue); }
.taxonomy-details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 10px; }
.taxonomy-details summary { cursor: pointer; color: var(--blue); font-weight: 750; }
.taxonomy-details .flower-facts { margin-top: 10px; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.detail-action-button { min-width: 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-raised); box-shadow: none; font-size: 11px; font-weight: 750; transition: border-color .2s, background .2s, transform .2s; }
.detail-action-button > span { min-width: 0; }
.favorite-detail-button { white-space: nowrap; }
.care-pdf-button { line-height: 1.35; }
.detail-action-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); box-shadow: none; }
.detail-action-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); outline-offset: 2px; }
.detail-action-button > .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--blue); }
.favorite-detail-button.is-favorite { border-color: color-mix(in srgb, #c45173 32%, var(--line)); color: #a43f62; background: color-mix(in srgb, #c45173 9%, var(--surface)); }
.favorite-detail-button.is-favorite > .ui-icon { color: #c45173; fill: color-mix(in srgb, #c45173 20%, transparent); }
.care-pdf-button:disabled { cursor: wait; opacity: .65; transform: none; }
.care-pdf-status { min-height: 1em; margin: 6px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-panel { width: min(420px, calc(100% - 28px)); position: fixed; z-index: 30; top: 82px; right: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 70px rgba(15,25,48,.25); }
.admin-panel[hidden] { display: none; }
.admin-panel h2 { margin: 7px 35px 8px 0; font-family: var(--serif); font-size: 20px; }
.admin-panel > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-status { min-height: 1em; margin-bottom: 0; }
.care-pdf-sheet { box-sizing: border-box; position: fixed; z-index: -1; top: 0; left: -10000px; width: 720px; min-height: 1018px; padding: 48px; color: #263329; background: #fff; font: 18px/1.65 Arial, sans-serif; }
.care-pdf-sheet > p:first-child { color: #477a54; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.care-pdf-sheet > img { width: 100%; height: 310px; object-fit: cover; border-radius: 18px; background: #edf5ed; }
.care-pdf-sheet h1 { margin: 26px 0 6px; color: #315f3e; font: 700 38px/1.2 Georgia, serif; }
.care-pdf-sheet > p:nth-of-type(2) { color: #718072; font: italic 18px Georgia, serif; }
.care-pdf-sheet ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.care-pdf-sheet li { padding: 8px 13px; border-radius: 20px; color: #477a54; background: #edf5ed; font-size: 15px; }
.care-pdf-sheet > p { margin: 18px 0; }
.care-pdf-sheet footer, .care-pdf-sheet small { display: block; margin-top: 36px; padding-top: 14px; border-top: 1px solid #dce6dc; color: #718072; font-size: 12px; }
.care-pdf-sheet > img, .care-pdf-sheet h1, .care-pdf-sheet li { break-inside: avoid; page-break-inside: avoid; }
.install-dialog { width: min(420px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px rgba(15,25,48,.34); }
.install-dialog::backdrop { background: rgba(18,28,50,.58); backdrop-filter: blur(5px); }
.install-card { position: relative; padding: 28px; }
.modal-close { width: 34px; height: 34px; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface-raised); font-size: 21px; line-height: 1; }
.modal-flower { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; color: white; background: var(--gradient); box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 22%, transparent); font-size: 29px; }
.modal-flower .ui-icon { width: 30px; height: 30px; }
.install-card h2 { margin: 10px 0; font-family: var(--serif); font-size: 23px; }
.install-instructions { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state { grid-column: 1/-1; padding: 42px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; font-size: 13px; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 0 10px; color: var(--muted); font-size: 11px; }
.catalog-pagination[hidden] { display: none; }
.season-open-button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.season-intro { max-width: 620px; margin: 0; font-size: 12px; line-height: 1.6; }
.season-tracker { padding: clamp(16px, 3vw, 28px); }
.season-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px); align-items: end; gap: 16px; }
.season-month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.season-month {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
}
.season-month small { min-width: 18px; min-height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-raised); font-size: 9px; }
.season-month.is-selected { border-color: color-mix(in srgb, var(--blue) 48%, var(--line)); color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.season-month.is-selected small { color: #fff; background: var(--blue); }
.season-year-label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.season-year-label select { min-height: 42px; background: var(--surface); }
.season-summary { margin: 17px 0; padding: 11px 13px; border-radius: 11px; color: var(--blue); background: var(--surface-raised); font-size: 12px; font-weight: 800; }
.season-tracker-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.season-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.season-panel h2 { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 800; }
.season-panel > p:not(.season-empty) { min-height: 1.4em; margin: 5px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.season-panel input { min-height: 44px; background: var(--surface-raised); font-size: 12px; }
.season-search-results, .season-observation-list { display: grid; gap: 7px; margin-top: 10px; }
.season-search-result, .season-observation { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.season-observation-plant { min-width: 0; min-height: 38px; flex: 1 1 auto; display: flex; align-items: center; padding: 3px 5px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.season-observation-plant > span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; }
.season-observation-plant small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-family: var(--serif); font-size: 10px; font-style: italic; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.season-add, .season-remove { min-height: 36px; flex: 0 0 auto; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: var(--surface-raised); font-size: 10px; font-weight: 750; }
.season-add.is-recorded { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.season-remove { width: 36px; display: grid; place-items: center; padding: 0; color: var(--muted); }
.season-remove .ui-icon { width: 15px; height: 15px; }
.season-empty { margin: 0; padding: 13px 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.season-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.feature-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 16px; }
.picker-card { padding: clamp(20px, 3vw, 32px); }
.botanist-game { width: min(680px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 30px); }
.botanist-score { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; text-align: center; }
.botanist-photo-wrap { width: min(100%, 520px); aspect-ratio: 4 / 3; overflow: hidden; margin: 0 auto 18px; border-radius: 18px; background: var(--surface-raised); }
.botanist-photo-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; animation: search-empty-appear .35s ease both; }
.botanist-photo-wrap img[hidden] { display: none; }
.botanist-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.botanist-answer { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; transition: transform .18s, border-color .18s, background .18s; }
.botanist-answer:not(:disabled):hover { transform: translateY(-2px); border-color: var(--blue); }
.botanist-answer:disabled { cursor: default; }
.botanist-answer.is-correct { border-color: #4e9b69; color: #287243; background: rgba(78,155,105,.13); }
.botanist-answer.is-incorrect { border-color: #cc5c65; color: #a93642; background: rgba(204,92,101,.13); }
.botanist-feedback { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.winter-field-route { position: relative; overflow: hidden; margin: 16px 0; padding: clamp(16px, 3vw, 28px); }
.winter-field-route::before { position: absolute; top: -150px; right: 3%; width: 310px; height: 310px; border: 1px solid color-mix(in srgb, var(--green) 15%, transparent); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 9%, transparent), transparent 70%); content: ""; pointer-events: none; }
.winter-field-route-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.winter-field-route-header > div:first-child { max-width: 700px; }
.winter-field-route-header h2 { margin: 5px 0 7px; font-family: var(--serif); font-size: clamp(27px, 4vw, 40px); }
.winter-field-route-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.winter-field-route-emblem { width: 82px; height: 82px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 24px; background: color-mix(in srgb, var(--green) 7%, var(--surface)); font-size: 39px; }
.winter-field-route-steps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0 14px; padding: 0; list-style: none; counter-reset: field-step; }
.winter-field-route-steps li { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); counter-increment: field-step; }
.winter-field-route-steps li::before { width: 27px; height: 27px; grid-row: span 2; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: color-mix(in srgb, var(--green) 11%, var(--surface)); content: counter(field-step); font-size: 10px; font-weight: 850; }
.winter-field-route-steps strong { font-size: 10px; }
.winter-field-route-steps span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.winter-field-route-status { position: relative; margin: 11px 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--green); background: color-mix(in srgb, var(--green) 4%, var(--surface)); font-size: 11px; font-weight: 750; }
.winter-field-route-sightings { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.field-route-sighting { padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 999px; color: var(--green); background: var(--surface-raised); font-size: 9px; font-weight: 750; }
.winter-field-route-privacy { position: relative; max-width: 80ch; margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.citizen-observations { margin-top: 18px; padding: clamp(14px, 2.5vw, 20px); border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--green) 3%, var(--surface)); }
.citizen-observations-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.citizen-observations-heading h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(20px, 3vw, 27px); }
.citizen-observations-count { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 800; }
.citizen-observations-intro { margin: 6px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.citizen-observation-list { display: grid; gap: 8px; }
.citizen-observation { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.citizen-observation h3 { margin: 0; font-size: 11px; }
.citizen-observation p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.citizen-observation a { display: inline-block; margin-top: 7px; color: var(--blue); font-size: 9px; font-weight: 750; }
.garden-field-route-status { margin: 8px 0; color: var(--green); font-size: 10px; line-height: 1.5; }
.garden-field-identification { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--green) 4%, var(--surface)); }
.garden-field-identification strong { font-size: 11px; }
.garden-field-identification p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.garden-field-confirm { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 9px; line-height: 1.5; }
.garden-field-confirm input { margin-top: 2px; accent-color: var(--green); }
.random-pick-card { width: min(900px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 28px); }
.random-pick-plant { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 32px); align-items: center; margin-bottom: 20px; }
.random-pick-photo { min-height: 260px; position: relative; overflow: hidden; border-radius: 18px; background: var(--surface-raised); }
.random-pick-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.random-pick-photo .flower-tag { position: absolute; top: 12px; left: 12px; }
.random-pick-placeholder { min-height: 260px; display: grid; place-items: center; color: var(--blue); }
.random-pick-placeholder .ui-icon { width: 54px; height: 54px; }
.random-pick-info h2 { margin: 8px 0 4px; font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); }
.random-pick-description { margin: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.random-pick-info > .button { margin-top: 18px; }
.random-pick-card > #random-pick-again { display: flex; align-items: center; justify-content: center; gap: 8px; margin-inline: auto; }
.recommendation { overflow: hidden; }
.recommendation-cover { height: 300px; overflow: hidden; background: var(--surface-raised); }
.recommendation-cover img { width: 100%; height: 100%; object-fit: cover; }
.recommendation-copy { padding: 20px 23px 24px; }
.recommendation-copy p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.picker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 15px; }
.picker-fields .field:last-child { grid-column: 1/-1; }
.picker-result { padding: 13px; border-radius: 12px; background: var(--surface-raised); }
.about-page-lead { max-width: 65ch; margin: 0; font-size: 13px; line-height: 1.7; }
.about-banner { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 38px); border-color: color-mix(in srgb, var(--blue) 16%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--hero-tint) 78%, var(--surface)), var(--surface) 62%); }
.about-banner::before { width: 280px; height: 280px; position: absolute; top: -190px; right: -110px; border: 1px solid color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 8%, transparent), transparent 68%); content: ""; pointer-events: none; }
.about-banner-heading { position: relative; display: flex; align-items: center; gap: 14px; }
.about-mark { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line)); border-radius: 18px; color: #fff; background: var(--gradient); box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 20%, transparent); }
.about-mark .ui-icon { width: 26px; height: 26px; }
.about-banner h2 { margin: 5px 0 0; font-family: var(--serif); font-size: clamp(25px, 4vw, 36px); }
.about-banner .about-banner-intro { max-width: 68ch; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.about-domain { display: inline-flex; align-items: center; gap: 6px; margin: 13px 0 0; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); font-size: 11px; }
.about-domain strong { color: var(--ink); letter-spacing: .02em; }
.about-update { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; padding: 17px; border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); border-radius: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--blue) 9%, var(--surface)), color-mix(in srgb, var(--green) 7%, var(--surface))); }
.about-update-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.about-update-icon .ui-icon { width: 19px; height: 19px; }
.about-update > div { min-width: 0; flex: 1; }
.about-update h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; }
.about-banner .about-update p { max-width: 72ch; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.about-banner .about-update .about-update-intro { margin-top: 6px; }
.about-update-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.about-update-point { min-width: 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--blue) 12%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.about-update-point strong { font-size: 12px; }
.about-banner .about-update .about-update-point p { margin-top: 5px; font-size: 12px; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.about-fact { min-width: 0; display: grid; gap: 5px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.about-fact strong { color: var(--blue); font-family: var(--serif); font-size: 22px; }
.about-fact span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.about-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 18px; }
.about-detail { min-height: 112px; display: flex; align-items: flex-start; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 92%, transparent); transition: transform .18s, border-color .18s; }
.about-detail:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 32%, var(--line)); }
.about-detail-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface-raised)); }
.about-detail-icon .ui-icon { width: 17px; height: 17px; }
.about-detail h3 { margin: 1px 0 0; font-size: 12px; }
.about-banner .about-detail p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.about-banner .project-credit { margin: 21px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.about-banner .project-credit span { padding-inline: 5px; color: var(--blue); }
.about-updates { margin-top: 20px; }
.about-updates-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.about-updates-heading h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); }
.about-updates-heading > p { max-width: 35ch; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.about-updates-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-release { padding: 18px; }
.about-release-date { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.about-release h3 { margin: 8px 0 0; font-family: var(--serif); font-size: 17px; }
.about-release p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.guide-howto { margin-top: 15px; padding: clamp(18px, 3vw, 28px); }
.guide-howto h2 { margin: 0; font-family: var(--serif); font-size: clamp(21px, 3vw, 26px); }
.guide-howto-intro { margin: 7px 0 15px; color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }
.guide-howto-list { display: grid; gap: 8px; }
.guide-howto-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); }
.guide-howto-item summary { min-height: 46px; position: relative; display: flex; align-items: center; padding: 10px 42px 10px 14px; color: var(--ink); cursor: pointer; font-size: var(--text-sm); font-weight: 700; list-style: none; }
.guide-howto-item summary::-webkit-details-marker { display: none; }
.guide-howto-item summary::after { position: absolute; right: 15px; color: var(--blue); content: "+"; font-size: 20px; font-weight: 500; line-height: 1; }
.guide-howto-item[open] summary::after { content: "−"; }
.guide-howto-item summary:focus-visible { z-index: 1; outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.guide-howto-item > p { margin: 0; padding: 0 14px 13px; color: var(--muted); font-size: var(--text-sm); line-height: 1.7; }
.guide-howto-storage { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 15px; }
.guide-card { padding: 20px; }
.guide-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 13px; color: #fff; background: var(--gradient); box-shadow: 0 6px 15px color-mix(in srgb, var(--blue) 18%, transparent); }
.guide-icon .ui-icon { width: 20px; height: 20px; }
.guide-card h3 { font-size: 13px; }
.guide-card p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
@media (max-width: 520px) {
  .about-columns { grid-template-columns: 1fr; }
  .about-updates-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .about-updates-list { grid-template-columns: 1fr; }
  .about-detail { min-height: 0; }
  .about-facts { gap: 7px; }
  .about-update { gap: 10px; margin-top: 16px; padding: 14px; }
  .about-update-icon { width: 34px; height: 34px; }
  .about-update h3 { font-size: 16px; }
  .about-update-points { grid-template-columns: 1fr; }
  .about-banner .about-update .about-update-point p { font-size: 12px; }
  .about-domain { font-size: 10px; }
  .about-fact { padding: 11px 9px; }
  .about-fact strong { font-size: 18px; }
  .about-fact span { font-size: 9px; }
  .about-banner .about-banner-intro { font-size: 12px; }
}
body[data-season="winter"] #page-guide .page-title-row .gradient-text {
  color: #29455c;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.dark-theme[data-season="winter"] #page-guide .page-title-row .gradient-text {
  color: #dceefa;
}
.account-dialog {
  width: min(440px, calc(100% - 28px));
  max-height: min(90vh, 700px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 25px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(34, 49, 37, .28);
}
.account-dialog::backdrop { background: rgba(29, 40, 32, .42); backdrop-filter: blur(5px); }
.account-card { position: relative; padding: 29px clamp(21px, 6vw, 34px) 25px; }
.account-card > .eyebrow, .account-card > h2 { text-align: center; }
.account-card > h2 { margin: 8px 0; font-family: var(--serif); font-size: 27px; }
.account-description { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.account-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0 16px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); }
.account-modes button { min-height: 37px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.account-modes button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px rgba(30, 48, 36, .08); }
.account-form { display: grid; gap: 8px; }
.account-label { display: block; margin: 4px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.account-form input { min-height: 45px; background: var(--surface-raised); }
.account-security-note { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-status { min-height: 18px; margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.account-status[data-state="error"] { color: #b94a48; }
.account-status[data-state="info"]:empty { display: none; }
.account-form .button { margin-top: 4px; }
.account-continue { margin-top: 7px; }
.account-card [hidden] { display: none; }
.account-card #account-signout { margin-top: 12px; }
body.dark-theme .account-status[data-state="error"] { color: #f0a19a; }
.site-footer {
  position: relative;
  margin-top: 28px;
  padding: 17px 0 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.footer-brand .brand-mark { flex: 0 0 auto; }
.footer-brand strong { font-size: 15px; letter-spacing: -.02em; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}
.footer-links button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  transition: color .18s, transform .18s;
}
.footer-links button:hover { transform: translateX(2px); color: var(--blue); }
.footer-bottom { padding-top: 9px; border-top: 1px solid var(--line); font-size: 9px; }

.flora-ai-widget {
  position: fixed;
  z-index: 20;
  right: max(24px, calc((100vw - 1340px) / 2));
  bottom: 116px;
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: var(--sans);
}
.flora-ai-toggle {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--blue) 34%, transparent), inset 0 1px rgba(255,255,255,.25);
  font-size: 13px;
  font-weight: 800;
  transition: color .25s, background .25s, border-color .25s, transform .2s, box-shadow .2s;
}
.flora-ai-toggle:hover { transform: translateY(-3px); box-shadow: 0 16px 38px color-mix(in srgb, var(--blue) 40%, transparent); }
.flora-ai-toggle .ui-icon { width: 18px; height: 18px; }
.flora-ai-toggle-chat { opacity: .8; }
.flora-ai-toggle[aria-expanded="true"] .flora-ai-toggle-chat { display: none; }
.flora-ai-toggle[aria-expanded="true"] .flora-ai-toggle-spark { display: none; }
.flora-ai-panel {
  width: min(390px, calc(100vw - 32px));
  height: min(640px, calc(100dvh - 180px));
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 17%, var(--line));
  border-radius: 25px;
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--surface-raised)));
  box-shadow: 0 24px 80px color-mix(in srgb, var(--ink) 18%, transparent), 0 4px 16px color-mix(in srgb, var(--ink) 7%, transparent);
  animation: flora-ai-enter .22s ease-out both;
}
.flora-ai-panel[hidden] { display: none; }
@keyframes flora-ai-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.flora-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, color-mix(in srgb, var(--hero-tint) 75%, var(--surface)), var(--surface));
}
.flora-ai-brand { display: flex; align-items: center; gap: 11px; }
.flora-ai-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--blue) 24%, transparent);
}
.flora-ai-mark .ui-icon { width: 19px; height: 19px; }
.flora-ai-brand > div { display: grid; gap: 4px; }
.flora-ai-brand strong { font-size: 13px; letter-spacing: -.02em; }
.flora-ai-presence { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.flora-ai-header-actions { display: flex; gap: 6px; }
.flora-ai-presence i { width: 7px; height: 7px; border-radius: 50%; background: #d3a54d; box-shadow: 0 0 0 3px color-mix(in srgb, #d3a54d 13%, transparent); }
.flora-ai-presence[data-state="ready"] i { background: #58a36a; box-shadow: 0 0 0 3px color-mix(in srgb, #58a36a 15%, transparent); }
.flora-ai-presence[data-state="offline"] i { background: #d27b63; box-shadow: 0 0 0 3px color-mix(in srgb, #d27b63 15%, transparent); }
.flora-ai-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
}
.flora-ai-close .ui-icon { width: 16px; height: 16px; }
.flora-ai-intro { padding: 16px 18px 6px; }
.flora-ai-eyebrow { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.flora-ai-intro p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.flora-ai-messages {
  min-height: 90px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 15px 16px 8px;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--blue) 25%, transparent) transparent;
}
.flora-ai-context-hint {
  align-self: stretch;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--hero-tint) 48%, var(--surface));
  font-size: 10px;
  line-height: 1.55;
}
.flora-ai-message { max-width: 90%; display: flex; align-items: flex-end; gap: 8px; }
.flora-ai-message p { margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: var(--surface-raised); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.flora-ai-content { min-width: 0; max-width: calc(100% - 32px); padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: var(--surface-raised); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.flora-ai-content p { margin: 0; padding: 0; border: 0; background: transparent; font-size: inherit; line-height: inherit; white-space: normal; }
.flora-ai-content p.flora-ai-stream-text { white-space: pre-wrap; }
.flora-ai-content p + p { margin-top: 8px; }
.flora-ai-content ul, .flora-ai-content ol { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 19px; }
.flora-ai-content li { padding-left: 2px; }
.flora-ai-source-label { display: block; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.flora-ai-sources { display: grid; gap: 5px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 10px; line-height: 1.4; }
.flora-ai-sources a { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); text-underline-offset: 2px; }
.flora-ai-google-search-link { display: inline-flex; margin-top: 9px; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.flora-ai-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; opacity: 0; transform: translateY(7px); transition: opacity .28s ease, transform .28s ease; }
.flora-ai-actions[hidden] { display: none; }
.flora-ai-actions.is-visible { opacity: 1; transform: translateY(0); }
.chat-action-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(208, 218, 223, .2);
  border-radius: 11px;
  color: #edf2f3;
  background: linear-gradient(145deg, #30383e, #20262b);
  box-shadow: 0 5px 13px rgba(8, 12, 15, .16), inset 0 1px rgba(255, 255, 255, .045);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.chat-action-btn:hover { transform: translateY(-2px); border-color: rgba(215, 226, 230, .46); background: linear-gradient(145deg, #3b454c, #272f35); box-shadow: 0 8px 18px rgba(8, 12, 15, .25), inset 0 1px rgba(255, 255, 255, .07); }
.chat-action-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 72%, white); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .flora-ai-actions { transition: none; transform: none; }
}
.flora-ai-message-assistant { align-self: flex-start; }
.flora-ai-message-user { align-self: flex-end; }
.flora-ai-message-user p { border-color: transparent; border-radius: 16px 16px 5px 16px; color: #fff; background: var(--gradient); }
.flora-ai-avatar { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--hero-tint); }
.flora-ai-avatar .ui-icon { width: 14px; height: 14px; }
.flora-ai-skeleton-bubble { width: min(250px, 64vw); display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: var(--surface-raised); }
.flora-ai-skeleton-bubble .skeleton-line { height: 9px; }
.flora-ai-skeleton-bubble .skeleton-line:nth-child(2) { width: 93%; }
.flora-ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 16px 12px; }
.flora-ai-suggestion { min-height: 31px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; text-align: left; transition: border-color .16s, color .16s, background .16s; }
.flora-ai-suggestion:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); color: var(--blue); background: var(--surface-raised); }
.flora-ai-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 13px; padding: 7px 7px 7px 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-raised); }
.flora-ai-form:focus-within { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 9%, transparent); }
.flora-ai-form textarea { width: 100%; max-height: 105px; resize: none; padding: 7px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.45; }
.flora-ai-form textarea::placeholder { color: var(--muted); }
.flora-ai-send { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: var(--gradient); transition: opacity .16s, transform .16s; }
.flora-ai-send:hover { transform: translateY(-1px); }
.flora-ai-send:disabled { cursor: wait; opacity: .48; }
.flora-ai-send .ui-icon { width: 17px; height: 17px; transform: rotate(-45deg); }
.flora-ai-footnote { margin: 8px 17px 12px; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }

.floating-companion {
  width: 44px;
  height: 44px;
  position: fixed;
  z-index: 6;
  right: max(24px, calc((100vw - 1340px) / 2));
  bottom: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  color: white;
  background: var(--gradient);
  box-shadow: 0 9px 24px rgba(76,113,229,.26);
  animation: companion-float 3.3s ease-in-out infinite;
}
.floating-companion span { font-size: 22px; }
.floating-companion i { position: absolute; top: -6px; right: -3px; color: #f5a6c0; font-size: 15px; font-style: normal; }
@keyframes companion-float { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-9px) rotate(7deg); } }
.bottom-dock {
  width: min(610px, calc(100% - 28px));
  min-height: var(--dock-h);
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 23px;
  background: var(--surface-glass);
  box-shadow: 0 14px 45px rgba(31,47,91,.2);
  backdrop-filter: blur(22px) saturate(1.4);
}
.dock-tab {
  min-width: 0;
  position: relative;
  flex: 1 1 0;
  min-height: 50px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 5px 3px;
  border: 0;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  transition: color .2s, background .2s, transform .2s;
}
.dock-tab:hover { transform: translateY(-2px); color: var(--blue); }
.dock-tab[aria-current="page"] { color: var(--blue); background: rgba(87,121,245,.1); }
.dock-icon { width: 22px; height: 22px; display: grid; place-items: center; }
.dock-icon .ui-icon { width: 19px; height: 19px; }
.dock-label { font-size: 9px; font-weight: 700; line-height: 1.15; text-align: center; }
.dock-count { min-width: 16px; height: 16px; position: absolute; top: 2px; left: calc(50% + 8px); display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 800; }

dialog#flower-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(15,25,48,.34);
}
dialog#flower-dialog::backdrop { background: rgba(18,28,50,.58); backdrop-filter: blur(5px); }
.dialog-content { position: relative; padding: 24px; }
.dialog-close { width: 34px; height: 34px; position: absolute; z-index: 2; top: 13px; right: 13px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(22,31,52,.55); }
.detail-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: 15px; }
.detail-no-photo { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border-radius: 15px; color: var(--muted); background: var(--surface-raised); font-size: 11px; text-align: center; }
.detail-no-photo .ui-icon { width: 34px; height: 34px; color: var(--blue); }
.detail-text { color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 800; }
.detail-section .detail-text { margin: 0; }
.plant-notes {
  margin: 18px 0 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-raised);
}
.plant-notes-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--blue); }
.plant-notes-heading .ui-icon { width: 18px; height: 18px; }
.plant-notes-heading h3 { font-size: 13px; }
.plant-note-input {
  width: 100%;
  min-height: 108px;
  display: block;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
}
.plant-note-input::placeholder { color: var(--muted); }
.plant-notes-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.plant-note-status { flex: 1 1 auto; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.plant-notes .plant-note-save { min-height: 38px; flex: 0 0 auto; }
.flower-facts { display: flex; flex-wrap: wrap; gap: 7px; }
.fact-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-raised); font-size: 9px; }
.photo-credit-detail { color: var(--muted); font-size: 10px; line-height: 1.7; }
.photo-credit-detail a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.similar-plants { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.similar-plants h3 { margin-bottom: 10px; font-size: var(--text-sm); }
.similar-plants-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.similar-plant-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-raised); text-align: left; transition: border-color .18s, transform .18s; }
.similar-plant-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.similar-plant-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.similar-plant-name, .similar-plant-latin { overflow: hidden; padding-inline: 8px; text-overflow: ellipsis; white-space: nowrap; }
.similar-plant-name { padding-top: 7px; font-size: var(--text-xs); font-weight: 700; }
.similar-plant-latin { padding-top: 2px; padding-bottom: 8px; color: var(--muted); font-family: var(--serif); font-size: 10px; font-style: italic; }
@media (max-width: 480px) {
  .similar-plants-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Stage 4: a clear search-first catalog, with the full filter set kept together. */
.catalog-toolbar { display: block; margin: 22px 0 10px; }
.catalog-toolbar .search-input { min-height: 54px; padding-inline: 18px; border-color: var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); font-size: var(--text-base); }
.catalog-filter-disclosure { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.catalog-filter-disclosure > summary { min-height: 48px; position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 42px; color: var(--ink); cursor: pointer; font-size: var(--text-sm); font-weight: 700; list-style: none; }
.catalog-filter-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-filter-disclosure > summary::before { width: 9px; height: 9px; position: absolute; left: 18px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.catalog-filter-disclosure[open] > summary::before { transform: rotate(225deg) translate(-2px, -1px); }
.catalog-filter-disclosure > summary span { margin-left: auto; color: var(--muted); font-size: var(--text-xs); font-weight: 500; }
.catalog-filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.catalog-filter-panel .catalog-control,
.catalog-filter-panel .catalog-sort-label,
.catalog-filter-panel .care-filter-label { min-width: 0; display: grid; align-content: start; gap: 6px; padding-top: 10px; color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.catalog-filter-panel select { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-raised); font-size: var(--text-sm); }
.catalog-filter-panel .catalogue-note { grid-column: 1 / -1; margin: 0; font-size: var(--text-xs); }
.flower-grid { gap: 20px; }
.flower-grid .flower-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.flower-grid .flower-card:hover { border-color: color-mix(in srgb, var(--blue) 34%, var(--line)); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.flower-grid .flower-photo-wrap { position: relative; overflow: hidden; border-radius: 0; }
.flower-grid .flower-photo-wrap::after { background: linear-gradient(0deg, rgba(12,20,36,.25), transparent 38%); }
.flower-grid .flower-number { display: none; }
.flower-grid .flower-info { min-height: 128px; display: flex; flex-direction: column; gap: 0; padding: 15px; }
.flower-grid .flower-card-name h3 { display: -webkit-box; overflow: hidden; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flower-grid .flower-latin { margin-top: 5px; font-size: var(--text-xs); }
.flower-grid .taxonomy-line,
.flower-grid .microclimate,
.flower-grid .flower-description,
.flower-grid .botanical-meta { display: none; }
.flower-grid .plant-tags { gap: 6px; margin-top: 10px; }
.flower-grid .plant-tag:nth-child(n + 3) { display: none; }
.flower-grid .plant-tag { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-raised); font-size: var(--text-xs); font-weight: 600; }
.flower-grid .flower-card-actions { padding-top: 12px; }
.flower-grid .flower-card-actions .button { min-height: 38px; }
dialog#flower-dialog { border-radius: var(--radius-lg); }
.dialog-content { padding: clamp(18px, 3vw, 28px); }
.detail-photo { max-height: min(44vh, 380px); border-radius: var(--radius-md); object-fit: cover; }
.photo-credit-detail { margin-top: 8px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--surface-raised); }
.detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 8px; }
.detail-section [class*="warning"],
.detail-section [class*="toxic"],
.detail-section [data-safety="toxic"] { padding: 12px 14px; border: 1px solid color-mix(in srgb, #b47731 32%, var(--line)); border-radius: var(--radius-sm); color: var(--ink); background: color-mix(in srgb, #d6a34d 12%, var(--surface)); }

@media (max-width: 1000px) {
  .flower-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 600px); }
  .topline { min-height: 31px; font-size: 8px; letter-spacing: .1em; }
  .header-inner { min-height: 63px; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 8px; }
  .header-actions { width: 100%; justify-content: flex-end; gap: 5px; }
  .header-actions .icon-button { width: 38px; height: 40px; flex: 0 0 38px; border-radius: 11px; }
  .brand { gap: 6px; font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
  .botanist-header-button { min-height: 40px; margin-left: auto; padding-inline: 11px; }
  .main-content { padding-top: 18px; }
  .hero-card { grid-template-columns: 1fr; border-radius: 21px; }
  .hero-copy { padding: 27px 23px; }
  .hero-art { min-height: 245px; }
  .hero-orbit { width: 86px; height: 86px; top: 16px; right: 16px; font-size: 12px; }
  h1 { font-size: clamp(34px, 9vw, 46px); }
  .home-facts { gap: 8px; margin-top: 10px; }
  .home-fact { align-items: flex-start; flex-direction: column; gap: 7px; padding: 12px; }
  .home-fact > .ui-icon { width: 17px; height: 17px; }
  .home-fact strong { font-size: 11px; }
  .home-fact small { font-size: 9px; }
  .feature-layout { grid-template-columns: 1fr; gap: 11px; margin-top: 11px; }
  .home-widget { min-height: auto; padding: 18px; }
  .quick-links { grid-template-columns: 1fr; gap: 8px; }
  .quick-link { min-height: 49px; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 10px; margin: 7px 0 15px; }
  .page-title-row h1 { font-size: 37px; }
  .page-title-row > .button { align-self: flex-start; }
  .page-title-row > .season-open-button { width: 100%; }
  .page-title-actions { width: 100%; justify-content: flex-start; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .botanist-answers { gap: 8px; }
  .botanist-answer { min-height: 44px; padding: 9px 8px; font-size: 10px; }
  .flower-photo-wrap { height: auto; aspect-ratio: 4 / 3; }
  .flower-info { min-height: 0; padding: 13px; }
  .flower-info h3 { font-size: 13px; }
  .taxonomy-line { font-size: 8px; }
  .flower-card-actions { margin-top: 10px; }
  .flower-card-actions .button { padding-inline: 9px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .guide-card { padding: 15px; }
  .recommendation-cover { height: 230px; }
  .bottom-dock { bottom: 9px; min-height: 68px; padding: 6px; border-radius: 20px; }
  .dock-tab { min-height: 52px; padding: 6px 3px; }
  .dock-label { font-size: 9px; }
  .floating-companion { width: 38px; height: 38px; right: 18px; bottom: 91px; }
  .flora-ai-widget { right: 12px; bottom: 88px; gap: 9px; }
  .flora-ai-panel { width: min(390px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 116px)); min-height: min(420px, calc(100dvh - 116px)); border-radius: 22px; }
  .flora-ai-toggle { min-height: 48px; gap: 8px; padding-inline: 15px; font-size: 12px; }
  .site-footer { margin-top: 24px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-links { justify-content: flex-start; gap: 2px 14px; }
  body { padding-bottom: 98px; }
}
@media (max-width: 420px) {
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-filters { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .flora-ai-widget { right: 10px; bottom: 84px; }
  .flora-ai-panel { height: min(620px, calc(100dvh - 106px)); min-height: min(380px, calc(100dvh - 106px)); }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 7px; padding-block: 8px; }
  .header-actions { width: 100%; flex-wrap: wrap; justify-content: center; gap: 5px; }
  .botanist-header-button { margin-left: auto; }
  .header-actions .icon-button { width: 38px; height: 40px; flex-basis: 38px; }
  .header-actions .ui-icon { width: 18px; height: 18px; }
  .random-pick-plant { grid-template-columns: 1fr; gap: 18px; }
  .random-pick-photo, .random-pick-placeholder { min-height: 0; aspect-ratio: 4 / 3; }
  .season-tracker { padding: 13px; }
  .season-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .season-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .season-month { min-height: 42px; padding-inline: 7px; font-size: 9px; }
  .season-tracker-columns { grid-template-columns: 1fr; gap: 10px; }
  .season-panel { padding: 13px; }
  .main-content { padding-top: 16px; }
  .hero-copy { padding: 23px 18px; }
  .hero-copy p { font-size: 12px; line-height: 1.7; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; min-height: 46px; }
  .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-fact { align-items: center; flex-direction: row; }
  .home-fact strong { font-size: 12px; }
  .flower-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .flower-photo-wrap { aspect-ratio: 4 / 3; }
  .flower-info { min-height: 0; padding: 15px; }
  .flower-info h3 { font-size: 16px; }
  .flower-description { font-size: 12px; }
  .microclimate-chip { min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .microclimate-chip > .ui-icon { width: 15px; height: 15px; }
  .flower-card-actions .button { min-height: 42px; font-size: 11px; }
  .guide-grid { grid-template-columns: 1fr; gap: 11px; }
  .guide-card { padding: 17px; }
  .guide-card h3 { font-size: 15px; }
  .guide-card p { font-size: 12px; }
  .catalog-control select, .catalog-sort-label select { min-height: 44px; }
  .plant-notes { padding: 12px; }
  .plant-notes-footer { align-items: stretch; flex-direction: column; }
  .plant-notes .plant-note-save { width: 100%; min-height: 44px; }
  .detail-actions { gap: 7px; }
  .detail-action-button { min-height: 44px; gap: 6px; padding-inline: 8px; font-size: 10px; }
  .botanist-game { padding: 14px; }
  .botanist-answers { grid-template-columns: 1fr; }
  .botanist-answer { min-height: 46px; font-size: 12px; }
  .footer-links button { min-height: 36px; }
  input, select { min-height: 44px; font-size: 14px; }
}
@media (max-width: 360px) {
  .header-actions { gap: 3px; }
  .header-actions .icon-button { width: 34px; height: 36px; flex-basis: 34px; }
  .header-actions .ui-icon { width: 17px; height: 17px; }
  .botanist-header-button { width: 34px; min-height: 36px; flex: 0 0 34px; margin-left: auto; padding: 0; }
  .botanist-header-button span { display: none; }
  .bottom-dock { width: calc(100% - 16px); padding-inline: 4px; }
  .dock-label { font-size: 8px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 22px); }
  .flower-photo-wrap { height: auto; aspect-ratio: 4 / 3; }
  .flower-card-actions .button { font-size: 9px; }
  .dock-label { font-size: 7px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.garden-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 86% 28%, color-mix(in srgb, var(--green) 23%, transparent), transparent 16rem),
    linear-gradient(125deg, color-mix(in srgb, var(--hero-tint) 90%, var(--surface)), var(--surface));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--blue) 10%, transparent);
}
.garden-hero-copy { position: relative; z-index: 1; }
.garden-hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.garden-hero-kicker .ui-icon { width: 16px; height: 16px; }
.garden-hero h1 { margin: 12px 0 10px; font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.garden-hero h1 span { color: var(--blue); }
.garden-hero-copy > p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.garden-hero-art { min-height: 176px; position: relative; display: grid; place-items: center; color: var(--blue); }
.garden-hero-art > .ui-icon { width: 106px; height: 106px; z-index: 1; stroke-width: 1.1; filter: drop-shadow(0 10px 15px color-mix(in srgb, var(--blue) 20%, transparent)); }
.garden-hero-orbit { position: absolute; width: 160px; height: 160px; border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); border-radius: 50%; }
.garden-hero-orbit-two { width: 208px; height: 208px; border-color: color-mix(in srgb, var(--blue) 10%, transparent); }
.garden-shortcuts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.garden-shortcuts button { min-width: 0; min-height: 48px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: color-mix(in srgb, var(--surface) 84%, transparent); text-align: left; font-size: 11px; font-weight: 750; transition: background .18s, transform .18s, border-color .18s; }
.garden-shortcuts button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--surface); }
.garden-shortcuts button > .ui-icon { width: 18px; height: 18px; color: var(--blue); }
.garden-shortcuts button > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garden-shortcuts button > span:last-child { color: var(--blue); text-align: right; }
.garden-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.garden-panel { min-width: 0; padding: clamp(18px, 2.5vw, 26px); scroll-margin-top: 94px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--hero-tint))); box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 5%, transparent); }
.garden-diagnosis-panel { grid-column: 1 / -1; }
.garden-panel-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.garden-panel-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--blue) 17%, var(--line)); border-radius: 14px; color: var(--blue); background: color-mix(in srgb, var(--hero-tint) 70%, var(--surface)); }
.garden-panel-icon .ui-icon { width: 20px; height: 20px; }
.garden-panel-heading > div { min-width: 0; flex: 1; }
.garden-panel .eyebrow { font-size: 9px; }
.garden-panel h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(19px, 2.5vw, 26px); line-height: 1.2; }
.garden-panel-tag { flex: 0 0 auto; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line)); border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--hero-tint) 70%, var(--surface)); font-size: 9px; font-weight: 800; }
.garden-panel > p, .garden-diagnosis-copy > p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.garden-panel > p { margin: 14px 0; }
.garden-panel input:not([type="file"]), .garden-panel textarea { width: 100%; min-height: 48px; margin: 6px 0 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-raised); font-size: 13px; }
.garden-panel textarea { min-height: 110px; resize: vertical; }
.garden-panel form label:not(.garden-file-label) { display: block; color: var(--muted); font-size: 11px; font-weight: 750; }
.garden-panel input[type="file"]:not(#garden-diagnosis-file) { width: 100%; min-height: 44px; margin: 6px 0 14px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface-raised); font-size: 11px; }
.garden-diagnosis-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: center; margin-top: 14px; }
.garden-diagnosis-copy > p { margin: 0 0 12px; }
.garden-checklist { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; color: var(--muted); list-style: none; font-size: 11px; line-height: 1.5; }
.garden-checklist li { position: relative; padding-left: 22px; }
.garden-checklist li::before { position: absolute; left: 0; color: var(--blue); content: "✓"; font-weight: 900; }
.garden-file-label { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 9px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--blue) 44%, var(--line)); border-radius: 13px; color: var(--blue); background: color-mix(in srgb, var(--hero-tint) 50%, var(--surface)); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .18s, border-color .18s; }
.garden-file-label:hover { border-color: var(--blue); background: color-mix(in srgb, var(--hero-tint) 80%, var(--surface)); }
.garden-file-label .ui-icon { width: 18px; height: 18px; }
#garden-diagnosis-file { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.garden-file-label:has(+ #garden-diagnosis-file:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.garden-diagnosis-visual { min-width: 0; }
.garden-photo-placeholder { width: 100%; min-height: 220px; max-height: 330px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; }
.garden-photo-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.garden-photo-stage[hidden] { display: none; }
.garden-preview { display: block; width: auto; max-width: 100%; height: auto; min-height: 0; max-height: min(60vh, 560px); margin: 0 auto; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-raised); object-fit: contain; object-position: center; }
.garden-photo-markers { position: absolute; inset: 0; pointer-events: none; }
.garden-photo-marker { width: 18px; height: 18px; position: absolute; display: grid; place-items: center; border: 2px solid #ffd45b; border-radius: 50%; background: rgba(255, 202, 56, .28); box-shadow: 0 0 0 4px rgba(255, 213, 91, .2), 0 1px 5px rgba(20, 26, 19, .45); transform: translate(-50%, -50%); }
.garden-photo-marker::before { width: 5px; height: 5px; border-radius: 50%; background: #ffe28a; content: ""; }
.garden-photo-marker-label { max-width: min(190px, 42vw); position: absolute; bottom: calc(100% + 7px); left: 50%; padding: 6px 9px; border: 1px solid rgba(255, 224, 141, .7); border-radius: 9px; color: #293121; background: rgba(255, 248, 224, .96); box-shadow: 0 4px 14px rgba(20, 26, 19, .24); font-size: 10px; font-weight: 750; line-height: 1.35; text-align: center; transform: translateX(-50%); }
.garden-marker-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.garden-marker-note[hidden] { display: none; }
.garden-photo-placeholder { display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; color: var(--muted); background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--green) 20%, transparent), transparent 68%), var(--surface-raised); font-size: 11px; text-align: center; }
.garden-photo-placeholder .ui-icon { width: 58px; height: 58px; color: var(--blue); stroke-width: 1.1; }
.garden-photo-placeholder[hidden], .garden-preview[hidden] { display: none; }
.garden-panel .garden-primary-action, .garden-panel form > .button { min-height: 49px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.garden-status { min-height: 1.4em; margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.garden-status[data-state="error"] { color: #b94a42; }
.garden-photo-chat { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.garden-photo-chat > .button { min-height: 40px; margin: 0 0 12px; }
.garden-photo-chat[hidden] { display: none; }
.garden-photo-chat-messages { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px 3px 12px; scroll-behavior: smooth; }
.garden-chat-message { width: min(86%, 560px); padding: 11px 13px; border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; background: var(--surface); box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 4%, transparent); }
.garden-chat-user { justify-self: end; border-color: color-mix(in srgb, var(--blue) 20%, var(--line)); border-radius: 15px 15px 5px 15px; background: color-mix(in srgb, var(--hero-tint) 55%, var(--surface)); }
.garden-chat-author { display: block; margin-bottom: 5px; color: var(--blue); font-size: 10px; font-weight: 800; }
.garden-chat-text { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.garden-chat-photo { display: block; width: auto; max-width: min(100%, 220px); max-height: 180px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.garden-chat-message.is-pending .garden-chat-text { color: var(--muted); }
.garden-chat-message.is-error { border-color: color-mix(in srgb, #b94a42 35%, var(--line)); }
.garden-chat-message.is-error .garden-chat-text { color: #b94a42; }
.garden-photo-chat-form { display: flex; align-items: end; gap: 9px; }
.garden-photo-chat-form .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.garden-panel .garden-photo-chat-form textarea { min-width: 0; min-height: 48px; max-height: 150px; flex: 1; margin: 0; resize: vertical; }
.garden-photo-chat-form .garden-photo-chat-send { width: auto; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; }
.garden-photo-chat-send .ui-icon { width: 17px; height: 17px; transform: rotate(45deg); }
.garden-photo-chat-send:disabled { opacity: .6; cursor: wait; }
.garden-disclaimer { margin: 14px 0 0 !important; padding: 10px 12px; border-left: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); border-radius: 0 9px 9px 0; background: color-mix(in srgb, var(--hero-tint) 34%, var(--surface)); font-size: 10px !important; }
.garden-account-hint { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.garden-form-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 10px; align-items: end; }
.garden-form-row > div { min-width: 0; }
.garden-care-form-row { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
.garden-add-care { min-height: 48px; margin-bottom: 14px; padding-inline: 14px; white-space: nowrap; }
.garden-empty { color: var(--muted); font-size: 11px; line-height: 1.6; }
.garden-journal-list, .garden-care-list { display: grid; gap: 10px; margin-top: 14px; }
.garden-journal-entry, .garden-care-item { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.garden-entry-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.garden-entry-heading h3 { margin: 0; font-size: 14px; }
.garden-entry-heading time, .garden-care-item small { color: var(--muted); font-size: 10px; }
.garden-journal-entry > p { margin: 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.garden-entry-photo { width: 100%; max-height: 250px; border-radius: 10px; object-fit: cover; }
.garden-journal-entry .button { min-height: 42px; justify-self: start; }
.garden-care-item > strong { font-size: 13px; }
.garden-care-item > span { color: var(--blue); font-size: 11px; font-weight: 700; }
.garden-care-item > .garden-care-schedule { line-height: 1.5; }
.garden-care-item > .garden-care-schedule.is-due { color: var(--blue); }
.garden-care-item > .garden-care-schedule.is-overdue { color: var(--danger, #b54747); }
.garden-care-item > .garden-care-location { width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; }
.garden-care-item > .garden-care-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.garden-care-history-label { margin-top: 2px; }
.garden-care-history { display: flex; flex-wrap: wrap; gap: 5px; }
.garden-care-history span { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); font-size: 9px; }
.garden-care-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.garden-care-actions .button { min-height: 42px; }
.garden-care-actions .button:disabled { opacity: .65; cursor: default; }
.activity-title { margin: 0 0 5px; font-family: var(--serif); font-size: 22px; }
.activity-intro { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.expedition-section { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 4%, transparent); }
.expedition-toggle { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.expedition-toggle::-webkit-details-marker { display: none; }
.expedition-toggle-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.expedition-toggle-icon .ui-icon { width: 19px; height: 19px; }
.expedition-toggle-copy { min-width: 0; display: grid; gap: 3px; }
.expedition-toggle-copy strong { font-size: 13px; }
.expedition-toggle-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.expedition-toggle-count { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); font-size: 10px; font-weight: 800; white-space: nowrap; }
.expedition-chevron { width: 9px; height: 9px; flex: 0 0 auto; margin: -4px 2px 0 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.expedition-section[open] .expedition-chevron { margin-top: 5px; transform: rotate(225deg); }
.expedition-content { padding: 0 16px 15px; border-top: 1px solid var(--line); }
.expedition-progress-overview { display: flex; align-items: center; gap: 16px; padding: 13px 0 9px; }
.expedition-progress-overview > div:first-child { min-width: 0; display: grid; gap: 3px; }
.expedition-progress-overview strong { font-size: 11px; }
.expedition-progress-overview span { color: var(--muted); font-size: 10px; }
.expedition-xp-track { width: 130px; height: 7px; flex: 0 0 auto; margin-left: auto; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--blue) 11%, var(--surface)); }
.expedition-xp-track > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .3s ease; }
.expedition-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 5px 0; color: var(--muted); font-size: 9px; }
.expedition-stats strong { color: var(--blue); }
.expedition-instructions { margin: 7px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.expedition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.expedition-card { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; gap: 5px 9px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); }
.expedition-card.is-complete { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: color-mix(in srgb, var(--green) 6%, var(--surface)); }
.expedition-card-top { grid-row: span 2; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.expedition-card-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.expedition-card-icon .ui-icon { width: 15px; height: 15px; }
.expedition-step { max-width: 36px; color: var(--muted); font-size: 7px; line-height: 1.2; text-align: center; }
.expedition-card h3 { margin: 0; align-self: center; font-size: 11px; line-height: 1.3; }
.expedition-card > p { grid-column: 2; min-height: 0; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.expedition-progress-copy { grid-column: 2; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 9px; }
.expedition-progress-copy strong { color: var(--blue); font-size: 9px; white-space: nowrap; }
.expedition-progress-track { height: 5px; grid-column: 2; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--blue) 11%, var(--surface)); }
.expedition-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .3s ease; }
.expedition-action { min-height: 34px; grid-column: 2; padding: 0 8px; font-size: 9px; }
.expedition-action:disabled { opacity: .7; cursor: default; }
.expedition-status { min-height: 1.4em; margin: 6px 0 0; color: #b94a42; font-size: 10px; }
.expedition-footnote { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.garden-push-controls { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.garden-push-controls > div { min-width: 0; flex: 1; }
.garden-push-controls strong { font-size: 12px; }
.garden-push-controls .garden-status { margin-bottom: 0; }
.garden-push-controls .button { min-height: 44px; flex: 0 0 auto; }
.dock-tab-featured .dock-icon { width: 36px; height: 36px; border-radius: 13px; color: #fff; background: var(--gradient); box-shadow: 0 6px 15px color-mix(in srgb, var(--blue) 25%, transparent); }
.dock-tab-featured .dock-icon .ui-icon { width: 20px; height: 20px; }
.dock-tab-featured .dock-label { color: var(--blue); font-weight: 850; }
@media (max-width: 760px) {
  .garden-hero { grid-template-columns: minmax(0, 1fr) 150px; }
  .garden-hero-art { min-height: 145px; }
  .garden-hero-art > .ui-icon { width: 78px; height: 78px; }
  .garden-hero-orbit { width: 120px; height: 120px; }
  .garden-hero-orbit-two { width: 158px; height: 158px; }
  .garden-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .garden-diagnosis-panel { grid-column: auto; }
}
@media (max-width: 520px) {
  .winter-field-route-header { align-items: flex-start; }
  .winter-field-route-emblem { width: 58px; height: 58px; border-radius: 17px; font-size: 29px; }
  .winter-field-route-steps { grid-template-columns: minmax(0, 1fr); }
  .citizen-observations-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .expedition-toggle { min-height: 66px; gap: 8px; padding: 10px; }
  .expedition-toggle-icon { width: 33px; height: 33px; }
  .expedition-toggle-copy strong { font-size: 11px; }
  .expedition-toggle-copy small { font-size: 9px; }
  .expedition-toggle-count { padding: 5px 7px; font-size: 9px; }
  .expedition-content { padding: 0 10px 11px; }
  .expedition-progress-overview { flex-wrap: wrap; gap: 8px; }
  .expedition-xp-track { width: 100%; order: 2; }
  .expedition-stats { gap: 5px 9px; font-size: 8px; }
  .expedition-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .expedition-card { grid-template-columns: 34px minmax(0, 1fr); padding: 10px; }
  .expedition-card-icon { width: 30px; height: 30px; }
  .expedition-card h3 { font-size: 12px; }
  .expedition-card > p { font-size: 10px; }
  .garden-hero { grid-template-columns: minmax(0, 1fr) 76px; gap: 14px 8px; margin-bottom: 13px; padding: 20px 17px 15px; border-radius: 20px; }
  .garden-hero h1 { margin: 9px 0 7px; font-size: clamp(29px, 9vw, 39px); }
  .garden-hero-copy > p { font-size: 11px; line-height: 1.6; }
  .garden-hero-art { min-height: 92px; }
  .garden-hero-art > .ui-icon { width: 52px; height: 52px; }
  .garden-hero-orbit { width: 78px; height: 78px; }
  .garden-hero-orbit-two { width: 106px; height: 106px; }
  .garden-shortcuts { gap: 6px; }
  .garden-shortcuts button { min-height: 50px; grid-template-columns: 18px minmax(0, 1fr); gap: 5px; padding: 7px; font-size: 9px; line-height: 1.3; }
  .garden-shortcuts button > .ui-icon { width: 16px; height: 16px; }
  .garden-shortcuts button > span:last-child { display: none; }
  .garden-panel { padding: 16px; scroll-margin-top: 78px; border-radius: 17px; }
  .garden-panel-heading { gap: 9px; }
  .garden-panel-icon { width: 37px; height: 37px; border-radius: 12px; }
  .garden-panel h2 { font-size: 20px; }
  .garden-diagnosis-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .garden-diagnosis-copy { display: flex; flex-direction: column; }
  .garden-diagnosis-visual { order: -1; }
  .garden-photo-placeholder { min-height: 170px; max-height: 235px; aspect-ratio: 4 / 3; }
  .garden-preview { max-height: 60vh; }
  .garden-chat-message { width: min(92%, 560px); }
  .garden-photo-chat-form { align-items: stretch; flex-direction: column; }
  .garden-panel .garden-photo-chat-form textarea { min-height: 76px; }
  .garden-photo-chat-form .garden-photo-chat-send { width: 100%; }
  .garden-checklist { gap: 6px; font-size: 10px; }
  .garden-file-label, .garden-panel .garden-primary-action, .garden-panel form > .button { min-height: 49px; font-size: 12px; }
  .garden-form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .garden-care-form-row { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); align-items: end; gap: 8px; }
  .garden-add-care { min-height: 48px; margin-bottom: 14px; padding-inline: 9px; font-size: 10px !important; white-space: normal; }
  .garden-push-controls { align-items: stretch; flex-wrap: wrap; }
  .garden-push-controls > div { flex-basis: calc(100% - 1px); }
  .garden-push-controls .button { flex: 1; }
  .dock-tab-featured .dock-icon { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
  .garden-hero { grid-template-columns: minmax(0, 1fr) 54px; padding-inline: 14px; }
  .garden-shortcuts button { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: 8px; }
  .garden-shortcuts button > span:nth-child(2) { white-space: normal; }
  .garden-panel { padding: 13px; }
  .garden-care-form-row { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); }
}

/* Keep surfaces calm and let the photography carry the color. */
body.dark-theme {
  --line: rgba(210, 222, 245, .09);
  --surface-glass: rgba(23, 35, 27, .88);
}
.hero-card {
  border-color: var(--line);
  border-radius: 23px;
  box-shadow: 0 18px 48px rgba(25, 42, 82, .1);
}
.surface-card, .flower-card {
  box-shadow: 0 6px 20px rgba(30, 48, 88, .045);
}
.surface-card { border-radius: 16px; }
.flower-card { border-radius: 15px; }
.flower-card { border-radius: 19px; }
.button { border-radius: 10px; box-shadow: 0 5px 14px rgba(81, 116, 231, .15); }
.button:hover { box-shadow: 0 8px 18px rgba(81, 116, 231, .2); }
.button.secondary, .button.ghost { box-shadow: none; }
.quick-link { border-radius: 12px; }
.bottom-dock {
  border-color: var(--line);
  box-shadow: 0 10px 32px rgba(20, 31, 62, .16);
}
.flower-photo-wrap {
  aspect-ratio: 4 / 3;
  height: auto;
  background: linear-gradient(120deg, #e7efe2, #e4f1e8 45%, #f9e7e4);
}
.flower-photo { background: linear-gradient(120deg, #e7efe2, #e4f1e8); }
.flower-grid .flower-card:nth-child(6n + 1) .flower-photo-wrap { background-color: #f4e9de; }
.flower-grid .flower-card:nth-child(6n + 2) .flower-photo-wrap { background-color: #e8efdf; }
.flower-grid .flower-card:nth-child(6n + 3) .flower-photo-wrap { background-color: #f5e6e7; }
@media (max-width: 720px) {
  .flower-photo-wrap { height: auto; }
  .flower-grid { gap: 11px; }
  .flower-info { min-height: 0; padding: 12px; }
}

@media (min-width: 1200px) {
  .flower-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flower-photo-wrap { aspect-ratio: 4 / 3; height: auto; }
}

@media (hover: none) {
  .flower-card:hover { transform: none; }
  .flower-card:hover .flower-photo { transform: none; }
}

/* Shared visual-system refinements. */
body {
  line-height: 1.6;
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--glow-one) 42%, transparent), transparent 54rem),
    radial-gradient(ellipse at 5% 5%, var(--glow-one), transparent 37rem),
    radial-gradient(ellipse at 94% 19%, var(--glow-two), transparent 39rem),
    radial-gradient(ellipse at 77% 92%, var(--glow-three), transparent 34rem),
    linear-gradient(160deg, color-mix(in srgb, var(--bg) 96%, white), var(--bg) 58%, color-mix(in srgb, var(--bg) 96%, var(--glow-three)));
  background-attachment: fixed;
}
body.dark-theme {
  --shadow-soft: 0 5px 18px rgba(0, 0, 0, .18);
  --shadow-popover: 0 14px 36px rgba(0, 0, 0, .3);
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--glow-one) 38%, transparent), transparent 54rem),
    radial-gradient(ellipse at 14% 4%, var(--glow-one), transparent 38rem),
    radial-gradient(ellipse at 89% 28%, var(--glow-two), transparent 38rem),
    radial-gradient(ellipse at 77% 92%, var(--glow-three), transparent 34rem),
    linear-gradient(160deg, color-mix(in srgb, var(--bg) 96%, white), var(--bg) 58%, color-mix(in srgb, var(--bg) 96%, var(--glow-three)));
  background-attachment: fixed;
}
.shell { width: min(1200px, calc(100% - 48px)); }
.main-content { padding-top: var(--space-6); }
.page-title-row { margin-bottom: var(--space-5); }
.page-title-row p, .about-banner p, .detail-text, .random-pick-description {
  max-width: var(--text-measure);
  line-height: 1.75;
}
h1 { line-height: 1.12; }
h2 { line-height: 1.3; }
.surface-card, .flower-card, .home-fact, .quick-link {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.flower-card:hover { box-shadow: var(--shadow-popover); }
.hero-card { box-shadow: var(--shadow-soft); }
.button, .icon-button, input, select, .catalog-control select,
.catalog-sort-label select, .care-filter-label select {
  border-radius: var(--radius-sm);
}
.button { min-height: 44px; font-size: var(--text-xs); }
.button.small { min-height: 38px; }
input, select { min-height: 44px; color: var(--ink); font-size: var(--text-sm); }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 48%, transparent);
  outline-offset: 2px;
}
.flower-card, .surface-card { border-radius: var(--radius-md); }
.flower-info { gap: 2px; }
.plant-tag, .microclimate-chip { font-size: var(--text-xs); }
.catalog-count, .muted { line-height: 1.65; }
.about-banner p { max-width: min(100%, 76ch); }
.site-footer { margin-top: var(--space-7); }

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 600px); }
  .main-content { padding-top: var(--space-4); }
  .page-title-row { margin-bottom: var(--space-4); }
  .button { min-height: 46px; }
  body, body.dark-theme { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Homepage: keep the invitation clear and supporting details quiet. */
.home-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 12px;
  margin-top: var(--space-4);
}
.home-fact {
  min-height: 72px;
  gap: 10px;
  padding: 14px 16px;
  border-color: var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.home-fact > .ui-icon { width: 21px; height: 21px; opacity: .9; }
.home-fact strong { color: var(--ink); font-size: 15px; font-weight: 800; }
.home-fact small { font-size: 10px; }

/* Clearer daily-plant framing and a persistent, easy-to-find comparison tray. */
.hero-art img { object-position: center 42%; }
.hero-art-label {
  max-width: calc(100% - 42px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(17, 29, 22, .38);
  backdrop-filter: blur(8px);
  letter-spacing: .04em;
  text-transform: none;
}
.compare-select-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
  background: var(--surface-raised);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color .18s, background .18s, transform .18s;
}
.compare-select-button .ui-icon { width: 15px; height: 15px; }
.compare-select-button:hover { transform: translateY(-1px); border-color: var(--blue); }
.compare-select-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}
#compare-dock {
  width: min(640px, calc(100% - 28px));
  position: fixed;
  z-index: 11;
  right: 0;
  bottom: calc(var(--dock-h) + 28px);
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface-glass);
  box-shadow: var(--shadow-popover);
  backdrop-filter: blur(18px) saturate(1.25);
}
.compare-dock-copy { min-width: 0; }
.compare-dock-copy strong, .compare-dock-copy span { display: block; }
.compare-dock-copy strong { font-size: 12px; line-height: 1.4; }
.compare-dock-copy span { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.compare-dock .button { min-height: 38px; padding-inline: 11px; white-space: nowrap; }
.footer-main { justify-content: flex-start; padding-bottom: 0; }

@media (max-width: 520px) {
  #compare-dock { width: calc(100% - 20px); bottom: calc(var(--dock-h) + 26px); gap: 7px; padding: 9px; }
  .compare-dock-copy strong { font-size: 10px; }
  .compare-dock-copy span { font-size: 9px; }
  .compare-dock .button { min-height: 36px; padding-inline: 8px; font-size: 9px; }
  .compare-select-button { min-height: 38px; gap: 4px; padding-inline: 7px; font-size: 9px; }
}

.home-fact small { display: block; }
.collection-empty-action, .observations-empty-action { display: none; }
#collection-grid:has(.empty-state) + .collection-empty-action {
  display: flex;
  width: fit-content;
  margin: 16px auto 0;
}
.season-observation-list:has(.season-empty) + .observations-empty-action {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
}
@media (max-width: 520px) {
  .home-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .home-fact { min-height: 68px; justify-content: center; gap: 4px; flex-direction: column; padding: 8px 4px; }
  .home-fact > .ui-icon { display: block; width: 17px; height: 17px; }
  .home-fact strong { font-size: 10px; text-align: center; }
  .home-fact small { font-size: 8px; text-align: center; }
}

/* Stage 3: primary navigation, compact palette controls, and secondary links. */
.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.primary-nav-link:hover,
.primary-nav-link[aria-current="page"] { color: var(--blue); background: var(--surface-raised); }
.primary-collection-link span {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--surface-raised);
  font-size: 10px;
}
.header-actions { flex: 0 0 auto; }
.bottom-dock { width: min(610px, calc(100% - 28px)); }
.footer-links { max-width: 700px; }
.footer-links button { font-size: var(--text-xs); }

@media (max-width: 900px) {
}
@media (max-width: 520px) {
  .header-inner { justify-content: center; gap: 7px; }
  .header-actions { width: 100%; justify-content: center; gap: 9px; }
}

/* Keep secondary destinations and utilities in the header; the dock is the main five-item menu. */
.primary-nav { gap: 2px; }
.primary-nav-link { padding-inline: 7px; font-size: 10px; }
.primary-collection-link { gap: 5px; }
.primary-collection-count {
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--surface-raised);
  font-size: 9px;
}
.bottom-dock { width: min(650px, calc(100% - 28px)); }
.dock-label { max-width: 100%; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .header-actions { order: 2; }
  .primary-nav {
    width: 100%;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 7px;
  }
}
@media (max-width: 520px) {
  .primary-nav { gap: 0; }
  .primary-nav-link { min-height: 34px; padding-inline: 6px; font-size: 9px; }
  .bottom-dock { width: calc(100% - 16px); min-height: 76px; padding: 5px 3px; }
  .dock-tab { gap: 4px; padding-inline: 2px; }
  .dock-label { font-size: 8px; }
}
@media (max-width: 360px) {
  .primary-nav-link { padding-inline: 4px; font-size: 8px; }
  .dock-label { font-size: 7px; }
}

/* Show the existing light and watering guidance on catalog cards. */
.flower-grid .microclimate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.flower-grid .microclimate-chip {
  min-height: 26px;
  gap: 5px;
  padding: 4px 8px;
  font-size: 10px;
}
.flower-grid .microclimate-chip > .ui-icon {
  width: 14px;
  height: 14px;
}

/* Stage 5: comfortable touch targets, resilient layouts, and clear keyboard focus. */
:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 62%, white);
  outline-offset: 3px;
}

.flower-card,
.surface-card,
.icon-button,
.button,
.primary-nav-link,
.dock-tab {
  transition-duration: .18s;
}

@media (max-width: 720px) {
  .catalog-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title-row,
  .catalog-filter-panel,
  .season-tracker-columns,
  .feature-layout,
  .random-pick-plant { min-width: 0; }
  .page-title-row > *,
  .flower-card,
  .surface-card { min-width: 0; }
  .favorite-button { width: 44px; height: 44px; }
  .plant-note-indicator { width: 36px; height: 36px; }
  dialog#flower-dialog { max-height: calc(100dvh - 24px); }
}

@media (max-width: 480px) {
  .catalog-filter-panel { grid-template-columns: minmax(0, 1fr); }
  .catalog-filter-disclosure > summary { align-items: flex-start; flex-wrap: wrap; }
  .catalog-filter-disclosure > summary span { width: 100%; margin-left: 0; }
  .detail-actions { grid-template-columns: minmax(0, 1fr); }
  .detail-action-button { min-height: 46px; }
  .dialog-content { padding: 16px; }
  .flower-card-actions { flex-wrap: wrap; }
  .flower-card-actions .button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Final polish: consistent, quiet feedback without changing page behavior. */
:where(.surface-card, .flower-card, .home-fact, .quick-link, .catalog-filter-disclosure) {
  border-color: var(--line);
}
:where(.button, .icon-button, .detail-action-button, .season-add, .season-remove):active {
  transform: translateY(1px);
}
:where(.button, .icon-button, .detail-action-button, .season-add, .season-remove):focus-visible {
  outline-color: color-mix(in srgb, var(--blue) 65%, white);
}
:where(.flower-latin, .taxonomy-line, .botanical-meta, .photo-credit-detail) {
  overflow-wrap: anywhere;
}
:where(.flower-description, .detail-text, .season-note, .about-banner p) {
  text-wrap: pretty;
}

@media (max-width: 520px) {
  .catalog-filter-disclosure > summary { min-height: 48px; }
  .flower-grid .flower-info { padding: 14px; }
  .flower-grid .flower-card-actions { gap: 8px; }
  .flower-grid .flower-card-actions .button { min-height: 42px; }
  .site-footer { padding-bottom: 18px; }
}

/* Refined footer and a readable photo credit on the daily-plant hero. */
.site-footer {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--hero-tint) 55%, var(--surface)));
  box-shadow: var(--shadow-soft);
}
.footer-main {
  align-items: flex-start;
  padding: 24px 28px 18px;
}
.footer-links {
  max-width: 720px;
  gap: 6px;
}
.footer-links button {
  min-height: 34px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: color .18s, background-color .18s;
}
.footer-links button:hover {
  transform: none;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
}
.footer-bottom {
  margin-inline: 28px;
  padding: 12px 0 17px;
  line-height: 1.65;
}
.hero-art-label {
  max-width: calc(100% - 46px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(22, 35, 30, .58);
  backdrop-filter: blur(8px);
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1.45;
  text-transform: none;
  overflow-wrap: anywhere;
}
.hero-art-label:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
  .footer-main { gap: 12px; padding: 20px 18px 14px; }
  .footer-links { justify-content: flex-start; gap: 4px; }
  .footer-links button { min-height: 38px; padding-inline: 9px; }
  .footer-bottom { margin-inline: 18px; padding-bottom: 15px; }
  .hero-art-label { max-width: calc(100% - 32px); bottom: 14px; left: 16px; }
}

/* A true side-by-side comparison: shared rows make differences easy to scan. */
dialog.compare-dialog {
  width: min(900px, calc(100% - 28px));
  max-width: 900px;
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(15, 25, 48, .34);
}
dialog.compare-dialog::backdrop { background: rgba(18, 28, 50, .58); backdrop-filter: blur(5px); }
.compare-dialog-content { position: relative; max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow: auto; padding: clamp(20px, 4vw, 34px); }
.compare-dialog-content > h2 { margin: 0 48px 20px 0; font-size: clamp(22px, 4vw, 30px); }
.compare-dialog-content > .dialog-close { position: absolute; top: 20px; right: 20px; color: var(--muted); border-color: var(--line); background: var(--surface-raised); }
.compare-plants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.compare-plant { min-width: 0; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.compare-plant-image-wrap { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.compare-plant-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.compare-plant-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; color: var(--muted); background: var(--surface); font-size: var(--text-xs); text-align: center; }
.compare-plant-credit { min-height: 2.8em; overflow: hidden; margin: 9px 0 4px; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; }
.compare-plant-credit a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.compare-plant h3 { overflow: hidden; font-size: clamp(13px, 2vw, 17px); text-overflow: ellipsis; white-space: nowrap; }
.compare-plant .flower-latin { overflow-wrap: anywhere; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.compare-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: var(--text-sm); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--muted); background: var(--surface-raised); font-size: var(--text-xs); font-weight: 700; }
.compare-table thead th:not(:first-child) { color: var(--blue); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { width: 26%; color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.compare-table td { width: 37%; }
.compare-table td.is-different { color: var(--ink); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); font-weight: 700; }
@media (max-width: 520px) {
  dialog.compare-dialog { width: calc(100% - 20px); border-radius: var(--radius-lg); }
  .compare-dialog-content { padding: 16px; }
  .compare-plants { gap: 8px; }
  .compare-plant { padding: 7px; }
  .compare-plant-credit { min-height: 3em; font-size: 9px; }
  .compare-table th, .compare-table td { padding: 10px 9px; }
}

.recent-plants { margin: 12px 0 18px; }
.recent-plants[hidden] { display: none; }
.recent-plants-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.recent-plants-heading h2 { margin: 0; color: var(--muted); font-family: var(--sans); font-size: var(--text-sm); font-weight: 700; }
.recent-plants-clear { min-height: 32px; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); font-size: var(--text-xs); }
.recent-plants-clear:hover { color: var(--blue); border-color: var(--blue); }
.recent-plants-list { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 7px; }
.recent-plant { width: 118px; min-width: 118px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); background: var(--surface); text-align: left; transition: border-color .18s, transform .18s; }
.recent-plant:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.recent-plant img, .recent-plant-placeholder { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); color: var(--blue); background: var(--surface-raised); object-fit: cover; }
.recent-plant-placeholder .ui-icon { width: 27px; height: 27px; }
.recent-plant-name { overflow: hidden; font-size: var(--text-xs); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .recent-plants { margin: 9px 0 14px; }
  .recent-plant { width: 102px; min-width: 102px; }
}

.collection-stat {
  margin: -7px 0 14px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}
.collection-stat[hidden] { display: none; }

/* Этап 1: более ясная иерархия и равномерный ритм в карточке растения. */
dialog#flower-dialog {
  width: min(720px, calc(100% - 28px));
}
#flower-detail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
#flower-detail > .detail-photo,
#flower-detail > .detail-no-photo {
  order: 1;
  width: 100%;
  max-height: clamp(220px, 36vh, 390px);
  margin: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
}
#flower-detail > .eyebrow { order: 5; margin: 0 !important; }
#flower-detail > #detail-name {
  order: 2;
  max-width: 26ch;
  margin: 0 !important;
  font-size: clamp(27px, 5vw, 36px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#flower-detail > .flower-latin { order: 3; margin: 0; font-size: var(--text-sm); }
#flower-detail .detail-actions { display: contents; }
#flower-detail .detail-actions > :not(.favorite-detail-button) { order: 14; }
#flower-detail .favorite-detail-button {
  order: 6;
  align-self: flex-start;
  min-height: 48px;
  padding-inline: 20px;
  font-size: var(--text-sm);
}
#flower-detail > .detail-section {
  margin: 0;
  padding: 0;
  border: 0;
}
#flower-detail > .detail-section[aria-labelledby="detail-care-title"] { order: 7; }
#flower-detail > .detail-section[aria-labelledby="detail-description-title"] { order: 8; }
#flower-detail > .plant-range-detail { order: 9; margin: 0; }
#flower-detail .detail-section h3 { margin-bottom: 10px; font-size: var(--text-lg); }
#flower-detail .detail-text { max-width: var(--text-measure); margin: 0; font-size: var(--text-sm); line-height: 1.75; }
#flower-detail > .plant-notes { order: 10; margin: 0; }
#flower-detail > .watering-card { order: 11; margin: 0; }
#flower-detail .care-pdf-button { order: 14; }
#flower-detail > .care-pdf-status { order: 15; margin: -16px 0 0; }
#flower-detail > .taxonomy-details { order: 16; max-width: var(--text-measure); margin: 0; padding-top: 14px; font-size: var(--text-xs); line-height: 1.6; }
#flower-detail .photo-credit-detail { font-size: var(--text-xs); line-height: 1.55; overflow-wrap: anywhere; }
#flower-detail > .similar-plants { order: 17; margin: 0; }
#flower-detail .similar-plants h3 { font-size: var(--text-lg); }
#flower-detail .detail-action-button { min-height: 44px; }

@media (max-width: 520px) {
  dialog#flower-dialog { width: calc(100% - 20px); }
  #flower-detail { gap: 20px; }
  #flower-detail > .detail-photo,
  #flower-detail > .detail-no-photo { max-height: 32vh; }
  #flower-detail > #detail-name { font-size: clamp(25px, 8vw, 32px); }
  #flower-detail .favorite-detail-button { width: 100%; justify-content: center; }
  #flower-detail > .detail-section { padding-top: 18px; }
}

/* Stage 2: keep care and plant information visible; fold personal and reference details. */
#flower-detail > .detail-disclosure,
#flower-detail > .taxonomy-details {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
#flower-detail > .detail-notes { order: 9; }
#flower-detail > .detail-watering-disclosure { order: 10; }
#flower-detail > .taxonomy-details { order: 16; padding-top: 0; }
#flower-detail > .detail-disclosure > summary,
#flower-detail > .taxonomy-details > summary {
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 42px 10px 15px;
  color: var(--blue);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 750;
  list-style: none;
}
#flower-detail > .detail-disclosure > summary::-webkit-details-marker,
#flower-detail > .taxonomy-details > summary::-webkit-details-marker { display: none; }
#flower-detail > .detail-disclosure > summary::after,
#flower-detail > .taxonomy-details > summary::after {
  width: 8px;
  height: 8px;
  position: absolute;
  right: 17px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
#flower-detail > .detail-disclosure[open] > summary::after,
#flower-detail > .taxonomy-details[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}
#flower-detail > .detail-notes > .plant-notes {
  margin: 0;
  padding: 14px 15px 15px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
#flower-detail > .detail-watering-disclosure > .watering-card {
  margin: 0;
  padding: 14px 15px 15px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
#flower-detail > .taxonomy-details > .flower-facts,
#flower-detail > .taxonomy-details > .photo-credit-detail {
  margin-right: 15px;
  margin-left: 15px;
}
#flower-detail > .taxonomy-details > .flower-facts { margin-top: 0; padding-top: 13px; }
#flower-detail > .taxonomy-details > .photo-credit-detail:last-child { margin-bottom: 15px; }
#flower-detail > .similar-plants { width: 100%; min-width: 0; }
#flower-detail .similar-plants-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
#flower-detail .similar-plant-card {
  width: 138px;
  min-width: 138px;
  flex: 0 0 138px;
  scroll-snap-align: start;
}
@media (max-width: 520px) {
  #flower-detail .similar-plant-card { width: 124px; min-width: 124px; flex-basis: 124px; }
}

/* Detail actions: one clear collection action, followed by compact accessible utilities. */
#flower-detail .detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  order: 6;
  margin: 0;
}
#flower-detail .detail-actions > :not(.favorite-detail-button) { order: 1; }
#flower-detail .favorite-detail-button {
  width: min(100%, 380px);
  min-height: 54px;
  flex: 1 1 100%;
  justify-content: center;
  padding-inline: 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
#flower-detail .detail-actions > :not(.favorite-detail-button) {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}
#flower-detail .detail-actions > :not(.favorite-detail-button):not(.care-pdf-button) > span {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#flower-detail .detail-actions > :not(.favorite-detail-button) > .ui-icon { width: 19px; height: 19px; }
@media (max-width: 520px) {
  #flower-detail .detail-actions { gap: 7px; }
  #flower-detail .favorite-detail-button { min-height: 52px; }
}

/* Keep collection as a compact heart; make the PDF action explicit. */
#flower-detail .favorite-detail-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 50%;
}
#flower-detail .care-pdf-button {
  width: auto;
  min-width: 0;
  min-height: 44px;
  flex: 1 1 auto;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
#flower-detail .care-pdf-button > span {
  width: auto;
  height: auto;
  position: static;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
@media (max-width: 520px) {
  #flower-detail .favorite-detail-button { min-height: 44px; }
  #flower-detail .care-pdf-button { flex: 1 1 calc(100% - 52px); padding-inline: 10px; }
}

#flower-detail .care-pdf-button {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

/* Keep the plant-detail actions in a stable, non-overlapping row. */
#flower-detail .detail-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
}
#flower-detail .detail-actions .favorite-detail-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
}
#flower-detail .detail-actions .care-pdf-button {
  width: auto;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  flex: 1 1 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  border-radius: var(--radius-sm);
}
#flower-detail .detail-actions .ask-flora-detail-button {
  min-width: 0;
  min-height: 48px;
  flex: 1 1 0;
  border-radius: var(--radius-sm);
}
@media (max-width: 520px) {
  #flower-detail .detail-actions {
    flex-direction: column;
    gap: 10px;
  }
  #flower-detail .detail-actions .favorite-detail-button,
  #flower-detail .detail-actions .care-pdf-button,
  #flower-detail .detail-actions .ask-flora-detail-button {
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: var(--radius-sm);
  }
  #flower-detail .detail-actions .favorite-detail-button > span.visually-hidden {
    width: auto;
    height: auto;
    position: static;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
  }
}

/* Mobile layout: keep navigation compact and make the catalog easy to scan. */
@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding-block: 9px;
  }
  .brand { order: 1; flex: 0 0 auto; }
  .primary-nav { display: none; }
  .header-actions {
    width: auto;
    order: 2;
    justify-content: flex-end;
    gap: 6px;
  }
  .main-content { padding-top: 16px; }
  .bottom-dock {
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 70px;
    padding: 5px;
    border-radius: 20px;
  }
  .dock-tab { min-height: 54px; }
  .dock-tab[aria-current="page"] { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
  .dock-label { font-size: 9px; }
  .flora-ai-widget {
    right: 12px;
    bottom: calc(78px + max(20px, env(safe-area-inset-bottom)));
  }
  body { padding-bottom: 112px; }
}

@media (max-width: 520px) {
  .topline { display: none; }
  .shell { width: calc(100% - 28px); }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .header-actions { width: 100%; justify-content: center; gap: 8px; }
  .header-actions .icon-button { width: 33px; height: 36px; flex-basis: 33px; }
  .account-cta { min-height: 38px; gap: 6px; padding-inline: 12px; border-radius: 12px; font-size: 11px; }
  .account-cta .ui-icon { width: 16px; height: 16px; }
  .hero-card { border-radius: 20px; }
  .hero-copy { padding: 24px 20px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero-copy > p { font-size: 13px; line-height: 1.65; }
  .hero-art { min-height: 210px; }
  .hero-orbit { width: 78px; height: 78px; font-size: 11px; }
  .hero-actions { gap: 8px; margin-top: 17px; }
  .hero-actions .button { min-height: 44px; }
  .home-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .home-fact { min-height: 68px; justify-content: center; gap: 4px; flex-direction: column; padding: 8px 4px; }
  .home-fact > .ui-icon { display: block; width: 17px; height: 17px; }
  .home-fact strong { font-size: 10px; text-align: center; }
  .home-fact small { font-size: 8px; text-align: center; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flower-grid .flower-info { min-height: 0; gap: 0; padding: 11px; }
  .flower-grid .flower-card-name h3 { font-size: 13px; }
  .flower-grid .flower-latin { font-size: 10px; }
  .flower-grid .plant-tags { gap: 4px; margin-top: 8px; }
  .flower-grid .plant-tag { padding: 4px 7px; font-size: 9px; }
  .flower-grid .plant-tag:nth-child(n + 2) { display: none; }
  .flower-grid .microclimate { gap: 4px; margin-top: 8px; }
  .flower-grid .microclimate-chip { min-height: 24px; padding: 4px 6px; font-size: 9px; }
  .flower-grid .flower-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; padding-top: 10px; }
  .flower-grid .flower-card-actions .button { min-width: 0; min-height: 40px; padding-inline: 5px; font-size: 10px; }
  .flower-grid .flower-card-actions .compare-select-button { width: 40px; min-height: 40px; padding: 0; gap: 0; font-size: 0; }
  .flower-grid .flower-card-actions .compare-select-button .ui-icon { width: 17px; height: 17px; }
  .flora-ai-widget { right: 10px; }
  .flora-ai-panel {
    width: min(420px, calc(100vw - 20px));
    height: min(620px, calc(100dvh - 150px));
    min-height: min(380px, calc(100dvh - 150px));
    border-radius: 20px;
  }
  .flora-ai-toggle { min-height: 46px; }
  .site-footer { margin-bottom: 8px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .brand { gap: 5px; font-size: 12px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 4px; }
  .header-actions { width: 100%; justify-content: center; gap: 4px; }
  .header-actions .icon-button { width: 33px; height: 36px; flex-basis: 33px; }
  .account-cta { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  .dock-tab { padding-inline: 1px; }
  .dock-label { font-size: 8px; }
  .flower-grid .flower-info { padding: 9px; }
  .flower-grid .flower-card-name h3 { font-size: 12px; }
  .flower-grid .microclimate-chip { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: color-mix(in srgb, var(--muted) 12%, var(--surface-raised));
}
.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 68%, transparent) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.45s ease-in-out infinite;
}
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
.skeleton-card { overflow: hidden; pointer-events: none; }
.skeleton-photo { height: 205px; border-radius: 0; }
.skeleton-card-copy { display: grid; gap: 12px; padding: 16px; }
.skeleton-line { width: 82%; height: 10px; }
.skeleton-line-title { width: 58%; height: 16px; }
.skeleton-line-short { width: 45%; }
.skeleton-button { width: 100%; height: 34px; margin-top: 5px; }

.flora-toast-region {
  position: fixed;
  z-index: 40;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  width: min(460px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}
.flora-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.flora-toast.is-visible { opacity: 1; transform: translateY(0); }
.flora-toast p { flex: 1; margin: 0; font-size: 12px; line-height: 1.5; }
.flora-toast-warning { border-color: color-mix(in srgb, #d6a94f 38%, var(--line)); }
.flora-toast-success { border-color: color-mix(in srgb, #57a46b 45%, var(--line)); }
.flora-toast-error { border-color: color-mix(in srgb, #d46d63 48%, var(--line)); }
.flora-toast-action { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); background: var(--surface-raised); font-size: 11px; font-weight: 750; }

.favorite-button .ui-icon,
.favorite-detail-button .ui-icon { transform-origin: center; }
.favorite-button.is-favorite .ui-icon,
.favorite-detail-button.is-favorite .ui-icon { animation: favorite-pop .38s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes favorite-pop { 0% { transform: scale(.65); } 55% { transform: scale(1.34); } 100% { transform: scale(1); } }
.favorite-flight {
  position: fixed;
  z-index: 50;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #d5527a;
  background: #fff;
  box-shadow: 0 8px 26px rgba(30,40,34,.24);
  pointer-events: none;
}
.favorite-flight .ui-icon { width: 19px; height: 19px; }

body.eye-comfort { --eye-warmth: rgba(215, 164, 99, .035); }
body.eye-comfort::after {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: var(--eye-warmth);
  content: "";
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme-choice="light"]):not(.dark-theme) {
    color-scheme: dark;
    --blue: #9fcca7;
    --cyan: #c2e2c1;
    --green: #91be99;
    --bg: #151b17;
    --surface: #202821;
    --surface-raised: #29342c;
    --surface-glass: rgba(29, 38, 32, .9);
    --hero-tint: #26342a;
    --ink: #f1f5ef;
    --muted: #a8b7a9;
    --line: rgba(210, 231, 211, .13);
    --glow-one: rgba(67, 115, 72, .25);
    --glow-two: rgba(108, 128, 74, .14);
    --glow-three: rgba(79, 106, 74, .12);
    background: var(--bg);
  }
}
@media (prefers-contrast: more) {
  :root { --muted: #4a5b4e; --line: rgba(30, 55, 37, .36); }
  body.dark-theme { --muted: #d0ddcf; --line: rgba(230, 245, 230, .32); }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
  .flora-toast { transition: none; }
  .favorite-button.is-favorite .ui-icon,
  .favorite-detail-button.is-favorite .ui-icon { animation: none; }
}

.garden-hero {
  isolation: isolate;
  border-color: color-mix(in srgb, var(--blue) 22%, var(--line));
  background:
    radial-gradient(ellipse at 82% 18%, color-mix(in srgb, var(--green) 26%, transparent), transparent 18rem),
    radial-gradient(ellipse at 4% 100%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 24rem),
    linear-gradient(125deg, color-mix(in srgb, var(--hero-tint) 88%, var(--surface)), var(--surface));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--blue) 10%, transparent), inset 0 1px color-mix(in srgb, white 52%, transparent);
  animation: garden-hero-arrive .65s cubic-bezier(.2, .7, .2, 1) both;
}
.garden-hero-kicker { letter-spacing: .17em; }
.garden-hero-art .garden-hero-orbit-one { animation: garden-orbit 24s linear infinite; }
.garden-hero-art .garden-hero-orbit-two { animation: garden-orbit 34s linear infinite reverse; }
.garden-shortcuts button {
  border-color: color-mix(in srgb, var(--blue) 12%, var(--line));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 4%, transparent);
  backdrop-filter: blur(12px);
}
.garden-today {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid color-mix(in srgb, var(--blue) 15%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 5%, transparent), inset 0 1px color-mix(in srgb, white 52%, transparent);
  backdrop-filter: blur(16px);
}
.garden-today-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.garden-today-copy { min-width: 0; }
.garden-today-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.garden-today-kicker .ui-icon { width: 14px; height: 14px; }
.garden-today h2 { margin: 6px 0 4px; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -.025em; }
.garden-today-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.garden-today-stat { min-width: 102px; display: grid; justify-items: center; gap: 2px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--blue) 15%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--hero-tint) 76%, var(--surface)); }
.garden-today-stat strong { color: var(--blue); font-family: var(--serif); font-size: 27px; line-height: 1; }
.garden-today-stat span { color: var(--muted); font-size: 8px; font-weight: 750; text-align: center; }
.garden-today-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.garden-today-item, .garden-today-link {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.garden-today-item:hover, .garden-today-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--surface); box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 7%, transparent); }
.garden-today-plant { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.garden-today-timing { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 750; }
.garden-today-timing.is-due { color: color-mix(in srgb, #b45b36 82%, var(--ink)); }
.garden-today-link { justify-content: center; width: fit-content; color: var(--blue); font-size: 10px; font-weight: 800; }
.garden-panel { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.garden-panel:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 20%, var(--line)); box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 8%, transparent); }
@keyframes garden-hero-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes garden-orbit { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .garden-today { gap: 13px; padding: 15px; border-radius: 16px; }
  .garden-today-items { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 520px) {
  .garden-today-heading { align-items: flex-start; gap: 10px; }
  .garden-today-stat { min-width: 76px; padding: 8px; }
  .garden-today-stat strong { font-size: 23px; }
  .garden-today h2 { font-size: 21px; }
  .garden-today-copy p { max-width: 34ch; font-size: 10px; }
  .garden-today-item { min-height: 40px; }
}
@media (max-width: 360px) {
  .garden-today { padding: 12px; }
  .garden-today-item { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Three selectable design systems share the same pages and interaction patterns. */
body {
  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 23px;
  --radius-xl: 30px;
  --shadow-soft: 0 8px 26px color-mix(in srgb, var(--ink) 7%, transparent);
  --shadow-popover: 0 22px 60px color-mix(in srgb, var(--ink) 18%, transparent);
  background-attachment: fixed;
}
.topline { min-height: 31px; font-size: 9px; letter-spacing: .18em; }
.app-header { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.header-inner { min-height: 78px; }
.brand { letter-spacing: -.055em; }
.brand-mark { border-radius: 14px; }
.primary-nav-link { transition: color .2s ease, background .2s ease, transform .2s ease; }
.primary-nav-link:hover { transform: translateY(-1px); }
.design-select {
  width: auto;
  min-width: 116px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 10px;
  font-weight: 750;
}
.design-select option { color: #26372d; background: #fff; }
.main-content { padding-top: 30px; }
.hero-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--blue) 15%, var(--line));
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 72px color-mix(in srgb, var(--ink) 10%, transparent);
}
.hero-copy { padding: clamp(32px, 5.2vw, 72px); }
.hero-copy h1 { max-width: 12ch; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.06em; }
.hero-art img { filter: saturate(.88) contrast(1.02); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.hero-card:hover .hero-art img { transform: scale(1.035); filter: saturate(1) contrast(1.02); }
.home-facts { gap: 14px; margin-top: 18px; }
.home-fact, .quick-link, .surface-card, .flower-card, .catalog-filter-disclosure, .season-panel {
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: var(--shadow-soft);
}
.home-fact { min-height: 92px; border-radius: var(--radius-md); background: var(--surface); }
.home-fact > .ui-icon { color: var(--blue); }
.page-title-row { margin-bottom: 20px; }
.page-title-row h1 { letter-spacing: -.055em; }
.button, .icon-button, .detail-action-button {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:not(:disabled):hover, .account-cta:hover, .botanist-header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px color-mix(in srgb, var(--blue) 22%, transparent);
}
.search-input, .catalog-control select, .care-filter-label select, .catalog-sort-label select,
.garden-panel input:not([type="file"]), .garden-panel textarea, .design-select {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.search-input:focus, .catalog-control select:focus, .care-filter-label select:focus,
.catalog-sort-label select:focus, .garden-panel input:not([type="file"]):focus,
.garden-panel textarea:focus, .design-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}
.flower-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.flower-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px color-mix(in srgb, var(--ink) 13%, transparent); }
.flower-photo-wrap { overflow: hidden; }
.flower-photo { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.flower-card:hover .flower-photo { transform: scale(1.045); filter: saturate(1.05); }
.flower-card .flower-info { padding: 17px; }
.catalog-filter-disclosure, .garden-panel, .season-panel, .home-widget { border-radius: var(--radius-lg); }
.garden-panel, .season-panel { box-shadow: var(--shadow-soft); }
.flora-ai-panel, dialog#flower-dialog, .account-dialog {
  border-color: color-mix(in srgb, var(--blue) 18%, var(--line));
  box-shadow: 0 30px 90px color-mix(in srgb, var(--ink) 23%, transparent);
}
.bottom-dock {
  border-color: color-mix(in srgb, var(--blue) 17%, var(--line));
  box-shadow: 0 16px 48px color-mix(in srgb, var(--ink) 17%, transparent);
  backdrop-filter: blur(24px) saturate(1.35);
}
.dock-tab { transition: background .2s ease, color .2s ease, transform .2s ease; }
.dock-tab:hover { transform: translateY(-2px); }
.site-footer { border-top-color: color-mix(in srgb, var(--line) 72%, transparent); }

body[data-design="herbarium"] {
  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 23px;
  --radius-xl: 30px;
  --shadow-soft: 0 8px 26px color-mix(in srgb, var(--ink) 7%, transparent);
  --shadow-popover: 0 22px 60px color-mix(in srgb, var(--ink) 18%, transparent);
}
body[data-design="herbarium"] .hero-card {
  background: linear-gradient(118deg, var(--surface) 0%, color-mix(in srgb, var(--hero-tint) 88%, var(--surface)) 100%);
}
body[data-design="herbarium"] .flower-card,
body[data-design="herbarium"] .garden-panel,
body[data-design="herbarium"] .surface-card {
  background-color: var(--surface);
}
body[data-design="herbarium"] .primary-nav-link[aria-current="page"] {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}

body[data-design="glasshouse"] {
  --radius-sm: 13px;
  --radius-md: 19px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-soft: 0 14px 40px color-mix(in srgb, var(--blue) 9%, transparent);
  --shadow-popover: 0 28px 76px color-mix(in srgb, var(--ink) 19%, transparent);
}
body[data-design="glasshouse"] {
  background-image:
    radial-gradient(ellipse at 10% 12%, color-mix(in srgb, var(--green) 15%, transparent), transparent 34rem),
    radial-gradient(ellipse at 88% 40%, color-mix(in srgb, var(--cyan) 17%, transparent), transparent 40rem),
    linear-gradient(155deg, color-mix(in srgb, var(--bg) 94%, white), var(--bg));
}
body[data-design="glasshouse"] .app-header,
body[data-design="glasshouse"] .bottom-dock {
  background: color-mix(in srgb, var(--surface-glass) 76%, transparent);
  backdrop-filter: blur(28px) saturate(1.55);
}
body[data-design="glasshouse"] .hero-card {
  border-radius: 38px;
  background:
    radial-gradient(ellipse at 80% 18%, color-mix(in srgb, var(--green) 15%, transparent), transparent 20rem),
    linear-gradient(130deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--hero-tint) 78%, transparent));
  backdrop-filter: blur(16px);
}
body[data-design="glasshouse"] .home-fact,
body[data-design="glasshouse"] .flower-card,
body[data-design="glasshouse"] .surface-card,
body[data-design="glasshouse"] .garden-panel,
body[data-design="glasshouse"] .season-panel,
body[data-design="glasshouse"] .catalog-filter-disclosure {
  border-color: color-mix(in srgb, var(--blue) 13%, var(--line));
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
}
body[data-design="glasshouse"] .flower-card { border-radius: 25px; }
body[data-design="glasshouse"] .flower-photo-wrap { border-radius: 0; }
body[data-design="glasshouse"] .button, body[data-design="glasshouse"] .account-cta {
  border-radius: 15px;
}
body[data-design="glasshouse"] .garden-hero,
body[data-design="glasshouse"] .garden-today {
  backdrop-filter: blur(20px);
}
body[data-design="glasshouse"] .primary-nav-link[aria-current="page"] {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 12%, transparent);
}

body[data-design="editorial"] {
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --radius-xl: 21px;
  --shadow-soft: 0 8px 28px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-popover: 0 24px 70px color-mix(in srgb, var(--ink) 22%, transparent);
  --serif: "Playfair Display", Georgia, serif;
}
body[data-design="editorial"] .topline {
  min-height: 28px;
  letter-spacing: .22em;
}
body[data-design="editorial"] .brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -.04em;
}
body[data-design="editorial"] .hero-card {
  grid-template-columns: 1.08fr .92fr;
  border-radius: 21px;
  background: linear-gradient(110deg, var(--surface) 0 58%, color-mix(in srgb, var(--hero-tint) 76%, var(--surface)) 100%);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 12%, transparent);
}
body[data-design="editorial"] .hero-copy h1,
body[data-design="editorial"] .page-title-row h1,
body[data-design="editorial"] .garden-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.065em;
}
body[data-design="editorial"] .eyebrow,
body[data-design="editorial"] .garden-hero-kicker {
  letter-spacing: .2em;
}
body[data-design="editorial"] .home-fact,
body[data-design="editorial"] .flower-card,
body[data-design="editorial"] .surface-card,
body[data-design="editorial"] .garden-panel,
body[data-design="editorial"] .season-panel,
body[data-design="editorial"] .catalog-filter-disclosure {
  border-radius: var(--radius-lg);
  box-shadow: none;
}
body[data-design="editorial"] .flower-card {
  border-width: 0 0 1px;
  background: transparent;
}
body[data-design="editorial"] .flower-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}
body[data-design="editorial"] .flower-photo-wrap {
  border-radius: var(--radius-lg);
}
body[data-design="editorial"] .flower-card .flower-info { padding: 14px 5px 16px; }
body[data-design="editorial"] .garden-panel,
body[data-design="editorial"] .season-panel,
body[data-design="editorial"] .home-widget {
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}
body[data-design="editorial"] .primary-nav-link[aria-current="page"] {
  color: var(--blue);
  background: transparent;
  box-shadow: inset 0 -2px var(--blue);
}
body[data-design="editorial"] .bottom-dock {
  border-radius: 16px;
  backdrop-filter: blur(18px);
}

@media (max-width: 1300px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .header-actions { order: 2; }
  .primary-nav { width: 100%; order: 3; justify-content: center; flex-wrap: wrap; padding-bottom: 7px; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 0; gap: 8px; padding-block: 9px; }
  .header-actions { width: 100%; justify-content: center; gap: 6px; }
  .design-select { width: auto; min-width: 0; max-width: 132px; min-height: 38px; padding-inline: 8px; font-size: 10px; }
  .main-content { padding-top: 20px; }
  body[data-design="editorial"] .hero-card { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .design-select { max-width: 112px; }
  .header-actions { gap: 5px; }
  body[data-design="editorial"] .hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .flower-card, .flower-photo, .button, .icon-button, .dock-tab {
    transition: none !important;
  }
}

/* A more decisive design system: each preset now defines its own complete palette. */
body {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-soft: 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-popover: 0 26px 72px color-mix(in srgb, var(--ink) 20%, transparent);
  background-attachment: fixed;
}
.topline { min-height: 30px; font-size: 9px; letter-spacing: .19em; }
.app-header { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.header-inner { min-height: 78px; }
.brand { gap: 11px; font-size: 19px; letter-spacing: -.055em; }
.brand-mark { width: 40px; height: 40px; border-radius: 15px; }
.header-actions { gap: 7px; }
.design-select {
  width: auto;
  min-width: 133px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--ink) 7%, transparent);
  font-size: 11px;
  font-weight: 800;
}
.design-select option { color: #233129; background: #fff; }
.main-content { padding-top: 36px; }
.page-title-row { margin-bottom: 24px; }
.page-title-row h1 { font-size: clamp(42px, 5.3vw, 66px); letter-spacing: -.06em; }
.hero-card {
  min-height: min(610px, calc(100svh - 210px));
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--ink) 15%, transparent);
}
.hero-copy { padding: clamp(34px, 5vw, 76px); }
.hero-copy .eyebrow { border-color: color-mix(in srgb, var(--blue) 18%, var(--line)); }
.hero-copy h1 { max-width: 10ch; margin-block: 22px 18px; font-size: clamp(48px, 6vw, 82px); line-height: .99; letter-spacing: -.07em; }
.hero-copy > p { max-width: 42ch; font-size: 15px; line-height: 1.8; }
.hero-actions { gap: 12px; margin-top: 28px; }
.hero-actions .button { min-height: 50px; padding-inline: 21px; border-radius: 14px; }
.hero-art { min-height: 100%; }
.hero-art::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 13%, transparent), transparent 35%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 45%, transparent), transparent 46%);
}
.hero-art img { filter: saturate(.9) contrast(1.04); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.hero-card:hover .hero-art img { transform: scale(1.035); filter: saturate(1.08) contrast(1.04); }
.hero-art-label { bottom: 30px; left: 32px; font-size: 11px; letter-spacing: .19em; }
.hero-orbit { width: 120px; height: 120px; top: 30px; right: 30px; }
.home-facts { gap: 14px; margin-top: 17px; }
.home-fact { min-height: 94px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.home-fact > .ui-icon { width: 22px; height: 22px; }
.home-fact strong { font-size: 15px; }
.home-fact small { font-size: 11px; }
.feature-layout { gap: 18px; margin-top: 18px; }
.home-widget { padding: 27px; border-radius: var(--radius-lg); }
.page-title-row h1, .garden-hero h1 { letter-spacing: -.06em; }
.surface-card, .garden-panel, .season-panel, .catalog-filter-disclosure, .home-widget {
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
}
.button, .account-cta, .botanist-header-button { border-radius: 13px; }
.button { min-height: 46px; }
.button:not(:disabled):hover, .account-cta:hover, .botanist-header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--blue) 25%, transparent);
}
.primary-nav-link { min-height: 40px; padding-inline: 10px; transition: background .18s ease, color .18s ease; }
.primary-nav-link:hover { color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.primary-nav-link[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.catalog-toolbar { gap: 12px; }
.search-input { min-height: 54px; padding-inline: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: 14px; }
.catalog-filter-disclosure { margin-top: 13px; padding: 14px 18px; }
.catalog-filter-disclosure > summary { min-height: 40px; font-size: 13px; }
.flower-grid { gap: 19px; }
.flower-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.flower-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-popover); }
.flower-photo-wrap { overflow: hidden; }
.flower-photo { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.flower-card:hover .flower-photo { transform: scale(1.045); filter: saturate(1.06); }
.flower-grid .flower-info { min-height: 145px; padding: 17px; }
.flower-grid .flower-card-name h3 { font-size: 15px; }
.flower-grid .flower-card-actions .button { min-height: 40px; }
.garden-hero { border-radius: var(--radius-xl); }
.garden-today { border-radius: var(--radius-lg); }
.garden-panel { padding: clamp(20px, 3vw, 32px); }
.flora-ai-panel, dialog#flower-dialog, .account-dialog {
  border-color: color-mix(in srgb, var(--blue) 20%, var(--line));
  box-shadow: 0 30px 90px color-mix(in srgb, var(--ink) 23%, transparent);
}
.bottom-dock {
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  box-shadow: 0 18px 52px color-mix(in srgb, var(--ink) 18%, transparent);
  backdrop-filter: blur(26px) saturate(1.45);
}
.dock-tab { transition: transform .2s ease, background .2s ease, color .2s ease; }
.dock-tab:hover { transform: translateY(-2px); }
.site-footer { border-top-color: color-mix(in srgb, var(--line) 72%, transparent); }

body[data-design="herbarium"] {
  --bg: #f0f3eb;
  --surface: #fbfcf8;
  --surface-raised: #e8eee3;
  --surface-glass: rgba(247, 250, 243, .9);
  --hero-tint: #dce8d6;
  --ink: #1d3328;
  --muted: #68796d;
  --line: rgba(37, 76, 52, .16);
  --blue: #315d43;
  --cyan: #a4c69d;
  --green: #719b6f;
  --gradient: linear-gradient(120deg, #244b36, #668c5f);
  --glow-one: rgba(102, 144, 91, .2);
  --glow-two: rgba(176, 199, 144, .22);
  --glow-three: rgba(212, 188, 143, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 23px;
  --radius-xl: 32px;
  --shadow-soft: 0 12px 32px rgba(34, 60, 39, .09);
  --shadow-popover: 0 26px 72px rgba(28, 48, 34, .2);
  background:
    radial-gradient(ellipse at 10% 12%, rgba(116, 154, 97, .18), transparent 38rem),
    radial-gradient(ellipse at 92% 38%, rgba(190, 207, 159, .22), transparent 42rem),
    #f0f3eb;
}
body[data-design="herbarium"] .topline { background: #1d382b; }
body[data-design="herbarium"] .hero-card {
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--hero-tint) 90%, var(--surface)) 100%);
}
body[data-design="herbarium"] .hero-copy .eyebrow {
  color: var(--blue);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
body[data-design="herbarium"] .surface-card,
body[data-design="herbarium"] .home-widget,
body[data-design="herbarium"] .garden-panel,
body[data-design="herbarium"] .season-panel,
body[data-design="herbarium"] .home-fact,
body[data-design="herbarium"] .flower-card { background: var(--surface); }
body.dark-theme[data-design="herbarium"] {
  --bg: #141d17;
  --surface: #202c23;
  --surface-raised: #2a392d;
  --surface-glass: rgba(26, 37, 29, .94);
  --hero-tint: #293a2d;
  --ink: #eef4ea;
  --muted: #aab9a8;
  --line: rgba(195, 220, 189, .15);
  --blue: #a5c79e;
  --cyan: #c1d9a8;
  --green: #a2c38f;
  --gradient: linear-gradient(120deg, #355a40, #72956a);
  --glow-one: rgba(77, 116, 72, .29);
  --glow-two: rgba(83, 106, 68, .2);
  --glow-three: rgba(121, 92, 56, .13);
  background:
    radial-gradient(ellipse at 12% 10%, rgba(74, 112, 69, .31), transparent 38rem),
    #141d17;
}
body.dark-theme[data-design="herbarium"] .hero-card,
body.dark-theme[data-design="herbarium"] .surface-card,
body.dark-theme[data-design="herbarium"] .home-widget,
body.dark-theme[data-design="herbarium"] .garden-panel,
body.dark-theme[data-design="herbarium"] .season-panel,
body.dark-theme[data-design="herbarium"] .flower-card { background-color: var(--surface); }

body[data-design="glasshouse"] {
  --bg: #e7f0eb;
  --surface: rgba(250, 254, 250, .88);
  --surface-raised: #dfebe4;
  --surface-glass: rgba(246, 252, 248, .72);
  --hero-tint: #d2e8dd;
  --ink: #173a32;
  --muted: #55766c;
  --line: rgba(32, 99, 78, .18);
  --blue: #17674f;
  --cyan: #9bd6bb;
  --green: #55a984;
  --gradient: linear-gradient(125deg, #145841, #3e9b73);
  --glow-one: rgba(71, 162, 119, .23);
  --glow-two: rgba(104, 189, 169, .2);
  --glow-three: rgba(188, 220, 191, .21);
  --radius-sm: 13px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --shadow-soft: 0 16px 42px rgba(27, 88, 65, .11);
  --shadow-popover: 0 30px 82px rgba(21, 65, 53, .2);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(74, 166, 119, .22), transparent 35rem),
    radial-gradient(ellipse at 92% 44%, rgba(104, 194, 180, .2), transparent 42rem),
    #e7f0eb;
}
body[data-design="glasshouse"] .topline { color: #d9f4e3; background: #123f34; }
body[data-design="glasshouse"] .app-header {
  border-color: rgba(220, 247, 228, .12);
  color: #eefaf1;
  background: rgba(18, 63, 52, .96);
}
body[data-design="glasshouse"] .brand,
body[data-design="glasshouse"] .primary-nav-link { color: #e9f5ec; }
body[data-design="glasshouse"] .primary-nav-link:hover,
body[data-design="glasshouse"] .primary-nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
body[data-design="glasshouse"] .brand-mark { color: #154d3b; background: #c8edcf; box-shadow: none; }
body[data-design="glasshouse"] .design-select,
body[data-design="glasshouse"] .icon-button { border-color: rgba(230, 250, 236, .22); color: #f3fff5; background: rgba(255,255,255,.1); }
body[data-design="glasshouse"] .account-cta { color: #174536; background: #c8edcf; box-shadow: none; }
body[data-design="glasshouse"] .hero-card {
  border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--surface) 94%, transparent),
    color-mix(in srgb, var(--hero-tint) 86%, transparent)
  );
  backdrop-filter: blur(18px);
}
body[data-design="glasshouse"] .home-fact,
body[data-design="glasshouse"] .surface-card,
body[data-design="glasshouse"] .home-widget,
body[data-design="glasshouse"] .garden-panel,
body[data-design="glasshouse"] .season-panel,
body[data-design="glasshouse"] .catalog-filter-disclosure {
  border-color: color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(18px);
}
body[data-design="glasshouse"] .flower-card {
  border-color: color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
body[data-design="glasshouse"] .bottom-dock { background: color-mix(in srgb, var(--surface-glass) 92%, transparent); }
body.dark-theme[data-design="glasshouse"] {
  --bg: #101b18;
  --surface: rgba(26, 43, 37, .92);
  --surface-raised: #263b32;
  --surface-glass: rgba(19, 39, 33, .9);
  --hero-tint: #214437;
  --ink: #eaf5ed;
  --muted: #a7c2b4;
  --line: rgba(173, 224, 194, .17);
  --blue: #81d1a9;
  --cyan: #a7e4c4;
  --green: #70c799;
  --gradient: linear-gradient(125deg, #176247, #348b67);
  --glow-one: rgba(34, 113, 81, .3);
  --glow-two: rgba(32, 104, 98, .21);
  --glow-three: rgba(57, 98, 65, .16);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(41, 118, 83, .32), transparent 35rem),
    #101b18;
}
body.dark-theme[data-design="glasshouse"] .app-header { background: rgba(12, 31, 26, .97); }
body.dark-theme[data-design="glasshouse"] .hero-card,
body.dark-theme[data-design="glasshouse"] .home-fact,
body.dark-theme[data-design="glasshouse"] .surface-card,
body.dark-theme[data-design="glasshouse"] .home-widget,
body.dark-theme[data-design="glasshouse"] .garden-panel,
body.dark-theme[data-design="glasshouse"] .season-panel,
body.dark-theme[data-design="glasshouse"] .catalog-filter-disclosure,
body.dark-theme[data-design="glasshouse"] .flower-card { background-color: var(--surface); }
body.dark-theme[data-design="glasshouse"] .design-select,
body.dark-theme[data-design="glasshouse"] .icon-button { color: var(--ink); background: var(--surface-raised); }
body.dark-theme[data-design="glasshouse"] .bottom-dock { background: rgba(26, 43, 37, .92); }

body[data-design="editorial"] {
  --bg: #f1eee7;
  --surface: #fcfaf5;
  --surface-raised: #e8e2d7;
  --surface-glass: rgba(248, 245, 237, .92);
  --hero-tint: #e8dfd1;
  --ink: #242824;
  --muted: #6a6d65;
  --line: rgba(43, 48, 39, .17);
  --blue: #8d4b35;
  --cyan: #c48b69;
  --green: #738267;
  --gradient: linear-gradient(120deg, #833f2d, #b67750);
  --glow-one: rgba(179, 132, 87, .15);
  --glow-two: rgba(194, 176, 142, .18);
  --glow-three: rgba(131, 146, 117, .12);
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-soft: 0 8px 24px rgba(53, 47, 36, .07);
  --shadow-popover: 0 24px 70px rgba(40, 35, 28, .22);
  background: #f1eee7;
}
body[data-design="editorial"] .topline {
  color: var(--surface);
  background: color-mix(in srgb, var(--ink) 94%, var(--blue));
  letter-spacing: .24em;
}
body[data-design="editorial"] .app-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
}
body[data-design="editorial"] .brand { font-family: var(--serif); font-size: 22px; letter-spacing: -.045em; }
body[data-design="editorial"] .brand-mark { border-radius: 50%; background: #29382e; box-shadow: none; }
body[data-design="editorial"] .hero-card {
  min-height: min(640px, calc(100svh - 210px));
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(43, 40, 32, .1);
}
body[data-design="editorial"] .hero-copy { padding: clamp(34px, 5vw, 74px); }
body[data-design="editorial"] .hero-copy .eyebrow {
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  letter-spacing: .18em;
}
body[data-design="editorial"] .hero-copy h1,
body[data-design="editorial"] .page-title-row h1,
body[data-design="editorial"] .garden-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.065em;
}
body[data-design="editorial"] .hero-copy h1 { max-width: 9ch; font-size: clamp(52px, 6vw, 80px); }
body[data-design="editorial"] .gradient-text { color: #8d4b35; background: none; }
body[data-design="editorial"] .hero-art::after {
  background: linear-gradient(0deg, rgba(26, 31, 26, .48), transparent 43%);
}
body[data-design="editorial"] .hero-orbit {
  top: auto;
  right: 26px;
  bottom: 26px;
  width: 86px;
  height: 86px;
  border-color: rgba(255,255,255,.65);
  border-radius: 50%;
  font-size: 11px;
}
body[data-design="editorial"] .home-fact,
body[data-design="editorial"] .surface-card,
body[data-design="editorial"] .home-widget,
body[data-design="editorial"] .garden-panel,
body[data-design="editorial"] .season-panel,
body[data-design="editorial"] .catalog-filter-disclosure {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}
body[data-design="editorial"] .home-fact { border-width: 0 0 1px; }
body[data-design="editorial"] .flower-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-design="editorial"] .flower-card:hover { box-shadow: none; transform: translateY(-3px); }
body[data-design="editorial"] .flower-photo-wrap { border-radius: 4px; }
body[data-design="editorial"] .flower-grid .flower-info { padding: 15px 3px 17px; }
body[data-design="editorial"] .flower-card .flower-card-name h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
body[data-design="editorial"] .primary-nav-link[aria-current="page"] {
  color: #8d4b35;
  background: transparent;
  box-shadow: inset 0 -2px #8d4b35;
}
body[data-design="editorial"] .design-select,
body[data-design="editorial"] .icon-button { border-color: var(--line); border-radius: 4px; background: var(--surface); }
body[data-design="editorial"] .bottom-dock {
  border-radius: 4px;
  background: var(--surface-glass);
  box-shadow: 0 12px 36px rgba(43, 40, 32, .16);
}
body[data-design="editorial"] .garden-hero {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(115deg, var(--surface), var(--hero-tint));
  box-shadow: 0 18px 54px rgba(43, 40, 32, .1);
}
body[data-design="editorial"] .garden-panel { padding: 28px; }
body.dark-theme[data-design="editorial"] {
  --bg: #1b1c19;
  --surface: #252621;
  --surface-raised: #303129;
  --surface-glass: rgba(33, 34, 29, .94);
  --hero-tint: #343128;
  --ink: #f0ede4;
  --muted: #b0aea2;
  --line: rgba(228, 218, 196, .16);
  --blue: #d69a77;
  --cyan: #e0b28f;
  --green: #aab197;
  --gradient: linear-gradient(120deg, #854933, #b77750);
  --glow-one: rgba(133, 79, 47, .19);
  --glow-two: rgba(106, 94, 67, .16);
  --glow-three: rgba(84, 99, 73, .13);
  background: #1b1c19;
}
body.dark-theme[data-design="editorial"] .app-header,
body.dark-theme[data-design="editorial"] .hero-card,
body.dark-theme[data-design="editorial"] .home-fact,
body.dark-theme[data-design="editorial"] .surface-card,
body.dark-theme[data-design="editorial"] .home-widget,
body.dark-theme[data-design="editorial"] .garden-panel,
body.dark-theme[data-design="editorial"] .season-panel,
body.dark-theme[data-design="editorial"] .catalog-filter-disclosure,
body.dark-theme[data-design="editorial"] .bottom-dock { background-color: var(--surface); }
body.dark-theme[data-design="editorial"] .design-select,
body.dark-theme[data-design="editorial"] .icon-button { color: var(--ink); background: var(--surface-raised); }
body.dark-theme[data-design="editorial"] .flower-card { background: transparent; }
body.dark-theme[data-design="editorial"] .garden-hero { background: linear-gradient(115deg, #252621, #343128); }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .header-actions { order: 2; }
  .primary-nav { width: 100%; order: 3; justify-content: center; flex-wrap: wrap; padding-bottom: 8px; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 0; gap: 8px; padding-block: 9px; }
  .header-actions { width: auto; justify-content: flex-end; gap: 5px; }
  .design-select { min-width: 104px; min-height: 36px; padding-inline: 8px; font-size: 9px; }
  .main-content { padding-top: 20px; }
  .hero-card, body[data-design="editorial"] .hero-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  .hero-copy { padding: 32px 28px; }
  .hero-copy h1, body[data-design="editorial"] .hero-copy h1 { font-size: clamp(46px, 11vw, 64px); }
  .hero-art { min-height: clamp(250px, 65vw, 390px); }
  .home-facts { gap: 8px; }
  .home-fact { min-height: 76px; padding: 12px; }
  .flower-grid { gap: 12px; }
  .flower-grid .flower-info { min-height: 0; padding: 13px; }
  .garden-panel { padding: 19px; }
}
@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .header-actions { width: 100%; flex-wrap: wrap; justify-content: center; gap: 5px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .design-select { min-width: 92px; max-width: 103px; padding-inline: 5px; font-size: 9px; }
  .header-actions .icon-button { width: 32px; height: 36px; flex-basis: 32px; }
  .header-actions .account-cta { min-height: 36px; padding-inline: 9px; font-size: 10px; }
  .main-content { padding-top: 15px; }
  .hero-copy { padding: 26px 21px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions .button { min-height: 44px; padding-inline: 13px; font-size: 10px; }
  .hero-art { min-height: 230px; }
  .home-facts { gap: 6px; }
  .home-fact { align-items: flex-start; flex-direction: column; min-height: 76px; gap: 5px; padding: 10px; }
  .home-fact > .ui-icon { width: 17px; height: 17px; }
  .home-fact strong { font-size: 10px; }
  .home-fact small { font-size: 8px; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .flower-grid .flower-info { padding: 10px; }
  .flower-grid .flower-card-name h3 { font-size: 12px; }
  .flower-grid .flower-card-actions .button { min-height: 38px; font-size: 9px; }
  body[data-design="editorial"] .hero-card { border-radius: 3px; }
  body[data-design="editorial"] .hero-copy h1 { font-size: clamp(43px, 12vw, 58px); }
  body[data-design="editorial"] .home-fact { align-items: center; border: 1px solid var(--line); }
  body[data-design="editorial"] .garden-panel { padding: 17px; }
  body[data-design="glasshouse"] .app-header { border-radius: 0 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .flower-card, .flower-photo, .button, .icon-button, .dock-tab {
    transition: none !important;
  }
}

body.dark-theme[data-design="herbarium"] .hero-card,
body.dark-theme[data-design="herbarium"] .surface-card,
body.dark-theme[data-design="herbarium"] .home-widget,
body.dark-theme[data-design="herbarium"] .garden-panel,
body.dark-theme[data-design="herbarium"] .season-panel,
body.dark-theme[data-design="herbarium"] .home-fact,
body.dark-theme[data-design="herbarium"] .flower-card {
  background: var(--surface);
}
body.dark-theme[data-design="glasshouse"] .hero-card {
  background: linear-gradient(125deg, var(--surface), color-mix(in srgb, var(--hero-tint) 88%, var(--surface)));
}
body.dark-theme[data-design="glasshouse"] .home-fact,
body.dark-theme[data-design="glasshouse"] .surface-card,
body.dark-theme[data-design="glasshouse"] .home-widget,
body.dark-theme[data-design="glasshouse"] .garden-panel,
body.dark-theme[data-design="glasshouse"] .season-panel,
body.dark-theme[data-design="glasshouse"] .catalog-filter-disclosure,
body.dark-theme[data-design="glasshouse"] .flower-card {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-theme[data-design="glasshouse"] .bottom-dock {
  background: var(--surface-glass);
}
body.dark-theme[data-design="editorial"] .hero-card,
body.dark-theme[data-design="editorial"] .home-fact,
body.dark-theme[data-design="editorial"] .surface-card,
body.dark-theme[data-design="editorial"] .home-widget,
body.dark-theme[data-design="editorial"] .garden-panel,
body.dark-theme[data-design="editorial"] .season-panel,
body.dark-theme[data-design="editorial"] .catalog-filter-disclosure {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-theme[data-design="editorial"] .app-header,
body.dark-theme[data-design="editorial"] .bottom-dock {
  background: var(--surface-glass);
}
body.dark-theme .hero-art { background: var(--surface-raised); }
body.dark-theme .flower-photo-wrap,
body.dark-theme .flower-photo,
body.dark-theme .flower-grid .flower-card:nth-child(6n + 1) .flower-photo-wrap,
body.dark-theme .flower-grid .flower-card:nth-child(6n + 2) .flower-photo-wrap,
body.dark-theme .flower-grid .flower-card:nth-child(6n + 3) .flower-photo-wrap {
  background: var(--surface-raised);
}
body.dark-theme .design-select option { color: var(--ink); background: var(--surface); }

.flower-photo,
.hero-art img {
  filter: none;
}
.flower-photo { transition: transform .35s ease; }
.hero-art img { transition: transform .55s ease; }
.flower-card:hover .flower-photo,
.hero-card:hover .hero-art img {
  filter: none;
}
body[data-design="glasshouse"] .flower-card {
  backdrop-filter: none;
}

body[data-design="glasshouse"] .flower-card,
body[data-design="glasshouse"] .home-fact,
body[data-design="glasshouse"] .surface-card,
body[data-design="glasshouse"] .home-widget,
body[data-design="glasshouse"] .garden-panel,
body[data-design="glasshouse"] .season-panel,
body[data-design="glasshouse"] .catalog-filter-disclosure,
body[data-design="glasshouse"] .garden-hero,
body[data-design="glasshouse"] .garden-today {
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: none;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .shell { width: calc(100% - 40px); }
  .flower-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .flower-photo-wrap { height: clamp(175px, 24vw, 220px); }
  .header-inner { flex-wrap: wrap; gap: 8px 12px; }
  .primary-nav { width: 100%; order: 3; flex: 0 0 100%; justify-content: center; flex-wrap: wrap; gap: 4px; padding-bottom: 5px; }
  .header-actions { margin-left: auto; }
  .primary-nav-link { padding-inline: 8px; font-size: 11px; }
  .hero-card { min-height: min(520px, calc(100svh - 180px)); }
  .hero-copy { padding: clamp(26px, 4vw, 54px); }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .primary-nav {
    width: 100%;
    order: 3;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
    padding: 2px 0 7px;
  }
  .primary-nav-link { min-height: 44px; flex: 1 1 auto; padding-inline: 10px; white-space: nowrap; }
  .header-actions { flex: 1 1 auto; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-title-row > .button { min-height: 44px; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flower-photo-wrap { height: clamp(138px, 39vw, 205px); }
  .catalog-filter-disclosure > summary { min-height: 48px; }
  .catalog-control select,
  .catalog-sort-label select,
  .care-filter-label select { min-height: 44px; }
  .button,
  .icon-button,
  .account-cta,
  .design-select { min-height: 44px; }
  .header-actions .icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  body { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .bottom-dock { bottom: max(8px, env(safe-area-inset-bottom)); }
  .bottom-dock { width: calc(100% - 16px); padding-inline: 5px; }
  .dock-tab { gap: 3px; padding-inline: 1px; }
  .dock-label { font-size: 8px; overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
  .primary-nav-link { flex: 1 1 calc(50% - 5px); padding-inline: 7px; font-size: 11px; }
  .page-title-row h1 { font-size: clamp(34px, 9vw, 48px); }
  .page-title-row p { max-width: 58ch; line-height: 1.6; }
  .catalog-filter-disclosure { padding-inline: 12px; }
  .catalog-filter-disclosure > summary { gap: 6px; font-size: 12px; }
  .catalog-filter-disclosure > summary > span { font-size: 10px; }
  .care-filters { gap: 8px; }
  .care-filter-label,
  .catalog-control,
  .catalog-sort-label { min-width: 0; }
  .flower-grid { gap: 10px; }
  .flower-grid .flower-card-actions .button { min-height: 42px; font-size: 10px; }
  .flora-ai-widget { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .header-actions { gap: 4px; }
  .header-actions .account-cta { width: 44px; min-width: 44px; justify-content: center; padding-inline: 0; }
  .header-actions .account-cta > span { display: none; }
  .primary-nav-link { padding-inline: 5px; font-size: 10px; }
  .care-filters { grid-template-columns: 1fr; }
  .flower-grid .flower-info { padding: 9px; }
}

@media (hover: none) and (pointer: coarse) {
  .flower-card:hover { transform: none; }
  .flower-card:hover .flower-photo { transform: none; }
  .button:not(:disabled):hover,
  .account-cta:hover,
  .botanist-header-button:hover { transform: none; }
}

body[data-season="winter"] {
  --glow-one: rgba(153, 193, 218, .2);
  --glow-two: rgba(190, 207, 230, .2);
  --glow-three: rgba(205, 218, 228, .2);
}
body[data-season="winter"] .topline {
  min-height: 34px;
  gap: 9px;
  letter-spacing: .12em;
}
body[data-season="winter"] .topline > span:first-child { text-align: center; }
body[data-season="winter"] .winter-scenery {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
body[data-season="winter"] .winter-scenery::before {
  position: absolute;
  top: -12vh;
  left: 18%;
  width: 64%;
  height: 34vh;
  border-radius: 50%;
  background: linear-gradient(110deg, transparent 4%, rgba(119, 222, 190, .26) 34%, rgba(150, 210, 241, .3) 56%, rgba(199, 157, 231, .2) 75%, transparent 96%);
  content: "";
  filter: blur(35px);
  animation: winter-aurora 18s ease-in-out infinite alternate;
}
@keyframes winter-aurora {
  from { transform: translate3d(-5%, -4%, 0) rotate(-8deg) scaleX(.9); opacity: .48; }
  to { transform: translate3d(7%, 8%, 0) rotate(9deg) scaleX(1.1); opacity: .9; }
}
body[data-season="winter"] .winter-snowflake {
  width: 4px;
  height: 4px;
  position: absolute;
  top: -10px;
  left: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 8px rgba(208, 235, 248, .9);
  animation: winter-snowfall 17s linear infinite;
}
body[data-season="winter"] .winter-snowflake:nth-of-type(2) { left: 17%; width: 3px; height: 3px; animation-delay: -8s; animation-duration: 22s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(3) { left: 26%; width: 5px; height: 5px; animation-delay: -13s; animation-duration: 19s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(4) { left: 35%; width: 3px; height: 3px; animation-delay: -4s; animation-duration: 24s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(5) { left: 43%; width: 4px; height: 4px; animation-delay: -15s; animation-duration: 20s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(6) { left: 52%; width: 3px; height: 3px; animation-delay: -9s; animation-duration: 23s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(7) { left: 61%; width: 5px; height: 5px; animation-delay: -12s; animation-duration: 18s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(8) { left: 69%; width: 3px; height: 3px; animation-delay: -3s; animation-duration: 25s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(9) { left: 77%; width: 4px; height: 4px; animation-delay: -17s; animation-duration: 21s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(10) { left: 85%; width: 3px; height: 3px; animation-delay: -7s; animation-duration: 23s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(11) { left: 93%; width: 5px; height: 5px; animation-delay: -11s; animation-duration: 19s; }
body[data-season="winter"] .winter-snowflake:nth-of-type(12) { left: 98%; width: 3px; height: 3px; animation-delay: -5s; animation-duration: 24s; }
@keyframes winter-snowfall {
  from { transform: translate3d(0, -4vh, 0); }
  to { transform: translate3d(3vw, 108vh, 0); }
}
body[data-season="winter"] .winter-pine {
  width: clamp(72px, 10vw, 142px);
  height: clamp(120px, 19vw, 250px);
  position: absolute;
  bottom: -34px;
  opacity: .42;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .34));
}
body[data-season="winter"] .winter-pine-left { left: -12px; }
body[data-season="winter"] .winter-pine-right { right: -12px; transform: scaleX(-1) scale(.8); transform-origin: bottom right; }
body[data-season="winter"] .winter-pine i {
  width: 100%;
  position: absolute;
  left: 0;
  display: block;
  background: linear-gradient(155deg, #f8fdff 0 13%, #50766d 14% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
body[data-season="winter"] .winter-pine i:nth-child(1) { width: 52%; height: 43%; top: 0; left: 24%; }
body[data-season="winter"] .winter-pine i:nth-child(2) { width: 76%; height: 55%; top: 19%; left: 12%; }
body[data-season="winter"] .winter-pine i:nth-child(3) { height: 64%; top: 34%; }
body[data-season="winter"] .winter-pine b {
  width: 12%;
  height: 20%;
  position: absolute;
  left: 44%;
  bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #765d4b;
}
body[data-season="winter"] .winter-snowman {
  width: 52px;
  height: 92px;
  position: absolute;
  right: clamp(28px, 7vw, 96px);
  bottom: 30px;
  filter: drop-shadow(0 4px 8px rgba(26, 50, 64, .2));
}
body[data-season="winter"] .winter-snowman i {
  position: absolute;
  display: block;
  border: 1px solid rgba(115, 150, 165, .3);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 20%, #dcecf2);
}
body[data-season="winter"] .winter-snowman i:nth-child(1) { width: 42px; height: 42px; bottom: 0; left: 5px; }
body[data-season="winter"] .winter-snowman i:nth-child(2) { width: 31px; height: 31px; bottom: 33px; left: 10px; }
body[data-season="winter"] .winter-snowman i:nth-child(3) { width: 23px; height: 23px; bottom: 59px; left: 14px; }
body[data-season="winter"] .winter-snowman b {
  width: 24px;
  height: 8px;
  position: absolute;
  bottom: 79px;
  left: 13px;
  border-radius: 3px 3px 0 0;
  background: #31536a;
  box-shadow: 0 4px 0 -2px #31536a;
}
body[data-season="winter"] .winter-snowman::before {
  width: 3px;
  height: 3px;
  position: absolute;
  z-index: 1;
  top: 21px;
  left: 21px;
  border-radius: 50%;
  background: #253746;
  box-shadow: 8px 0 #253746, 4px 9px #dc865e, 4px 23px #42677b, 4px 32px #42677b;
  content: "";
}
body[data-season="winter"] .winter-snowman::after {
  width: 10px;
  height: 2px;
  position: absolute;
  top: 26px;
  left: 21px;
  border-radius: 2px;
  background: #765d4b;
  box-shadow: 0 0 0 1px rgba(118, 93, 75, .12);
  content: "";
  transform: rotate(-12deg);
}
body[data-season="winter"].winter-flurry .winter-snowflake {
  opacity: 1;
  animation-duration: 9s;
}
body[data-season="winter"] .topline::before,
body[data-season="winter"] .topline::after {
  color: #d7ecf8;
  content: "✦";
  font-size: 11px;
}
body[data-season="winter"] .hero-copy .eyebrow,
body[data-season="winter"] .garden-hero-kicker {
  border-color: color-mix(in srgb, var(--cyan) 42%, var(--line));
}
body[data-season="winter"] .hero-card,
body[data-season="winter"] .garden-hero,
body[data-season="winter"] .garden-today {
  box-shadow: 0 22px 65px color-mix(in srgb, var(--blue) 12%, transparent);
}
body[data-season="winter"] .brand-mark {
  color: #f8fcff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 7px 20px color-mix(in srgb, var(--blue) 22%, transparent);
}
body[data-season="winter"][data-design="herbarium"] {
  --bg: #edf3f7;
  --surface: #fbfdff;
  --surface-raised: #e5eef4;
  --surface-glass: rgba(247, 251, 254, .92);
  --hero-tint: #dce9f1;
  --ink: #263b4b;
  --muted: #647988;
  --line: rgba(53, 91, 117, .16);
  --blue: #426d88;
  --cyan: #a9d2e8;
  --green: #6b9788;
  --gradient: linear-gradient(120deg, #294c63, #759db0);
  --glow-one: rgba(143, 185, 210, .2);
  --glow-two: rgba(196, 209, 229, .23);
  --glow-three: rgba(184, 213, 220, .2);
  background:
    radial-gradient(ellipse at 10% 12%, rgba(143, 185, 210, .2), transparent 38rem),
    radial-gradient(ellipse at 92% 38%, rgba(196, 209, 229, .22), transparent 42rem),
    #edf3f7;
}
body[data-season="winter"][data-design="herbarium"] .topline {
  color: #f6fbff;
  background: #294c63;
}
body.dark-theme[data-season="winter"][data-design="herbarium"] {
  --bg: #141d26;
  --surface: #202c37;
  --surface-raised: #2a3946;
  --surface-glass: rgba(26, 37, 47, .95);
  --hero-tint: #2a3b49;
  --ink: #eef5fa;
  --muted: #aab9c5;
  --line: rgba(190, 216, 233, .15);
  --blue: #a9cce0;
  --cyan: #c1e0f0;
  --green: #a1c7bb;
  --gradient: linear-gradient(120deg, #385c74, #7197ac);
  --glow-one: rgba(81, 127, 157, .28);
  --glow-two: rgba(85, 105, 142, .2);
  --glow-three: rgba(83, 131, 135, .15);
  background:
    radial-gradient(ellipse at 12% 10%, rgba(74, 115, 145, .3), transparent 38rem),
    #141d26;
}
body[data-season="winter"][data-design="glasshouse"] {
  --bg: #e8f1f5;
  --surface: rgba(249, 253, 255, .86);
  --surface-raised: #dce9ef;
  --surface-glass: rgba(245, 251, 255, .72);
  --hero-tint: #d0e4ee;
  --ink: #1d3948;
  --muted: #557483;
  --line: rgba(49, 103, 128, .18);
  --blue: #27657f;
  --cyan: #a8d7e9;
  --green: #4f9a91;
  --gradient: linear-gradient(125deg, #1d526c, #55a2a3);
  --glow-one: rgba(108, 174, 198, .24);
  --glow-two: rgba(130, 195, 207, .21);
  --glow-three: rgba(190, 215, 228, .25);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(108, 174, 198, .23), transparent 35rem),
    radial-gradient(ellipse at 92% 44%, rgba(163, 208, 221, .23), transparent 42rem),
    #e8f1f5;
}
body[data-season="winter"][data-design="glasshouse"] .topline,
body[data-season="winter"][data-design="glasshouse"] .app-header {
  color: #eefaff;
  background: rgba(25, 68, 87, .96);
}
body[data-season="winter"][data-design="glasshouse"] .primary-nav-link {
  color: #e7f5fb;
}
body[data-season="winter"][data-design="glasshouse"] .brand-mark,
body[data-season="winter"][data-design="glasshouse"] .account-cta {
  color: #18495d;
  background: #c7e9f2;
}
body[data-season="winter"][data-design="glasshouse"] .design-select,
body[data-season="winter"][data-design="glasshouse"] .icon-button {
  border-color: rgba(228, 246, 255, .25);
  color: #f3fbff;
  background: rgba(255, 255, 255, .1);
}
body[data-season="winter"][data-design="glasshouse"] .hero-card {
  background:
    radial-gradient(ellipse at 80% 18%, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 20rem),
    linear-gradient(130deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--hero-tint) 78%, transparent));
}
body.dark-theme[data-season="winter"][data-design="glasshouse"] {
  --bg: #12212a;
  --surface: rgba(27, 46, 57, .9);
  --surface-raised: #263d49;
  --surface-glass: rgba(24, 43, 54, .82);
  --hero-tint: #254451;
  --ink: #edf7fb;
  --muted: #a4bdc8;
  --line: rgba(181, 218, 232, .15);
  --blue: #a4d5e7;
  --cyan: #c5ebf5;
  --green: #91cfc1;
  --gradient: linear-gradient(125deg, #285b73, #448e91);
  --glow-one: rgba(63, 133, 160, .28);
  --glow-two: rgba(73, 132, 147, .2);
  --glow-three: rgba(72, 117, 142, .17);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(61, 129, 158, .28), transparent 35rem),
    radial-gradient(ellipse at 92% 44%, rgba(57, 110, 125, .2), transparent 42rem),
    #12212a;
}
body.dark-theme[data-season="winter"][data-design="glasshouse"] .app-header,
body.dark-theme[data-season="winter"][data-design="glasshouse"] .topline {
  background: rgba(13, 35, 46, .97);
}
body[data-season="winter"][data-design="editorial"] {
  --bg: #f1f3f5;
  --surface: #fcfcfb;
  --surface-raised: #e9edf0;
  --surface-glass: rgba(249, 250, 251, .95);
  --hero-tint: #e3eaf0;
  --ink: #2b3945;
  --muted: #6e7c86;
  --line: rgba(53, 72, 89, .17);
  --blue: #42647e;
  --cyan: #a9cad9;
  --green: #768f8b;
  --gradient: linear-gradient(120deg, #334f66, #7899aa);
  --glow-one: rgba(174, 198, 215, .18);
  --glow-two: rgba(209, 216, 229, .2);
  --glow-three: rgba(203, 219, 224, .18);
  background:
    radial-gradient(ellipse at 8% 8%, rgba(174, 198, 215, .18), transparent 38rem),
    #f1f3f5;
}
body[data-season="winter"][data-design="editorial"] .topline {
  color: #f8fbfd;
  background: #334f66;
}
body[data-season="winter"][data-design="editorial"] .gradient-text {
  color: #42647e;
}
body[data-season="winter"][data-design="editorial"] .brand-mark {
  color: #eaf3f8;
  background: #334f66;
}
body[data-season="winter"][data-design="editorial"] .primary-nav-link[aria-current="page"] {
  color: #42647e;
  box-shadow: inset 0 -2px #7899aa;
}
body.dark-theme[data-season="winter"][data-design="editorial"] {
  --bg: #1a2026;
  --surface: #252d35;
  --surface-raised: #303b44;
  --surface-glass: rgba(34, 43, 51, .95);
  --hero-tint: #303e48;
  --ink: #eff3f5;
  --muted: #b0bbc2;
  --line: rgba(208, 222, 230, .16);
  --blue: #a8c9da;
  --cyan: #c3dfeb;
  --green: #a4c0b9;
  --gradient: linear-gradient(120deg, #496a80, #7596a6);
  --glow-one: rgba(85, 123, 148, .2);
  --glow-two: rgba(91, 105, 132, .16);
  --glow-three: rgba(77, 120, 132, .14);
  background:
    radial-gradient(ellipse at 8% 8%, rgba(85, 123, 148, .2), transparent 38rem),
    #1a2026;
}
body.dark-theme[data-season="winter"][data-design="editorial"] .gradient-text {
  color: #a8c9da;
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"] .winter-snowflake,
  body[data-season="winter"] .winter-scenery::before { animation: none; }
}
@media (max-width: 520px) {
  body[data-season="winter"] .topline > span:first-child {
    max-width: calc(100vw - 76px);
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body[data-season="winter"] .winter-scenery {
  display: none;
}
body[data-season="winter"] .flora-ai-panel { position: relative; }
body[data-season="winter"] .winter-mini-charm {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(98, 141, 163, .25);
  border-radius: 50%;
  color: #527d96;
  background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(218, 237, 247, .8));
  box-shadow: 0 2px 8px rgba(60, 106, 130, .12);
  cursor: pointer;
  font-size: 14px;
  vertical-align: middle;
  transition: transform .2s ease, box-shadow .2s ease;
}
body[data-season="winter"] .winter-mini-charm:hover,
body[data-season="winter"] .winter-mini-charm.is-found {
  transform: translateY(-2px) rotate(12deg);
  box-shadow: 0 4px 12px rgba(60, 106, 130, .24);
}
body[data-season="winter"] .winter-snowman-easter-egg {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: 7px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(146, 185, 202, .65);
  border-radius: 50%;
  color: #466d82;
  background: linear-gradient(145deg, #fff, #e1f1f7);
  cursor: pointer;
  font-size: 21px;
  vertical-align: middle;
}
body[data-season="winter"] .winter-snowman-easter-egg.is-found {
  box-shadow: 0 0 0 4px rgba(149, 205, 225, .25), 0 4px 12px rgba(60, 106, 130, .18);
  animation: winter-snowman-found .5s ease-out;
}
body[data-season="winter"]::before {
  position: fixed;
  z-index: 19;
  inset: 0;
  background:
    radial-gradient(ellipse at 0 0, rgba(213, 239, 249, .56), transparent 19%),
    radial-gradient(ellipse at 100% 0, rgba(213, 239, 249, .56), transparent 19%),
    radial-gradient(ellipse at 0 100%, rgba(213, 239, 249, .56), transparent 19%),
    radial-gradient(ellipse at 100% 100%, rgba(213, 239, 249, .56), transparent 19%);
  content: "";
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 2.2s cubic-bezier(.2, .75, .25, 1),
    filter 2.6s cubic-bezier(.2, .75, .25, 1),
    transform 2.6s cubic-bezier(.2, .75, .25, 1);
}
body[data-season="winter"] .flora-ai-panel::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 18px 12px;
  border-radius: inherit;
  color: #355a6d;
  background:
    radial-gradient(ellipse at 0 0, rgba(226, 245, 251, .88), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(226, 245, 251, .88), transparent 42%),
    repeating-linear-gradient(130deg, transparent 0 17px, rgba(233, 248, 253, .48) 18px 20px, transparent 21px 36px);
  box-shadow: inset 0 0 42px rgba(190, 225, 238, .6);
  content: "";
  opacity: 0;
  filter: blur(7px);
  transform: scale(1.025);
  text-align: center;
  text-shadow: 0 1px 5px white;
  backdrop-filter: blur(1.5px);
  pointer-events: none;
  transition: opacity 1.8s cubic-bezier(.2, .75, .25, 1),
    filter 2.2s cubic-bezier(.2, .75, .25, 1),
    transform 2.2s cubic-bezier(.2, .75, .25, 1);
}
@keyframes winter-snowman-found {
  50% { transform: rotate(12deg) scale(1.16); }
}
body[data-season="winter"] .winter-rest-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(118, 166, 189, .28);
  border-radius: 999px;
  color: #436a7f;
  background: rgba(224, 242, 249, .7);
  font-size: 11px;
  font-weight: 700;
}
body.dark-theme[data-season="winter"] .winter-rest-badge {
  color: #c1e3f0;
  background: rgba(73, 112, 132, .35);
}
body[data-season="winter"] .winter-care-tip {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid rgba(126, 169, 190, .25);
  border-radius: 15px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(231, 244, 249, .9), rgba(248, 252, 254, .82));
  font-size: 13px;
  line-height: 1.55;
}
body[data-season="winter"] .winter-care-tip strong {
  color: #426d88;
}
body[data-season="winter"] .winter-care-confirm:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(205, 164, 91, .35);
  border-radius: 15px;
  background: rgba(255, 247, 225, .86);
}
body[data-season="winter"] .winter-care-confirm p {
  flex: 1 1 100%;
  margin: 0;
  line-height: 1.55;
}
body[data-season="winter"] .heating-season-switch {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid rgba(126, 169, 190, .25);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 84%, var(--cyan));
  cursor: pointer;
}
body[data-season="winter"] .heating-season-switch input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
body[data-season="winter"] .heating-season-switch span {
  display: grid;
  gap: 3px;
}
body[data-season="winter"] .heating-season-switch strong { font-size: 13px; }
body[data-season="winter"] .heating-season-switch small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
body[data-season="winter"] .garden-care-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #376d57;
  background: rgba(224, 242, 231, .72);
}
body[data-season="winter"] .garden-care-health strong { font-size: 11px; }
body[data-season="winter"] .garden-care-health.is-stressed {
  color: #9a5c43;
  background: rgba(250, 231, 220, .78);
}
body[data-season="winter"] .garden-care-health.is-dry-air {
  color: #946132;
  background: rgba(250, 239, 216, .9);
}
body[data-season="winter"] .garden-care-health small {
  flex-basis: 100%;
  font-size: 10px;
  line-height: 1.4;
}
body[data-season="winter"] .garden-care-health {
  flex-wrap: wrap;
}
body[data-season="winter"] .garden-care-stress-meter {
  width: 64px;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(104, 132, 119, .2);
}
body[data-season="winter"] .garden-care-stress-meter > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #eacb72, #d57558);
  transition: width .25s ease;
}
body[data-season="winter"] .garden-care-humidity-history {
  color: var(--muted);
}
body.dark-theme[data-season="winter"] .heating-season-switch {
  border-color: rgba(130, 179, 201, .24);
  background: rgba(48, 69, 82, .78);
}
body.dark-theme[data-season="winter"] .garden-care-health {
  color: #c1e3cc;
  background: rgba(41, 79, 61, .65);
}
body.dark-theme[data-season="winter"] .garden-care-health.is-stressed {
  color: #f0c2ae;
  background: rgba(95, 55, 42, .65);
}
body.dark-theme[data-season="winter"] .garden-care-health.is-dry-air {
  color: #ecd3a2;
  background: rgba(94, 72, 39, .68);
}
body.dark-theme[data-season="winter"] .winter-care-tip {
  border-color: rgba(130, 179, 201, .24);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(48, 69, 82, .96), rgba(37, 51, 62, .94));
}
body.dark-theme[data-season="winter"] .winter-care-tip strong {
  color: #b7ddec;
}
body.dark-theme[data-season="winter"] .winter-care-confirm:not([hidden]) {
  border-color: rgba(224, 187, 111, .3);
  color: #f3ead2;
  background: rgba(75, 64, 43, .95);
}
body[data-season="winter"] #page-home .hero-card::after,
body[data-season="winter"] #page-catalog .page-title-row::after,
body[data-season="winter"] #page-season .page-title-row::after,
body[data-season="winter"] #page-collection .page-title-row::after,
body[data-season="winter"] #page-botanist .page-title-row::after {
  position: absolute;
  color: rgba(107, 151, 174, .72);
  font-size: 21px;
  pointer-events: none;
}
body[data-season="winter"] #page-home .hero-card::after {
  top: 20px;
  right: 24px;
  content: "❄";
}
body[data-season="winter"] #page-catalog .page-title-row::after {
  top: 6px;
  right: 10px;
  content: "🌲";
  font-size: 18px;
}
body[data-season="winter"] #page-season .page-title-row::after {
  top: 6px;
  right: 10px;
  content: "✧";
}
body[data-season="winter"] #page-collection .page-title-row::after {
  top: 6px;
  right: 10px;
  content: "❄";
  font-size: 17px;
}
body[data-season="winter"] #page-botanist .page-title-row::after {
  top: 6px;
  right: 10px;
  content: "🌲";
  font-size: 18px;
}
body[data-season="winter"] #page-home .hero-card,
body[data-season="winter"] #page-catalog .page-title-row,
body[data-season="winter"] #page-season .page-title-row,
body[data-season="winter"] #page-collection .page-title-row,
body[data-season="winter"] #page-botanist .page-title-row {
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"] .winter-snowman-easter-egg.is-found {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"]::before,
  body[data-season="winter"] .flora-ai-panel::after {
    transition: none;
  }
}
body[data-season="winter"] .winter-site-snow {
  position: fixed;
  z-index: 6;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}
body[data-season="winter"] .topline {
  position: relative;
  z-index: 8;
}
body[data-season="winter"] .main-content,
body[data-season="winter"] .site-footer {
  position: relative;
}
body[data-season="winter"] .winter-site-mist {
  position: absolute;
  z-index: 0;
  inset: -18vh -24vw;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 18% 44%, rgba(119, 224, 214, .28), transparent 43%),
    radial-gradient(ellipse at 52% 56%, rgba(117, 176, 255, .26), transparent 47%),
    radial-gradient(ellipse at 84% 38%, rgba(168, 130, 244, .22), transparent 42%);
  filter: blur(38px);
  opacity: .84;
  pointer-events: none;
  animation: winter-drifting-mist 30s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-site-crystal {
  position: absolute;
  z-index: 0;
  bottom: -70px;
  width: clamp(110px, 13vw, 176px);
  height: auto;
  pointer-events: none;
  animation: winter-crystal-glow 9s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-site-crystal-left {
  left: -35px;
}
body[data-season="winter"] .winter-site-crystal-right {
  right: -35px;
  animation-delay: -4.5s;
}
body[data-season="winter"] .winter-site-crystal-lines {
  fill: none;
  stroke: rgba(224, 246, 255, .52);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  filter: drop-shadow(0 0 3px rgba(151, 221, 255, .34));
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body[data-season="winter"] .flower-photo-wrap::before {
    position: absolute;
    z-index: 1;
    top: -35%;
    bottom: -35%;
    left: -48%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(222, 247, 255, .34), transparent);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-160%) skewX(-18deg);
  }
  body[data-season="winter"] .flower-card:hover .flower-photo-wrap::before,
  body[data-season="winter"] .flower-card:focus-within .flower-photo-wrap::before {
    animation: winter-card-ice-sheen 1.15s ease-out;
  }
}
body[data-season="winter"] .winter-site-snow::before {
  position: absolute;
  z-index: 0;
  top: -18vh;
  left: 8%;
  width: 84%;
  height: 48vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 24% 58%, rgba(80, 226, 190, .55), transparent 46%),
    radial-gradient(ellipse at 55% 48%, rgba(86, 185, 255, .52), transparent 48%),
    radial-gradient(ellipse at 78% 55%, rgba(168, 130, 244, .42), transparent 44%);
  content: "";
  filter: blur(40px);
  opacity: .7;
  transform: translate3d(-3%, 0, 0) scaleX(.92);
  animation: winter-global-aurora 16s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-site-snow::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 24%, rgba(255, 255, 255, .9) 0 1px, transparent 2px),
    radial-gradient(circle at 19% 68%, rgba(222, 244, 255, .8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 31% 38%, rgba(255, 255, 255, .78) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 82%, rgba(222, 244, 255, .75) 0 1px, transparent 2px),
    radial-gradient(circle at 57% 19%, rgba(255, 255, 255, .85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 69% 59%, rgba(222, 244, 255, .8) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 31%, rgba(255, 255, 255, .8) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 76%, rgba(222, 244, 255, .78) 0 1.5px, transparent 2.5px);
  content: "";
  opacity: .42;
  pointer-events: none;
  animation: winter-ice-glints 8s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-site-snow i {
  position: absolute;
  z-index: 1;
  top: -12%;
  left: 6%;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 12px rgba(218, 241, 255, 1), 0 1px 4px rgba(27, 47, 64, .48);
  animation: winter-photo-snowfall 12s linear infinite;
}
@keyframes winter-global-aurora {
  from {
    opacity: .32;
    transform: translate3d(-4%, 0, 0) scaleX(.9) rotate(-4deg);
    filter: blur(46px) hue-rotate(-8deg);
  }
  to {
    opacity: .68;
    transform: translate3d(4%, 7vh, 0) scaleX(1.08) rotate(5deg);
    filter: blur(34px) hue-rotate(12deg);
  }
}
@keyframes winter-ice-glints {
  from { opacity: .12; transform: translate3d(0, -4px, 0); }
  to { opacity: .42; transform: translate3d(0, 4px, 0); }
}
@keyframes winter-card-ice-sheen {
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateX(560%) skewX(-18deg); }
}
body[data-season="winter"] .winter-site-snow i::before { content: "❄"; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(2) { left: 16%; font-size: 11px; animation-delay: -7s; animation-duration: 15s; --snow-drift: 8px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(3) { left: 25%; font-size: 24px; animation-delay: -3s; animation-duration: 18s; --snow-drift: 24px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(4) { left: 34%; font-size: 13px; animation-delay: -11s; animation-duration: 13s; --snow-drift: 11px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(5) { left: 43%; font-size: 17px; animation-delay: -5s; animation-duration: 16s; --snow-drift: 17px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(6) { left: 52%; font-size: 10px; animation-delay: -9s; animation-duration: 14s; --snow-drift: 7px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(7) { left: 61%; font-size: 22px; animation-delay: -2s; animation-duration: 19s; --snow-drift: 20px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(8) { left: 70%; font-size: 12px; animation-delay: -13s; animation-duration: 15s; --snow-drift: 9px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(9) { left: 78%; font-size: 18px; animation-delay: -6s; animation-duration: 17s; --snow-drift: 16px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(10) { left: 87%; font-size: 10px; animation-delay: -10s; animation-duration: 13s; --snow-drift: 8px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(11) { left: 94%; font-size: 21px; animation-delay: -4s; animation-duration: 20s; --snow-drift: 22px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(12) { left: 4%; font-size: 13px; animation-delay: -14s; animation-duration: 17s; --snow-drift: 12px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(13) { left: 11%; font-size: 15px; animation-delay: -2s; animation-duration: 18s; --snow-drift: 14px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(14) { left: 20%; font-size: 9px; animation-delay: -12s; animation-duration: 14s; --snow-drift: 6px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(15) { left: 29%; font-size: 20px; animation-delay: -8s; animation-duration: 19s; --snow-drift: 21px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(16) { left: 38%; font-size: 12px; animation-delay: -4s; animation-duration: 16s; --snow-drift: 10px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(17) { left: 47%; font-size: 18px; animation-delay: -15s; animation-duration: 20s; --snow-drift: 18px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(18) { left: 56%; font-size: 10px; animation-delay: -6s; animation-duration: 13s; --snow-drift: 7px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(19) { left: 65%; font-size: 23px; animation-delay: -10s; animation-duration: 18s; --snow-drift: 23px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(20) { left: 74%; font-size: 12px; animation-delay: -3s; animation-duration: 15s; --snow-drift: 10px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(21) { left: 83%; font-size: 17px; animation-delay: -13s; animation-duration: 17s; --snow-drift: 15px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(22) { left: 91%; font-size: 11px; animation-delay: -5s; animation-duration: 14s; --snow-drift: 8px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(23) { left: 98%; font-size: 20px; animation-delay: -9s; animation-duration: 19s; --snow-drift: 19px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(24) { left: 2%; font-size: 14px; animation-delay: -16s; animation-duration: 16s; --snow-drift: 13px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(25) { left: 7%; font-size: 8px; opacity: .62; filter: blur(.3px); animation-delay: -5s; animation-duration: 11s; --snow-drift: 6px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(26) { left: 15%; font-size: 13px; animation-delay: -9s; animation-duration: 14s; --snow-drift: 11px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(27) { left: 23%; font-size: 26px; animation-delay: -1s; animation-duration: 22s; --snow-drift: 26px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(28) { left: 32%; font-size: 9px; opacity: .58; filter: blur(.4px); animation-delay: -11s; animation-duration: 12s; --snow-drift: 7px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(29) { left: 41%; font-size: 15px; animation-delay: -6s; animation-duration: 16s; --snow-drift: 14px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(30) { left: 50%; font-size: 11px; opacity: .64; filter: blur(.3px); animation-delay: -3s; animation-duration: 13s; --snow-drift: 8px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(31) { left: 59%; font-size: 25px; animation-delay: -13s; animation-duration: 21s; --snow-drift: 25px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(32) { left: 68%; font-size: 9px; opacity: .6; filter: blur(.4px); animation-delay: -8s; animation-duration: 12s; --snow-drift: 6px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(33) { left: 77%; font-size: 16px; animation-delay: -4s; animation-duration: 17s; --snow-drift: 15px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(34) { left: 86%; font-size: 27px; animation-delay: -15s; animation-duration: 23s; --snow-drift: 27px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(35) { left: 93%; font-size: 10px; opacity: .58; filter: blur(.3px); animation-delay: -10s; animation-duration: 12s; --snow-drift: 7px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(36) { left: 97%; font-size: 18px; animation-delay: -7s; animation-duration: 18s; --snow-drift: 18px; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(3n)::before { content: "❅"; }
body[data-season="winter"] .winter-site-snow i:nth-of-type(4n)::before { content: "❆"; }
body[data-season="winter"] .winter-feature {
  min-height: 300px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr);
  align-items: center;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid rgba(202, 231, 242, .24);
  border-radius: 26px;
  color: #f5fbff;
  background: #193b4e;
  box-shadow: 0 20px 55px rgba(19, 51, 70, .2);
}
body[data-season="winter"] .winter-feature-copy {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4vw, 48px);
}
body[data-season="winter"] .winter-feature-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #a9d8e9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
body[data-season="winter"] .winter-feature h2 {
  margin-bottom: 12px;
  color: #f5fbff;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.12;
}
body[data-season="winter"] .winter-feature p {
  max-width: 440px;
  margin-bottom: 20px;
  color: rgba(235, 247, 252, .78);
  font-size: 13px;
  line-height: 1.7;
}
body[data-season="winter"] .winter-feature-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 12px;
  color: #193b4e;
  background: #f4fbff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
body[data-season="winter"] .winter-feature-link:hover {
  background: #dff3fa;
  transform: translateY(-2px);
}
body[data-season="winter"] .winter-feature-link:focus-visible {
  outline: 3px solid #a9d8e9;
  outline-offset: 3px;
}
body[data-season="winter"] .winter-feature-landscape {
  width: 100%;
  height: 100%;
  min-height: 300px;
  align-self: stretch;
}
body[data-season="winter"] .winter-feature-aurora {
  transform-box: fill-box;
  transform-origin: center;
  animation: winter-feature-aurora-drift 18s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-feature-aurora-two {
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}
body[data-season="winter"] .winter-feature-star {
  fill: #f4fcff;
  filter: drop-shadow(0 0 5px rgba(214, 247, 255, .92));
  transform-box: fill-box;
  transform-origin: center;
  animation: winter-feature-star-twinkle 3.8s ease-in-out infinite alternate;
}
body[data-season="winter"] .winter-feature-star-two { animation-delay: -1.3s; }
body[data-season="winter"] .winter-feature-star-three { animation-delay: -2.6s; }
body[data-season="winter"] .winter-feature-shooting-star {
  fill: none;
  stroke: url(#winter-shooting-star);
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: winter-feature-shooting-star 9s ease-in-out 2s infinite;
}
@keyframes winter-drifting-mist {
  from { transform: translate3d(-5vw, 2vh, 0) scale(.94) rotate(-3deg); }
  to { transform: translate3d(5vw, -3vh, 0) scale(1.06) rotate(3deg); }
}
@keyframes winter-crystal-glow {
  from { opacity: .42; transform: translateY(3px) rotate(-2deg); }
  to { opacity: .82; transform: translateY(-4px) rotate(2deg); }
}
@keyframes winter-feature-aurora-drift {
  from { opacity: .36; transform: translate3d(-18px, 8px, 0) scaleY(.88); }
  to { opacity: .82; transform: translate3d(20px, -10px, 0) scaleY(1.12); }
}
@keyframes winter-feature-star-twinkle {
  from { opacity: .52; transform: scale(.82); }
  to { opacity: 1; transform: scale(1.16); }
}
@keyframes winter-feature-shooting-star {
  0%, 62%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
  67% { opacity: .9; }
  78% { opacity: 0; transform: translate3d(-100px, 48px, 0); }
}
@media (max-width: 720px) {
  body[data-season="winter"] .winter-feature {
    min-height: 450px;
    display: block;
    margin-top: 14px;
    border-radius: 21px;
  }
  body[data-season="winter"] .winter-feature-copy {
    padding: 27px 22px;
  }
  body[data-season="winter"] .winter-feature h2 {
    font-size: 27px;
  }
  body[data-season="winter"] .winter-feature p {
    max-width: 390px;
    font-size: 12px;
  }
  body[data-season="winter"] .winter-feature-landscape {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 54%;
    min-height: 0;
  }
}
@keyframes winter-photo-snowfall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0) scale(.82); opacity: 0; }
  12% { opacity: 1; }
  48% { transform: translate3d(var(--snow-drift, 12px), 52vh, 0) rotate(155deg) scale(1.16); opacity: 1; }
  84% { opacity: .92; }
  100% { transform: translate3d(calc(var(--snow-drift, 12px) * -1), 115vh, 0) rotate(320deg) scale(.86); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"] .winter-site-snow::before {
    animation: none;
  }
  body[data-season="winter"] .winter-site-mist,
  body[data-season="winter"] .winter-feature-aurora,
  body[data-season="winter"] .winter-feature-star,
  body[data-season="winter"] .winter-feature-shooting-star,
  body[data-season="winter"] .winter-site-crystal {
    animation: none;
  }
  body[data-season="winter"] .winter-site-snow::after {
    animation: none;
    opacity: .2;
  }
  body[data-season="winter"] .winter-site-snow i {
    display: none;
  }
  body[data-season="winter"] .winter-site-snow i:nth-of-type(3n + 1) {
    top: 24%;
  }
  body[data-season="winter"] .winter-site-snow i:nth-of-type(3n + 2) {
    top: 52%;
  }
  body[data-season="winter"] .winter-site-snow i:nth-of-type(3n) {
    top: 78%;
  }
}
body[data-season="winter"] :is(
  .flower-card,
  .home-fact,
  .surface-card,
  .home-widget,
  .garden-hero,
  .garden-today,
  .garden-panel,
  .garden-journal-entry,
  .garden-care-item,
  .season-tracker,
  .season-panel,
  .catalog-filter-disclosure,
  .compare-plant
) {
  border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
  background-image: linear-gradient(
    145deg,
    color-mix(in srgb, var(--cyan) 11%, transparent),
    transparent 58%
  );
  box-shadow:
    inset 0 1px 0 rgba(245, 252, 255, .16),
    0 12px 32px color-mix(in srgb, var(--blue) 9%, transparent);
}
body[data-season="winter"] .section-winter-note {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 17px;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 0 50%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(245, 252, 255, .16);
}
body[data-season="winter"] .section-winter-note-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line));
  border-radius: 12px;
  color: var(--blue);
  background: color-mix(in srgb, var(--cyan) 18%, var(--surface));
}
body[data-season="winter"] .section-winter-note-icon .ui-icon {
  width: 19px;
  height: 19px;
}
body[data-season="winter"] .section-winter-note-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
body[data-season="winter"] .section-winter-note-copy strong {
  color: var(--ink);
  font-size: 12px;
}
body[data-season="winter"] .section-winter-note-copy span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
body[data-season="winter"] .section-winter-note-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 11px;
  color: var(--blue);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
body[data-season="winter"] .section-winter-note-action:hover {
  background: color-mix(in srgb, var(--cyan) 18%, var(--surface));
  transform: translateY(-1px);
}
body[data-season="winter"] .section-winter-note-action:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
body[data-season="winter"] .hero-art img {
  filter: none;
}
body[data-season="winter"] .hero-ice-frost {
  position: fixed;
  z-index: 21;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.6s cubic-bezier(.2, .75, .25, 1);
}
body[data-season="winter"] .hero-frost-haze {
  fill: url("#hero-frost-ice");
  opacity: .54;
  filter: url("#hero-frost-soft");
}
body[data-season="winter"] .hero-frost-branches {
  stroke-width: 1.15;
  opacity: .76;
  filter: drop-shadow(0 0 2px rgba(238, 250, 255, .84));
}
body[data-season="winter"] .hero-frost-branches .frost-stem {
  stroke-width: 2.2;
  opacity: .7;
}
body[data-season="winter"] .hero-frost-branches path:not(.frost-stem) {
  stroke-width: .8;
  opacity: .72;
}
body[data-season="winter"] .hero-art::after {
  z-index: 2;
}
body[data-season="winter"] .hero-art-label,
body[data-season="winter"] .hero-orbit {
  z-index: 7;
}
body[data-season="winter"] .hero-orbit {
  border-color: rgba(239, 250, 255, .86);
  color: #fff;
  background: rgba(20, 45, 62, .62);
  box-shadow: 0 8px 26px rgba(13, 31, 43, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(1.25);
  text-shadow: 0 1px 5px rgba(12, 31, 44, .38);
}
@media (max-width: 560px) {
  body[data-season="winter"] .section-winter-note {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  body[data-season="winter"] .section-winter-note-action {
    grid-column: 2;
    justify-self: start;
  }
  body[data-season="winter"] .hero-orbit {
    top: 16px;
    right: auto;
    left: 16px;
    width: 82px;
    height: 82px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"] .hero-ice-frost {
    transition: none;
  }
}
.winter-prediction-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 14px 0 22px;
  padding: 17px 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 17px;
  color: var(--ink);
  background: linear-gradient(115deg, color-mix(in srgb, var(--hero-tint) 78%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-soft);
}
.winter-prediction-card[hidden] { display: none; }
.winter-prediction-icon { color: var(--blue); font-size: 20px; }
.winter-prediction-card strong { display: block; margin-bottom: 4px; font-size: 12px; }
.winter-prediction-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
#winter-prediction-pull { min-height: 50px; border: 1px solid var(--line); }
.winter-hidden-pinecone {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin: 0 2px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #806344;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  opacity: .2;
  filter: saturate(.4);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
  vertical-align: baseline;
}
.winter-hidden-pinecone:hover,
.winter-hidden-pinecone:focus-visible,
.winter-hidden-pinecone.is-found {
  opacity: 1;
  filter: none;
  transform: scale(1.16);
}
.winter-pinecone-hero,
.winter-pinecone-quiz,
.winter-pinecone-chat {
  position: absolute;
  z-index: 4;
  width: 20px;
  height: 20px;
  font-size: 12px;
}
.winter-pinecone-hero { top: 21%; right: 12%; }
.botanist-photo-wrap { position: relative; }
.winter-pinecone-quiz { top: 10px; right: 10px; }
.flora-ai-intro { position: relative; }
.winter-pinecone-chat { top: 12px; right: 15px; }
.winter-gardener-gift {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(125deg, color-mix(in srgb, var(--green) 9%, var(--surface)), color-mix(in srgb, var(--blue) 8%, var(--surface)));
}
.winter-gardener-gift[hidden] { display: none; }
.winter-gift-icon { font-size: 30px; }
.winter-gift-copy h2 { margin: 3px 0 4px; font-size: 17px; }
.winter-gift-copy p { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.winter-gift-copy ul { display: grid; gap: 4px; margin: 0 0 10px; padding-left: 18px; color: var(--ink); font-size: 10px; line-height: 1.5; }
.winter-quest-collection { display: grid; grid-column: 1 / -1; gap: 7px; padding: 8px; border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }
.winter-relic-row { display: flex; justify-content: space-between; gap: 5px; }
.winter-relic { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 13px; }
.winter-relic.is-found { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); background: color-mix(in srgb, var(--green) 10%, var(--surface)); animation: winter-relic-pop .35s ease-out; }
.winter-relic-stages { display: flex; flex-wrap: wrap; gap: 5px; }
.winter-relic-stage { padding: 4px 6px; border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); font-size: 8px; line-height: 1.2; }
.winter-relic-stage.is-unlocked { color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, var(--surface)); font-weight: 750; }
.winter-quest-hint { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.winter-quest-archive-note { color: var(--muted); font-size: 8px; }
.winter-postcard { display: grid; gap: 4px; padding: 10px; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 9px; background: linear-gradient(125deg, color-mix(in srgb, var(--blue) 10%, var(--surface)), color-mix(in srgb, var(--green) 8%, var(--surface))); text-align: center; }
.winter-postcard > span { letter-spacing: 5px; }
.winter-postcard strong { color: var(--blue); font-size: 10px; }
.winter-postcard p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
@keyframes winter-relic-pop { 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) {
  .winter-relic.is-found { animation: none; }
}
.polar-forest-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(148, 183, 142, .4);
  border-radius: 13px;
  color: var(--ink);
  background: linear-gradient(130deg, rgba(220, 239, 216, .7), rgba(225, 240, 249, .7));
}
.polar-forest-badge[hidden] { display: none; }
.polar-forest-badge > span:first-child { font-size: 25px; }
.polar-forest-badge strong,
.polar-forest-badge small { display: block; }
.polar-forest-badge strong { font-size: 12px; }
.polar-forest-badge small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.garden-checklist-export { margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
.forest-sound-active { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }
@media (max-width: 640px) {
  #winter-prediction-pull { flex-basis: 100%; }
  .garden-checklist-export { width: 100%; margin: 8px 0 0; }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 8px;
    padding-block: 7px;
  }
  .header-inner > .brand {
    order: 1;
    flex: 0 0 auto;
  }
  .header-inner > .primary-nav {
    width: auto;
    order: 2;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 0;
  }
  .header-inner > .primary-nav .primary-nav-link {
    min-height: 34px;
    flex: 0 1 auto;
    padding-inline: 6px;
    font-size: 10px;
    white-space: nowrap;
  }
  .header-inner > .header-actions {
    width: 100%;
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    gap: 4px;
  }
  .header-inner > .header-actions .icon-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
  }
  .header-inner > .header-actions .design-select {
    min-height: 36px;
    max-width: 108px;
    padding-inline: 7px;
    font-size: 9px;
  }
  .header-inner > .header-actions .account-cta {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 10px;
  }
  .header-inner > .header-actions #sound-toggle {
    margin-left: 12px;
  }
}
