/* ══════════════ the FIDA PLANT garden: THE GARDEN LAB (js/plant-garden.js, js/garden/) ══════════════
   A photographic scene — the gene lab and the research glasshouse on a studio floor — and over it as little
   interface as will do: the genome strip (bottom left), the camera views (bottom right), a specimen card when
   something is chosen (right), a tooltip, and a line saying what just happened. On a phone the title sits above
   the scene, the strip is a bottom sheet and the card an overlay. */

.plant-garden {
  margin: clamp(56px, 8vw, 104px) 0 0;
  --gd-glass: rgba(255, 255, 255, .58);
  --gd-glass-strong: rgba(255, 255, 255, .78);
  --gd-line: rgba(255, 255, 255, .75);
  --gd-hair: rgba(23, 32, 42, .08);
  --gd-ink: var(--fw-ink, #17202a);
  --gd-muted: var(--fw-muted, #576574);
  --gd-teal: var(--fw-s10, #28717e);
  --gd-side: 336px;                     /* (desktop overrides it below) */
}
/* its place is held until it is built, so building it never moves the page */
.plant-garden:empty { min-height: calc(clamp(600px, 82vh, 840px) + 220px); }
.gd-head { margin-bottom: clamp(20px, 2.6vw, 32px); max-width: 760px; }
.gd-kicker { margin: 0 0 10px; font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.gd-title { margin: 0; font-size: var(--fs-h2); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; color: var(--navy-deep); }
.gd-lead { margin: 12px 0 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: 64ch; }

.gd-frame {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(600px, 82vh, 840px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f6f0e6 0%, #eff0ea 42%, #e1ebe8 72%, #d4e3e1 100%);
  box-shadow: 0 40px 90px -40px rgba(15, 40, 51, .28), 0 0 0 1px rgba(23, 32, 42, .05);
  color: var(--gd-ink);
}
/* its own layer: the labels sort among themselves, never over the cards */
.gd-stage { position: absolute; inset: 0; z-index: 0; }
.gd-stage canvas { display: block; width: 100%; height: 100%; }
.gd-labels { position: absolute; inset: 0; }

/* the glass every card shares */
.gd-strip-bar, .gd-locus, .gd-panel, .gd-legend, .gd-tip, .gd-views, .gd-icon-btn, .gd-toast {
  background: var(--gd-glass);
  border: 1px solid var(--gd-line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 60px -28px rgba(15, 40, 51, .35);
}
.gd-frame :focus-visible { outline: 2px solid var(--gd-teal); outline-offset: 2px; }
.gd-ico { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.gd-ico svg { width: 100%; height: 100%; display: block; }

/* ── the genome strip's shared parts (its own rules: the GENOME STRIP section below) ── */
.gd-sheet-toggle { display: none; }

.gd-plant { width: 100%; justify-content: center; align-items: center; display: inline-flex; gap: 10px; min-height: 44px; }
.gd-plant:disabled { background: rgba(23, 32, 42, .06); color: rgba(23, 32, 42, .35); box-shadow: none; cursor: not-allowed; }
.gd-plant.is-ready { animation: gd-ready 2.8s var(--ease-out-quart) infinite; }
@keyframes gd-ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(104, 199, 212, .45); } 50% { box-shadow: 0 0 0 9px rgba(104, 199, 212, 0); } }

.gd-link { padding: 3px 2px; border: 0; background: none; cursor: pointer; font: 500 11.5px/1 var(--font); color: var(--gd-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.gd-link:hover { color: var(--gd-ink); text-decoration-color: currentColor; }

/* ── the dock: the three views and the legend ── */
.gd-dock { position: absolute; z-index: 2; left: calc(50% + var(--gd-side) / 2); bottom: 22px; translate: -50% 0; display: flex; gap: 8px; align-items: center; }
.gd-views { display: flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); }
.gd-view {
  padding: 8px 15px; border: 0; border-radius: var(--radius-pill); cursor: pointer; background: transparent; white-space: nowrap;
  font: 600 12px/1 var(--font); color: var(--gd-muted); transition: background-color .3s var(--ease-out-quart), color .3s var(--ease-out-quart), box-shadow .3s;
}
.gd-view:hover { color: var(--gd-ink); }
.gd-view[aria-pressed="true"] { background: #fff; color: var(--gd-ink); box-shadow: 0 4px 12px -6px rgba(15, 40, 51, .35); }
.gd-icon-btn { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font: 700 14px/1 var(--font-display); color: var(--gd-muted); }
.gd-icon-btn[aria-expanded="true"], .gd-icon-btn:hover { color: var(--gd-ink); background: var(--gd-glass-strong); }
.gd-hint {
  position: absolute; z-index: 1; left: calc(50% + var(--gd-side) / 2); bottom: 76px; translate: -50% 0; margin: 0; pointer-events: none;
  white-space: nowrap; font: 500 11.5px/1 var(--font); color: rgba(23, 32, 42, .45); transition: opacity .8s var(--ease-out-quart);
}
.gd-frame.is-touched .gd-hint { opacity: 0; }

/* ── the detail card and the legend ── */
.gd-panel, .gd-legend { position: absolute; z-index: 3; right: 22px; top: 22px; width: 290px; max-height: calc(100% - 120px); overflow: auto; border-radius: 14px; scrollbar-width: thin; }
.gd-panel { padding: 18px 22px 20px; border-top: 3px solid var(--c, var(--gd-teal)); }
.gd-panel.is-in { animation: gd-card .55s var(--ease-out-quart) both; }
@keyframes gd-card { from { opacity: 0; transform: translate(10px, 0) scale(.985); } }
.gd-panel-kind { display: flex; align-items: center; gap: 8px; margin: 0 34px 10px 0; padding-bottom: 9px; border-bottom: 1px dashed color-mix(in srgb, var(--gd-muted) 35%, transparent); font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gd-muted); }
.gd-panel-meta { margin-left: auto; font-weight: 500; letter-spacing: .06em; text-align: right; }
.gd-panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.gd-panel h3 { margin: 0; padding-right: 26px; font: 800 20px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--gd-ink); }

.gd-panel h4 { margin: 16px 0 8px; font: 600 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gd-muted); }
/* the genotype: the specimen's code line, mono on a faint wash of its colour */
.gd-panel-geno { margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c, var(--gd-teal)) 9%, rgba(255, 255, 255, .55)); font: 500 11.5px/1.45 var(--font-mono); letter-spacing: .02em; color: var(--gd-teal); overflow-wrap: anywhere; }
.gd-panel-geno code { font: inherit; }
.gd-panel-code { flex: none; min-width: 42px; font: 600 10.5px/1 var(--font-mono); color: var(--gd-teal); }
.gd-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; line-height: 1.35; }
.gd-panel-list li { display: flex; align-items: center; gap: 9px; }

.gd-none { color: var(--gd-muted); }
.gd-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; font: 300 20px/1 var(--font); color: var(--gd-muted); cursor: pointer; transition: background-color .2s; }
.gd-close:hover { background: rgba(255, 255, 255, .8); color: var(--gd-ink); }
.gd-legend { top: auto; bottom: 76px; right: auto; left: calc(50% + var(--gd-side) / 2); translate: -50% 0; padding: 18px 20px; width: 300px; }
.gd-legend-title { margin: 0 0 12px; font: 700 13px/1.2 var(--font); color: var(--gd-ink); }
.gd-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 12.5px; }
.gd-legend li { display: grid; grid-template-columns: 16px auto 1fr; align-items: center; gap: 4px 10px; }
.gd-legend b { color: var(--gd-ink); font-weight: 600; }
.gd-legend span:not(.gd-ico) { color: var(--gd-muted); }

/* ── a line of news ── */
.gd-toast {
  position: absolute; z-index: 3; left: calc(50% + var(--gd-side) / 2); top: 22px; margin: 0;
  translate: -50% -8px; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: var(--radius-pill);
  font: 600 12.5px/1.3 var(--font); color: var(--gd-ink); max-width: min(440px, calc(100% - var(--gd-side) - 40px));
  transition: opacity .5s var(--ease-out-quart), translate .5s var(--ease-out-quart);
}
.gd-toast::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 26%), var(--gd-teal); }
.gd-toast.is-warn::before { background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 26%), var(--fw-coral, #e86f51); }
.gd-toast.is-on { opacity: 1; translate: -50% 0; }
.gd-toast:empty { display: none; }

/* ── the tooltip ── */
.gd-tip { position: absolute; z-index: 4; pointer-events: none; max-width: 240px; padding: 8px 12px; border-radius: 10px; background: var(--gd-glass-strong); }
.gd-tip small { display: block; font: 500 11px/1.3 var(--font); color: var(--gd-muted); }
.gd-tip b { display: block; margin-top: 1px; font: 700 13px/1.3 var(--font); color: var(--gd-ink); }

/* ── the labels in the scene: type, not boxes ── */
.gd-label { white-space: nowrap; pointer-events: none; font: 500 12px/1.3 var(--font); color: var(--gd-ink); transition: opacity .5s var(--ease-out-quart), transform .4s var(--ease-out-quart); }
.gd-label.is-action { pointer-events: auto; cursor: pointer; }

/* the stones are named only in Cross-section, or under the pointer */
.gd-label-stone {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .7); box-shadow: 0 6px 16px -10px rgba(15, 40, 51, .5); font-weight: 600; font-size: 11.5px;
  opacity: 0; transform: translateY(4px);
}
.gd-label-stone .gd-ico { width: 12px; height: 12px; }
.gd-label-stone .gd-short { display: none; }
.is-roots .gd-label-stone, .gd-label-stone.is-hover { opacity: 1; transform: none; }
.gd-label-stone.is-w { translate: -52% 0; }
.gd-label-stone.is-e { translate: 52% 0; }
/* underground, the minerals are named; the worlds' captions step aside */

/* ── without WebGL: the garden as a list ── */
.gd-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--gd-ink); }
.gd-fallback ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.is-fallback :is(.gd-strip, .gd-dock, .gd-hint) { display: none; }   /* without WebGL: the list alone, no editor that cannot plant */

/* ── desktop: the garden runs the full width of the screen, no frame; its sky meets the page's paper
   at the top and the bottom, and the cards sit on the page's content column ── */
@media (min-width: 720.02px) {
  /* the section is its own clean ground: the page's drifting light pools do not pass through it */
  .plant-garden {
    margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%);
    background: linear-gradient(180deg, rgba(247, 248, 245, 0) 0, #f7f8f5 90px, #f7f8f5 calc(100% - 90px), rgba(247, 248, 245, 0) 100%);
  }
  .gd-frame {
    --gd-edge: max(var(--wrap-pad), calc((100% - var(--wrap-max)) / 2 + var(--wrap-pad)));
    margin-inline: calc(50% - 50vw); height: clamp(640px, 90vh, 920px);
    border-radius: 0; box-shadow: none;
    background: transparent;
  }
  /* the scene fades into the page at its top and bottom: no edge, no box */
  .gd-stage { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); }
  .gd-frame { --gd-side: 0px; }

  .gd-panel { right: 32px; top: 40px; }
  .gd-toast { top: 40px; }
  .gd-dock { bottom: 40px; }
  .gd-hint { bottom: 94px; }
  .gd-legend { bottom: 94px; }
}
@media (max-width: 1080px) {
  .plant-garden { --gd-side: 296px; }

}
@media (max-width: 720px) {
  .plant-garden { --gd-side: 0px; }
  .gd-frame { height: min(78svh, 640px); }
  /* a soft vignette, drawn over the scene (not in it) */
  .gd-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 95% at 55% 45%, transparent 55%, rgba(30, 52, 56, .12) 100%); }
  .gd-label { font-size: 10.5px; }
  .gd-label-stone { font-size: 9.5px; padding: 3px 7px 3px 5px; }
  .gd-label-stone .gd-full { display: none; }
  .gd-prompt { font-size: 11px; padding: 7px 12px 7px 10px; gap: 7px; }
  .gd-label-stone .gd-short { display: inline; }

  .gd-sheet-toggle {
    grid-column: 2; grid-row: 1 / 3; display: block; white-space: nowrap; padding: 10px 16px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
    font: 700 12.5px/1 var(--font); color: var(--fw-navy); background: var(--steel, #68c7d4);
  }

  .gd-dock { top: 12px; bottom: auto; left: 50%; }
  .gd-view { padding: 8px 12px; }
  .gd-icon-btn { width: 34px; height: 34px; }
  .gd-hint { bottom: auto; top: 60px; }
  .gd-panel { left: 10px; right: 10px; top: 60px; width: auto; max-height: calc(100% - 196px); z-index: 4; }
  /* the card's action stays in reach while its lists scroll */
  .gd-panel .gd-panel-cta { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -10px 18px 2px rgba(247, 248, 245, .92); }
  .gd-legend { left: 10px; right: 10px; top: 60px; bottom: auto; width: auto; translate: none; }
  .gd-toast { top: auto; bottom: 156px; left: 50%; max-width: calc(100% - 40px); }   /* above the folded sheet */
}
@media (prefers-reduced-motion: reduce) {
  .gd-view, .gd-toast, .gd-label, .gd-hint { transition: none; }
  .gd-panel.is-in, .gd-plant.is-ready { animation: none; }
}

/* ── the invitation (an empty garden), the chosen world, the card's next step ── */
.gd-prompt {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .88); box-shadow: 0 14px 34px -16px rgba(15, 40, 51, .45);
  font: 600 13px/1.2 var(--font); color: var(--gd-ink);
  opacity: 0; translate: 0 8px; transition: opacity .6s var(--ease-out-quart), translate .6s var(--ease-out-quart);
}
.gd-prompt.is-on { opacity: 1; translate: 0 0; }
.gd-prompt:not(.is-on) { pointer-events: none !important; }
.gd-prompt:hover { background: #fff; }
.gd-prompt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gd-teal); box-shadow: 0 0 0 0 rgba(40, 113, 126, .5); animation: gd-pulse 1.8s ease-out infinite; }
@keyframes gd-pulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(40, 113, 126, 0); } }

.gd-panel-value { margin: 16px 0 0; padding-left: 11px; border-left: 2px solid var(--c, var(--gd-teal)); font-size: 13.5px; line-height: 1.5; color: var(--gd-ink); }
.gd-panel-cta { display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: 8px; min-height: 40px; margin-top: 18px; font-size: 13px; }

/* ── desktop: the title in the scene's sky ── */
@media (min-width: 720.02px) {
  .gd-head.is-overlay { position: absolute; z-index: 2; left: 32px; top: 36px; max-width: min(520px, 38vw); margin: 0; pointer-events: none; }
  .gd-head.is-overlay .gd-title { font-size: clamp(30px, 3.1vw, 46px); }
  .gd-head.is-overlay .gd-lead { margin-top: 10px; font-size: 15px; line-height: 1.55; max-width: 46ch; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-prompt { transition: none; }
  .gd-prompt-dot { animation: none; }
}

/* ── FIDA PLANT opens on the garden, right under the top bar; the library's navy
   band follows it (it is no longer the page's opener, so its navy doesn't run up behind the top bar) ── */
#plant-grid-view > .plant-garden { margin-top: 0; }
html[data-open-realm="plant"] .wrap > #page-plant.page.chapter { margin-top: 0; padding-top: 0; }
#plant-grid-view > .plant-garden + .plant-opener { margin-top: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 5vw, 72px); }
/* the title and the lead sit over the field: a soft veil of the page's paper behind them keeps them legible */
@media (min-width: 720.02px) {
  .gd-frame::before {
    content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: min(760px, 58vw); height: 72%; pointer-events: none;
    background: radial-gradient(110% 85% at 0% 18%, rgba(247, 248, 245, .86) 0%, rgba(247, 248, 245, .6) 42%, rgba(247, 248, 245, 0) 78%);
  }
}
/* the garden opens the page: from the very top down to it the ground is the plain paper, so the page's drifting light
   pools (.bg-layer) don't tint the corner above it and there is no seam between the top bar's area and the scene */
@media (min-width: 720.02px) {
  #plant-grid-view > .plant-garden { position: relative; background: linear-gradient(180deg, #f7f8f5 0, #f7f8f5 calc(100% - 90px), rgba(247, 248, 245, 0) 100%); }
  #plant-grid-view > .plant-garden::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 320px; background: #f7f8f5; pointer-events: none; }
}

/* ══════════════ the GENOME STRIP (stage 4, js/garden/genome-ui.js) ══════════════
   Desktop: docked under the scene, bottom left — four locus segments, the genotype in mono, the one action; a
   segment's options float above it. The camera's views move to the bottom right. Phone: a bottom sheet. */
.gd-strip { position: absolute; z-index: 3; left: 32px; bottom: 26px; max-width: calc(100% - 64px - 330px); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.gd-strip-bar { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 6px; border-radius: 16px; background: var(--gd-glass-strong); }
.gd-segs { display: flex; gap: 2px; min-width: 0; }
.gd-seg {
  position: relative; display: grid; gap: 3px; min-width: 104px; max-width: 200px; padding: 9px 14px 13px; border: 0; border-radius: 11px;
  background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--gd-ink); transition: background-color .2s;
}
.gd-seg:hover, .gd-seg.is-open { background: rgba(255, 255, 255, .8); }
.gd-seg.is-open { box-shadow: 0 6px 16px -10px rgba(15, 40, 51, .45); }
.gd-seg:disabled { cursor: progress; }
.gd-seg-k { font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gd-muted); }
.gd-seg-v { font: 600 12.5px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-seg-v.is-empty { font-weight: 500; color: rgba(87, 101, 116, .7); }
.gd-seg-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(23, 32, 42, .1); transition: background .45s var(--ease-out-quart); }
.gd-geno { margin: 0; padding: 0 6px; min-width: 0; max-width: 330px; flex: 0 1 auto; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .02em; color: var(--gd-teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-geno.is-empty { font-family: var(--font); letter-spacing: 0; color: var(--gd-muted); }
.gd-strip .gd-plant { width: auto; flex: none; min-height: 44px; padding: 0 20px; white-space: nowrap; }
.gd-strip.is-busy .gd-segs { opacity: .55; }
.gd-strip-links { display: flex; gap: 8px; padding-left: 10px; font-size: 11.5px; color: var(--gd-muted); }
/* a locus's options, floating above the strip */
.gd-loci { position: absolute; left: 0; bottom: calc(100% + 10px); }
.gd-locus { width: 340px; max-height: min(54vh, 430px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 14px; border-radius: 14px; background: var(--gd-glass-strong); }
.gd-locus[data-locus="0"] { width: 460px; }
.gd-locus:not([hidden]) { animation: gd-card .35s var(--ease-out-quart) both; }
.gd-locus-note { margin: 0 4px 10px; font-size: 12px; line-height: 1.45; color: var(--gd-muted); }
.gd-genes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gd-genes.is-two { grid-template-columns: 1fr 1fr; column-gap: 4px; }
.gd-gene {
  display: grid; grid-template-columns: 10px 54px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px;
  border-radius: 9px; cursor: pointer; font-size: 12.5px; line-height: 1.25; color: var(--gd-ink); outline: none; transition: background-color .2s;
}
.gd-gene:hover { background: rgba(255, 255, 255, .7); }
.gd-gene:focus-visible { box-shadow: inset 0 0 0 2px var(--gd-teal); }
.gd-gene[aria-selected="true"] { background: #fff; font-weight: 600; box-shadow: 0 6px 14px -9px rgba(15, 40, 51, .5); }
.gd-gene[aria-selected="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--gd-teal), 0 6px 14px -9px rgba(15, 40, 51, .5); }
.gd-gene-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #8fd6a4); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); opacity: .5; transition: opacity .2s; }
.gd-gene[aria-selected="true"] .gd-gene-swatch { opacity: 1; }
.gd-gene-code { font: 600 10.5px/1 var(--font-mono); color: var(--gd-teal); white-space: nowrap; }
.gd-gene-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gd-gene-count { font-size: 11px; font-weight: 500; color: var(--gd-muted); }
/* the camera's views and the legend, now at the bottom right; the hint above them */
@media (min-width: 720.02px) {
  .gd-dock { left: auto; right: 32px; bottom: 30px; translate: none; }
  .gd-hint { left: auto; right: 34px; bottom: 86px; translate: none; }
  .gd-legend { left: auto; right: 32px; bottom: 86px; translate: none; }
}
@media (max-width: 1180px) and (min-width: 720.02px) {
  .gd-geno { display: none; }                         /* narrower: the loci and the action keep the room; the genotype is in each segment */
  .gd-seg { min-width: 92px; padding-inline: 11px; }
}
/* phone: the strip is a bottom sheet — the genotype and the toggle in its head, then the loci as tabs, the open
   locus's options, the action */
@media (max-width: 720px) {
  .gd-strip.is-sheet {
    left: 0; right: 0; bottom: 0; max-width: none; align-items: stretch; gap: 10px; padding: 18px 14px 12px;
    border-radius: 16px 16px 0 0; background: var(--gd-glass-strong); border: 1px solid var(--gd-line); border-bottom: 0;
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 -18px 40px -26px rgba(15, 40, 51, .4);
  }
  .is-sheet::before { content: ""; position: absolute; left: 50%; top: 7px; width: 34px; height: 4px; margin-left: -17px; border-radius: 2px; background: rgba(23, 32, 42, .15); }
  .gd-strip-head { order: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; }
  .gd-strip-brand { grid-column: 1; margin: 0; font: 600 11px/1 var(--font); color: var(--gd-teal); }
  .gd-strip-head .gd-geno { grid-column: 1; max-width: none; padding: 0; font-size: 11px; }
  .is-sheet .gd-strip-bar { display: contents; }
  .is-sheet .gd-segs { order: 1; overflow-x: auto; scrollbar-width: none; }
  .is-sheet .gd-seg { flex: 1 0 auto; min-width: 0; max-width: none; padding: 8px 10px 12px; }
  .is-sheet .gd-seg-v { font-size: 11.5px; max-width: 120px; }
  .is-sheet .gd-loci { order: 2; position: static; }
  .is-sheet .gd-locus { width: auto; max-height: 34vh; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .is-sheet .gd-locus[data-locus="0"] { width: auto; }
  .is-sheet .gd-genes.is-two { grid-template-columns: 1fr; }
  .is-sheet .gd-plant { order: 3; width: 100%; justify-content: center; }
  .is-sheet .gd-strip-links { order: 4; justify-content: center; padding: 0; }
  .gd-strip.is-collapsed :is(.gd-segs, .gd-loci, .gd-strip-links) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-seg, .gd-seg-bar, .gd-gene, .gd-gene-swatch { transition: none; }
  .gd-locus:not([hidden]) { animation: none; }
}

/* ── the visitor's setup (the flow's ending): its button in the strip, the share row under the card's action ── */
.gd-link.gd-setup { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gd-teal); }
.gd-link.gd-setup[hidden] { display: none; }
.gd-setup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fw-t40, #68c7d4); box-shadow: 0 0 0 3px rgba(104, 199, 212, .22); }
.gd-strip-head .gd-setup { grid-column: 1 / -1; justify-self: start; padding: 2px 0; font-size: 12px; }
.gd-share { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: var(--gd-muted); }
.gd-share .gd-link { font-weight: 600; color: var(--gd-teal); }

/* ── the garden in 2D (enhancement 2, js/garden/flat.js): the switch, and the cut-away drawing ── */
.gd-mode {
  display: flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill);
  background: var(--gd-glass-strong); border: 1px solid var(--gd-line); box-shadow: 0 10px 28px -16px rgba(15, 40, 51, .35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.gd-mode-btn {
  min-width: 40px; padding: 8px 11px; border: 0; border-radius: var(--radius-pill); cursor: pointer; background: transparent;
  font: 700 11.5px/1 var(--font-mono); letter-spacing: .06em; color: var(--gd-muted); transition: background-color .3s, color .3s, box-shadow .3s;
}
.gd-mode-btn:hover { color: var(--gd-ink); }
.gd-mode-btn[aria-pressed="true"] { background: var(--fw-navy, #062b3f); color: #fff; box-shadow: 0 4px 12px -6px rgba(6, 43, 63, .6); }
/* in 2D: the scene and its labels go, and the camera's views and hint with them */
.is-flat .gd-stage canvas, .is-flat .gd-labels, .is-flat .gd-views, .is-flat .gd-hint { display: none !important; }   /* (three sets the canvas display inline) */
/* the 2D drawing (redesign 2026-10-12): a technical cross-section in three colours on the page paper —
   navy for structure, teal for what lives and is configured, aqua for the highlight only */
.gd-flat {
  --gdf-navy: var(--fw-navy, #062b3f); --gdf-teal: var(--fw-s10, #28717e); --gdf-aqua: var(--steel, #68c7d4); --gdf-paper: var(--fw-paper, #f7f8f5);
  position: absolute; inset: 0; z-index: 1;
}
.gd-flat[hidden] { display: none; }
.gd-flat-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.gdf-hatch { stroke: var(--gdf-navy); stroke-width: 1; }
.gdf-ground, .gdf-outline { fill: none; stroke: var(--gdf-navy); stroke-width: 1.5; stroke-linejoin: round; }
.gdf-strata { stroke: var(--gdf-navy); stroke-opacity: .22; }
.gdf-bed-hit, .gdf-hit { fill: transparent; }
.gdf-line { fill: none; stroke: var(--gdf-navy); stroke-opacity: .6; stroke-width: 1.5; stroke-linecap: round; transition: stroke .5s, stroke-opacity .5s, stroke-width .5s; }
.gdf-rail[data-style="double"] .gdf-line { stroke-width: 1.1; }
.gdf-rail-hit { stroke: transparent; stroke-width: 16; fill: none; }
.gdf-pulse { fill: none; stroke: var(--gdf-aqua); stroke-linecap: round; pointer-events: none; }
.gdf-pulse.is-core { stroke-width: 2.2; }
.gdf-pulse.is-glow { stroke-width: 8; stroke-opacity: .16; }
.gdf-kicker { font: 600 10px/1 var(--font-mono); letter-spacing: .16em; fill: var(--gdf-teal); }
.gdf-rail-name { font: 500 12.5px/1 var(--font); fill: var(--gdf-navy); transition: fill .4s, opacity .5s; }
.gdf-rail-code { font: 600 9px/1 var(--font-mono); letter-spacing: .08em; fill: var(--gdf-teal); transition: fill .4s, opacity .5s; }
.gdf-root { fill: none; stroke: var(--gdf-teal); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: stroke .45s, stroke-width .45s; }
.gdf-joint { fill: var(--gdf-paper); stroke: var(--gdf-teal); stroke-width: 1.8; transition: stroke .45s; }
.gdf-bulb { fill: var(--gdf-paper); stroke: var(--gdf-navy); stroke-width: 1.4; }
.gdf-stem { fill: none; stroke: var(--gdf-navy); stroke-width: 1.5; stroke-linecap: round; }
.gdf-leaf { fill: var(--gdf-teal); fill-opacity: .72; }
.gdf-cup { fill: var(--gdf-paper); stroke: var(--gdf-navy); stroke-width: 1.5; stroke-linejoin: round; transition: fill .5s, stroke-width .4s; }
.gdf-crease { fill: none; stroke: var(--gdf-navy); stroke-opacity: .45; stroke-width: 1; }
.gdf-code { font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; fill: var(--gdf-navy); fill-opacity: .62; }
.is-mine .gdf-cup { fill: var(--gdf-aqua); }
.is-mine .gdf-root { stroke: var(--gdf-aqua); stroke-width: 1.8; }
.is-mine .gdf-joint { stroke: var(--gdf-aqua); }
.is-mine .gdf-leaf { fill-opacity: .9; }
.is-mine .gdf-code { fill: var(--gdf-teal); fill-opacity: 1; }
.gdf-plaque { font: 600 13px/1 var(--font); fill: var(--gdf-navy); stroke: var(--gdf-paper); stroke-width: 7px; stroke-linejoin: round; paint-order: stroke; }
.gdf-bedn { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; fill: var(--gdf-teal); }
/* the planting */
.gdf-fx { pointer-events: none; }
.gdf-guide { fill: none; stroke: var(--gdf-aqua); stroke-width: 1.2; }
.gdf-mark { fill: none; stroke: var(--gdf-aqua); stroke-width: 2.2; stroke-linecap: round; }
.gdf-seed { fill: var(--gdf-paper); stroke: var(--gdf-aqua); stroke-width: 1.6; }
.gdf-ring { fill: none; stroke: var(--gdf-aqua); stroke-width: 1.5; }
/* tracing a lineage (hover), the cards (set aside, lit), a line just joined (flash) */
.gdf-tulip, .gdf-rail, .gdf-bed, .gdf-plaque, .gdf-rail-name, .gdf-rail-code { cursor: pointer; transition: opacity .5s var(--ease-out-quart, ease); }
.gdf-tulip.is-aside, .is-tracing .gdf-tulip:not(.is-on) { opacity: .26; }
.gdf-rail.is-aside, .is-tracing .gdf-rail:not(.is-on), .is-tracing :is(.gdf-rail-name, .gdf-rail-code):not(.is-on), :is(.gdf-rail-name, .gdf-rail-code).is-aside { opacity: .3; }
.gdf-rail:is(.is-on, .is-lit, .is-flash) .gdf-line { stroke: var(--gdf-aqua); stroke-opacity: 1; stroke-width: 2.2; }
.gdf-rail[data-style="double"]:is(.is-on, .is-lit, .is-flash) .gdf-line { stroke-width: 1.5; }
:is(.gdf-rail-name, .gdf-rail-code):is(.is-on, .is-lit, .is-flash) { fill: var(--gdf-teal); font-weight: 700; }
:is(.gdf-root, .gdf-joint):is(.is-on, .is-lit) { stroke: var(--gdf-aqua); }
.gdf-root:is(.is-on, .is-lit) { stroke-width: 2; }
.is-tracing .gdf-tulip.is-on .gdf-cup { stroke-width: 2; }
.gdf-bed.is-on .gdf-outline { stroke-width: 2.2; }
/* in 2D the cards sit in the title's column, under the lead, in the drawing's teal (no process colours) */
.is-flat .gd-panel, .is-flat .gd-panel [style*="--c"] { --c: var(--fw-s10, #28717e) !important; }
.is-flat .gd-panel .gd-ico { color: var(--fw-s10, #28717e) !important; }                    /* the list icons too: one teal */
.is-flat .gd-panel .gd-ico [fill]:not([fill="none"]) { fill: currentColor; }
.is-flat .gd-panel .gd-ico [stroke]:not([stroke="#fff"]) { stroke: currentColor; }
@media (min-width: 720.02px) {
  .is-flat .gd-head.is-overlay { max-width: min(400px, 28vw); }
  /* a card takes the title's column: the title and lead step aside while it is open, and come back when it closes */
  .is-flat .gd-panel {
    left: var(--gdf-l, 32px); right: auto; top: var(--gdf-pt, 40px); width: var(--gdf-pw, 380px); max-height: var(--gdf-ph, 70%);
    padding: 22px 26px 24px; border-radius: 16px; background: rgba(255, 255, 255, .86);
    box-shadow: 0 1px 0 rgba(6, 43, 63, .04), 0 24px 48px -30px rgba(6, 43, 63, .35); border-top-width: 2px;
  }
  .is-flat .gd-panel h3 { font-size: 24px; }
  .is-flat .gd-panel.is-in { animation: gdf-card .6s var(--ease-out-quart, ease) .08s both; }
  .gd-frame.is-flat .gd-head.is-overlay { transition: opacity .45s var(--ease-out-quart, ease), translate .45s var(--ease-out-quart, ease); }
  .gd-frame.is-flat:has(> .gd-panel:not([hidden])) .gd-head.is-overlay { opacity: 0 !important; translate: 0 -10px; visibility: hidden; transition: opacity .3s, translate .3s, visibility 0s .3s; }
  .gd-frame.is-flat::before { display: none; }       /* the veil that keeps the title legible over the 3D is not needed */
}
@media (max-width: 720px) {
  .gd-dock { gap: 6px; }
  .gd-mode-btn { min-width: 34px; padding: 8px 9px; }
  .gdf-plaque { font-size: 10.5px; stroke-width: 5px; }
  .gdf-bedn { font-size: 9px; }
  .gdf-code { font-size: 8.5px; }
}
@keyframes gdf-card { from { opacity: 0; transform: translateY(12px); } }
/* the 2D stands on the page paper: no sky gradient, no vignette */
.gd-frame.is-flat { background: var(--fw-paper, #f7f8f5); }
.is-flat .gd-stage::after { display: none; }

/* ══════════════ the 2D, BOTANICAL style (js/garden/flat-botanical.js, botany.js; 2026-10-12) ══════════════
   One illustrated landscape on warm ivory: tulips in muted pigments, a dark mineral soil, fine roots that turn into
   clean cyan connections onto the common data model. The technical style above stays as the alternative
   (plantGarden.flatStyle, or ?flat=technical). */
.gd-frame.is-flat.is-botanical {
  --gdb-ivory: #f6f4ec; --gdb-ink: #20333a; --gdb-muted: #697c80; --gdb-teal: #2f6f73; --gdb-cyan: #62c9d4; --gdb-cream: #e8e1d1;
  background: linear-gradient(180deg, var(--fw-paper, #f7f8f5) 0, var(--gdb-ivory) 90px, var(--gdb-ivory) calc(100% - 60px), var(--fw-paper, #f7f8f5) 100%);
}
.gdb-grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .55; background-size: 160px 160px; }
/* the plants */
.gdb-petal { stroke-width: .6; stroke-opacity: .55; stroke-linejoin: round; }
.gdb-contour { fill: none; stroke-width: .5; stroke-opacity: .32; stroke-linecap: round; }
.gdb-leaf-edge { fill: none; stroke: #45615c; stroke-width: .55; stroke-opacity: .45; }
.gdb-sheen { fill: none; stroke: #fff; stroke-opacity: .32; stroke-width: 1.3; stroke-linecap: round; }
.gdb-vein { fill: none; stroke: #dfe7d9; stroke-width: .6; stroke-opacity: .5; }
.gdb-wire { fill: none; stroke: #8c8670; stroke-width: .7; stroke-linecap: round; opacity: .85; }
.gdb-root { fill: none; stroke: #d8cbb1; stroke-linecap: round; opacity: .72; }
/* the data: connections, joints, the lines and their names */
.gdb-conn { fill: none; stroke: var(--gdb-cyan); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; opacity: .85; transition: stroke-width .3s, opacity .3s; }
.gdb-node { fill: var(--gdb-cyan); }
.gdb-node.is-origin { fill: #9fe1e8; }
.gdb-halo { fill: var(--gdb-cyan); opacity: .2; transition: opacity .3s; }
.gdb-line { fill: none; stroke: var(--gdb-cyan); stroke-opacity: .42; stroke-width: 1.1; stroke-linecap: round; transition: stroke-opacity .4s, stroke-width .4s; }
.gdb-pulse { fill: none; stroke: var(--gdb-cyan); stroke-linecap: round; pointer-events: none; }
.gdb-pulse.is-core { stroke-width: 1.8; }
.gdb-pulse.is-glow { stroke-width: 7; stroke-opacity: .16; }
.gdb-kicker { font: 600 9.5px/1 var(--font-mono); letter-spacing: .18em; fill: var(--gdb-cream); opacity: .8; }
.gdb-rail-name text { font: 500 11.5px/1 var(--font); fill: var(--gdb-cream); transition: fill .3s; }
.gdb-ring { fill: none; stroke: var(--gdb-cyan); stroke-width: 1; opacity: .8; }
.gdb-dot { fill: var(--gdb-cyan); }
.gdb-rail-code { font: 600 8.5px/1 var(--font-mono); letter-spacing: .08em; fill: var(--gdb-cream); }
/* the labels above ground */
.gdb-code { font: 600 11px/1 var(--font); letter-spacing: .18em; fill: var(--gdb-ink); }
.gdb-leader { fill: none; stroke: var(--gdb-ink); stroke-width: .8; stroke-opacity: .55; }
.is-mine .gdb-code { fill: var(--gdb-teal); }
.gdb-mine-dot { fill: var(--gdb-cyan); }
.is-mine .gdb-conn { stroke-width: 1.6; opacity: 1; }
.gdb-world-name { font: 600 11px/1 var(--font); letter-spacing: 2.6px; fill: var(--gdb-ink); }
.gdb-world-name.is-on-soil { font-size: 8.5px; letter-spacing: .16em; fill: var(--gdb-cream); }
.gdb-bracket { fill: none; stroke: var(--gdb-ink); stroke-width: .8; stroke-opacity: .35; }
/* the planting */
.gdb-guide { fill: none; stroke: var(--gdb-cyan); stroke-width: 1.1; }
.gdb-seed { fill: #efe6cf; stroke: #a8916b; stroke-width: .8; }
.gdb-ring-fx { fill: none; stroke: var(--gdb-cyan); stroke-width: 1.4; }
/* tracing a lineage, the cards, a line just joined */
.gdb-tulip, .gdb-rail, .gdb-rail-name, .gdb-world { cursor: pointer; transition: opacity .45s var(--ease-out-quart, ease); }
.gdb-tulip.is-aside, .is-tracing .gdb-tulip:not(.is-on) { opacity: .4; }
.gdb-rail.is-aside, .is-tracing .gdb-rail:not(.is-on), :is(.gdb-rail-name, .gdb-rail-code).is-aside, .is-tracing :is(.gdb-rail-name, .gdb-rail-code):not(.is-on) { opacity: .35; }
.gdb-rail:is(.is-on, .is-lit, .is-flash) .gdb-line { stroke-opacity: 1; stroke-width: 1.8; }
.gdb-rail-name:is(.is-on, .is-lit, .is-flash) text { fill: #fff; }
.gdb-conn:is(.is-on, .is-lit) { stroke-width: 2; opacity: 1; }
.gdb-halo:is(.is-on, .is-lit) { opacity: .45; }
/* the head: the last word of the title in teal */
.is-botanical .gd-title-em { color: var(--fw-s10, #28717e); }
/* the configuration journey: numbered steps, a teal action */
.is-botanical .gd-segs { counter-reset: gdb-step; }
.is-botanical .gd-seg { counter-increment: gdb-step; padding-left: 50px; }
.is-botanical .gd-seg::before {
  content: counter(gdb-step, decimal-leading-zero); position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 10.5px/1 var(--font-mono); color: var(--gd-muted); background: rgba(23, 32, 42, .05); transition: background-color .3s, color .3s;
}
.is-botanical .gd-seg:is(.is-open, :has(.gd-seg-v:not(.is-empty):not(:empty)))::before { background: var(--fw-s10, #28717e); color: #fff; }
.is-botanical .gd-seg-bar { display: none; }
.is-botanical .gd-seg-k { color: var(--fw-ink, #17202a); }
.is-botanical .gd-strip .gd-plant:not(:disabled) { background: var(--fw-s10, #28717e); color: #fff; box-shadow: 0 10px 24px -14px rgba(40, 113, 126, .9); }
@media (max-width: 720px) {
  .is-botanical .gd-seg { padding-left: 38px; }
  .is-botanical .gd-seg::before { left: 8px; width: 22px; height: 22px; font-size: 9.5px; }
}
/* a card opens smoothly: it unfolds from the top while its parts rise in turn, and folds away again on close */
@keyframes gdc-in { from { opacity: 0; transform: translateY(14px) scale(.985); clip-path: inset(0 0 100% 0 round 16px); } 60% { opacity: 1; } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 16px); } }
@keyframes gdc-part { from { opacity: 0; transform: translateY(10px); } }
@keyframes gdc-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
.gd-panel.is-in { animation: gdc-in .75s cubic-bezier(.16, 1, .3, 1) both; }
.gd-panel.is-in > * { animation: gdc-part .6s cubic-bezier(.16, 1, .3, 1) both; }
.gd-panel.is-in > :nth-child(2) { animation-delay: .08s; } .gd-panel.is-in > :nth-child(3) { animation-delay: .14s; }
.gd-panel.is-in > :nth-child(4) { animation-delay: .2s; }  .gd-panel.is-in > :nth-child(5) { animation-delay: .25s; }
.gd-panel.is-in > :nth-child(6) { animation-delay: .3s; }  .gd-panel.is-in > :nth-child(7) { animation-delay: .34s; }
.gd-panel.is-in > :nth-child(n+8) { animation-delay: .38s; }
.gd-panel.is-out { animation: gdc-out .34s cubic-bezier(.4, 0, .2, 1) both; pointer-events: none; }
.is-flat .gd-panel.is-in { animation: gdc-in .75s cubic-bezier(.16, 1, .3, 1) both; }   /* (over the 2D's own entrance) */
/* the open tulip's code in teal */
.gdb-tulip.is-open .gdb-code { fill: var(--fw-s10, #28717e); }
@media (prefers-reduced-motion: reduce) {
  .gd-panel.is-in, .gd-panel.is-in > *, .gd-panel.is-out { animation: none; }
}

/* ══════════════ the first-planting guide (js/garden/coach.js) and the 2D's ghost seed ══════════════ */
.gd-coach {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: center; gap: 9px; max-width: 320px; padding: 9px 14px 9px 12px; border-radius: 999px;
  background: var(--fw-navy, #062b3f); color: #fff; box-shadow: 0 14px 30px -14px rgba(6, 43, 63, .55);
  font: 500 12.5px/1.3 var(--font); white-space: nowrap;
  opacity: 0; transition: opacity .45s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}
.gd-coach:not(.is-placed) { transition: opacity .45s ease; }
.gd-coach.is-on { opacity: 1; }
.gd-coach::after {                                   /* the pointer, aimed at the step */
  content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; transform: rotate(45deg); border-radius: 0 0 2px 0;
}
.gd-coach-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel, #68c7d4); flex: none; animation: gd-coach-dot 2s ease-in-out infinite; }
@keyframes gd-coach-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(104, 199, 212, .55); } 50% { box-shadow: 0 0 0 6px rgba(104, 199, 212, 0); } }
.gd-coach-step { font: 600 10px/1 var(--font-mono); letter-spacing: .12em; color: var(--steel, #68c7d4); }
.gd-coach-step:empty { display: none; }
.gd-coach.is-swap .gd-coach-text, .gd-coach.is-swap .gd-coach-step { animation: gd-coach-swap .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes gd-coach-swap { from { opacity: 0; transform: translateY(5px); } }
/* the step it points at: a soft halo */
.gd-seg.is-coached, .gd-plant.is-coached, .gd-sheet-toggle.is-coached { animation: gd-coached 2.2s ease-in-out infinite; }
@keyframes gd-coached { 0%, 100% { box-shadow: 0 0 0 0 rgba(40, 113, 126, 0); } 50% { box-shadow: 0 0 0 4px rgba(40, 113, 126, .18); } }
.gd-seg.is-coached { background: rgba(255, 255, 255, .9); }
/* the ghost seed over the empty ground (botanical 2D) */
.gdb-ghost { animation: gdb-ghost-in 1.2s cubic-bezier(.16, 1, .3, 1) 1.4s both; transition: opacity .45s ease; }
.gdb-ghost.is-leaving { opacity: 0; }
@keyframes gdb-ghost-in { from { opacity: 0; } }
.gdb-ghost-seed { fill: #efe6cf; stroke: #2f6f73; stroke-width: 1.1; stroke-dasharray: 3 2.5; transition: fill .7s ease; }
.gdb-ghost-halo { fill: var(--steel, #68c7d4); opacity: .2; }
.gdb-ghost-line { fill: none; stroke: #2f6f73; stroke-width: 1; stroke-dasharray: 2 4; opacity: .55; }
.gdb-ghost-ring { fill: none; stroke: var(--steel, #68c7d4); stroke-width: 1.4; }
@media (prefers-reduced-motion: reduce) {
  .gd-coach, .gd-coach-dot, .gd-coach.is-swap *, .gd-seg.is-coached, .gd-plant.is-coached, .gd-sheet-toggle.is-coached, .gdb-ghost { animation: none; transition: none; }
}
