/* The Garden — direction C2. Dark greenhouse ground, cream "today" panel,
   Outfit type, status colours paired with shapes (dot / ring / diamond). */
:root {
  --bg: #161a13;
  --bg-glow-1: rgba(143, 174, 98, .22);
  --bg-glow-2: rgba(74, 77, 68, .55);
  --ink: #f2f3ef;
  --ink-soft: rgba(242, 243, 239, .82);
  --ink-faint: rgba(242, 243, 239, .76);
  --panel: rgba(242, 243, 239, .06);
  --panel-line: rgba(255, 255, 255, .09);
  --cream: #eef1e7;
  --cream-ink: #23261f;
  --cream-ink-soft: #4f5547;
  --cream-line: rgba(35, 38, 31, .14);
  --moss: #c9d8a5;        /* settled */
  --moss-deep: #3d5226;
  --water: #8fc1d9;       /* due for water */
  --water-ink: #1b4354;
  --amber: #f0b860;       /* needs attention */
  --amber-ink: #5c3a06;
  --radius: 28px;
  --radius-sm: 16px;
  --gap: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(46% 30% at 8% 2%, var(--bg-glow-1) 0%, transparent 70%),
    radial-gradient(60% 28% at 70% 100%, var(--bg-glow-2) 0%, transparent 72%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--moss); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--cream); color: var(--cream-ink); padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---- shell ---------------------------------------------------------- */
.page {
  max-width: 1360px; margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 40px) 64px;
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px);
}
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 19px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--moss); display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark.big { width: 56px; height: 56px; }
.brand-mark.big svg { width: 34px; height: 34px; }
.pill-nav {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(242, 243, 239, .07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pill-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 400;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.pill-nav a:hover { color: var(--ink); }
.pill-nav a[aria-current="page"] { background: var(--cream); color: var(--cream-ink); font-weight: 500; }
.top-end { margin-left: auto; display: flex; gap: 8px; }
.ghost {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 243, 239, .42); background: transparent; color: var(--ink-soft);
  font-size: 13.5px; transition: border-color .2s, color .2s, background .2s;
}
.ghost:hover { color: var(--ink); border-color: rgba(242, 243, 239, .62); }
.ghost[aria-busy="true"] { opacity: .6; cursor: progress; }
.banner {
  margin: 0; padding: 12px 18px; border-radius: var(--radius-sm);
  background: rgba(240, 184, 96, .14); border: 1px solid rgba(240, 184, 96, .4);
  color: #f7e3bf; font-size: 14px;
}
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: 12.5px; color: var(--ink-faint); border-top: 1px solid var(--panel-line); padding-top: 18px;
}
.loading { color: var(--ink-faint); font-size: 16px; padding: 40px 4px; }

/* ---- reusable pieces ------------------------------------------------ */
.tile {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line);
}
.tile h2, .tile h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
.tile h2 { font-size: 20px; }
.tile-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.tile-note { font-size: 13px; color: var(--ink-faint); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
h1.display { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: .99; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; }
h1.display .accent { color: var(--moss); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.mk { flex: none; }
.mk.settled { width: 11px; height: 11px; border-radius: 50%; background: var(--moss); }
.mk.dry { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--water); }
.mk.attention { width: 9px; height: 9px; transform: rotate(45deg); background: var(--amber); }

.standbar { display: flex; height: 13px; gap: 2px; border-radius: 7px; overflow: hidden; }
.standbar i { display: block; }
.standbar .s-settled { background: var(--moss); }
.standbar .s-dry { background: var(--water); }
.standbar .s-attention { background: var(--amber); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 400; white-space: nowrap;
}
.chip.settled { background: rgba(201, 216, 165, .18); color: var(--moss); }
.chip.dry { background: rgba(143, 193, 217, .16); color: #bfe0ef; }
.chip.attention { background: linear-gradient(rgba(240, 184, 96, .18), rgba(240, 184, 96, .18)), rgba(22, 26, 19, .8); color: #f7d79a; }
.chip .mk.dry { width: 9px; height: 9px; }

/* ---- Today ---------------------------------------------------------- */
.today { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-start; }
.list-panel {
  flex: 1 1 430px; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--radius);
  background: var(--cream); color: var(--cream-ink);
}
.list-panel .eyebrow { color: var(--cream-ink-soft); }
.list-panel h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pips { display: flex; gap: 4px; flex: 1 1 180px; }
.pips i { flex: 1 1 0; height: 9px; border-radius: 5px; background: rgba(35, 38, 31, .14); transition: background .3s var(--ease); }
.pips i.on { background: var(--moss-deep); }
.progress-label { font-size: 14px; color: var(--cream-ink-soft); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  min-height: 72px; padding: 12px 16px 12px 12px; border: 0; border-radius: 20px;
  background: #fff; color: var(--cream-ink); transition: transform .18s var(--ease-out), box-shadow .2s;
}
.task:hover { box-shadow: 0 8px 22px rgba(10, 14, 8, .12); }
.task:active { transform: scale(.995); }
.task.is-done { background: #dfe8cd; color: #2f4219; }
.task-thumb { flex: none; width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: #d9dfcd; }
.task.is-done .task-thumb { opacity: .55; }
.task-body { flex: 1 1 auto; min-width: 0; }
.task-title { display: block; font-size: 17px; font-weight: 400; line-height: 1.22; letter-spacing: -.01em; }
.task.is-done .task-title { text-decoration: line-through; color: #46592f; } /* 4.6:1 -> 6:1 on the done tint, struck-through text needs more */
.task-meta { display: block; font-size: 14px; color: var(--cream-ink-soft); margin-top: 4px; }
.task.is-done .task-meta { color: var(--moss-deep); }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid #6d7563;
  display: inline-flex; align-items: center; justify-content: center; background: transparent;
}
.task.is-done .check { background: var(--moss-deep); border-color: var(--moss-deep); }
.check svg { width: 15px; height: 15px; opacity: 0; }
.task.is-done .check svg { opacity: 1; }
.link-btn {
  align-self: flex-start; display: inline-flex; align-items: center; height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--cream-ink); color: var(--cream); text-decoration: none;
  font-size: 14px; font-weight: 500; cursor: pointer; border: 0;
}

.today-side { flex: 1.1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.today-side .span2 { grid-column: span 2; }
.bignum { display: flex; align-items: baseline; gap: 12px; }
.bignum b { font-size: clamp(52px, 6vw, 88px); line-height: .88; letter-spacing: -.04em; font-weight: 400; }
.bignum span { font-size: 18px; color: var(--ink-soft); }
.photo-tile {
  position: relative; min-height: 230px; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--ink);
  background: #23261f;
}
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 26, 19, 0) 30%, rgba(22, 26, 19, .9) 100%); }
.photo-tile .cap { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.photo-tile .cap b { font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.photo-tile .cap small { font-size: 13.5px; color: var(--ink-soft); }

.moist { display: flex; flex-direction: column; gap: 7px; }
.moist .row { display: flex; justify-content: space-between; font-size: 14.5px; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--water); }

.attn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.attn-card {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--ink);
  background: #23261f; border: 1px solid var(--panel-line);
}
.attn-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.attn-card:hover img { transform: scale(1.05); }
.attn-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 26, 19, 0) 28%, rgba(22, 26, 19, .92) 100%); }
.attn-card .cap { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.attn-card .cap b { font-size: 21px; font-weight: 400; line-height: 1.08; }
.attn-card .cap small { font-size: 13px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.attn-card .chip { white-space: normal; max-width: 100%; }
.leaf-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(201, 216, 165, .5); }
.leaf-ph svg { width: 46%; }

/* ---- charts --------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-faint); font-size: 11px; font-family: var(--sans); }
.chart .grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.chart .axis { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.chart .areaA { fill: rgba(240, 184, 96, .16); }
.chart .lineA { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
.chart .bar { fill: var(--water); }
.chart .endpt { fill: var(--amber); stroke: #22261d; stroke-width: 2; }
.chart .val { fill: var(--ink); font-weight: 500; }
.chart .dash { stroke: rgba(242, 243, 239, .5); stroke-width: 2; stroke-dasharray: 2 5; fill: none; }
.hoverdot { fill: var(--ink); }
.chart-hit { fill: transparent; cursor: crosshair; }
.tip {
  position: fixed; z-index: 30; pointer-events: none; transform: translate(-50%, -115%);
  background: #0f130c; border: 1px solid var(--panel-line); color: var(--ink);
  padding: 7px 11px; border-radius: 10px; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.space-bars { display: flex; flex-direction: column; gap: 11px; }
.space-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.space-row .nm { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.space-row .ct { color: var(--ink-faint); font-size: 13px; }

/* ---- plants browser ------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 10px; align-items: center; margin: 22px 0; }
.search {
  flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--panel-line); background: var(--panel); color: var(--ink); font-size: 15px;
}
.search::placeholder { color: var(--ink-faint); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer; font-size: 13.5px;
  border: 1px solid var(--panel-line); background: var(--panel); color: var(--ink-soft);
}
.filter[aria-pressed="true"] { background: var(--cream); color: var(--cream-ink); border-color: var(--cream); font-weight: 500; }
.plant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); }
.plant-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #23261f; border: 1px solid var(--panel-line);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.plant-card:hover { transform: translateY(-3px); border-color: rgba(201, 216, 165, .4); }
.plant-card .pic { position: relative; aspect-ratio: 1 / 1; background: #1c2018; overflow: hidden; }
.plant-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.plant-card .corner { position: absolute; top: 10px; right: 10px; }
.plant-card .cardbody { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 3px; }
.plant-card .nm { font-size: 15px; font-weight: 400; line-height: 1.2; }
.plant-card .lc { font-size: 13px; color: var(--ink-faint); }
.corner-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(15, 19, 12, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.empty { color: var(--ink-faint); padding: 32px 4px; font-size: 15px; }

/* ---- plant page ----------------------------------------------------- */
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.back:hover { color: var(--ink); }
.plant-top { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 32px); }
.plant-hero { flex: 1 1 320px; max-width: 460px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #23261f; position: relative; }
.plant-hero img { width: 100%; height: 100%; object-fit: cover; }
.plant-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.plant-info h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.02em; font-weight: 400; }
.plant-info .sub { font-size: 15px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 3px; }
.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 0; font-size: 16px; }
.flag-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--panel-line); }
.flag-box textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--panel-line); background: rgba(15, 19, 12, .5); color: var(--ink); font: inherit; font-size: 14px;
}
.flag-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-amber { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--amber); color: var(--amber-ink); font-size: 14px; font-weight: 500; }
.timeline { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.timeline .d { width: 14px; height: 14px; border-radius: 50%; background: var(--water); }
.timeline .lbl { font-size: 13px; color: var(--ink-faint); margin-left: 4px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--panel-line); font-size: 14px; }
.log li:first-child { border-top: 0; }
.log .when { flex: none; width: 92px; color: var(--ink-faint); font-size: 12.5px; }
.log .what { min-width: 0; color: var(--ink-soft); line-height: 1.45; }
.log .what.sys { color: var(--ink-faint); font-style: italic; }
.toggle-sys { background: none; border: 0; cursor: pointer; color: var(--moss); font-size: 13.5px; padding: 6px 0; align-self: flex-start; }

.cols { display: flex; flex-wrap: wrap; gap: var(--gap); }
.cols > * { flex: 1 1 320px; min-width: 0; }

/* ---- login ---------------------------------------------------------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 24px; }
.login {
  width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 5vw, 44px); border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line); text-align: left;
}
.login h1 { margin: 6px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.login-lede { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.login form { display: flex; flex-direction: column; gap: 6px; }   /* fields fill the card, not their default widths */
.login label { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.login label:first-child { margin-top: 0; }
.login input {
  height: 48px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--panel-line);
  background: rgba(15, 19, 12, .5); color: var(--ink); font: inherit; font-size: 16px;
}
.login input:focus { border-color: var(--moss); outline: none; }
.login button {
  margin-top: 18px; height: 50px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--moss); color: var(--bg); font-size: 16px; font-weight: 500;
}
.login button:disabled { opacity: .6; cursor: progress; }
.login-error { margin: 2px 0 0; font-size: 13.5px; color: #f3b0a0; }

@media (max-width: 560px) {
  .today-side { grid-template-columns: minmax(0, 1fr); }
  .today-side .span2 { grid-column: auto; }
  .attn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-row { grid-template-columns: 110px 1fr auto; }
  .top-end { margin-left: 0; width: 100%; }
  .list-panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .photo-tile img, .attn-card img, .plant-card { transition: none !important; }
}

/* ======== reactive enhancements ===================================== */

/* living atmosphere: drifting pollen + time-of-day warmth, behind everything */
#pollen, #sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#sky {
  background:
    radial-gradient(130% 70% at 50% -12%, rgba(240, 200, 120, var(--warm, 0)), transparent 62%),
    radial-gradient(130% 70% at 50% -12%, rgba(150, 190, 220, var(--cool, 0)), transparent 62%);
  transition: background 3s linear;
}
.page { position: relative; z-index: 1; }

/* 1 — pointer-lit glass tiles: subtle 3D tilt + a light that tracks the cursor */
.photo-tile, .attn-card, .plant-card, .plant-hero { transform-style: preserve-3d; }
.photo-tile.is-tilting, .attn-card.is-tilting, .plant-card.is-tilting, .plant-hero.is-tilting {
  transition: transform .1s linear;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-2px);
}
.photo-tile::after, .attn-card::after, .plant-hero::after, .plant-card .pic::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .3s; mix-blend-mode: screen;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 216, 165, .30), transparent 62%);
}
.photo-tile.is-tilting::after, .attn-card.is-tilting::after,
.plant-hero.is-tilting::after, .plant-card.is-tilting .pic::after { opacity: 1; }
.photo-tile .cap, .attn-card .cap { position: relative; z-index: 2; }
.plant-card .corner { z-index: 2; }

/* 2 — hover-to-peek specimen card */
#peek {
  position: fixed; z-index: 40; pointer-events: none; width: 240px; display: flex; gap: 12px;
  padding: 12px; border-radius: 16px; background: #10140d; border: 1px solid var(--panel-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: peek-in .16s var(--ease-out);
}
#peek .peek-pic {
  flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #23261f;
  display: flex; align-items: center; justify-content: center; color: #9bb06e;
}
#peek .peek-pic img { width: 100%; height: 100%; object-fit: cover; }
#peek .peek-pic .peek-leaf svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2; }
#peek .peek-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#peek .peek-nm { font-size: 15px; font-weight: 500; line-height: 1.15; }
#peek .peek-sub { font-size: 12px; color: var(--ink-faint); }
#peek .peek-chip { margin-top: 3px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#peek .peek-chip.settled { background: rgba(201, 216, 165, .18); color: var(--moss); }
#peek .peek-chip.dry { background: rgba(143, 193, 217, .16); color: #bfe0ef; }
#peek .peek-chip.attention { background: rgba(240, 184, 96, .18); color: #f7d79a; }
#peek .peek-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
@keyframes peek-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 3 — the satisfying tick: a water ripple and a lift of pollen */
#fx { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.fx-ripple { position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--moss); opacity: .9; animation: fx-ripple .6s var(--ease-out) forwards; }
@keyframes fx-ripple { to { transform: scale(4.6); opacity: 0; } }
.fx-mote { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--moss); opacity: 0; animation: fx-mote .85s ease-out forwards; }
@keyframes fx-mote { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx, 0), var(--dy, -24px)) scale(1); opacity: 0; } }

/* 5 — brushing: dim the garden, light the matching cohort */
#view[data-brush] .plant-card, #view[data-brush] .attn-card { opacity: .4; transition: opacity .25s ease; }
#view[data-brush="settled"] .plant-card[data-standing="settled"],
#view[data-brush="dry"] .plant-card[data-standing="dry"],
#view[data-brush="attention"] .plant-card[data-standing="attention"],
#view[data-brush="attention"] .attn-card { opacity: 1; }
#view[data-brush] .standbar i { transition: opacity .2s; }
#view[data-brush="settled"] .standbar i:not(.s-settled),
#view[data-brush="dry"] .standbar i:not(.s-dry),
#view[data-brush="attention"] .standbar i:not(.s-attention) { opacity: .25; }
#view[data-brush] .legend span { transition: opacity .2s; }
#view[data-brush="settled"] .legend span:not([data-brush="settled"]),
#view[data-brush="dry"] .legend span:not([data-brush="dry"]),
#view[data-brush="attention"] .legend span:not([data-brush="attention"]) { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  #view[data-brush="settled"] .plant-card[data-standing="settled"],
  #view[data-brush="dry"] .plant-card[data-standing="dry"],
  #view[data-brush="attention"] .plant-card[data-standing="attention"],
  #view[data-brush="attention"] .attn-card { animation: brush-pulse 1.5s ease-in-out infinite; }
}
@keyframes brush-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .10); }
  50% { box-shadow: 0 0 0 2px rgba(201, 216, 165, .55), 0 10px 26px rgba(0, 0, 0, .35); }
}


/* public read-only view */
body.guest .check, body.guest .flag-box, body.guest #refresh { display: none; }
body.guest .task { cursor: default; }

/* ---- three finishing touches (2026-10-20) ---------------------------- */
/* 1 — soil meters read like water in a glass: dry amber -> wet blue, a slow sheen, fills up on load */
.meter { height: 10px; border-radius: 6px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.meter i {
  position: relative; border-radius: 6px; background: var(--water);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0));
  background-size: 60% 100%; background-repeat: no-repeat; background-position: -80% 0;
  box-shadow: 0 0 12px -2px currentColor; color: var(--water);
}
.meter i[data-level="dry"] { background-color: var(--amber); color: var(--amber); }
.meter i[data-level="ok"] { background-color: var(--moss); color: var(--moss); }
.meter i[data-level="wet"] { background-color: var(--water); color: var(--water); }
@media (prefers-reduced-motion: no-preference) {
  .meter i { animation: meter-fill 1.1s var(--ease-out) both, meter-sheen 6s ease-in-out 1.2s infinite; }
}
@keyframes meter-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.meter i { transform-origin: left center; }
@keyframes meter-sheen { 0%, 55% { background-position: -80% 0; } 100% { background-position: 180% 0; } }

/* 2 — everything rises into place, one after another */
@media (prefers-reduced-motion: no-preference) {
  #view .tile, #view .list-panel, #view .photo-tile, #view .attn-card, #view .plant-card {
    animation: rise-in .7s var(--ease-out) both;
  }
  #view > :nth-child(2), #view .today-side > :nth-child(2) { animation-delay: .07s; }
  #view .today-side > :nth-child(3) { animation-delay: .14s; }
  #view .today-side > :nth-child(4) { animation-delay: .21s; }
  #view .today-side > :nth-child(5) { animation-delay: .28s; }
  #view .attn-card:nth-child(2), #view .plant-card:nth-child(3n+2) { animation-delay: .08s; }
  #view .attn-card:nth-child(3), #view .plant-card:nth-child(3n) { animation-delay: .16s; }
  #view .attn-card:nth-child(4) { animation-delay: .24s; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 3 — dappled light: leaf shadows drift slowly across the cream "today" panel; glass edge on tiles */
.list-panel { position: relative; isolation: isolate; overflow: hidden; }
.list-panel::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(38% 30% at 22% 28%, rgba(61, 82, 38, .13), transparent 70%),
    radial-gradient(30% 24% at 68% 18%, rgba(61, 82, 38, .10), transparent 70%),
    radial-gradient(34% 28% at 80% 72%, rgba(61, 82, 38, .12), transparent 70%),
    radial-gradient(26% 22% at 30% 82%, rgba(240, 184, 96, .14), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .list-panel::before { animation: dapple 38s ease-in-out infinite alternate; }
}
@keyframes dapple { from { transform: translate(-3%, -2%) rotate(-2deg) scale(1); } to { transform: translate(4%, 3%) rotate(3deg) scale(1.08); } }
.tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 18px 40px -26px rgba(0, 0, 0, .7); }

/* ---- the living micro-garden (scene.js) ------------------------------- */
.scene { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 24px 50px -30px rgba(0, 0, 0, .8); background: #1b2340; }
.scene-canvas { display: block; width: 100%; touch-action: pan-y; }
.cam-ctl { position: absolute; right: clamp(10px, 2vw, 22px); top: clamp(10px, 2vw, 22px); display: flex; gap: 6px; align-items: center; }
.cam-ctl button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--panel-line); background: rgba(15, 19, 12, .72);
  color: var(--ink); font: 600 15px/1 Outfit, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(4px); }
.cam-ctl button:hover, .cam-ctl button:focus-visible { background: rgba(15, 19, 12, .92); outline: 2px solid #9fd36b; outline-offset: 1px; }
.cam-ctl .cam-iso { font-size: 13px; letter-spacing: .02em; }
.cam-ctl .cam-home { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; }
@media (pointer: coarse), (max-width: 520px) { .cam-ctl button { min-width: 44px; height: 44px; border-radius: 22px; } }
@media (max-width: 520px) { .cam-ctl { top: auto; bottom: 10px; } .cam-ctl button { height: 44px; min-width: 44px; } } /* thumb-sized on phones */
@media (max-width: 520px) { .scene.editing .cam-ctl { top: 10px; bottom: auto; } .scene.editing .scene-cap { display: none; } }   /* while editing, the lower board is where fingers work; the time bar still shows the hour */
.scene-cap { position: absolute; left: clamp(16px, 2.4vw, 28px); top: clamp(14px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 6px;
  color: #fff; padding: 12px 16px 13px; border-radius: 16px; background: rgba(15, 19, 12, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.scene-now { font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.scene-sun, .scene-next { font-size: 15px; color: rgba(255, 255, 255, .9); }
.scene-next { color: #d6ecf8; }
.scene-key { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 12px; font-size: 13px; color: #fff;
  background: rgba(15, 19, 12, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.scene-key span { display: inline-flex; align-items: center; gap: 6px; }
.scene-key i { width: 9px; height: 9px; display: inline-block; }
.scene-key .k-dry { background: var(--water); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.scene-key .k-attn { background: var(--amber); transform: rotate(45deg); }
.scene-tip { position: absolute; transform: translate(-50%, -100%); background: #0f130c; border: 1px solid var(--panel-line); color: var(--ink);
  padding: 6px 10px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; pointer-events: none; z-index: 2; }
@media (max-width: 560px) { .scene-key { left: 12px; right: auto; } }
@media (max-width: 520px) { .scene-key { bottom: 64px; right: 12px; flex-wrap: wrap; row-gap: 4px; border-radius: 12px; background: rgba(15, 19, 12, .72); } } /* lifts the legend above the camera buttons */

/* ---- the garden board editor ------------------------------------------- */
.scene-stage { position: relative; }
.scene.editing { display: grid; grid-template-columns: minmax(0, 1fr) 240px; overflow: visible; }
.scene.editing .board-bar, .scene.editing .board-tools { grid-column: 1 / -1; }
.scene.editing .scene-canvas { touch-action: none; }
.scene.planning { border-color: rgba(143, 193, 217, .55); }
.plan-badge { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(27, 67, 84, .85); color: #d6ecf8;
  border: 1px solid rgba(143, 193, 217, .5); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; pointer-events: none; }
.board-bar, .board-tools { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; background: rgba(15, 19, 12, .55); }
.board-bar { flex-direction: row; flex-wrap: wrap; align-items: center; }
.board-tools { border-top: 1px solid var(--panel-line); }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tool-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(242, 243, 239, .06); }
.seg button { border: 0; background: none; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--moss); color: var(--cream-ink); font-weight: 500; }
.bb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(242, 243, 239, .06); font-size: 13.5px; }
.bb:hover { border-color: rgba(255, 255, 255, .3); }
.bb.on, .bb[aria-pressed="true"] { background: rgba(201, 216, 165, .2); border-color: var(--moss); }
.bb.strong { background: var(--moss); color: var(--cream-ink); border-color: var(--moss); font-weight: 500; }
.bb .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255, 255, 255, .25); }
.board-status { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.board-status.bad { color: var(--amber); }
.board-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: rgba(15, 19, 12, .55);
  border-left: 1px solid var(--panel-line); max-height: 680px; overflow: auto; }
.board-side h3 { margin: 0; font-size: 16px; font-weight: 500; }
.side-note { margin: 0; font-size: 13px; color: var(--ink-faint); }
.side-list { display: flex; flex-direction: column; gap: 6px; }
.chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(242, 243, 239, .08); cursor: grab; touch-action: none; font-size: 13.5px; }
.chip small { font-size: 11.5px; color: var(--ink-faint); }
.side-pick { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--panel-line); font-size: 13px; }
.side-pick b { font-size: 15px; font-weight: 500; }
.side-pick .muted { color: var(--ink-faint); }
.side-pick .warn { color: #ffb36b; }
.pick-facts, .pick-src { color: var(--ink-soft); line-height: 1.4; }
.pick-src a { color: var(--ink-faint); }
.light-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.board-ghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -140%); background: #0f130c; color: var(--ink);
  border: 1px solid var(--moss); padding: 6px 10px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.scene-key .k-sun { background: #ff9f43; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 159, 67, .35); }
/* ---- the sun simulator: date, time, season, units ----------------------- */
.scene-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; background: rgba(15, 19, 12, .55);
  border-top: 1px solid var(--panel-line); font-size: 13.5px; }
.scene.editing .scene-time { grid-column: 1 / -1; }
.scene-time input[type="date"] { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(242, 243, 239, .06); color: var(--ink); font: inherit; }
.t-slide { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.t-time { flex: 1; min-width: 0; height: 36px; accent-color: #f3c96b; cursor: pointer; }
.t-clock { min-width: 8.5em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.t-seasons button, .t-units button { padding: 0 11px; }
.t-scale { color: var(--ink-faint); font-size: 12.5px; }
.season-hrs { color: var(--ink-soft); }
@media (max-width: 560px) {
  .scene-time { padding: 10px 12px; }
  .t-slide { flex-basis: 100%; }
  .t-seasons { flex: 1 1 auto; justify-content: space-between; }
}
@media (max-width: 760px) {
  .scene.editing { grid-template-columns: minmax(0, 1fr); }
  .board-side { border-left: 0; border-top: 1px solid var(--panel-line); max-height: none; }
  .side-list { flex-direction: row; flex-wrap: wrap; }
  .board-status { margin-left: 0; width: 100%; }
}

/* ---- weather heads-up + placement tips (words and sources: static/tips.json) ---- */
.heads-up {
  margin: 0 0 var(--gap); padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(143, 193, 217, .10); border: 1px solid rgba(143, 193, 217, .35);
}
.heads-up h2 { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--water); }
.heads-up details + details { margin-top: 6px; border-top: 1px solid var(--panel-line); padding-top: 6px; }
.heads-up summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 20px; font-weight: 600; }
.heads-up .hu-heat summary { color: var(--amber); }
.tips { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.tips .src, .pick-tips a { font-size: 13.5px; color: var(--ink-faint); white-space: nowrap; }
.pick-tips { margin: 2px 0 4px; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; color: var(--ink-soft); }
.bb .sw-low { background: rgba(90, 160, 220, .55); border-color: rgba(120, 190, 235, .9); }
/* ---- Set up your yard (scene.js) and the fence-height row ----------------- */
.scene.editing .board-setup { grid-column: 1 / -1; }
.board-setup { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: rgba(15, 19, 12, .7); border-bottom: 1px solid var(--panel-line); }
.board-setup h3 { margin: 0; font-size: 18px; font-weight: 500; }
.board-setup p, .board-setup ol { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.su-list { padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.su-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.su-grid fieldset { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--panel-line); border-radius: 12px; min-width: 0; }
.su-grid legend { padding: 0 6px; font-size: 13.5px; font-weight: 500; }
.su-grid label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.su-grid small, .fence-note { font-size: 12px; color: var(--ink-faint); }
.board-setup input[type="number"], .fence-ft input { height: 40px; width: 96px; padding: 0 8px; border-radius: 10px; font-size: 16px; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(242, 243, 239, .06); }
.fence-ft { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.su-note { color: #ffc078; }
.su-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.su-foot .bb { min-height: 44px; padding: 0 22px; }
.su-foot .bb:disabled { opacity: .45; cursor: default; }
.su-msg { font-size: 13px; color: var(--ink-soft); }

/* Kodama: add a plant from the sideboard, and the builder tour */
.side-add { display: flex; flex-direction: column; gap: 6px; }
.side-add label { font-size: 13px; color: var(--ink-soft); }
.side-add span { display: flex; gap: 6px; }
.side-add input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(242, 243, 239, .08); color: var(--ink); }
.chip-new { border-color: var(--moss); box-shadow: 0 0 0 2px var(--moss); }
.tour-target { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 10px; }
.tour { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: #0f130c; color: var(--ink);
  border: 1px solid var(--moss); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.tour h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.tour p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.tour .tour-n { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.tour-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.tour-btns .bb { min-height: 44px; }
.tour.tour-top { bottom: auto; top: calc(16px + env(safe-area-inset-top, 0px)); }
/* finger-sized controls on touch screens (iPhone test 2026-10-22: many were 34-40 px) */
@media (pointer: coarse) { .bb, .ghost, .board-setup input, .side-add input, .side-add button { min-height: 44px; } }
@media (prefers-reduced-motion: no-preference) {
  .chip-new { animation: chip-glow 1.2s ease-out 2; }
  @keyframes chip-glow { 50% { box-shadow: 0 0 0 6px rgba(201, 216, 165, .35); } }
}
.side-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-gestures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.tour-gestures figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tour-gestures svg { width: 56px; height: 56px; }
.tour-gestures figcaption { font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.g-dot { fill: var(--moss); }
.g-mouse { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.g-hot { fill: var(--moss); }
.g-arc { fill: none; stroke: var(--moss); stroke-width: 3; stroke-linecap: round; }
.tour-gestures svg * { transform-box: view-box; transform-origin: 32px 32px; }
@media (prefers-reduced-motion: no-preference) {
  .g-spin .g-move { animation: g-turn 2.4s ease-in-out infinite alternate; }
  .g-pinch .g-l { animation: g-left 1.6s ease-in-out infinite alternate; }
  .g-pinch .g-r { animation: g-right 1.6s ease-in-out infinite alternate; }
  .g-scroll .g-move { animation: g-updown 1.8s ease-in-out infinite alternate; }
  .g-wheel .g-wheel-bit { animation: g-roll 1s ease-in-out infinite alternate; }
  .g-pan .g-move { animation: g-side 1.8s ease-in-out infinite alternate; }
  @keyframes g-turn { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
  @keyframes g-left { to { transform: translateX(-9px); } }
  @keyframes g-right { to { transform: translateX(9px); } }
  @keyframes g-updown { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
  @keyframes g-roll { to { transform: translateY(4px); } }
  @keyframes g-side { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
}
/* Snap a plant */
.snap-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #ffd166; border-radius: 12px; background: rgba(255, 209, 102, .07); }
.snap-card p { margin: 0; font-size: 14px; }
.snap-card .snap-q { font-size: 16px; font-weight: 500; }
.snap-card .snap-why, .snap-card .snap-wait { color: var(--ink-soft); font-size: 13px; }
.snap-card .snap-err { color: #ffb36b; }
.snap-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.snap-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.snap-btns .bb { min-height: 44px; }
.snap-other { display: flex; flex-direction: column; gap: 6px; }
.snap-other span { display: flex; gap: 6px; }
.snap-other input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(242, 243, 239, .08); color: var(--ink); }

/* ---- "Something wrong?" (Kodama): a footer button and a plain dialog; nothing floats over the board ---- */
#fb { width: min(440px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--panel-line); border-radius: var(--radius); background: #0f130c; color: var(--ink); }
#fb::backdrop { background: rgba(0, 0, 0, .6); }
#fb h3 { margin: 0 0 12px; font-size: 17px; font-weight: 500; }
#fb label { display: block; font-size: 14px; margin-bottom: 8px; }
#fb textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--panel-line); border-radius: var(--radius-sm); padding: 10px; resize: vertical; }
.fb-msg { min-height: 1.3em; margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.fb-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.fb-btns button { min-height: 44px; }

/* touch: footer, nav and sign-out controls get a 44px target (desktop sizes unchanged) */
@media (pointer: coarse) { .pill-nav a, .ghost, #fb-open { min-height: 44px; } }

/* ---- Kodama warnings: the "recommends against" dialog, the account switches, the board legend marker ---- */
#warn, #acct { width: min(460px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--panel-line); border-radius: var(--radius); background: #0f130c; color: var(--ink); }
#warn::backdrop, #acct::backdrop { background: rgba(0, 0, 0, .6); }
#warn h3, #acct h3 { margin: 0 0 12px; font-size: 17px; font-weight: 500; }
.warn-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.warn-list li { font-size: 14px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; border-left: 3px solid #ffb36b; background: rgba(255, 179, 107, .08); }
.warn-list li.w-stop { border-left-color: #e4572e; background: rgba(228, 87, 46, .12); }
.warn-list a, .side-pick .warn a { color: var(--moss); white-space: nowrap; }
.warn-alt-h { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); }
.warn-alts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.warn-alts label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--panel-line); font-size: 15px; cursor: pointer; }
.warn-alts input { width: 20px; height: 20px; accent-color: var(--moss); }
.warn-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.warn-btns .bb { min-height: 44px; }
.side-pick .warn-quiet { font-size: 12px; }
.scene-key .k-warn { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #e4572e; }
.acct-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.acct-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--moss); }
.acct-row span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.acct-row small { font-size: 13px; color: var(--ink-soft); }
@media (pointer: coarse) { #acct-open { min-height: 44px; } }
.sel-bar { position: absolute; transform: translate(-50%, -100%); margin-top: -10px; display: flex; gap: 4px; z-index: 3;
  background: rgba(15, 19, 12, .88); border: 1px solid var(--panel-line); border-radius: 999px; padding: 4px; }
.sel-bar button { min-width: 44px; height: 36px; padding: 0 10px; border-radius: 18px; border: 0; background: transparent; color: var(--ink); font: 600 13px Outfit, system-ui, sans-serif; cursor: pointer; }
.sel-bar button:hover, .sel-bar button:focus-visible { background: rgba(159, 211, 107, .18); outline: 2px solid #9fd36b; outline-offset: -2px; }
