/* ===== Bloom — cosy job hunt garden ===== */
:root {
  --bg: #FFF8EC;
  --paper: #FFFDF8;
  --ink: #3E3A35;
  --ink-soft: #7A7064;
  --line: #EFE3CF;
  --line-strong: #E2D2B8;
  --leaf: #6CC08B;
  --leaf-dark: #3F9A63;
  --leaf-soft: #E3F6E8;
  --sky: #8FD3F4;
  --peach: #FFB38A;
  --butter: #FFD966;
  --lilac: #C3A6F2;
  --rose: #FF8FA3;
  --danger: #E4576B;
  --shadow: 0 4px 0 var(--line-strong);
  --shadow-lg: 0 18px 50px rgba(91, 70, 54, .18);
  --r: 20px;
  --r-sm: 12px;
  --font: 'Gabarito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(194, 170, 130, .18) 1.2px, transparent 0);
  background-size: 22px 22px;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: var(--leaf-dark); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .6em; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.block { display: block; }
.spacer { flex: 1; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }

/* ===== Layout ===== */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 16px; background: var(--paper); border-right: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 12px; color: var(--ink); text-decoration: none !important; border-radius: 16px; transition: transform .2s; }
.brand:hover { transform: translateY(-1px); }
.brand-mark { width: 52px; height: 52px; flex: none; display: block; }
.brand-word { width: 94px; height: auto; display: block; flex: none; position: relative; top: 7px; left: -5px; }
.mobile-brand { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #B3A792; margin: 14px 12px 4px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink-soft);
  font-weight: 600; text-decoration: none; position: relative; transition: background .15s, color .15s, transform .15s;
}
.nav a:hover { background: #FBF1E0; color: var(--ink); }
.nav a.active { background: var(--leaf-soft); color: var(--leaf-dark); box-shadow: inset 0 0 0 2px #CDEBD6; }
.nav a.active .i { stroke-width: 2.4; }
.nav-badge { margin-left: auto; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.sidebar-foot { margin-top: auto; }
.save-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; background: #F6EEDF; }
.save-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(108, 192, 139, .25); }
.save-pill[data-state="saving"] .dot { background: var(--butter); box-shadow: 0 0 0 3px rgba(255, 217, 102, .35); animation: pulse .8s infinite alternate; }
.save-pill[data-state="error"] .dot { background: var(--danger); }
@keyframes pulse { to { transform: scale(1.4); } }

.main { min-width: 0; padding: 22px 32px 60px; outline: none; }
.topbar { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar-left { flex: 1; min-width: 220px; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.page-sub { color: var(--ink-soft); margin: 4px 0 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; position: relative; flex-wrap: wrap; }
/* "Log something": shrinks away on tracker pages and grows back elsewhere; the chips slide over as it does */
#quickAddBtn { max-width: 240px; white-space: nowrap; overflow: hidden; }
#quickAddBtn.qa-anim { transition: max-width .31s cubic-bezier(.2, .8, .3, 1), padding .31s cubic-bezier(.2, .8, .3, 1), margin .31s cubic-bezier(.2, .8, .3, 1), border-width .31s, opacity .22s ease, transform .31s cubic-bezier(.2, .8, .3, 1), visibility 0s; }
#quickAddBtn.qa-hidden { max-width: 0; padding-left: 0; padding-right: 0; border-width: 0; margin-left: -10px; opacity: 0; transform: scale(.85); visibility: hidden; pointer-events: none; }
#quickAddBtn.qa-anim.qa-hidden { transition-property: max-width, padding, margin, border-width, opacity, transform, visibility; transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, .31s; }
@media (prefers-reduced-motion: reduce) { #quickAddBtn.qa-anim { transition: none; } }
.chip-stat { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: 14px; box-shadow: 0 3px 0 var(--line); }
.chip-stat b { font-size: 16px; }
.chip-stat .muted { font-size: 12px; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: #FFD23F; box-shadow: inset 0 0 0 3px #F0B900; }
.flame { width: 16px; height: 18px; background: #FF8C32; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(-4deg); box-shadow: inset 0 -5px 0 #FFC93C; }

.view.enter { animation: viewIn .35s cubic-bezier(.2, .8, .3, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ===== Buttons ===== */
.btn {
  --b: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
  border: 2px solid var(--line-strong); background: var(--b); color: var(--ink); padding: 9px 16px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 3px 0 var(--line-strong); transition: transform .1s, box-shadow .1s, background .15s; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--line-strong); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--leaf); color: #fff; border-color: var(--leaf-dark); box-shadow: 0 3px 0 var(--leaf-dark); }
.btn-primary:hover { background: #5DB67D; box-shadow: 0 4px 0 var(--leaf-dark); }
.btn-primary:active { box-shadow: 0 1px 0 var(--leaf-dark); }
.btn-soft { background: #FFF4DF; }
.btn-soft:hover { background: #FFEBC7; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: #F6EEDF; box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; border-color: #B83B4F; box-shadow: 0 3px 0 #B83B4F; }
.danger-text { color: var(--danger); }
.btn-lg { padding: 12px 22px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 11px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 9px; box-shadow: 0 2px 0 var(--line-strong); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { background: #F6EEDF; color: var(--ink); }
.icon-btn .i { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--leaf-dark); cursor: pointer; text-decoration: underline; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0 14px; }

/* quick add menu */
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 250px; animation: pop .18s ease-out; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); border-radius: 12px; cursor: pointer; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--leaf-soft); outline: none; }
.menu button small { margin-left: auto; font-size: 11px; color: var(--leaf-dark); background: #EEF9F1; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ===== Cards ===== */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 28%, #fff); color: color-mix(in srgb, var(--c) 45%, #3E3A35); border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff); white-space: nowrap; }
.meter { height: 10px; background: #F1E8D8; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #8ED49C, var(--leaf)); border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .3, 1); }
.meter.big { height: 14px; flex: 1; max-width: 420px; }

/* ===== Garden ===== */
.garden-card { padding: 0; overflow: hidden; }
.garden-scene { position: relative; background: linear-gradient(var(--sky, #A5A8E4) 0 50%, var(--grass, #788B28) 50% 100%); line-height: 0; }
.garden-canvas { position: relative; width: 100%; }
/* Painterly scenery sits in its own layer behind the interactive SVG; a light paper grain goes over both. */
#gardenBg { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
#gardenSvg { position: relative; }
.garden-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .31; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .2 1.4 0 0 0 -.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat; background-size: 256px 256px; }
.garden-scene svg { width: 100%; height: auto; display: block; user-select: none; }
#gardenSvg .plot-hit { fill: transparent; cursor: pointer; outline: none; }
#gardenSvg:focus { outline: none; } /* clicking the bunny, a pet or the grass focuses the whole picture; don't ring it (plots show their own highlight) */
#gardenSvg .plot-vis .soil { transition: filter .15s; }
#gardenSvg .plot-vis.hover .soil { filter: brightness(1.12) drop-shadow(0 0 6px #fff); stroke: #fff; stroke-width: 4; stroke-opacity: 1; }
#gardenSvg .plot-vis.locked.hover rect { fill: #C4E8B2; }
#gardenSvg #butterflies, #gardenSvg #plotLayer { pointer-events: none; }
#gardenSvg[data-tool="water"] .plot-hit { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 4 C10 13 8 17 8 20 a8 8 0 0 0 16 0 c0-3-2-7-8-16z' fill='%238FD3F4' stroke='%235B4636' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer; }
#gardenSvg[data-tool="seed"] .plot-hit { cursor: copy; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.5s ease-in-out infinite; }
.bob { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 1.8s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(3deg); } }
@keyframes bob { 50% { transform: translateY(-3px) scale(1.03); } }
.plot-vis:nth-child(2n) .sway { animation-delay: -1.2s; }
.plot-vis:nth-child(3n) .sway { animation-delay: -2.1s; }
.sparkles path { animation: twinkle 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sparkles path:nth-child(2) { animation-delay: .6s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cloud { animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(1100px); } }
.cloud:nth-of-type(2) { animation-delay: -40s; }
.glow { animation: glowp 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glowp { 50% { opacity: .5; transform: scale(1.2); } }
.blades { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bee { animation: buzz 2.5s ease-in-out infinite; }
@keyframes buzz { 25% { transform: translate(-10px, -6px); } 50% { transform: translate(6px, -12px); } 75% { transform: translate(-4px, 4px); } }
.bird { animation: hop 3s ease-in-out infinite; }
@keyframes hop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-4px); } }
.frog { animation: hop 4s ease-in-out infinite; }
.cat .tail { animation: tail 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes tail { 50% { transform: rotate(14deg); } }
.zzz { animation: zzz 3s ease-in-out infinite; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -10px); } }
.butterfly { offset-rotate: 0deg; }
.butterfly > g { animation: flap .3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes flap { to { transform: scaleX(.3); } }
.butterfly.b0 { animation: fly0 18s ease-in-out infinite; }
.butterfly.b1 { animation: fly1 22s ease-in-out infinite; }
.butterfly.b2 { animation: fly2 26s ease-in-out infinite; }
@keyframes fly0 { 0%, 100% { transform: translate(380px, 330px); } 25% { transform: translate(560px, 280px); } 50% { transform: translate(720px, 360px); } 75% { transform: translate(520px, 420px); } }
@keyframes fly1 { 0%, 100% { transform: translate(840px, 420px); } 33% { transform: translate(620px, 470px); } 66% { transform: translate(460px, 380px); } }
@keyframes fly2 { 0%, 100% { transform: translate(250px, 480px); } 50% { transform: translate(600px, 520px); } }
#critter { cursor: pointer; }
#critter.sitting .ear { transform-box: fill-box; transform-origin: 50% 100%; animation: earTwitch 4.5s ease-in-out infinite; }
#gardenSvg [data-pet] { cursor: pointer; }
#gardenSvg .bird, #gardenSvg .cat { transform-box: fill-box; transform-origin: 50% 100%; }
#gardenSvg .bird.flap { animation: birdSing .7s ease; }
#gardenSvg .cat.stretch { animation: catStretch .9s ease; }
.tod-night .garden-empty-card { background: rgba(255, 253, 248, .96); }

.garden-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; line-height: 1.45; pointer-events: none; }
.garden-empty[hidden] { display: none; }
.garden-empty-card { pointer-events: auto; background: rgba(255, 253, 248, .94); backdrop-filter: blur(4px); border: 2px solid var(--line); border-radius: 22px; padding: 20px 24px; max-width: 380px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .4s ease-out; margin-top: -60px; }
.garden-empty-card h3 { font-size: 22px; margin-bottom: 6px; }
.garden-empty-card p { color: var(--ink-soft); }

.garden-controls { padding: 14px 18px 18px; border-top: 2px solid var(--line); background: linear-gradient(#FFFDF8, #FFF8EC); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tool {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 78px; padding: 8px 10px 6px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--paper); font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.tool:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); }
.tool.active { background: var(--leaf-soft); border-color: var(--leaf); box-shadow: 0 3px 0 var(--leaf-dark); }
.tool:disabled { opacity: .45; cursor: not-allowed; }
.tool .count { position: absolute; top: -8px; right: -6px; background: var(--ink); color: #fff; font-size: 11px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; border: 2px solid var(--paper); }
.tool-hint { margin: 10px 2px 12px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.bag-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.bag-head h3 { font-size: 15px; }
.seed-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seed-chip { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); }
.seed-chip:hover { background: #FFF4DF; }
.seed-chip.active { border-color: var(--leaf); background: var(--leaf-soft); }
.seed-chip b { color: var(--ink-soft); font-size: 12px; }

/* plot popovers */
.plot-pop .plot-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.plot-pop .plot-head > div { flex: 1; }
.plot-pop .plot-head h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 20px; }
.plot-pop .plot-head small { display: block; margin-top: 6px; }
.link-box { background: #F6FBF7; border: 2px dashed #CDEBD6; padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.link-box .i { width: 16px; height: 16px; vertical-align: -3px; color: var(--leaf-dark); }
.quick-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.quick-feed .btn { flex-direction: column; gap: 4px; white-space: normal; padding: 10px 8px; text-align: center; }
.quick-feed .btn small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.quick-feed .btn-lg { grid-column: 1 / -1; flex-direction: row; }
.seed-pick { display: grid; gap: 8px; margin-top: 10px; }
.seed-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 14px 8px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.seed-card:hover { transform: translateY(-2px); border-color: var(--c); }
.seed-card > span { flex: 1; display: flex; flex-direction: column; }
.seed-card small { color: var(--ink-soft); font-size: 12px; }
.seed-card .link-note { color: var(--leaf-dark); font-weight: 600; }
.seed-card .count { font-size: 16px; }
.empty-art { display: flex; justify-content: center; margin-bottom: 8px; }
.plot-pop > p { font-size: 15px; }

/* ===== Dashboard ===== */
.home { display: flex; flex-direction: column; gap: 20px; }
.dash { display: flex; flex-direction: column; gap: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.stat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 35%, #fff); color: color-mix(in srgb, var(--c) 40%, #3E3A35); flex: none; }
.stat small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat .muted { font-size: 12px; }
.dash-grid { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 14px; align-items: start; }
.goal-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--leaf) calc(var(--p) * 360deg), #F1E8D8 0); margin: 6px 0; }
.ring > div { width: 92px; height: 92px; background: var(--paper); border-radius: 50%; display: grid; place-items: center; align-content: center; }
.ring b { font-size: 32px; font-weight: 800; line-height: 1; }
.ring small { color: var(--ink-soft); font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-list > li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: #FBF6EC; }
.row-actions { display: flex; gap: 4px; flex: none; }
.pipe { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 3px; margin: 4px 0 10px; }
.pipe span { background: var(--c); min-width: 8px; }
.pipe-legend { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-soft); }
.pipe-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.pipe-legend b { color: var(--ink); }
.garden-mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding-top: 10px; border-top: 2px dashed var(--line); }
.garden-mini span { display: inline-flex; align-items: center; gap: 4px; }
.garden-mini .ready { color: var(--leaf-dark); }
.garden-mini .i { width: 18px; height: 18px; }
.nudge-card { background: #FFF6E0; border-color: #F6E2B0; box-shadow: 0 4px 0 #F0D79A; }
.nudge-card h3 { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.nudge-card .mini-list > li { background: #FFFDF6; }
.activity-card { grid-column: span 2; }
.nudge-card + .activity-card { grid-column: span 1; }
.activity { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.activity li span:nth-child(2) { flex: 1; }
.activity li small { color: var(--ink-soft); white-space: nowrap; }
.activity .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; }
.activity .k-stage .dot { background: var(--peach); }
.activity .k-garden .dot { background: var(--leaf); }
.activity .k-walkins .dot { background: var(--rose); }
.activity .k-outreach .dot { background: var(--butter); }
.activity .k-feedback .dot { background: var(--lilac); }

/* ===== Deadlines ===== */
.dl-row { cursor: pointer; transition: background .15s; }
.dl-row:hover { background: #F6EEDF !important; }
.dl-row .dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-row .dl-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-when { text-align: right; display: flex; flex-direction: column; font-size: 13px; flex: none; }
.dl-row .dl-when small { color: var(--ink-soft); }
.dl-row.overdue .dl-when small { color: var(--danger); font-weight: 700; }
.dl-row.soon .dl-when small { color: #C98400; font-weight: 700; }
.dl-row.done .dl-main b { text-decoration: line-through; color: var(--ink-soft); }
.tick { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; transition: all .15s; }
.tick:hover { border-color: var(--leaf); color: #CDEBD6; }
.tick.on { background: var(--leaf); border-color: var(--leaf-dark); color: #fff; }
.tick .i { width: 16px; height: 16px; stroke-width: 3; }
.dl-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.dl-lists { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dl-group h3 { margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.dl-group h3 b { font-size: 12px; background: #F1E8D8; padding: 2px 8px; border-radius: 99px; }
.dl-group.overdue { border-color: #F8C9D0; box-shadow: 0 4px 0 #F4B3BE; }
.dl-group.overdue h3 { color: var(--danger); }
.dl-group.today { border-color: #F6E2B0; box-shadow: 0 4px 0 #F0D79A; }
.calendar { position: sticky; top: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; border: 0; background: #FBF6EC; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; display: grid; place-items: center; padding: 0; }
.cal-cell.pad { background: none; cursor: default; }
.cal-cell:not(.pad):hover { background: var(--leaf-soft); }
.cal-cell.today { background: var(--leaf); color: #fff; }
.cal-cell i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); min-width: 7px; height: 7px; border-radius: 99px; background: var(--peach); font-style: normal; font-size: 9px; line-height: 7px; color: #fff; }
.cal-cell i.overdue { background: var(--danger); }
.cal-cell i.done { background: var(--leaf); }
.cal-cell.today i { background: #fff; }

/* ===== List toolbar ===== */
.list-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 0 12px; min-width: 240px; flex: 0 1 320px; }
.search:focus-within { border-color: var(--sky); }
.search input { border: 0; background: none; font: inherit; padding: 9px 0; width: 100%; outline: none; color: var(--ink); }
.search .i { color: var(--ink-soft); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { font: inherit; font-size: 13px; font-weight: 700; border: 2px solid var(--line); background: var(--paper); color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fchip b { font-size: 11px; background: #F1E8D8; color: var(--ink); padding: 1px 7px; border-radius: 99px; }
.fchip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip.active b { background: rgba(255, 255, 255, .2); color: #fff; }
.view-toggle { display: inline-flex; background: #F4EBDA; border-radius: 14px; padding: 3px; gap: 2px; }
.view-toggle button { display: inline-flex; gap: 6px; align-items: center; font: inherit; font-weight: 700; font-size: 13px; border: 0; background: none; padding: 7px 12px; border-radius: 11px; cursor: pointer; color: var(--ink-soft); }
.view-toggle button.active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--line-strong); }
.view-toggle .i { width: 16px; height: 16px; }

/* ===== Board ===== */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(152px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.col { background: color-mix(in srgb, var(--c) 14%, #FFFBF3); border: 2px solid color-mix(in srgb, var(--c) 35%, #fff); border-radius: 18px; padding: 10px; min-height: 280px; scroll-snap-align: start; transition: background .15s, transform .15s; }
.col.over { background: color-mix(in srgb, var(--c) 32%, #fff); transform: scale(1.01); }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col header .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.col header h3 { font-size: 14px; flex: 1; }
.col header b { font-size: 12px; background: var(--paper); padding: 2px 8px; border-radius: 99px; }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.col-empty { border: 2px dashed color-mix(in srgb, var(--c) 45%, #fff); border-radius: 14px; padding: 18px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.app-card { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: grab; box-shadow: 0 3px 0 var(--line); transition: transform .12s, box-shadow .12s; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line-strong); }
.app-card.dragging { opacity: .5; transform: rotate(2deg); }
.app-top { display: flex; gap: 10px; align-items: center; }
.app-top > div { min-width: 0; display: flex; flex-direction: column; }
.app-top b, .app-top small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top small { color: var(--ink-soft); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--c) 40%, #fff); color: color-mix(in srgb, var(--c) 40%, #3E3A35); flex: none; }
.avatar.round { border-radius: 50%; }
.avatar .i { width: 18px; height: 18px; }
.app-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; flex-wrap: wrap; }
.effort { display: inline-flex; align-items: center; gap: 2px; color: var(--leaf); vertical-align: middle; }
.effort i { width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid currentColor; }
.effort i.on { background: currentColor; }
.effort.e0 { color: #CDBFA8; }
.warn { color: #C98400; font-weight: 700; background: #FFF3D1; padding: 1px 7px; border-radius: 99px; }
.next { font-size: 12px; margin: 6px 0 0; color: var(--ink); background: #FBF6EC; padding: 4px 8px; border-radius: 8px; }
.app-actions { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.app-actions .btn .i { width: 14px; height: 14px; }
.stage-select { font: inherit; font-size: 12px; border: 2px solid var(--line); border-radius: 9px; padding: 2px 6px; background: var(--paper); color: var(--ink-soft); max-width: 110px; margin-left: auto; cursor: pointer; }

/* ===== Table ===== */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 14px 14px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .12s; }
.table tbody tr:hover { background: #FBF6EC; }
.table tbody tr:last-child td { border-bottom: 0; }
.t-actions { white-space: nowrap; text-align: right; }

/* ===== Item cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item-card { cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .12s, box-shadow .12s; border-top: 6px solid var(--accent, var(--line)); }
.item-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-strong); }
.item-head { display: flex; gap: 10px; align-items: center; }
.item-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-head b { font-size: 16px; }
.item-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.item-meta span { display: inline-flex; gap: 4px; align-items: center; }
.item-meta .i { width: 15px; height: 15px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; margin: 0; }
.quote { font-style: italic; color: #5A5249; border-left: 4px solid var(--line); padding-left: 10px; }
.lesson { display: flex; gap: 8px; align-items: flex-start; background: #FFF6E0; padding: 8px 10px; border-radius: 12px; font-size: 14px; margin: 0; }
.lesson .i { color: #C98400; width: 18px; height: 18px; margin-top: 1px; }
.item-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.status-select { position: relative; display: inline-flex; }
.status-select select { appearance: none; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 28px 5px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 30%, #fff); color: color-mix(in srgb, var(--c) 40%, #3E3A35); cursor: pointer; }
.status-select::after { content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: #6D6358; }
.fu { font-size: 12px; font-weight: 700; color: var(--ink-soft); background: #F4EBDA; padding: 3px 8px; border-radius: 99px; }
.fu.soon { color: #C98400; background: #FFF3D1; }
.fu.overdue { color: var(--danger); background: #FDE3E7; }
.item-foot .icon-btn { margin-left: auto; }
.lessons-card { margin-bottom: 16px; background: #FFFBEF; }
.lessons-card h3 { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.lessons-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.brave-banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #E9F5FF, #F4EEFF); border: 2px solid #D6E6FA; padding: 10px 16px; border-radius: 18px; margin-bottom: 16px; }

/* ===== Empty ===== */
.empty { text-align: center; padding: 40px 20px; background: var(--paper); border: 2px dashed var(--line-strong); border-radius: var(--r); max-width: 560px; margin: 20px auto; }
.empty h3 { font-size: 22px; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 16px; }

/* ===== Achievements ===== */
.ach-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ach { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.ach b { font-size: 15px; margin-top: 4px; }
.ach small { color: var(--ink-soft); font-size: 12px; min-height: 32px; }
.ach .meter { width: 100%; height: 8px; margin-top: 6px; }
.ach .prog { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.ach .got { font-size: 11px; font-weight: 700; color: var(--leaf-dark); background: var(--leaf-soft); padding: 2px 8px; border-radius: 99px; margin-top: 6px; }
.ach.on { background: linear-gradient(180deg, #FFFDF4, #FFF6DC); border-color: #F6E2B0; box-shadow: 0 4px 0 #F0D79A; }
.ach.on svg { animation: bob 3s ease-in-out infinite; }
.ach:not(.on) { opacity: .85; }
.crop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.crop-cell { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, #fff); border: 2px solid color-mix(in srgb, var(--c) 40%, #fff); }
.crop-cell b { font-size: 13px; }
.crop-cell small { font-size: 11px; color: var(--ink-soft); }
.crop-cell.unknown svg { filter: grayscale(1) brightness(.2) opacity(.25); }
.collection h3 { display: flex; gap: 6px; align-items: center; }

/* ===== Shop ===== */
.shop-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.shop-hero > div:nth-child(2) { flex: 1; }
.shop-hero h3 { font-size: 26px; }
.shop-sec { margin-bottom: 22px; }
.sec-title { margin: 0 0 10px 4px; font-size: 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.shop-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.shop-item small { min-height: 32px; font-size: 12px; }
.shop-art { height: 80px; display: grid; place-items: center; background: #F2FAF0; border-radius: 14px; width: 100%; }
.shop-item.owned { background: #F6FBF7; }

/* ===== Settings ===== */
.settings-card { max-width: 760px; margin-bottom: 16px; }
.settings-card h3 { margin-bottom: 12px; }
.how ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.how li svg { flex: none; }

/* ===== Modal ===== */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(62, 58, 53, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.modal { position: relative; background: var(--paper); border-radius: 26px; border: 2px solid var(--line); box-shadow: var(--shadow-lg), 0 6px 0 var(--line-strong); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .18s, transform .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal.lg { max-width: 680px; }
.modal.sm { max-width: 420px; }
.modal-root.show .modal { opacity: 1; transform: none; }
.modal-root.show .modal-backdrop { opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px 24px; gap: 10px; }
.modal-head h2 { font-size: 22px; font-weight: 800; }
.modal-body { padding: 6px 24px 22px; overflow-y: auto; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 14px; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.half { grid-column: span 3; }
.field.third { grid-column: span 2; }
.label { font-size: 13px; font-weight: 700; color: var(--ink); }
.label em { color: var(--danger); font-style: normal; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #FFFBF3; border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input { border: 0 !important; background: none !important; padding: 9px 0 !important; box-shadow: none !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(143, 211, 244, .3); }
textarea { resize: vertical; min-height: 64px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #FFF6F7; }
.err { color: var(--danger); font-weight: 600; font-size: 12px; }
.hint { color: var(--ink-soft); font-size: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #FFFBF3; transition: all .15s; }
.check-card:hover { border-color: var(--leaf); }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; background: #fff; transition: all .15s; }
.check-card .box .i { width: 14px; height: 14px; stroke-width: 3.2; }
.check-card input:checked ~ .box { background: var(--leaf); border-color: var(--leaf-dark); color: #fff; }
.check-card:has(input:checked) { background: var(--leaf-soft); border-color: var(--leaf); }
.check-card:has(input:focus-visible) { outline: 3px solid var(--sky); }
.check-card > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.check-card small { color: var(--leaf-dark); font-size: 11px; font-weight: 600; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 2px solid var(--line); background: #FFFBF3; font-size: 13px; font-weight: 700; color: var(--ink-soft); transition: all .15s; }
.segmented label:hover span { border-color: var(--c); }
.segmented input:checked + span { background: color-mix(in srgb, var(--c) 35%, #fff); border-color: var(--c); color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 1px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 46px; height: 28px; border-radius: 99px; background: #E8DDCB; position: relative; transition: background .2s; flex: none; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .1); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.toggle input:checked + .track { background: var(--leaf); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.autosave-note { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--leaf-dark); font-weight: 600; }
.autosave-note .i { width: 14px; height: 14px; stroke-width: 3; }
.reward-preview { display: flex; gap: 10px; align-items: center; background: var(--leaf-soft); border: 2px dashed #B8E2C4; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.reward-preview.gold { background: #EEF3FF; border-color: #CFDAF7; }
.draft-note { display: flex; gap: 6px; align-items: center; font-size: 13px; background: #FFF6E0; padding: 8px 12px; border-radius: 12px; margin-bottom: 12px; }
.draft-note .i { width: 16px; height: 16px; color: #C98400; }
.form-extras { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.history { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; margin-top: 4px; }
.history > span { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.history small { font-size: 10px; color: var(--ink-soft); }
.history i { color: var(--ink-soft); font-style: normal; }
.confirm p { font-size: 15px; }
.intro-art { display: flex; justify-content: center; align-items: center; min-height: 218px; background: #FAF8EB; border-radius: 18px; padding: 16px 0 12px; margin-bottom: 14px; }
.intro-art img { width: 290px; max-width: calc(100% - 40px); height: auto; }
.intro .field { margin-top: 12px; }

/* ===== Toasts & FX ===== */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 12px 40px 12px 16px; box-shadow: var(--shadow-lg), 0 4px 0 var(--line-strong); max-width: 360px; font-size: 14px; animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.3); }
.toast.out { animation: toastOut .3s forwards; }
.toast.reward { border-color: #CDEBD6; background: #F7FDF8; }
.toast.ach { border-color: #F6E2B0; background: #FFFBEE; }
.toast.error { border-color: #F8C9D0; background: #FFF6F7; }
.toast-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; cursor: pointer; color: var(--ink-soft); padding: 2px; border-radius: 6px; }
.toast-x .i { width: 16px; height: 16px; }
.toast-reward strong { display: block; margin-bottom: 4px; }
.gains { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gain { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.toast-ach { display: flex; gap: 12px; align-items: center; }
.toast-ach > div { display: flex; flex-direction: column; }
.toast-ach small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #C98400; font-weight: 700; }
.toast-ach strong { font-size: 17px; }
.toast-ach span { color: var(--ink-soft); font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti { position: absolute; width: 10px; height: 14px; border-radius: 3px; animation: confetti 1.2s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), calc(var(--dy) + 200px)) rotate(var(--r)); opacity: 0; } }
.fx { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: fxUp .9s ease-out forwards; opacity: 0; }
.fx.water { background: #8FD3F4; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation-name: fxDrop; }
.fx.sparkle { background: #FFE17A; box-shadow: 0 0 6px #FFE17A; }
.fx.dirt { background: #A77850; }
.fx.coin { background: #FFD23F; box-shadow: inset 0 0 0 2px #F0B900; width: 12px; height: 12px; }
@keyframes fxUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-50px) scale(.4); } }
@keyframes fxDrop { 0% { opacity: 1; transform: translateY(-40px); } 100% { opacity: 0; transform: translateY(20px); } }
.fly-seed { position: absolute; width: 12px; height: 16px; background: #C79C69; border-radius: 50%; animation: fly 1s cubic-bezier(.5, -.3, .6, 1) forwards; }
@keyframes fly { to { transform: translate(var(--tx), var(--ty)) scale(.4); opacity: .2; } }

/* ===== Bottom nav (mobile) ===== */
.bottom-nav { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .goal-card { grid-row: span 1; }
  .activity-card, .nudge-card + .activity-card { grid-column: span 2; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dl-layout { grid-template-columns: 1fr; }
  .calendar { position: static; max-width: 420px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px 16px 100px; }
  .page-title { font-size: 26px; }
  .topbar-right { width: 100%; }
  .topbar-right .btn-primary { margin-left: auto; }
  .chip-stat .muted { display: none; }
  .menu { left: auto; right: 0; }
  .bottom-nav {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; background: var(--paper); border: 2px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow-lg), 0 4px 0 var(--line-strong); padding: 6px; justify-content: space-around;
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 6px 2px; border-radius: 14px; text-decoration: none; position: relative; }
  .bottom-nav a.active { background: var(--leaf-soft); color: var(--leaf-dark); }
  .bottom-nav .nav-badge { position: absolute; top: 0; right: 18%; margin: 0; min-width: 18px; height: 18px; font-size: 10px; }
  .toasts { left: 16px; right: 16px; bottom: 96px; align-items: stretch; }
  .toast { max-width: none; }
  .search { flex: 1 1 100%; min-width: 0; }
  .list-toolbar .spacer { display: none; }
  .tool { min-width: 0; flex: 1 1 calc(33% - 8px); }
}
@media (max-width: 600px) {
  .dash-grid { grid-template-columns: 1fr; }
  .activity-card, .nudge-card + .activity-card { grid-column: auto; }
  .stat-row { gap: 10px; }
  .stat { padding: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .stat b { font-size: 24px; }
  .field.half, .field.third { grid-column: span 6; }
  .checks { grid-template-columns: 1fr; }
  .modal-root { padding: 0; align-items: end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .modal-body { padding: 6px 18px 22px; }
  .quick-feed { grid-template-columns: 1fr; }
  .quick-feed .btn { flex-direction: row; justify-content: flex-start; text-align: left; }
  .garden-controls { padding: 12px; }
  .board { grid-auto-columns: 82%; }
  .card-grid { grid-template-columns: 1fr; }
  .garden-empty { position: static; background: var(--paper); padding: 12px; }
  .garden-empty-card { margin-top: 0; box-shadow: none; }
  .table th:nth-child(5), .table td:nth-child(5), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ===== Round 2 additions ===== */
@media (min-width: 1200px) {
  .garden-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
  .garden-controls { border-top: 0; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
  .garden-controls .toolbar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .garden-controls .tool { min-width: 0; }
  .garden-scene { display: flex; align-items: center; }
  /* set in garden.js when the pouch would make the side column taller than the garden */
  .bag-below #seedBag { grid-column: 1 / -1; padding: 14px 18px 18px; border-top: 2px solid var(--line); background: #FFF8EC; }
  /* with the pouch gone the side column is just tools: centre them, and when it's tall enough use bigger tiles in two columns */
  .bag-below .garden-controls { container: garden-tools / size; justify-content: center; }
}
@container garden-tools (min-height: 560px) {
  .garden-controls .toolbar { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; gap: 10px; }
  .garden-controls .tool { justify-content: center; gap: 6px; font-size: 13px; }
  .garden-controls .tool > svg { width: 44px; height: 44px; }
}
.more-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-sheet a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #FFFBF3; color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--line); }
.more-sheet a.active { background: var(--leaf-soft); border-color: var(--leaf); }
.more-sheet a small { color: var(--ink-soft); font-weight: 500; font-size: 12px; }
.more-sheet .i { color: var(--leaf-dark); }
.col.closed .app-card { opacity: .85; }
.closed-tag { font-size: 11px; font-weight: 700; color: var(--ink-soft); background: #F1E8D8; padding: 1px 7px; border-radius: 99px; }
.toast-reward .reason-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toast-reward .reason-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.toast-reward .reason-list li > span:first-child { font-weight: 600; min-width: 0; }
.goal-help { font-size: 12px; color: var(--leaf-dark); font-weight: 600; }
.spray { animation: spray 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes spray { 50% { transform: scaleY(.85); opacity: .7; } }

[hidden] { display: none !important; }

/* ===== Sound ===== */
.music-btn { cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); }
.music-btn:hover { background: #FFF4DF; }
.music-btn .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; }
.music-btn .eq i { flex: 1; background: var(--leaf); border-radius: 2px; height: 30%; transition: height .3s; }
.music-btn.playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.music-btn.playing .eq i:nth-child(2) { animation-delay: -.4s; }
.music-btn.playing .eq i:nth-child(3) { animation-delay: -.8s; }
.music-btn[aria-pressed="false"] .eq i { background: #CDBFA8; }
.music-btn[aria-pressed="false"] .label { color: var(--ink-soft); }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.sound-card .toggle { margin-bottom: 14px; }
.vol-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 48px; gap: 14px; align-items: center; padding: 10px 0; border-top: 2px dashed var(--line); }
.vol-row label { display: flex; flex-direction: column; }
.vol-row output { font-weight: 700; font-size: 14px; text-align: right; color: var(--ink-soft); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--leaf) var(--v, 50%), #F1E8D8 var(--v, 50%)); cursor: pointer; border: 0; padding: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf-dark); box-shadow: 0 2px 0 rgba(0,0,0,.12); transition: transform .1s; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf-dark); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
@media (max-width: 600px) {
  .vol-row { grid-template-columns: 1fr 48px; }
  .vol-row label { grid-column: 1 / -1; }
  .music-btn .label { display: none; }
}

/* ---------- Garden economy ---------- */
.droopy { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(-7deg) scaleY(.9); filter: saturate(.65); }
.thirsty { animation: bob 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.res-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 2px 12px; }
.res { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.res b { font-size: 16px; }
.res small { color: var(--ink-soft); font-weight: 500; }
.res.pity { flex: 1; min-width: 200px; }
.res.pity .i { width: 20px; height: 20px; color: #C99400; flex: none; }
.res.pity .meter { flex: 1; max-width: 180px; height: 8px; }
.res.pity .meter span { background: linear-gradient(90deg, #FFE17A, #FFC93C); }
.seed-chip { border-color: color-mix(in srgb, var(--c, var(--line)) 55%, var(--line)); }
.gain.seed-gain { flex-direction: column; gap: 0; padding: 2px 4px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.gain small { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.gain-note { flex-basis: 100%; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.choice-row .btn { justify-content: center; gap: 8px; }
.choice-row .btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.choice-row .btn small { font-weight: 600; font-size: 12px; opacity: .8; }
.size-steps { display: flex; gap: 4px; margin: 6px 0 4px; }
.size-steps span { flex: 1; max-width: 34px; height: 8px; border-radius: 99px; background: #F1E8D8; }
.size-steps span.on { background: var(--leaf); }
.size-steps span.capped { background: repeating-linear-gradient(45deg, #F1E8D8 0 4px, #E6DCCB 4px 8px); }
.size-steps span.on.capped { background: var(--leaf); }
@media (max-width: 640px) {
  .choice-row { grid-template-columns: 1fr; }
  .res.pity { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .thirsty { animation: none; } }

/* ---------- Seed pack reveal ---------- */
.pack-overlay { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(62, 58, 53, .55); backdrop-filter: blur(3px); animation: viewIn .2s ease-out; }
.pack-overlay.out { opacity: 0; transition: opacity .2s; }
.pack-card { --glow: transparent; position: relative; width: min(380px, 100%); background: var(--paper); border-radius: 28px; padding: 22px 22px 18px; text-align: center; box-shadow: var(--shadow-lg), 0 0 0 6px var(--glow); transition: box-shadow .4s; overflow: hidden; }
.pack-card::before { content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 10%, var(--glow) 12% 14%, transparent 16% 35%, var(--glow) 37% 39%, transparent 41% 60%, var(--glow) 62% 64%, transparent 66% 85%, var(--glow) 87% 89%, transparent 91%); opacity: 0; pointer-events: none; }
.pack-card > * { position: relative; }
.pack-card.tier-common { --glow: #8FD3F4; }
.pack-card.tier-uncommon { --glow: #6CC08B; }
.pack-card.tier-rare { --glow: #C3A6F2; }
.pack-card.tier-epic { --glow: #FFC93C; }
.pack-card.tier-rare::before, .pack-card.tier-epic::before { opacity: .35; animation: spin 9s linear infinite; }
.pack-card.tier-epic::before { opacity: .6; animation-duration: 5s; }
.pack-card.tier-epic { animation: epicPulse 1.2s ease-in-out 2; }
@keyframes epicPulse { 50% { transform: scale(1.03); } }
.pack-reason { margin: 0; font-weight: 800; font-size: 18px; }
.pack-meta { margin: 2px 0 0; min-height: 18px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.pack-stage { height: 250px; display: grid; place-items: center; margin: 10px 0 6px; }
.pack-stage > * { grid-area: 1 / 1; }
.pack-sealed { border: 0; background: none; padding: 0; cursor: pointer; width: 150px; animation: packWiggle 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.pack-sealed:hover, .pack-sealed:focus-visible { animation-duration: .6s; }
.pack-sealed:focus-visible { outline: 3px solid var(--leaf); outline-offset: 6px; border-radius: 12px; }
.packet-svg { width: 150px; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(91, 70, 54, .22)); }
.packet-flap { transform-box: fill-box; transform-origin: 0% 100%; }
.pack-sealed.torn { animation: packShake .45s ease-in-out; }
.pack-sealed.torn .packet-flap { animation: flapOff .5s .1s cubic-bezier(.3, .6, .4, 1) forwards; }
.pack-sealed.torn .packet-body { animation: bodyDrop .35s .3s ease-in forwards; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes packWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-5deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@keyframes packShake { 20% { transform: translateX(-6px) rotate(-4deg); } 40% { transform: translateX(6px) rotate(4deg); } 60% { transform: translateX(-4px) rotate(-2deg); } 80% { transform: translateX(3px); } }
@keyframes flapOff { to { transform: translate(60px, -70px) rotate(40deg); opacity: 0; } }
@keyframes bodyDrop { to { transform: scale(.6) translateY(30px); opacity: 0; } }
.reel-window { position: relative; width: 170px; height: 250px; border-radius: 24px; overflow: hidden; background: linear-gradient(#F4ECDD, #FFFDF8 30%, #FFFDF8 70%, #F4ECDD); border: 3px solid var(--line-strong); box-shadow: inset 0 8px 16px rgba(91, 70, 54, .12), inset 0 -8px 16px rgba(91, 70, 54, .12); animation: pop .25s ease-out; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.reel-window.landed, .reel-window.static { -webkit-mask-image: none; mask-image: none; }
.reel-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-window.static .reel-strip { top: 50%; transform: translateY(-50%); }
.reel-item { height: 104px; display: grid; place-items: center; }
.reel-item svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.reel-item.winner svg { transform: scale(1.35); filter: drop-shadow(0 0 10px var(--c)); }
.reel-marker { position: absolute; left: 6px; right: 6px; top: 50%; height: 104px; transform: translateY(-50%); border-radius: 18px; border: 3px solid rgba(108, 192, 139, .55); pointer-events: none; }
.reel-marker::before, .reel-marker::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 9px solid transparent; transform: translateY(-50%); }
.reel-marker::before { left: -12px; border-left-color: var(--leaf); }
.reel-marker::after { right: -12px; border-right-color: var(--leaf); }
.reel-window.landed .reel-marker { border-color: var(--c, var(--leaf)); animation: markerFlash .6s ease-out 2; }
.pack-card.tier-common .reel-marker { --c: #8FD3F4; } .pack-card.tier-uncommon .reel-marker { --c: #6CC08B; } .pack-card.tier-rare .reel-marker { --c: #C3A6F2; } .pack-card.tier-epic .reel-marker { --c: #FFC93C; }
@keyframes markerFlash { 50% { box-shadow: 0 0 0 6px var(--c); } }
.pack-result { min-height: 88px; }
.pack-result h3 { font-size: 26px; margin: 6px 0 2px; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.pack-result p { margin: 0; }
.tier-badge { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--c); color: #3E3A35; font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; animation: badgeIn .45s cubic-bezier(.3, 1.8, .5, 1); }
.pack-card.tier-epic .tier-badge { background: linear-gradient(90deg, #FFE17A, #FFC93C, #FF9F6E, #C3A6F2, #FFE17A); background-size: 300% 100%; animation: badgeIn .45s cubic-bezier(.3, 1.8, .5, 1), shimmer 2s linear infinite; }
@keyframes badgeIn { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes shimmer { to { background-position: 300% 0; } }
.pack-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; width: 100%; }
.sum-item { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 6px 4px; border-radius: 16px; background: color-mix(in srgb, var(--c) 25%, var(--paper)); border: 2px solid var(--c); animation: badgeIn .4s cubic-bezier(.3, 1.8, .5, 1) backwards; }
.sum-item b { font-size: 13px; }
.sum-item small { font-size: 11px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pack-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pack-actions [hidden] { display: none; }
.pack-later { display: flex; gap: 18px; justify-content: center; margin-top: 10px; min-height: 20px; font-size: 14px; }
.pack-later .linkish { color: var(--ink-soft); }
.pantry-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.pantry-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.pantry-item span { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .pack-sealed, .pack-card.tier-epic, .pack-card::before { animation: none !important; }
}
.pack-stage [hidden], .pack-stage[hidden] { display: none !important; }

/* ===== Reset account ===== */
.sidebar-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.reset-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.reset-link .i { width: 16px; height: 16px; }
.reset-link:hover { color: var(--danger); background: #FDE3E7; }
.more-sheet .reset-link { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }

/* ===== Crop price guide (shop) ===== */
.shop-hero-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.price-guide { margin-bottom: 22px; scroll-margin-top: 16px; }
.price-guide summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-guide summary::-webkit-details-marker { display: none; }
.price-guide summary h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.price-guide summary h3::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .2s; }
.price-guide[open] summary h3::after { transform: rotate(-135deg); margin-top: 4px; }
.pg-body { margin-top: 12px; }
.pg-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 10px 0 14px; }
.pg-controls .view-toggle button { gap: 6px; }
.pg-controls .toggle { font-size: 14px; }
.pg-controls .toggle.is-off { opacity: .5; }
.pg-table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.pg-table th, .pg-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.pg-table tbody tr:last-child > * { border-bottom: 0; }
.pg-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); background: #FBF6EC; }
.pg-table thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; }
.pg-table tbody th { text-align: left; font-weight: 600; min-width: 190px; position: sticky; left: 0; background: var(--paper); }
.pg-table thead th:first-child { text-align: left; position: sticky; left: 0; z-index: 1; }
.pg-table td { white-space: nowrap; }
.pg-table td svg { vertical-align: -3px; margin-right: 3px; }
.pg-table td b { font-size: 16px; }
.pg-table .early { color: var(--ink-soft); }
.pg-table td.early b { font-weight: 600; font-size: 14px; }
.pg-table td.mature { background: #F2FAF3; }
.pg-table td.prize { background: #FFF6DB; }
.pg-table thead th.mature { background: #E7F5EA; color: var(--leaf-dark); }
.pg-table thead th.prize { background: #FFEFC2; color: #A87400; }
.pg-tier { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 30%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 60%, #fff); }
.pg-species { display: flex; gap: 2px; margin: 6px 0 2px; flex-wrap: wrap; }
.pg-tbody th small, .pg-table tbody th small { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; }
.pg-notes { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.pg-notes li { display: flex; gap: 8px; align-items: center; }
.pg-notes b { color: var(--ink); }
.pg-key { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1.5px solid var(--line-strong); }
.pg-key.mature { background: #E7F5EA; } .pg-key.prize { background: #FFEFC2; } .pg-key.early { background: #fff; }
@media (max-width: 600px) { .shop-hero-actions { align-items: stretch; width: 100%; } }

/* ===== Shared plots, done plants, seed selling, outreach meter ===== */
.done-plant { filter: saturate(.45) sepia(.35) brightness(.97); }
.seed-card { cursor: default; flex-wrap: wrap; }
.seed-card:hover { transform: none; }
.seed-card > span:not(.seed-actions) { min-width: 160px; }
.seed-actions { display: flex; gap: 6px; flex: none !important; margin-left: auto; }
.plot-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.plot-plants, .harvest-list, .sell-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.plot-plants li, .harvest-list li, .sell-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: #FBF6EC; }
.plot-plants li > span, .harvest-list li > span, .sell-list li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.plot-plants small, .harvest-list small, .sell-list small { color: var(--ink-soft); font-size: 12px; }
.plot-plants .st { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.plot-plants .st-done { background: #F6EEE2; }
.plot-plants .st-done .st { color: #7D4A2E; }
.plot-plants .st-ready .st, .plot-plants .st-offer .st { color: var(--leaf-dark); }
.plot-plants .st-thirsty .st { color: #2F6E96; }
.done-box { display: flex; gap: 8px; align-items: flex-start; background: #F6EEE2; border-color: #E2CBA4; }
.done-box svg { flex: none; margin-top: 1px; }
.ended-card { margin-bottom: 14px; padding: 12px; border-radius: var(--r-sm); background: #F6EEE2; border: 2px solid #E8D6B8; display: flex; flex-direction: column; gap: 10px; }
.ended-card h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ended-row { display: flex; flex-direction: column; gap: 6px; }
.ended-row + .ended-row { border-top: 1.5px dashed #E2CBA4; padding-top: 10px; }
.ended-row p { margin: 0; font-size: 14px; display: flex; flex-direction: column; gap: 1px; }
.ended-row small { font-size: 12px; }
.ended-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ended-actions .btn { gap: 5px; }
.ended-actions .btn small { font-weight: 800; opacity: .85; }
.ended-seeds { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); }
.sub-h { font-size: 14px; margin: 14px 0 8px; }
.harvest-choice .toggle { margin: 4px 0 12px; font-size: 14px; }
.bag-links { display: inline-flex; gap: 12px; align-items: baseline; }
.sell-all { width: 100%; margin: 4px 0 12px; }
.res.pity { text-decoration: none; color: inherit; }
a.res.pity:hover small { color: var(--leaf-dark); }
.meter-key { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); }
.meter-key b { color: var(--leaf-dark); }
.pg-table .plotcol { background: #F4F0FA; white-space: nowrap; }
.pg-table thead th.plotcol { color: #6B55A8; }
.pg-table td.plotcol small { color: var(--ink-soft); font-size: 12px; }
@media (max-width: 600px) { .seed-actions { width: 100%; justify-content: flex-end; } }

/* Bloom logo on small screens (the sidebar is hidden there) */
@media (max-width: 860px) {
  .topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .topbar-left .page-sub { flex-basis: 100%; }
  .mobile-brand { display: block; width: 40px; height: 40px; }
}

/* ===== Login meadow (login.html + js/login-scene.js) ===== */
.login-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #A5A8E4; }
.login-sky, .login-meadow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-page .auth { position: relative; z-index: 1; pointer-events: none; }
.login-page .auth .card { pointer-events: auto; position: relative; background: rgba(255, 253, 248, .95); backdrop-filter: blur(6px); animation: cardIn .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.login-page .auth .card.shake { animation: cardShake .42s ease; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes cardShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.login-page .auth h1, .login-page .auth #subtitle { transition: opacity .2s; }
.login-page .auth .card.swap h1, .login-page .auth .card.swap #subtitle { opacity: 0; }

.lflower, .lbunny, .lbutterfly, .lbee { cursor: pointer; }
.lflower .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: growIn .75s cubic-bezier(.3, 1.5, .5, 1) both; }
.lflower.boing .grow { animation: boing .6s ease both; }
.lflower .sway-slow { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.6s ease-in-out infinite; }
.login-meadow .bob, .login-meadow .sway { animation: none; }
@keyframes growIn { from { transform: scale(0); } }
@keyframes boing { 30% { transform: scale(1.14, .86); } 60% { transform: scale(.93, 1.1); } 100% { transform: none; } }
.lbunny.sitting .ear { transform-box: fill-box; transform-origin: 50% 100%; animation: earTwitch 4.5s ease-in-out infinite; }
.lbunny[data-b="1"].sitting .ear { animation-delay: -1.6s; }
.lbunny[data-b="2"].sitting .ear { animation-delay: -3.1s; }
@keyframes earTwitch { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-10deg); } 96% { transform: rotate(5deg); } }
.lbutterfly .wings { transform-box: fill-box; transform-origin: center; animation: flap .22s ease-in-out infinite alternate; }
.float-up { animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { from { transform: translateY(0) scale(.5); opacity: 0; } 20% { transform: translateY(-6px) scale(1.15); opacity: 1; } to { transform: translateY(-44px) scale(1); opacity: 0; } }
.spark-out { animation: sparkOut .9s ease-out forwards; }
@keyframes sparkOut { from { transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 1; } to { transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) scale(1); opacity: 0; } }

.card-bird { position: absolute; top: -27px; right: 34px; cursor: pointer; }
.card-bird svg, .card-cat svg { display: block; overflow: visible; }
.card-bird .bird-body { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 3s ease-in-out infinite; }
.card-bird.flap .bird-body { animation: birdSing .7s ease; }
@keyframes birdSing { 25% { transform: translateY(-9px) rotate(-10deg); } 50% { transform: translateY(-3px) rotate(4deg); } 75% { transform: translateY(-6px) rotate(-6deg); } }
/* Curled up on the card's top-left corner; its body bottom (y 11) sits on the top edge, its tail hangs over the left side. */
.card-cat { position: absolute; left: -24px; top: -79px; cursor: pointer; }
.card-cat .cat > .tail, .card-cat .cat > .zzz, .card-cat .cat > ellipse:first-child { display: none; } /* own tail + zzz instead; no ground shadow on the card */
.card-cat .droop { transform-box: fill-box; transform-origin: 100% 0; animation: tailSwish 4s ease-in-out infinite; }
@keyframes tailSwish { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
.card-cat .cat { transform-box: fill-box; transform-origin: 50% 100%; }
.card-cat.stretch .cat { animation: catStretch .9s ease; }
@keyframes catStretch { 40% { transform: scale(1.14, .88); } 70% { transform: scale(.96, 1.05); } }

.sound-toggle { position: fixed; top: 16px; right: 16px; z-index: 2; }
.sound-toggle .i-off { display: none; }
.sound-toggle[aria-pressed="false"] .i-on { display: none; }
.sound-toggle[aria-pressed="false"] .i-off { display: inline; }
@media (max-width: 600px) {
  .card-cat { transform: scale(.75); transform-origin: 24px 79px; } /* shrink around the corner it's sitting on */
  .card-bird { right: 22px; }
  .sound-toggle .label { display: none; }
}
.login-meadow.grown .lflower .grow { animation: none; }
.login-meadow.grown .lflower.boing .grow { animation: boing .6s ease both; }

/* ===== Companies ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.co-page { display: flex; flex-direction: column; gap: 16px; }
.co-page .list-toolbar { margin-bottom: 0; }
.co-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.co-page .list-toolbar .filter-chips { order: 3; flex-basis: 100%; }
.co-sort select { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 7px 10px; cursor: pointer; }
.co-mono { width: 44px; height: 44px; border-radius: 14px; background: var(--c); display: grid; place-items: center; font-weight: 800; font-size: 19px; color: var(--ink); flex: none; box-shadow: inset 0 -3px 0 rgba(62, 58, 53, .08); }
.co-mono.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.co-mono.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
.co-mono.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 28px; }
.co-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-soft); }
.co-tag .i { width: 13px; height: 13px; }
.co-heart .i, .co-title .pill .i { width: 13px; height: 13px; color: #C2385A; vertical-align: -2px; }
.co-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.co-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.co-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.co-dots i.on { background: var(--w); }
.co-dots.sm i { width: 6px; height: 6px; }
.co-warm { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-left: auto; }

/* grid */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.co-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; color: var(--ink); font-weight: 500; text-decoration: none !important; transition: transform .12s, box-shadow .12s; min-width: 0; }
.co-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-strong); }
.co-card-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.co-card-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-card-name b { font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.co-card-head .pill { margin-top: 2px; }
.co-card-name small { font-size: 12px; color: var(--ink-soft); }
.co-card .meter { height: 8px; }
.co-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink-soft); flex-wrap: wrap; }
.co-next { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 600; min-width: 0; }
.co-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-next .i { width: 15px; height: 15px; color: var(--ink-soft); }
.co-next.late { background: #FDE3E7; }
.co-next.late .i { color: var(--danger); }

/* list (table) */
.co-row-name { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.co-row-name span { display: flex; flex-direction: column; min-width: 0; }
.co-row-name small { font-size: 12px; font-weight: 500; }
.co-prog { min-width: 130px; white-space: nowrap; }
.co-prog .meter { display: inline-block; width: 80px; height: 6px; vertical-align: middle; margin-right: 6px; }
.co-prog small { font-weight: 700; color: var(--ink-soft); }
.co-nextcell { font-size: 13px; font-weight: 600; min-width: 160px; }
.co-table td .co-warm { margin-left: 0; white-space: nowrap; }

/* board */
.co-board { grid-auto-columns: minmax(170px, 1fr); }
.co-bcard { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 10px; color: var(--ink); text-decoration: none !important; box-shadow: 0 3px 0 var(--line-strong); min-width: 0; }
.co-bcard:hover { transform: translateY(-1px); }
.co-bcard .co-card-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-bcard small { font-size: 12px; }
.co-bcard .meter { height: 6px; }
.co-bfoot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-soft); }

/* list + preview */
.co-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-soft); align-self: flex-start; }
.co-back .i { width: 16px; height: 16px; }
.co-split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.co-side { padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.co-side .co-back { padding: 6px 8px 10px; }
.co-side-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; color: var(--ink); font-weight: 500; text-decoration: none !important; }
.co-side-row:hover { background: #FBF6EC; }
.co-side-row.active { background: var(--leaf-soft); box-shadow: inset 0 0 0 2px #BFE5CB; }
.co-side-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-side-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-side-row small { font-size: 12px; color: var(--ink-soft); }
.co-preview { display: flex; flex-direction: column; gap: 18px; padding: 22px; min-width: 0; }
.co-back-mobile { display: none; }
.co-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.co-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.co-head h2 { font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.co-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-head-meta a { display: inline-flex; align-items: center; gap: 4px; }
.co-head-meta a .i { width: 14px; height: 14px; }
.co-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-stats > div { padding: 12px 14px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; min-width: 0; }
.co-stats small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.co-stats b { font-size: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.co-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #FFF4D6; }
.co-hint.urgent { background: #FDE3E7; }
.co-hint .i { color: #9A6B00; margin-top: 2px; }
.co-hint.urgent .i { color: var(--danger); }
.co-hint div { display: flex; flex-direction: column; min-width: 0; }
.co-hint small { color: var(--ink-soft); }
.co-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co-mini li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.co-mini li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-mini li span { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.co-mini li.late span { color: var(--danger); font-weight: 700; }
.co-mini .i { width: 16px; height: 16px; color: var(--ink-soft); }
.co-preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.co-preview-actions .btn { text-decoration: none; }

/* progress with plants */
.co-steps-wrap { overflow-x: auto; padding: 4px 2px 6px; margin: 0 -2px; }
.co-steps { list-style: none; margin: 0; padding: 0; display: flex; min-width: calc(var(--n) * 94px); }
.co-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; text-align: center; min-width: 0; padding: 0 2px; }
.co-step + .co-step::before { content: ''; position: absolute; top: 19px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 4px; border-radius: 4px; background: var(--line); }
.co-step.reached + .co-step.reached::before { background: var(--leaf); }
.co-step.add::before { opacity: 0; }
.co-step.add { flex: .55; }
.co-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 3px solid var(--line-strong); padding: 0; position: relative; z-index: 1; font: inherit; color: var(--ink-soft); flex: none; }
button.co-dot { cursor: pointer; }
button.co-dot:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--line-strong); }
.co-step.reached .co-dot { background: var(--leaf-soft); border-color: var(--leaf); }
.co-step.now .co-dot { box-shadow: 0 0 0 4px rgba(255, 179, 138, .55); } /* where the application is now */
.co-step.now b { color: var(--leaf-dark); }
.co-step.todo .co-plant { filter: grayscale(1); opacity: .45; }
.co-step.custom .co-dot { border-style: dashed; }
.co-step.add .co-dot { border-style: dashed; background: transparent; }
.co-step.add .co-dot .i { width: 18px; height: 18px; }
.co-plant { width: 28px; height: 28px; }
.co-step b { font-size: 12px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.co-step.todo b { color: var(--ink-soft); }
.co-step small { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.co-steps.sm { min-width: calc(var(--n) * 86px); }
.co-steps.sm .co-dot { width: 34px; height: 34px; border-width: 2.5px; }
.co-steps.sm .co-plant { width: 22px; height: 22px; }
.co-steps.sm .co-step + .co-step::before { top: 15px; right: calc(50% + 18px); left: calc(-50% + 18px); height: 3px; }
.co-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.co-prog-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* the full company page */
.co-full { display: flex; flex-direction: column; gap: 16px; }
.co-head-full { flex-wrap: wrap; }
.co-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-title h2 { font-size: 28px; }
.co-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.co-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-sec { min-width: 0; }
.co-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.co-sec-head > .i { width: 18px; height: 18px; color: var(--ink-soft); }
.co-sec-head h3 { flex: 1; font-size: 16px; }
.co-sec-toggle { flex: 1; text-align: left; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.co-sec-toggle:disabled { cursor: default; }
.co-sec-toggle b { font-size: 11px; background: #F1E8D8; padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }
.co-add { margin: -6px -8px -6px auto; white-space: nowrap; }
.co-list { display: flex; flex-direction: column; gap: 8px; }
.co-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #FBF6EC; border: 0; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.co-item:hover { background: #F6EEDF; }
.co-item.sel { background: var(--leaf-soft); box-shadow: inset 0 0 0 2px #BFE5CB; }
.co-item > span:not(.avatar):not(.pill) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-item small { font-size: 12px; color: var(--ink-soft); }
.co-quote { width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: #FBF6EC; border: 0; border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.co-quote:hover { background: #F6EEDF; }
.co-quote small { font-size: 12px; color: var(--ink-soft); }
.co-research { white-space: pre-wrap; font-size: 14px; margin: 0; }
.co-dls .dl-row { background: #FBF6EC; }

/* suggested steps, grouped by urgency */
.co-actions { display: flex; flex-direction: column; gap: 14px; }
.co-agroup .co-label { margin-bottom: 4px; }
.co-agroup.urgent .co-label { color: #B8304A; }
.co-agroup.week .co-label { color: #8A6100; }
.co-task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px 8px 10px; border-radius: 12px; }
.co-task:hover { background: #FBF6EC; }
.co-task input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--leaf-dark); flex: none; cursor: pointer; }
.co-task label { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.co-task label b { font-size: 14px; }
.co-task label small { font-size: 12px; color: var(--ink-soft); }
.co-task .icon-btn { width: 32px; height: 32px; flex: none; margin-top: -4px; }

/* relationship strength */
.co-strength { display: flex; flex-direction: column; gap: 8px; }
.co-strength-top { display: flex; align-items: center; gap: 14px; }
.co-strength-top > div { display: flex; flex-direction: column; min-width: 0; }
.co-score { font-size: 36px; font-weight: 800; line-height: 1; }
.co-strength-bar { height: 12px; border-radius: 99px; background: #F1E8D8; overflow: hidden; }
.co-strength-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8FD3F4, #FFD966, #FFB38A, #6CC08B); }
.co-strength-scale { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.co-strength p { margin: 4px 0 0; }

/* sticky notes */
.co-stickies { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 4px 2px 6px; }
.co-stickies.one { grid-template-columns: minmax(0, 1fr); }
.co-sticky { background: var(--s); border-radius: 4px 14px 14px 14px; padding: 10px 12px 12px; transform: rotate(var(--r)); box-shadow: 0 3px 0 rgba(62, 58, 53, .07), 0 8px 18px rgba(91, 70, 54, .08); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-sticky-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.co-sticky-head b { font-size: 13px; }
.co-sticky-head small { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sticky-head .icon-btn { margin-left: auto; width: 30px; height: 30px; flex: none; }
.co-sticky p { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.co-sticky small.muted { font-size: 11px; }
.co-notes .linkish { margin-top: 10px; font-size: 13px; }

/* banners: merge suggestion + undo */
.co-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 14px; }
.co-banner > .i { margin-top: 1px; flex: none; }
.co-banner.info { background: #E7F4FB; }
.co-banner.info > .i { color: #2B6F94; }
.co-banner.undo { background: #FFF4D6; }
.co-banner.undo > .i { color: #8A6100; }
.co-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* "Did you mean…?" under company fields */
.co-dym { font-size: 13px; }
.co-dym.linked { display: flex; align-items: center; gap: 6px; color: var(--leaf-dark); font-weight: 600; }
.co-dym.linked .i { width: 15px; height: 15px; stroke-width: 3; }
.co-dym.ask { margin-top: 4px; padding: 12px; border-radius: 14px; background: #FFF4D6; display: flex; flex-direction: column; gap: 10px; }
.co-dym.ask p { margin: 0; font-size: 14px; }
.co-dym-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co-log button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #FFFBF3; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.co-log button:hover { background: var(--leaf-soft); }
.co-log small { color: var(--ink-soft); font-weight: 500; font-size: 12px; }

@media (max-width: 1100px) {
  .co-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .co-split { grid-template-columns: minmax(0, 1fr); }
  .co-side { display: none; }
  .co-back-mobile { display: inline-flex; }
  .co-preview { padding: 16px; }
  .co-head-actions { width: 100%; }
}
@media (max-width: 600px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-page .list-toolbar .search { flex: 1 1 100%; min-width: 0; }
  .co-page .view-toggle button { padding: 7px 9px; }
  .co-title h2, .co-head h2 { font-size: 22px; }
  .co-mono.xl { width: 52px; height: 52px; font-size: 22px; border-radius: 16px; }
  .co-stats b { font-size: 20px; }
  .co-stats > div { padding: 10px; }
  .co-stickies { grid-template-columns: minmax(0, 1fr); }
  .co-head-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* custom stages in the application form + on board cards */
.stage-editor { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 16px; border: 2px dashed var(--line-strong); }
.stage-editor .hint { margin-top: -4px; }
.stage-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stage-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; border-radius: 99px; background: #FBF6EC; border: 1.5px solid var(--line); font-size: 13px; }
.stage-chips small { color: var(--ink-soft); font-size: 12px; }
.stage-chips .icon-btn { width: 28px; height: 28px; }
.stage-chips .icon-btn .i { width: 14px; height: 14px; }
.stage-chips .icon-btn.confirm { width: auto; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 700; color: #fff; background: var(--danger); }
.stage-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.sub-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 30%, #fff); border: 1.5px dashed color-mix(in srgb, var(--c) 70%, #fff); }
.co-move { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--leaf-soft); }
@media (max-width: 600px) { .stage-add { grid-template-columns: minmax(0, 1fr); } }

/* wishlist cards: "When does it close?" */
.dl-prompt { display: flex; flex-direction: column; gap: 6px; margin: -2px -4px 10px; padding: 8px; border-radius: 10px; background: #FFF4D6; font-size: 12px; font-weight: 700; color: #6B4E00; }
.dl-prompt > span { display: flex; align-items: center; gap: 6px; }
.dl-prompt .i { width: 15px; height: 15px; }
.dl-prompt-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.dl-prompt-actions .btn { padding: 3px 8px; }
.rolling-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #EFE6FB; color: #5B3F99; }

/* ===== Outreach meter: a potted sunflower whose stem fills with sap ===== */
.outreach-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.outreach-main { min-width: 0; }
.thermo-card { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
.thermo-text { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.thermo-text h3 { font-size: 16px; }
.thermo-count { margin: 0; font-size: 14px; color: var(--ink-soft); }
.thermo-count b { font-size: 28px; color: var(--leaf-dark); }
.thermo-text .meter-key { justify-content: center; }
/* The art is drawn on a fixed 200×310 stage so nothing in it can squash or spill onto the text. */
.sm-box { flex: none; width: 200px; height: 310px; }
.sunmeter { --sap: calc(8px + 172px * var(--f)); position: relative; width: 200px; height: 310px; transform-origin: 0 0; }
.sunmeter > *, .sm-plant > * { position: absolute; }
.sm-plant { inset: 0; transform-origin: 100px 266px; animation: sway 3.5s ease-in-out infinite; }
.sm-stem { left: 93px; top: 86px; width: 14px; height: 188px; border-radius: 7px 7px 0 0; background: linear-gradient(90deg, #DDD5A0 64%, #CCC28A 64%); overflow: hidden; }
.sm-sap { position: absolute; left: 0; right: 0; bottom: 8px; height: var(--sap); background: #9A9416; -webkit-mask-image: linear-gradient(0deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(0deg, #000 calc(100% - 16px), transparent); transition: height 1.3s cubic-bezier(.33, .8, .3, 1) .55s; }
.sm-sap i { position: absolute; top: 0; bottom: 0; }
.sm-sap i:first-child { right: 0; width: 30%; background: #7E7A12; opacity: .6; }
.sm-sap i:last-child { left: 24%; top: 18px; bottom: 10px; width: 3px; border-radius: 2px; background: #E9DA32; opacity: .9; }
.sm-pulse { position: absolute; left: 50%; width: 6px; height: 12px; margin-left: -3px; border-radius: 50%; background: #EDE27A; opacity: 0; }
.sm-leaf { z-index: 1; transform: scale(0) rotate(-35deg); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) 1.2s; }
.sm-leaf svg, .sm-flower svg, .sm-can svg, .sm-pot svg, .sm-pack svg, .sm-spark svg { display: block; }
.sm-leaf.r { left: 106px; top: 169px; transform-origin: 0 100%; }
.sm-leaf.l { left: 30px; top: 108px; transform-origin: 100% 100%; }
.sm-leaf.on { transform: none; }
.sm-flower { left: 0; top: 0; width: 200px; height: 106px; z-index: 2; }
.sm-head { position: absolute; left: 58px; top: 14px; transform: scale(.2) rotate(-60deg); opacity: 0; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; }
.sm-bud { position: absolute; left: 88px; top: 54px; transform-origin: 50% 100%; transition: transform .4s, opacity .3s; }
.sunmeter.open .sm-head { transform: none; opacity: 1; }
.sunmeter.open .sm-bud { transform: scale(.5); opacity: 0; }
.sm-can { left: 14px; top: 192px; z-index: 4; opacity: 0; transform: translate(-12px, -10px); transition: opacity .25s ease .3s, transform .35s ease .25s; }
.sm-can svg { transform-origin: 32px 34px; transition: transform .3s ease-in-out; }
.sunmeter.pouring .sm-can { opacity: 1; transform: none; transition: opacity .2s, transform .3s ease-out; }
.sunmeter.pouring .sm-can svg { transform: rotate(38deg); transition: transform .35s cubic-bezier(.3, .7, .4, 1) .12s; }
.sm-stream { left: 70.5px; top: 235px; width: 7px; height: 26px; z-index: 4; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .12) 0 6px, transparent 6px 36px), linear-gradient(90deg, #B5B01B 0 24%, #CFC52A 24% 42%, #B5B01B 42%); background-size: 100% 36px, 100% 100%; animation: smFlow .3s linear infinite; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .2s ease-in; }
.sunmeter.pouring .sm-stream { transform: scaleY(1); transform-origin: 50% 0; transition: transform .25s ease-out .42s; }
.sm-splash { left: 74px; top: 259px; z-index: 4; }
.sm-splash i { position: absolute; left: -2.5px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #B5B01B; opacity: 0; }
.sm-pot { left: 50px; top: 252px; z-index: 3; }
.sm-soil { transition: fill .5s .4s; }
.sunmeter.pouring .sm-soil { fill: #7D3F1C; }
.sunmeter.pouring .sm-pulse { animation: smUp .8s ease-in .5s infinite; }
.sunmeter.pouring .sm-pulse + .sm-pulse { animation-delay: .9s; }
.sunmeter.pouring .sm-splash i:first-child { animation: smSplashL .5s ease-out .6s infinite; }
.sunmeter.pouring .sm-splash i:last-child { animation: smSplashR .5s ease-out .77s infinite; }
.sm-pack { left: 128px; top: 222px; z-index: 4; opacity: 0; transform: translate(-30px, -170px) scale(.4) rotate(-25deg); }
.sunmeter.open .sm-pack { opacity: 1; transform: rotate(8deg); animation: smPackDrop 1.1s cubic-bezier(.4, 0, .6, 1) .55s backwards; }
.sm-spark { width: 14px; height: 14px; z-index: 5; opacity: 0; filter: drop-shadow(0 0 1.5px rgba(201, 142, 18, .9)); }
.sunmeter.full .sm-spark { animation: smGlint .9s ease-in-out 2; }
.sunmeter.still .sm-sap, .sunmeter.still .sm-leaf { transition: none; }
.sunmeter.draining .sm-sap { transition: height 1.1s cubic-bezier(.55, 0, .35, 1); }
@keyframes smFlow { to { background-position: 0 36px, 0 0; } }
@keyframes smUp { 0% { bottom: 8px; opacity: 0; } 20% { opacity: 1; } 100% { bottom: var(--sap); opacity: 0; } }
@keyframes smSplashL { to { transform: translate(-10px, -11px) scale(.4); opacity: 0; } from { opacity: 1; } }
@keyframes smSplashR { to { transform: translate(9px, -13px) scale(.4); opacity: 0; } from { opacity: 1; } }
@keyframes smPackDrop { 0% { opacity: 0; transform: translate(-30px, -170px) scale(.4) rotate(-25deg); } 15% { opacity: 1; } 45% { transform: translate(-6px, -188px) scale(.9) rotate(-8deg); } 85% { transform: translate(0, 3px) scale(1) rotate(10deg); } 100% { opacity: 1; transform: rotate(8deg); } }
@keyframes smGlint { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .sm-plant { animation: none; } .sm-sap, .sm-leaf, .sm-head, .sm-bud { transition: none; } }
@media (max-width: 1000px) {
  .outreach-layout { grid-template-columns: minmax(0, 1fr); }
  .thermo-card { order: -1; position: static; flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
  .sm-box { width: 140px; height: 217px; }
  .sunmeter { transform: scale(.7); }
  .thermo-text { text-align: left; max-width: 340px; }
  .thermo-text .meter-key { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .thermo-card { gap: 12px; padding: 14px; }
  .sm-box { width: 110px; height: 171px; }
  .sunmeter { transform: scale(.55); }
}

/* wishlist "When does it close?" prompt in the applications list view */
.table tbody tr.has-prompt td { border-bottom: 0; padding-bottom: 6px; }
.table tbody tr.dl-prompt-row { cursor: default; }
.table tbody tr.dl-prompt-row:hover { background: none; }
.table tbody tr.dl-prompt-row td { padding: 0 14px 12px; }
.dl-prompt-row .dl-prompt { margin: 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.table .rolling-tag { margin-left: 6px; }
