/* ===== 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; }
.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 .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; }
.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 { letter-spacing: 1px; color: var(--leaf); font-size: 11px; }
.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; background: #FAF8EB; border-radius: 18px; padding: 16px 0 12px; margin-bottom: 14px; }
.intro-art img { width: 200px; 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; }
}
.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; }
@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; }
.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-card { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.meter-card-top { display: flex; gap: 12px; align-items: center; }
.meter-card-top > div { display: flex; flex-direction: column; }
.meter-card .meter.big { max-width: none; }
.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; }
}
