:root {
  color-scheme: dark;
  --bg: #06100c;
  --panel: rgba(7, 17, 13, 0.88);
  --panel-strong: rgba(5, 14, 10, 0.96);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(143, 245, 190, 0.35);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --green: #67e8a7;
  --green-strong: #2dd482;
  --green-dark: #0d4b32;
  --purple: #c4b5fd;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.app-shell {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #07120d;
}

.garden-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  touch-action: none;
  overflow: hidden;
  transition: height .28s ease;
}
.garden-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 35%, rgba(1, 5, 3, 0.08) 76%, rgba(1, 4, 3, 0.44) 100%),
    linear-gradient(to bottom, rgba(2, 8, 5, 0.28), transparent 20%, transparent 74%, rgba(2, 8, 5, 0.38));
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 2.5vw, 28px) 10px;
  pointer-events: none;
}
.brand, .top-actions { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: rgba(5, 15, 10, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 11px 8px 8px;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(89, 238, 164, 0.95), rgba(33, 160, 104, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 24px rgba(34,197,94,.22);
}
.brand-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.08; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy small { margin-top: 4px; color: #a7f3d0; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }

.top-actions { display: flex; gap: 8px; }
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 15, 10, 0.72);
  backdrop-filter: blur(18px);
  padding: 9px 12px;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-button:hover { border-color: var(--line-strong); background: rgba(9, 28, 19, 0.84); }
.icon-button:active { transform: translateY(1px) scale(.985); }
.icon-button[aria-pressed="true"] { border-color: rgba(103, 232, 167, .55); background: rgba(16, 80, 54, .82); }
.icon-glyph { font-size: 17px; }
.desktop-label { font-size: 11px; font-weight: 750; color: #d1fae5; }

.landing-card {
  position: fixed;
  z-index: 12;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  transform: translate(-50%, -50%);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(6, 20, 13, .9), rgba(3, 12, 8, .92));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  text-align: center;
  transition: opacity .35s ease, transform .35s ease;
}
.landing-card.is-hidden {
  opacity: 0;
  transform: translate(-50%, -46%) scale(.97);
  pointer-events: none;
}
.landing-badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #9df1c6;
  font-weight: 850;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.landing-badge {
  padding: 7px 10px;
  border: 1px solid rgba(103,232,167,.26);
  border-radius: 999px;
  background: rgba(16, 94, 60, .22);
}
.landing-orb {
  width: 88px;
  height: 88px;
  margin: 22px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 32%, rgba(196, 255, 222, .75), transparent 18%),
    linear-gradient(145deg, rgba(34,197,94,.42), rgba(139,92,246,.3));
  border: 1px solid rgba(182, 255, 214, .32);
  box-shadow: 0 0 45px rgba(52,211,153,.2);
  animation: float 5s ease-in-out infinite;
}
.landing-orb span { font-size: 38px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.22)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.landing-card h1 { margin: 0 auto; max-width: 440px; font-size: clamp(28px, 5vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
.landing-card > p { margin: 16px auto 0; max-width: 430px; color: #dbe8e1; line-height: 1.65; font-size: 14px; }
.landing-note {
  margin: 20px auto 0;
  width: fit-content;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #c7d8cf;
  font-size: 11px;
  line-height: 1.4;
}
.landing-note > span:first-child { color: #7df0b1; }
.landing-cta { width: 100%; margin-top: 24px; }
.text-button {
  margin-top: 12px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #a7b8af;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.builder-panel {
  position: fixed;
  z-index: 14;
  right: clamp(16px, 3vw, 34px);
  top: 88px;
  bottom: 48px;
  width: min(430px, calc(100vw - 36px));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(5, 17, 11, .92), rgba(4, 12, 8, .94));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transition: opacity .28s ease, transform .28s ease;
}
.builder-panel.is-hidden { opacity: 0; transform: translateX(18px); pointer-events: none; }
.builder-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.builder-head h2 { margin: 5px 0 6px; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.08; letter-spacing: -.03em; }
.builder-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; max-width: 330px; }

.progress-wrap { display: grid; gap: 7px; }
.progress-meta { display: flex; justify-content: space-between; color: #9fb2a7; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress-bar { height: 100%; width: 16.666%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #99f6e4); transition: width .4s ease; }
.progress-dots { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.progress-dot { height: 3px; border-radius: 99px; background: rgba(255,255,255,.09); transition: background .25s ease; }
.progress-dot.is-done { background: rgba(103,232,167,.66); }
.progress-dot.is-current { background: #d1fae5; }

.option-grid {
  min-height: 0;
  overflow: auto;
  padding: 2px 3px 8px 1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  overscroll-behavior: contain;
}
.option-card {
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(15, 25, 20, .78);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.option-card:hover { transform: translateY(-2px); border-color: rgba(180,255,214,.28); }
.option-card:focus-visible { outline: 2px solid #99f6e4; outline-offset: 2px; }
.option-card.is-selected {
  border-color: rgba(103,232,167,.82);
  box-shadow: 0 0 0 2px rgba(103,232,167,.12), 0 12px 34px rgba(18, 119, 75, .18);
}
.option-art {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62px;
  background: var(--swatch);
  opacity: .9;
}
.option-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(5,13,9,.12));
}
.option-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.option-check {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(5,18,11,.68);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 12px;
  color: transparent;
}
.option-card.is-selected .option-check { color: #07120d; background: #7ef0b1; border-color: #b9ffd5; }
.option-copy { position: relative; z-index: 1; margin-top: 54px; }
.option-copy strong { display: block; font-size: 12px; line-height: 1.2; }
.option-copy small { display: block; margin-top: 5px; color: #b9c8c0; font-size: 9.5px; line-height: 1.38; }

.builder-actions { display: grid; grid-template-columns: minmax(100px, .7fr) 1.3fr; gap: 9px; margin-top: auto; }
.primary-button, .secondary-button, .ghost-button, .action-pill {
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 820;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}
.primary-button, .secondary-button { min-height: 46px; padding: 11px 15px; }
.primary-button { color: #052116; background: linear-gradient(135deg, #61e9a2, #a7f3d0); box-shadow: 0 11px 28px rgba(52,211,153,.17); }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; box-shadow: none; }
.secondary-button { color: #e7f4ed; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); }
.secondary-button:hover { border-color: rgba(181,255,215,.24); background: rgba(255,255,255,.085); }
.ghost-button { padding: 8px 11px; background: rgba(103,232,167,.08); border-color: rgba(103,232,167,.24); color: #b7f7d3; }
.ghost-button.compact { flex: none; font-size: 10px; white-space: nowrap; }
.danger-soft { background: linear-gradient(135deg, #fca5a5, #fecaca); color: #4c0519; }

.reveal-overlay {
  position: fixed;
  z-index: 19;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(3, 15, 9, .12), rgba(2, 8, 5, .52));
  transition: opacity .45s ease;
}
.reveal-overlay.is-hidden { opacity: 0; visibility: hidden; }
.reveal-content {
  max-width: 520px;
  margin: 0 18px;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: rgba(4, 16, 10, .66);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: var(--shadow);
}
.reveal-kicker { color: #93f4be; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; }
.reveal-content h2 { margin: 7px 0 9px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.045em; }
.reveal-content p { margin: 0; color: #d6e1db; line-height: 1.55; font-size: 12px; }

.final-actions {
  position: fixed;
  z-index: 16;
  left: 50%;
  bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(4, 14, 9, .82);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  transition: opacity .3s ease, transform .3s ease;
}
.final-actions.is-hidden { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
.action-pill { min-width: 104px; min-height: 44px; padding: 9px 13px; color: #e9f8ef; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.11); font-size: 11px; }
.action-pill.primary { color: #052116; background: #8df0b7; border-color: #a7f3d0; }
.action-pill:hover { transform: translateY(-1px); }

.explore-toolbar {
  position: fixed;
  z-index: 17;
  left: 50%;
  bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px));
  width: min(700px, calc(100vw - 24px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(4, 14, 9, .84);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease;
}
.explore-toolbar.is-hidden { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.explore-status.is-hidden { display: none; }
.explore-status {
  width: fit-content;
  max-width: min(92vw, 420px);
  margin: 0 auto 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(103,232,167,.3);
  background: rgba(5,20,12,.88);
  color: #c9f9dd;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  backdrop-filter: blur(14px);
}

.gesture-hint { color: #c7d6ce; text-align: center; font-size: 9px; line-height: 1.3; }
.mobile-gesture { display: none; }
.camera-controls { display: grid; grid-template-columns: 48px 48px repeat(4,1fr); gap: 6px; }
.camera-controls button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #e7f5ed;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.camera-controls button:hover { background: rgba(255,255,255,.09); border-color: rgba(145,245,190,.24); }
.explore-exit { width: 100%; min-height: 42px; }

.copyright {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(9px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  color: rgba(232, 245, 237, .65);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  font-size: 8.5px;
  letter-spacing: .02em;
}

.sheet-backdrop, .modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 8, 5, .66);
  backdrop-filter: blur(8px);
  transition: opacity .25s ease;
}
.sheet-backdrop.is-hidden, .modal-backdrop.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.bottom-sheet {
  width: min(760px, calc(100vw - 20px));
  max-height: min(86dvh, 860px);
  overflow: auto;
  margin-bottom: max(10px, env(safe-area-inset-bottom));
  padding: 11px 24px 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, rgba(7, 20, 13, .98), rgba(4, 13, 9, .99));
  box-shadow: 0 -20px 70px rgba(0,0,0,.4);
  transform: translateY(0);
  transition: transform .3s ease;
}
.sheet-backdrop.is-hidden .bottom-sheet { transform: translateY(28px); }
.sheet-handle { width: 42px; height: 4px; margin: 2px auto 15px; border-radius: 999px; background: rgba(255,255,255,.22); }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-header h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.035em; }
.close-button {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  color: #e4eee8;
  font-size: 22px;
  line-height: 1;
}
.close-button:hover { background: rgba(255,255,255,.09); }
.selection-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary-chip {
  min-width: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.summary-chip > span:first-child { font-size: 21px; }
.summary-chip div { min-width: 0; }
.summary-chip small { display: block; color: #84968c; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.summary-chip strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.reflection-callout {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid rgba(196,181,253,.16);
  border-radius: 14px;
  background: rgba(124,58,237,.08);
}
.reflection-callout strong { color: #d8b4fe; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.reflection-callout p { margin: 0; color: #cbd5e1; font-size: 10px; line-height: 1.5; }
.reflection-content { margin-top: 18px; display: grid; gap: 12px; color: #dbe7e0; }
.reflection-content > p { margin: 0; font-size: 12px; line-height: 1.65; }
.reflection-content .reflection-intro { font-size: 13px; color: #f0f9f4; }
.reflection-list { display: grid; gap: 8px; }
.reflection-item { padding: 12px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
.reflection-item p { margin: 0; color: #cbd9d1; font-size: 11px; line-height: 1.55; }
.selfcare-card { margin-top: 18px; padding: 15px; border: 1px solid rgba(103,232,167,.2); border-radius: 16px; background: linear-gradient(135deg, rgba(10, 83, 53, .18), rgba(13, 47, 38, .18)); }
.selfcare-card p { margin: 7px 0 0; color: #e1efe7; font-size: 12px; line-height: 1.55; }
.affirmation { margin: 14px 0 0; padding: 14px 16px; border-left: 3px solid #7ee6aa; background: rgba(255,255,255,.035); border-radius: 0 14px 14px 0; color: #d9fbe7; font-size: 12px; line-height: 1.55; font-style: italic; }
.sheet-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.snapshot-frame { position: relative; margin-top: 16px; overflow: hidden; border-radius: 18px; background: #0b1710; border: 1px solid rgba(255,255,255,.12); aspect-ratio: 4 / 5; max-height: 58dvh; }
.snapshot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snapshot-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(2,10,6,.58); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.11); }
.snapshot-caption strong { font-size: 11px; }
.snapshot-caption span { color: #c8d8cf; font-size: 8.5px; }
.share-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.modal-backdrop { align-items: center; padding: 18px; }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 90dvh;
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 20, 13, .98), rgba(4, 13, 9, .99));
  box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 13px; right: 13px; }
.modal-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 17px; background: rgba(103,232,167,.1); border: 1px solid rgba(103,232,167,.18); font-size: 24px; }
.modal-card h2 { margin: 6px 0 10px; max-width: 390px; font-size: 25px; line-height: 1.08; letter-spacing: -.035em; }
.modal-card p, .modal-card li { color: #c9d7cf; font-size: 11px; line-height: 1.6; }
.modal-card ul { margin: 14px 0 20px; padding-left: 20px; }
.modal-card .primary-button { width: 100%; margin-top: 12px; }
.about-copyright { margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); color: #8da196; font-size: 9px; }
.link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.microcopy { color: #8fa198 !important; font-size: 9px !important; }
.compact-modal { width: min(380px, 100%); }
.modal-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.breathing-card { text-align: center; }
.breathing-card .eyebrow { margin-inline: auto; }
.breathing-card h2 { margin-inline: auto; }
.breathing-orb {
  width: 120px;
  height: 120px;
  margin: 24px auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d1fae5, #6ee7b7 30%, #7c3aed 100%);
  box-shadow: 0 0 48px rgba(110,231,183,.2);
  color: #082417;
  font-weight: 900;
  transition: transform 4s ease-in-out, opacity 1s ease;
}
.breathing-orb.phase-inhale { transform: scale(1.35); }
.breathing-orb.phase-hold { transform: scale(1.35); }
.breathing-orb.phase-exhale { transform: scale(.9); }
.breathing-orb.phase-ready { transform: scale(1); }
.breathing-timer { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: .06em; }
.breathing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  padding: 10px 14px;
  border: 1px solid rgba(103,232,167,.28);
  border-radius: 999px;
  background: rgba(5, 20, 12, .94);
  color: #d9fbe7;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  font-size: 10px;
  font-weight: 750;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-hidden { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

.is-hidden { visibility: hidden; }

@media (max-width: 780px) {
  .app-shell.builder-active .garden-canvas {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 56dvh;
  }
  .desktop-label { display: none; }
  .icon-button { width: 42px; padding-inline: 0; }
  .brand-copy small { display: none; }
  .brand { border-radius: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .builder-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
    width: auto;
    height: min(43dvh, 430px);
    padding: 14px;
    gap: 10px;
    border-radius: 24px;
  }
  .builder-panel.is-hidden { transform: translateY(18px); }
  .builder-head h2 { font-size: 18px; margin-top: 3px; }
  .builder-head p { font-size: 9.5px; }
  .builder-head .preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 112px;
    min-height: 34px;
    padding: 7px 9px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
  .progress-wrap { gap: 4px; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .option-card { min-height: 104px; border-radius: 15px; padding: 10px; }
  .option-art { height: 43px; }
  .option-icon { top: 8px; left: 10px; font-size: 22px; }
  .option-check { top: 8px; right: 8px; width: 21px; height: 21px; }
  .option-copy { margin-top: 37px; }
  .option-copy strong { font-size: 10.5px; }
  .option-copy small { margin-top: 3px; font-size: 8.4px; line-height: 1.3; }
  .builder-actions { gap: 7px; }
  .primary-button, .secondary-button { min-height: 42px; font-size: 10.5px; }
  .final-actions { width: calc(100vw - 20px); bottom: max(42px, calc(env(safe-area-inset-bottom) + 34px)); }
  .action-pill { flex: 1; min-width: 0; padding-inline: 8px; }
  .explore-toolbar { bottom: max(38px, calc(env(safe-area-inset-bottom) + 30px)); }
  .desktop-gesture { display: none; }
  .mobile-gesture { display: inline; }
  .camera-controls { grid-template-columns: 44px 44px repeat(2,1fr); }
  .camera-controls button:nth-child(5), .camera-controls button:nth-child(6) { grid-column: span 1; }
  .copyright { bottom: max(7px, env(safe-area-inset-bottom)); font-size: 7.5px; }
  .selection-summary { grid-template-columns: repeat(2, 1fr); }
  .bottom-sheet { width: calc(100vw - 10px); max-height: 88dvh; padding: 9px 16px 18px; border-radius: 24px 24px 16px 16px; }
  .sheet-header h2 { font-size: 22px; }
  .share-actions { grid-template-columns: 1fr; }
  .sheet-actions { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 10px; }
  .brand-copy strong { font-size: 12px; }
  .landing-card { width: calc(100vw - 18px); padding: 22px 18px; border-radius: 26px; }
  .landing-card h1 { font-size: 29px; }
  .landing-card > p { font-size: 12px; }
  .landing-note { align-items: flex-start; text-align: left; }
  .app-shell.builder-active .garden-canvas { height: 52dvh; }
  .builder-panel { height: min(46dvh, 430px); }
  .builder-head .preview-button {
    display: inline-flex;
    max-width: 96px;
    font-size: 9px;
    padding-inline: 7px;
  }
  .reveal-content { padding: 22px 18px; }
  .reveal-content h2 { font-size: 34px; }
  .action-pill { font-size: 9.5px; }
  .selection-summary { gap: 6px; }
  .summary-chip { padding: 8px; }
  .modal-card { padding: 22px 18px; border-radius: 22px; }
}

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