:root {
  --ink: #16221b;
  --ink-soft: #5c685f;
  --ink-faint: #8b948c;
  --paper: #f1ecdf;
  --paper-deep: #e8e1d1;
  --forest: #0b130f;
  --forest-mid: #101c15;
  --forest-soft: #1b2a21;
  --cream: #f3f0e5;
  --cream-soft: rgba(243, 240, 229, .67);
  --cream-faint: rgba(243, 240, 229, .38);
  --line-dark: rgba(22, 34, 27, .14);
  --line-light: rgba(243, 240, 229, .13);
  --green: #3c7559;
  --green-deep: #244c39;
  --mint: #9ed8b7;
  --coral: #e9a47d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Bahnschrift, "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 34px 100px rgba(0, 0, 0, .48), 0 2px 0 rgba(255, 255, 255, .04) inset;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--forest);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 22px clamp(18px, 3vw, 48px) 4px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 82% 8%, rgba(69, 116, 80, .18), transparent 38%),
    radial-gradient(ellipse at 6% 92%, rgba(159, 104, 69, .09), transparent 35%),
    linear-gradient(145deg, #080d0a 0%, #0d1510 47%, #09100c 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  width: 42vw;
  height: 42vw;
  left: -22vw;
  top: -26vw;
  border-radius: 50%;
  background: rgba(114, 150, 117, .07);
  filter: blur(80px);
  pointer-events: none;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--paper); background: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header,
.site-footer,
.app-shell {
  width: min(100%, 1560px);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: relative;
  z-index: 3;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--mint);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-word {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1;
  color: var(--cream);
}

.brand-slash {
  font-size: 14px;
  font-weight: 300;
  color: var(--cream-faint);
}

.brand-sub {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--cream-soft);
  letter-spacing: .01em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.date-label {
  margin-right: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.quiet-button,
.icon-button {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .025);
  color: var(--cream-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.quiet-button:hover,
.icon-button:hover {
  border-color: rgba(243, 240, 229, .28);
  color: var(--cream);
  background: rgba(255, 255, 255, .055);
}

.quiet-button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(158, 216, 183, .13);
  color: var(--mint);
  font-size: 9px;
  letter-spacing: .02em;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button svg { width: 17px; height: 17px; }
.icon-button .sound-off { display: none; }
.icon-button.is-muted .sound-on { display: none; }
.icon-button.is-muted .sound-off { display: block; }

.app-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  height: clamp(700px, calc(100svh - 142px), 940px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(470px, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(243, 240, 229, .16);
  border-radius: 30px;
  background: var(--forest-mid);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.focus-pane {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.2vw, 50px) clamp(30px, 3.4vw, 54px) clamp(25px, 2.7vw, 38px);
  overflow: hidden auto;
  scrollbar-width: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 255, 255, .8), transparent 33%),
    radial-gradient(circle at 93% 101%, rgba(125, 103, 70, .1), transparent 36%),
    linear-gradient(138deg, #f5f0e5 0%, var(--paper) 52%, #eae3d3 100%);
}

.focus-pane::-webkit-scrollbar { display: none; }

.focus-pane::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 15px;
  width: 1px;
  background: linear-gradient(transparent, rgba(22, 34, 27, .09) 12%, rgba(22, 34, 27, .09) 88%, transparent);
  pointer-events: none;
}

.intro { position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--ink-faint); }
.eyebrow.light { color: rgba(243, 240, 229, .46); }

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(60, 117, 89, .09);
  transition: background .25s ease, box-shadow .25s ease;
}

.status-dot.is-running {
  background: #3e8d62;
  box-shadow: 0 0 0 4px rgba(62, 141, 98, .12);
  animation: breathe 2.4s ease-in-out infinite;
}

.status-dot.is-paused { background: #b17d4f; box-shadow: 0 0 0 4px rgba(177, 125, 79, .11); }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.78); opacity: .62; }
}

.intro h1 {
  margin: 21px 0 14px;
  font-family: var(--serif);
  font-size: clamp(48px, 4.35vw, 67px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--ink);
}

.intro h1 em {
  color: var(--green-deep);
  font-weight: 400;
  letter-spacing: -.038em;
}

.lede {
  max-width: 370px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.48;
  letter-spacing: .002em;
}

.intention-block { margin-top: clamp(20px, 2.7vh, 30px); }

.field-label {
  display: block;
  margin-bottom: 0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.intention-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color .2s ease;
}

.intention-wrap:focus-within { border-bottom-color: var(--green); }

#intentionInput {
  width: 100%;
  min-width: 0;
  padding: 10px 62px 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 19px);
  font-style: italic;
  line-height: 1.4;
}

#intentionInput::placeholder { color: #959a90; opacity: 1; }
#intentionInput:read-only { color: #43584b; cursor: default; }

.character-count {
  position: absolute;
  right: 0;
  bottom: 14px;
  font-size: 8px;
  letter-spacing: .08em;
  color: #a1a69e;
  transition: opacity .2s ease;
}

.timer-zone {
  flex: 1;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vh, 13px);
  padding: clamp(8px, 1.4vh, 16px) 0 4px;
}

.timer-orbit {
  position: relative;
  width: clamp(216px, 18.8vw, 272px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.timer-orbit::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 67%);
  box-shadow: 0 25px 55px rgba(38, 63, 46, .08);
}

.timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-halo {
  fill: none;
  stroke: rgba(67, 103, 81, .06);
  stroke-width: 34;
}

.ring-track {
  fill: none;
  stroke: rgba(39, 63, 49, .12);
  stroke-width: 1.25;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 697.434;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 124px 124px;
  transform-box: view-box;
  filter: drop-shadow(0 2px 4px rgba(43, 93, 68, .2));
  transition: stroke-dashoffset .18s linear;
}

.ring-pin {
  fill: var(--green-deep);
  stroke: var(--paper);
  stroke-width: 1.5;
  transform-box: view-box;
  transform-origin: 124px 124px;
  transition: transform .2s linear;
  filter: drop-shadow(0 1px 2px rgba(20, 44, 31, .28));
}

.timer-readout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer-label {
  margin-bottom: 7px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #758078;
}

.timer-time {
  font-family: var(--serif);
  font-size: clamp(58px, 5.5vw, 78px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.055em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timer-hint {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: #92998f;
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.primary-button {
  min-width: clamp(176px, 16vw, 216px);
  height: 46px;
  padding: 0 9px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 9px 24px rgba(21, 45, 31, .16);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #20392b;
  box-shadow: 0 12px 28px rgba(21, 45, 31, .22);
}

.primary-button:active { transform: translateY(0); }

.button-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(243, 240, 229, .1);
}

.button-icon svg { width: 16px; height: 16px; }
.button-icon .icon-pause { display: none; }
.primary-button[data-state="running"] .icon-play { display: none; }
.primary-button[data-state="running"] .icon-pause { display: block; }
.primary-button[data-state="paused"] .icon-play { display: block; }

.reset-button {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: #68746b;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.reset-button:hover { color: var(--ink); border-color: rgba(22, 34, 27, .28); background: rgba(255, 255, 255, .22); }
.reset-button svg { width: 17px; height: 17px; }

.lower-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(18px, 2.3vh, 26px);
  border-top: 1px solid rgba(22, 34, 27, .11);
}

.presets {
  display: flex;
  align-items: center;
  gap: 5px;
}

.preset-label {
  margin-right: 7px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8d958d;
}

.preset {
  width: 31px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #747e75;
  font-family: var(--serif);
  font-size: 12px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.preset:hover:not(:disabled) { color: var(--ink); background: rgba(255, 255, 255, .3); }
.preset.is-active { color: var(--paper); background: var(--ink); }
.preset:disabled { opacity: .45; }
.preset-unit { margin-left: 2px; font-size: 8px; color: #9da49c; letter-spacing: .06em; }

.mini-stats {
  display: flex;
  align-items: flex-end;
  gap: clamp(15px, 1.8vw, 25px);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.mini-stat strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mini-stat span {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #939a93;
}

.garden-pane {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 72% 28%, rgba(88, 130, 95, .14), transparent 42%),
    linear-gradient(158deg, #111e17 0%, #0d1711 47%, #0a120d 100%);
}

.garden-pane::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 17%;
  width: 48%;
  height: 50%;
  border-radius: 50%;
  background: rgba(129, 169, 125, .045);
  filter: blur(65px);
  pointer-events: none;
}

.garden-pane::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  background: linear-gradient(to top, rgba(9, 17, 12, .92), rgba(9, 17, 12, .45) 52%, transparent);
  pointer-events: none;
}

#gardenCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.garden-glow {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: 9%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: .5;
  background: radial-gradient(circle, rgba(220, 226, 198, .08), transparent 68%);
  pointer-events: none;
}

.garden-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(30px, 3.2vw, 46px) clamp(28px, 3.3vw, 48px) 0;
  pointer-events: none;
}

.garden-head h2 {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--cream);
}

.bloom-counter {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-top: 3px;
}

.bloom-counter strong {
  font-family: var(--serif);
  font-size: clamp(34px, 3.1vw, 46px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.bloom-counter span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(243, 240, 229, .4);
}

.garden-stage {
  position: relative;
  z-index: 4;
  flex: 1;
  min-height: 0;
}

.preview-note {
  position: absolute;
  top: 18px;
  left: clamp(28px, 3.3vw, 48px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(243, 240, 229, .1);
  border-radius: 999px;
  background: rgba(14, 26, 19, .4);
  color: rgba(243, 240, 229, .47);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  transition: opacity .4s ease, transform .4s ease;
}

.preview-note.is-hidden { opacity: 0; transform: translateY(-4px); pointer-events: none; }

.preview-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(233, 164, 125, .1);
}

.garden-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: max-content;
  max-width: 215px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 240, 229, .14);
  border-radius: 10px;
  background: rgba(14, 25, 18, .9);
  box-shadow: 0 9px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(.96);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.garden-tooltip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 12px)) scale(1); }
.garden-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(243, 240, 229, .14);
  border-bottom: 1px solid rgba(243, 240, 229, .14);
  background: rgba(14, 25, 18, .9);
  transform: translateX(-50%) rotate(45deg);
}

.tooltip-intention {
  display: block;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tooltip-meta {
  display: block;
  margin-top: 4px;
  color: rgba(243, 240, 229, .43);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.garden-foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(28px, 3.3vw, 48px) clamp(22px, 2.5vw, 34px);
}

.garden-foot p {
  max-width: 360px;
  margin: 0;
  color: rgba(243, 240, 229, .48);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
}

.garden-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 229, .23);
  background: transparent;
  color: rgba(243, 240, 229, .74);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}

.garden-link:hover { color: var(--cream); border-color: rgba(243, 240, 229, .6); }
.garden-link svg { width: 15px; height: 15px; }

.garden-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.garden-actions .garden-link { white-space: nowrap; }
.garden-link[hidden] { display: none; }

.site-footer {
  position: relative;
  z-index: 3;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  color: rgba(243, 240, 229, .27);
  font-size: 8px;
  font-weight: 550;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.site-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(158, 216, 183, .55); }

.elsewhere-door {
  margin-left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(243, 240, 229, .17);
  color: rgba(243, 240, 229, .5);
  transition: color .2s ease, border-color .2s ease;
}

.elsewhere-door:hover { color: var(--cream); border-color: rgba(243, 240, 229, .5); }
.elsewhere-door svg { width: 11px; height: 11px; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 28px;
  min-width: 230px;
  max-width: calc(100vw - 40px);
  padding: 13px 18px 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(243, 240, 229, .14);
  border-radius: 999px;
  background: rgba(16, 28, 20, .94);
  color: var(--cream-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: .01em;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast-mark { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(158, 216, 183, .1); }
.toast-mark::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

.modal {
  width: min(740px, calc(100vw - 32px));
  max-height: min(780px, calc(100svh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 34, 27, .14);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .5);
}

.modal::backdrop {
  background: rgba(5, 10, 7, .68);
  backdrop-filter: blur(8px);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in .24s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 18px;
}

.modal-head h2 {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}

.modal-close:hover { color: var(--ink); background: rgba(22, 34, 27, .06); }
.modal-close svg { width: 16px; height: 16px; }

.journal-summary {
  margin: 0 30px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(22, 34, 27, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .25);
}

.journal-summary > div { display: flex; flex-direction: column; gap: 3px; }
.journal-summary > div + div { padding-left: 20px; border-left: 1px solid rgba(22, 34, 27, .09); }
.journal-summary strong { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.journal-summary span { font-size: 8px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }

.journal-scroll {
  flex: 1;
  min-height: 210px;
  margin-top: 8px;
  overflow: auto;
  padding: 8px 30px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 34, 27, .22) transparent;
}

.journal-list { margin: 0; padding: 0; list-style: none; }

.journal-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(22, 34, 27, .09);
}

.journal-index {
  font-family: var(--serif);
  font-size: 11px;
  color: #a2a79e;
  font-variant-numeric: tabular-nums;
}

.journal-copy { min-width: 0; }
.journal-intention {
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-date {
  display: block;
  color: #8d968e;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.journal-duration {
  min-width: 52px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  text-align: right;
}

.journal-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a5aaa2;
  font-size: 16px;
  line-height: 1;
  transition: color .2s ease, background .2s ease;
}

.journal-delete:hover { color: #914e42; background: rgba(145, 78, 66, .08); }

.journal-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.empty-flower { margin-bottom: 13px; color: #849586; font-size: 32px; }
.journal-empty h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.journal-empty p { max-width: 280px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 12.5px; line-height: 1.45; }
.journal-empty[hidden], .journal-list[hidden] { display: none; }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 30px 22px;
  border-top: 1px solid rgba(22, 34, 27, .08);
}

.modal-tools { display: flex; align-items: center; gap: 6px; }

.tool-button {
  padding: 7px 10px;
  border: 1px solid rgba(22, 34, 27, .12);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tool-button:hover:not(:disabled) { color: var(--ink); border-color: rgba(22, 34, 27, .25); background: rgba(255, 255, 255, .25); }
.tool-button:disabled { opacity: .35; }

.poster-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: min(940px, calc(100svh - 32px));
}

.poster-preview-wrap {
  flex: 1;
  min-height: 0;
  margin: 0 30px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  border: 1px solid rgba(243, 240, 229, .1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 25%, rgba(87, 132, 96, .14), transparent 48%),
    #0c1510;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 240, 229, .24) transparent;
}

#posterPreview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 62svh;
  border-radius: 3px;
  background: #f2ede1;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
}

.poster-modal-foot { margin-top: 16px; }

.poster-meta {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.poster-download {
  min-height: 39px;
  padding: 0 15px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.poster-download:hover { background: #20392b; transform: translateY(-1px); }
.poster-download svg { width: 16px; height: 16px; }

.danger-link {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #9c7769;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.danger-link:hover:not(:disabled) { color: #7e4438; }
.danger-link:disabled { opacity: .35; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: minmax(430px, .94fr) minmax(0, 1.06fr); }
  .focus-pane { padding-left: 34px; padding-right: 34px; }
  .intro h1 { font-size: clamp(47px, 5.1vw, 59px); }
  .mini-stats { gap: 14px; }
  .preset-label { display: none; }
  .garden-head { padding-left: 32px; padding-right: 32px; }
  .garden-foot { padding-left: 32px; padding-right: 32px; }
  .brand-sub, .brand-slash { display: none; }
}

@media (max-width: 900px) {
  body { padding: 16px; }
  .app-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
    border-radius: 24px;
  }
  .focus-pane { padding: 34px 30px 28px; overflow: visible; }
  .focus-pane::after { display: none; }
  .timer-zone { min-height: 300px; }
  .intro h1 { font-size: clamp(50px, 10vw, 67px); }
  .garden-pane { min-height: 570px; }
  .garden-head h2 { font-size: 36px; }
  .garden-foot { padding-bottom: 28px; }
  .date-label { display: none; }
}

@media (max-width: 610px) {
  body { padding: 12px; }
  .site-header { min-height: 46px; margin-bottom: 12px; }
  .brand-word { font-size: 12px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-sub { display: none; }
  .quiet-button { padding: 0 10px; }
  .quiet-button .count-badge { display: none; }
  .app-shell { border-radius: 20px; }
  .focus-pane { padding: 28px 22px 23px; }
  .intro h1 { margin-top: 18px; font-size: clamp(43px, 13.2vw, 58px); }
  .lede { max-width: 330px; font-size: 13.5px; }
  .intention-block { margin-top: 22px; }
  .timer-zone { min-height: 275px; padding-top: 9px; }
  .timer-orbit { width: min(235px, 68vw); }
  .timer-time { font-size: clamp(54px, 19vw, 72px); }
  .lower-row { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 18px; }
  .presets { justify-content: space-between; }
  .preset { width: 37px; height: 30px; }
  .preset-label { display: inline; }
  .mini-stats { justify-content: space-between; }
  .mini-stat { align-items: flex-start; }
  .garden-pane { min-height: 520px; }
  .garden-head { padding: 28px 22px 0; }
  .garden-head h2 { margin-top: 10px; font-size: 30px; }
  .bloom-counter strong { font-size: 34px; }
  .preview-note { left: 22px; top: 14px; }
  .garden-foot { align-items: flex-end; padding: 20px 22px 23px; }
  .garden-foot p { max-width: 225px; font-size: 11px; }
  .garden-link { font-size: 7.5px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 12px; line-height: 1.4; }
  .toast { bottom: 16px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100svh - 20px); border-radius: 20px; }
  .modal-head { padding: 22px 20px 15px; }
  .modal-head h2 { font-size: 30px; }
  .journal-summary { margin: 0 20px; padding: 13px 14px; }
  .journal-summary > div + div { padding-left: 12px; }
  .journal-scroll { padding: 8px 20px 0; }
  .modal-foot { padding: 15px 20px 18px; }
  .journal-item { grid-template-columns: 21px minmax(0, 1fr) auto 22px; gap: 8px; }
  .journal-duration { font-size: 12px; min-width: 42px; }
}

@media (max-height: 895px) and (min-width: 901px) {
  body { padding-top: 13px; padding-bottom: 10px; }
  .site-header { min-height: 44px; margin-bottom: 10px; }
  .app-shell { height: calc(100svh - 101px); min-height: 610px; }
  .focus-pane { padding-top: 25px; padding-bottom: 21px; }
  .intro h1 { margin-top: 15px; margin-bottom: 9px; font-size: clamp(42px, 3.95vw, 56px); }
  .intention-block { margin-top: 15px; }
  .timer-zone { min-height: 245px; }
  .timer-orbit { width: min(212px, 17vw); }
  .timer-time { font-size: clamp(50px, 4.7vw, 67px); }
  .lower-row { padding-top: 14px; }
  .garden-head { padding-top: 25px; }
  .garden-head h2 { margin-top: 9px; font-size: 33px; }
  .garden-foot { padding-top: 14px; padding-bottom: 18px; }
  .site-footer { min-height: 22px; padding-top: 6px; }
}

@media (max-width: 610px) {
  .garden-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .garden-foot p { max-width: none; }
  .garden-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .poster-modal { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
  .poster-preview-wrap { margin: 0 16px; padding: 10px; border-radius: 12px; }
  #posterPreview { max-height: 54svh; }
  .poster-modal-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 20px 18px;
  }
  .poster-meta { max-width: none; }
  .poster-download { justify-content: center; }
}

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