:root {
  color-scheme: light;
  --ink: #173f35;
  --ink-2: #29564a;
  --paper: #f4f0e5;
  --paper-deep: #e5dfcf;
  --canvas: #f8f4e8;
  --coral: #ff6b58;
  --yellow: #ffcb45;
  --mint: #acd4bd;
  --line: rgba(23, 63, 53, .22);
  --line-strong: rgba(23, 63, 53, .55);
  --shadow: 0 22px 60px rgba(27, 48, 38, .14);
  --radius: 6px;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 8% 17%, rgba(255, 255, 255, .68) 0 1px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(115deg, rgba(173, 147, 93, .045), transparent 35% 67%, rgba(23, 63, 53, .035)),
    var(--paper);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
input[type="range"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .34;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.masthead {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(380px, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 12px clamp(18px, 3vw, 48px);
  background: rgba(244, 240, 229, .88);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(10deg);
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--coral);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 5px;
  height: 12px;
  background: var(--ink);
  border-radius: 50% 50% 45% 45%;
  transform-origin: 50% 20px;
}

.brand-mark i:nth-child(1) { transform: translateY(-7px); }
.brand-mark i:nth-child(2) { transform: translateY(-7px) rotate(90deg); }
.brand-mark i:nth-child(3) { transform: translateY(-7px) rotate(180deg); }
.brand-mark i:nth-child(4) { transform: translateY(-7px) rotate(270deg); }

.masthead-note {
  display: flex;
  gap: 20px;
  align-items: center;
  color: rgba(23, 63, 53, .62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.masthead-note span:first-child::before {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 9px 3px 0;
  content: "";
  background: currentColor;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}

.action-button:not(:disabled):hover {
  background: rgba(23, 63, 53, .07);
  border-color: var(--line);
  transform: translateY(-1px);
}

.action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.action-button--ink {
  min-width: 104px;
  color: var(--paper);
  background: var(--ink);
}

.action-button--ink:not(:disabled):hover {
  color: #fff;
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.play-icon {
  display: none;
}

.is-paused .pause-icon {
  display: none;
}

.is-paused .play-icon {
  display: block;
}

.studio-layout {
  display: grid;
  grid-template-areas: "art controls";
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - 82px);
}

.artboard-panel {
  grid-area: art;
  min-width: 0;
  padding: clamp(22px, 3vw, 46px) clamp(18px, 3.8vw, 62px) 24px;
}

.control-panel {
  grid-area: controls;
  padding: 28px 24px 30px;
  background: rgba(250, 247, 238, .7);
  border-left: 1px solid var(--line-strong);
}

.artboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.artboard-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.rename-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 6px;
  color: rgba(23, 63, 53, .55);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.rename-button:hover {
  color: var(--coral);
  background: rgba(255, 107, 88, .1);
}

.rename-button svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.field-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px 22px;
}

.field-counter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.field-counter strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.field-counter span {
  color: rgba(23, 63, 53, .58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field-counter--age strong {
  font-size: 18px;
  opacity: .88;
}

.canvas-frame.is-wild .status-dot {
  background: #41b3a3;
  box-shadow: 0 0 0 3px rgba(65, 179, 163, .2);
  animation: wild-pulse 1.8s ease-in-out infinite;
}

@keyframes wild-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .75; }
}

.tool-switcher {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 -1px 14px;
}

.tool-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 138px;
  min-height: 49px;
  padding: 7px 14px;
  color: rgba(23, 63, 53, .66);
  background: rgba(224, 218, 200, .72);
  border: 1px solid var(--line-strong);
  border-bottom-color: var(--ink);
  border-radius: 5px 5px 0 0;
}

.tool-button + .tool-button {
  margin-left: -1px;
}

.tool-button.is-active {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--ink);
  border-bottom-color: var(--canvas);
}

.tool-symbol {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.tool-button strong,
.tool-button small {
  display: block;
  text-align: left;
}

.tool-button strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.tool-button small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.canvas-frame {
  position: relative;
  height: clamp(430px, 61vh, 720px);
  min-height: 430px;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.canvas-frame::before,
.canvas-frame::after {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  pointer-events: none;
  content: "";
}

.canvas-frame::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid rgba(23, 63, 53, .35);
  border-left: 1px solid rgba(23, 63, 53, .35);
}

.canvas-frame::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid rgba(23, 63, 53, .35);
  border-bottom: 1px solid rgba(23, 63, 53, .35);
}

#gardenCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.is-breeze #gardenCanvas {
  cursor: grab;
}

.is-breeze.is-dragging #gardenCanvas {
  cursor: grabbing;
}

#gardenCanvas:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -5px;
}

.canvas-label {
  position: absolute;
  z-index: 4;
  top: 15px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(248, 244, 232, .78);
  border: 1px solid rgba(23, 63, 53, .22);
  border-radius: 2px;
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 107, 88, .15);
}

.wind-readout {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(23, 63, 53, .68);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  pointer-events: none;
}

.wind-glyph {
  display: inline-block;
  color: var(--coral);
  font-size: 17px;
  line-height: 1;
  transform-origin: center;
}

.canvas-hint {
  position: absolute;
  z-index: 4;
  bottom: 13px;
  left: 50%;
  max-width: calc(100% - 60px);
  margin: 0;
  padding: 7px 11px;
  color: rgba(23, 63, 53, .72);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  background: rgba(248, 244, 232, .76);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .3s;
}

.canvas-frame.has-plants .canvas-hint {
  opacity: 0;
}

.keyboard-cursor {
  position: absolute;
  z-index: 5;
  top: 65%;
  left: 50%;
  display: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 88, .14);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.keyboard-cursor::before,
.keyboard-cursor::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.keyboard-cursor::before { width: 6px; height: 1px; }
.keyboard-cursor::after { width: 1px; height: 6px; }

.canvas-frame.keyboard-active .keyboard-cursor {
  display: block;
}

.artboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 15px;
  padding: 8px 2px 0;
  color: rgba(23, 63, 53, .62);
  font-size: 9px;
}

.artboard-footer p {
  margin: 0;
}

kbd {
  min-width: 19px;
  padding: 2px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .88em;
  font-weight: 750;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(23, 63, 53, .1);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: none;
  border: 0;
}

.text-button:hover {
  color: var(--coral);
}

.text-button span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-family: var(--serif);
  font-size: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.panel-intro {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 26px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line-strong);
}

.panel-intro p {
  margin: 0;
  color: rgba(23, 63, 53, .75);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.47;
}

.edition-stamp {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  line-height: .9;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-7deg);
}

.control-section {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading > span {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.species-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 65px;
  padding: 5px 2px;
  color: rgba(23, 63, 53, .73);
  background: rgba(255, 255, 255, .22);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color .16s, background .16s, transform .16s;
}

.species-button:hover {
  z-index: 2;
  color: var(--coral);
  background: rgba(255, 255, 255, .62);
}

.species-button.is-selected {
  z-index: 1;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.species-button.is-selected::after {
  position: absolute;
  top: 4px;
  right: 5px;
  content: "•";
  color: var(--coral);
  font-size: 15px;
}

.species-button > span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.species-icon {
  display: block;
  height: 28px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 28px;
}

.species-icon--poppy { color: var(--coral); font-size: 19px; }
.is-selected .species-icon--poppy { color: var(--ink); }
.species-icon--fern { font-size: 34px; transform: rotate(22deg); }
.species-icon--lupine { font-size: 24px; letter-spacing: -3px; }
.species-icon--dandelion { font-size: 24px; }
.species-icon--monstera { font-size: 23px; transform: rotate(-13deg); }
.species-icon--mushroom { font-size: 32px; }
.species-icon--cactus { font-size: 24px; letter-spacing: 2px; color: #41b3a3; }
.is-selected .species-icon--cactus { color: var(--ink); }
.species-icon--sunflower { font-size: 22px; color: #e79d24; }
.is-selected .species-icon--sunflower { color: var(--ink); }
.species-icon--willow { font-size: 26px; transform: rotate(12deg); }
.species-icon--bamboo { font-size: 28px; letter-spacing: 1px; }
.species-icon--pine { font-size: 20px; }
.species-icon--succulent { font-size: 22px; color: #52b788; }
.is-selected .species-icon--succulent { color: var(--ink); }
.species-icon--grass { font-size: 24px; letter-spacing: -2px; }
.species-icon--rose { font-size: 22px; color: #c8502d; }
.is-selected .species-icon--rose { color: var(--ink); }
.species-button--surprise .species-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin: 2px 0 3px;
  font-size: 14px;
  line-height: 1;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.palette-list {
  display: grid;
  gap: 5px;
}

.palette-button {
  display: grid;
  grid-template-columns: repeat(3, 15px) 1fr;
  align-items: center;
  min-height: 34px;
  padding: 4px 7px;
  color: rgba(23, 63, 53, .68);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: border-color .16s, background .16s;
}

.palette-button:hover {
  background: rgba(255, 255, 255, .42);
  border-color: var(--line);
}

.palette-button.is-selected {
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  border-color: var(--ink);
}

.palette-button i {
  display: block;
  width: 15px;
  height: 15px;
  background: var(--swatch);
  border: 1px solid rgba(23, 63, 53, .25);
  border-radius: 50%;
}

.palette-button i + i {
  margin-left: -3px;
}

.palette-button span {
  padding-left: 9px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sliders {
  padding-top: 2px;
}

.range-control {
  display: block;
  margin-top: 15px;
}

.range-control > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}

.range-control b {
  font-size: 9px;
  font-weight: 700;
}

.range-control output {
  color: rgba(23, 63, 53, .7);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

input[type="range"] {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--coral) 0 var(--range-fill, 40%), rgba(23, 63, 53, .22) var(--range-fill, 40%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(23, 63, 53, .22);
}

input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--coral);
}

input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -6px;
  appearance: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 63, 53, .2);
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.toggle-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.toggle-control b {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}

.toggle-control small {
  display: block;
  margin-top: 3px;
  color: rgba(23, 63, 53, .58);
  font-size: 10px;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.35;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toggle-ui {
  position: relative;
  width: 38px;
  height: 22px;
  background: rgba(23, 63, 53, .14);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background .18s, border-color .18s;
}

.toggle-ui::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform .18s;
}

.toggle-control input:checked + .toggle-ui {
  background: rgba(65, 179, 163, .35);
  border-color: var(--ink);
}

.toggle-control input:checked + .toggle-ui::after {
  transform: translateX(16px);
}

.toggle-control input:focus-visible + .toggle-ui {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.autosave-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 33px;
  padding-top: 16px;
  color: rgba(23, 63, 53, .68);
  border-top: 1px dashed var(--line-strong);
}

.autosave-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--ink);
  font-size: 12px;
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.autosave-note strong,
.autosave-note small {
  display: block;
}

.autosave-note strong {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

.autosave-note small {
  margin-top: 2px;
  font-size: 8px;
}

.garden-dialog {
  width: min(590px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 63, 53, .06) 0 1px, transparent 1px) 0 0 / 10px 10px,
    var(--paper);
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow: 0 28px 80px rgba(11, 36, 29, .4);
}

.garden-dialog::backdrop {
  background: rgba(15, 48, 39, .62);
  backdrop-filter: blur(6px);
}

.garden-dialog[open] {
  animation: dialog-in .32s cubic-bezier(.2, .8, .2, 1);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-dialog {
  display: none;
  grid-template-columns: .8fr 1.2fr;
  width: min(720px, calc(100vw - 28px));
  overflow: hidden;
}

.welcome-dialog[open] {
  display: grid;
}

.dialog-illustration {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0 71%, rgba(23, 63, 53, .14) 71% 71.4%, transparent 71.4%),
    #c9dccd;
  border-right: 1px solid var(--ink);
}

.dialog-illustration::after {
  position: absolute;
  right: -30%;
  bottom: -18%;
  width: 160%;
  height: 43%;
  content: "";
  background: var(--ink);
  border-radius: 50% 50% 0 0;
  transform: rotate(-7deg);
}

.welcome-sun {
  position: absolute;
  top: 41px;
  right: 39px;
  width: 58px;
  height: 58px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 203, 69, .18);
}

.welcome-stem {
  position: absolute;
  z-index: 2;
  bottom: 18%;
  display: block;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 78px;
  line-height: 1;
  transform-origin: 50% 100%;
}

.welcome-stem::after {
  position: absolute;
  top: 67px;
  left: 50%;
  width: 2px;
  height: 150px;
  content: "";
  background: currentColor;
}

.welcome-stem--one { left: 16%; transform: rotate(-8deg); }
.welcome-stem--two { right: 12%; bottom: 22%; color: var(--yellow); font-size: 65px; transform: rotate(7deg); }
.welcome-stem--three { left: 44%; bottom: 14%; color: #efe9da; font-size: 57px; transform: rotate(3deg); }

.dialog-copy {
  padding: 48px 43px 42px;
}

.dialog-copy h2,
.help-dialog h2,
.confirm-dialog h2,
.rename-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 53px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .95;
}

.dialog-copy > p:not(.eyebrow) {
  margin: 19px 0 24px;
  color: rgba(23, 63, 53, .75);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.welcome-tips {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
  padding: 17px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.welcome-tips li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  color: rgba(23, 63, 53, .78);
  font-size: 11px;
}

.welcome-tips span {
  color: var(--coral);
  font-size: 8px;
  font-weight: 850;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 43px;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper);
  background: var(--ink);
}

.primary-button:hover {
  background: var(--ink-2);
}

.secondary-button {
  background: transparent;
}

.secondary-button:hover {
  background: rgba(23, 63, 53, .07);
}

.danger-button {
  color: #fff;
  background: #c54336;
  border-color: #8c2921;
}

.danger-button:hover {
  background: #ab3328;
}

.help-dialog {
  padding: 38px 40px 34px;
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.dialog-close:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 29px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guide-grid > div {
  position: relative;
  min-height: 148px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-grid > div > span {
  position: absolute;
  top: 14px;
  right: 15px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 25px;
}

.guide-grid h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.guide-grid p,
.keyboard-guide p {
  margin: 0;
  color: rgba(23, 63, 53, .72);
  font-size: 10px;
  line-height: 1.5;
}

.keyboard-guide {
  margin-top: 18px;
  padding: 15px 17px;
  background: rgba(255, 203, 69, .2);
  border: 1px dashed var(--line-strong);
}

.keyboard-guide strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 13px;
}

.confirm-dialog,
.rename-dialog {
  width: min(430px, calc(100vw - 28px));
  padding: 37px 36px 32px;
  text-align: center;
}

.confirm-dialog h2,
.rename-dialog h2 {
  font-size: 34px;
}

.confirm-dialog p {
  margin: 14px auto 24px;
  color: rgba(23, 63, 53, .72);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

.warning-flower {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 19px;
  color: #c54336;
  font-family: var(--serif);
  font-size: 35px;
  background: rgba(197, 67, 54, .1);
  border: 1px solid #c54336;
  border-radius: 50%;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rename-dialog form {
  display: grid;
  text-align: left;
}

.rename-dialog h2 {
  margin-bottom: 23px;
  text-align: left;
}

.rename-dialog label {
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rename-dialog input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 23px;
  padding: 8px 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.rename-dialog .dialog-actions {
  justify-content: flex-end;
}

.toast {
  position: fixed;
  z-index: 1000;
  bottom: 24px;
  left: 50%;
  max-width: min(440px, calc(100vw - 30px));
  padding: 11px 16px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(23, 63, 53, .28);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity .23s, transform .23s;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead-note {
    display: none;
  }

  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .control-panel {
    padding-inline: 18px;
  }

  .artboard-panel {
    padding-inline: 25px;
  }

  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .masthead {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small,
  .top-actions .action-button span {
    display: none;
  }

  .top-actions {
    gap: 1px;
  }

  .action-button,
  .action-button--ink {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .studio-layout {
    grid-template-areas: "art" "controls";
    grid-template-columns: 1fr;
  }

  .artboard-panel {
    padding: 24px 14px 12px;
  }

  .canvas-frame {
    height: min(67vh, 640px);
    min-height: 430px;
  }

  .control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
    padding: 28px clamp(18px, 4vw, 36px) 38px;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .panel-intro,
  .autosave-note {
    grid-column: 1 / -1;
  }

  .panel-intro {
    margin-bottom: 0;
  }

  .control-section {
    margin-bottom: 0;
  }

  .species-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .autosave-note {
    margin-top: 0;
  }
}

@media (max-width: 590px) {
  .brand small {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 16px;
  }

  .masthead {
    padding-inline: 10px;
  }

  .artboard-heading {
    align-items: center;
  }

  .artboard-heading h1 {
    font-size: 28px;
  }

  .field-counter span {
    display: none;
  }

  .tool-switcher {
    width: calc(100% - 20px);
    margin-left: 10px;
  }

  .tool-button {
    flex: 1;
    min-width: 0;
  }

  .canvas-frame {
    height: calc(100svh - 245px);
    min-height: 390px;
  }

  .canvas-label {
    left: 11px;
  }

  .wind-readout {
    right: 12px;
  }

  .artboard-footer p {
    display: none;
  }

  .artboard-footer {
    justify-content: flex-end;
  }

  .control-panel {
    display: block;
  }

  .control-section {
    margin-bottom: 29px;
  }

  .species-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .welcome-dialog[open] {
    display: block;
  }

  .dialog-illustration {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .welcome-stem {
    bottom: -5%;
    font-size: 52px;
  }

  .welcome-stem::after {
    top: 45px;
    height: 60px;
  }

  .welcome-stem--two { bottom: 2%; font-size: 45px; }
  .welcome-stem--three { bottom: -8%; font-size: 42px; }
  .welcome-sun { top: 22px; width: 42px; height: 42px; }

  .dialog-copy {
    padding: 28px 25px 27px;
  }

  .dialog-copy h2 {
    font-size: 39px;
  }

  .help-dialog {
    padding: 32px 22px 27px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid > div {
    min-height: auto;
  }

  .confirm-dialog,
  .rename-dialog {
    padding-inline: 23px;
  }
}

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