/* ============================================================================
 * app.css  -  Planting Season modular app shell styles (mobile-first PWA)
 * Earthy garden palette. No framework. Shared across AU / NZ / US.
 * ==========================================================================*/
:root {
  --ps-green:      #3a6529;   /* leaf - header + active nav */
  --ps-green-dk:   #355a26;   /* leaf-dark */
  --ps-green-soft: #d3e1b8;   /* sage fill - saturated enough to read */
  --ps-earth:      #905c2c;   /* bark */
  --ps-cream:      #faf6ef;   /* warm page bg */
  --ps-card:       #ffffff;
  --ps-ink:        #2a2218;   /* warm near-black */
  --ps-muted:      #6b5a42;   /* warm ink-soft */
  --ps-line:       #e4dcc7;   /* warm line */
  --ps-accent:     #df9f22;   /* deep honey gold - bars, badges */
  --ps-gold-dk:    #c8941f;
  --ps-bark-mist:  #fbefe1;   /* warm header / soft surfaces */
  --ps-terracotta: #c0392b;   /* alerts */
  --ps-radius:     16px;
  --ps-shadow:     0 4px 16px rgba(42,34,24,.10);
  --ps-maxw:       640px;
  --ps-serif:      Georgia, 'Iowan Old Style', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ps-cream); color: var(--ps-ink);
  font-size: 16px; line-height: 1.45;
}
button { font-family: inherit; cursor: pointer; }
.ps-muted { color: var(--ps-muted); font-size: .9rem; }
.ps-icon { display: block; }

/* ---- shell layout ---- */
#ps-shell { max-width: var(--ps-maxw); margin: 0 auto; min-height: 100vh; padding-bottom: 78px; }
#ps-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 16px 16px; background: var(--ps-green); color: #fff;
}
.ps-logo { height: 50px; display: block; margin: 0 auto; }
.ps-brand { font-weight: 700; letter-spacing: .2px; font-size: 1.2rem; }
.ps-header-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.ps-header-right { display: flex; align-items: center; gap: 10px; }
.ps-sync { font-size: .72rem; opacity: .85; }
.ps-sync-error { color: #ffd9d0; }
.ps-acct {
  background: rgba(255,255,255,.16); color: #fff; border: none;
  padding: 6px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600;
}
#ps-main { padding: 16px; }
/* roomier on desktop so the planner has space to breathe */
@media (min-width: 820px) { :root { --ps-maxw: 820px; } #ps-main { padding: 20px 28px; } }
.ps-loading, .ps-empty { color: var(--ps-muted); text-align: center; padding: 32px 16px; }
.ps-empty { background: var(--ps-green-soft); border-radius: var(--ps-radius); }

/* ---- bottom tab bar ---- */
#ps-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  max-width: var(--ps-maxw); margin: 0 auto;
  display: flex; gap: 2px;
  background: #fff; border-top: 1px solid var(--ps-line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.ps-tab {
  flex: 1 1 0; min-width: 0; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ps-muted); font-size: .66rem; padding: 4px 4px; border-radius: 10px;
  overflow: hidden;
}
.ps-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tab.active { color: #fff; background: var(--ps-green); box-shadow: 0 2px 8px rgba(47,82,48,.35); }
.ps-tab-moreico { font-size: 20px; line-height: 22px; height: 22px; font-weight: 700; letter-spacing: 1px; }

/* More sheet: launcher grid + reorder */
.ps-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.ps-ordlist { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 14px; }
.ps-ordrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; padding: 8px 10px; }
.ps-ordname { flex: 1 1 auto; font-weight: 600; color: var(--ps-ink); font-size: .92rem; }
.ps-ordbtn { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--ps-line); background: #f6efdd; border-radius: 9px; cursor: pointer; font-size: .9rem; color: #5a4a2a; }
.ps-ordbtn:disabled { opacity: .35; cursor: default; }
.ps-modlist { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 14px; }
.ps-modrow { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; padding: 5px 8px; }
.ps-modrow .ps-modcell-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; text-align: left; padding: 4px; color: var(--ps-ink); }
.ps-modrow .ps-modcell-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-modrow.soon { opacity: .55; }
.ps-more-item { background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: 0 2px 8px rgba(42,34,24,.06); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; color: var(--ps-ink); font-size: .8rem; }
.ps-more-item.active { border-color: var(--ps-green); background: var(--ps-green-soft); color: var(--ps-green-dk); }
.ps-reorder { margin: 6px 0 14px; }
.ps-reorder-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--ps-line); }
.ps-reorder-label { flex: 1; font-weight: 600; }
.ps-reorder-pin { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ps-green-dk); background: var(--ps-green-soft); padding: 3px 8px; border-radius: 10px; }
.ps-reorder-btn { width: 34px; height: 34px; border: 1px solid var(--ps-line); background: #fff; border-radius: 9px; font-size: .9rem; cursor: pointer; color: var(--ps-ink); }
.ps-reorder-btn:active { background: var(--ps-green-soft); }

/* ---- first-run "Start here" coachmark pointing at the nav ---- */
.ps-navhint {
  position: fixed; bottom: 92px; left: 50%; z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; animation: ps-bob 1.1s ease-in-out infinite;
}
.ps-navhint-cta { bottom: auto; }
.ps-guide-link { text-align: center; text-decoration: none; margin-top: 14px; }
.ps-navhint-bubble {
  background: var(--ps-green); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 9px 18px; border-radius: 22px; box-shadow: 0 4px 14px rgba(47,82,48,.4);
  white-space: nowrap;
}
.ps-navhint-arrow {
  width: 0; height: 0; margin-top: -1px;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 11px solid var(--ps-green);
}
@keyframes ps-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---- headings ---- */
.ps-h { font-size: 1.4rem; margin: 0 0 4px; }
.ps-subh { font-size: 1.05rem; margin: 18px 0 8px; }
.ps-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- buttons ---- */
.ps-btn {
  border: 0; background: #8a5a2b url(assets/theme/wood-button.png) center/cover no-repeat; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: .92rem;
}
.ps-btn-primary { background: #4c7330 url(assets/theme/green-grass-button.png) center/cover no-repeat; border: 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ps-btn-soft { background: var(--ps-green-soft); border: 0; color: var(--ps-green-dk); text-shadow: none; }
.ps-btn-ghost { background: none; border: none; color: var(--ps-earth); text-decoration: underline; text-shadow: none; }
.ps-btn-block { display: block; width: 100%; margin-top: 8px; }
.ps-btn-sm { padding: 7px 12px; font-size: .82rem; }
.ps-btn:disabled { opacity: .6; }
.ps-icon-btn { background: none; border: none; color: var(--ps-ink); padding: 4px; display: flex; }

/* ---- cards (Today + animals) ---- */
.ps-today-head { margin-bottom: 8px; }
.ps-today-hi { font-size: 1.5rem; margin: 0; }
.ps-today-sub { color: var(--ps-muted); margin: 2px 0 0; }
.ps-today-cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.ps-day-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
  padding: 14px 16px; box-shadow: var(--ps-shadow);
}
.ps-day-icon { color: var(--ps-green); display: flex; }
.ps-day-text { display: flex; flex-direction: column; }
.ps-day-title { font-weight: 600; }
.ps-day-sub { font-size: .82rem; color: var(--ps-muted); }

/* ---- first-run welcome ---- */
.ps-firstrun { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--ps-green-soft); border: 1px solid var(--ps-green); border-radius: var(--ps-radius); padding: 22px 18px; }
.ps-firstrun-emoji { font-size: 38px; line-height: 1; }
.ps-firstrun-title { font-weight: 700; font-size: 1.1rem; color: var(--ps-green-dk); }
.ps-firstrun-sub { font-size: .88rem; color: var(--ps-ink); max-width: 30ch; margin-bottom: 6px; }

/* ---- quick-start launcher ---- */
.ps-quickstart { margin-top: 22px; }
.ps-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ps-qa { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 14px; padding: 12px 13px; box-shadow: var(--ps-shadow); cursor: pointer; }
.ps-qa-emoji { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.ps-qa-text { display: flex; flex-direction: column; min-width: 0; }
.ps-qa-title { font-weight: 600; font-size: .92rem; }
.ps-qa-sub { font-size: .72rem; color: var(--ps-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- your garden beds on the dashboard ---- */
.ps-bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.ps-bed-card { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 14px; padding: 14px; box-shadow: var(--ps-shadow); cursor: pointer; }
.ps-bed-emoji { font-size: 22px; line-height: 1; }
.ps-bed-name { font-weight: 700; }
.ps-bed-sub { font-size: .76rem; color: var(--ps-muted); }

/* ============ illustrated garden theme (planner) ============ */
.ps-planner-scroll { background: #5f4630; border: 0; padding: 0; }
.ps-canvas {
  background-color: #6f5238;
  background-image:
    radial-gradient(rgba(0,0,0,.20) 1px, transparent 1.7px),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.7px),
    linear-gradient(rgba(0,0,0,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.14) 1px, transparent 1px);
  background-size: 13px 13px, 19px 17px, var(--cell, 40px) var(--cell, 40px), var(--cell, 40px) var(--cell, 40px);
  border: 11px solid #8a6a45;
  border-radius: 16px;
  box-shadow: inset 0 0 26px rgba(0,0,0,.4), 0 0 0 2px #5d4427;
}
/* illustrated plant discs */
.ps-plantdot { background: rgba(233, 240, 217, .9); border: 1.5px solid rgba(74, 56, 32, .35); box-shadow: 0 2px 5px rgba(0,0,0,.28); overflow: visible; }
.ps-plantdot-img { position: absolute; left: 6%; top: 4%; width: 88%; height: 88%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.ps-plantdot-label { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: rgba(247, 243, 232, .92); border: 1px solid rgba(120,95,55,.3); border-radius: 8px; padding: 0 6px; color: #4a3a1e; box-shadow: 0 1px 2px rgba(0,0,0,.18); z-index: 2; }
.ps-plantdot.good { box-shadow: 0 0 0 3px rgba(58,101,41,.6), 0 2px 5px rgba(0,0,0,.28); }
.ps-plantdot.conflict { background: rgba(214,69,42,.5); box-shadow: 0 0 0 3px rgba(192,57,43,.6), 0 2px 5px rgba(0,0,0,.3); }
/* ambient critters on the frame */
.ps-planner-stage { position: relative; }
.ps-deco { position: absolute; font-size: 19px; opacity: .92; pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.ps-deco-tl { top: -7px; left: 8px; transform: rotate(-8deg); }
.ps-deco-tr { top: -10px; right: 14px; }
.ps-deco-br { bottom: 6px; right: 10px; }
/* carved-ish planner controls */
.ps-planner-chips .ps-cat-chip { background: #f2e8d1; border: 1px solid #cdb588; color: #5a4a2a; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.ps-planner-chips .ps-cat-chip.active { background: var(--ps-green); border-color: var(--ps-green-dk); color: #fff; }
/* planner lens chips as themed grass/wood buttons */
.ps-lens-chip { background: #8a5a2b url(assets/theme/wood-button.png) center/cover no-repeat !important; border: 0 !important; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.45); font-weight: 700; }
.ps-lens-chip.active { background: #4c7330 url(assets/theme/green-grass-button.png) center/cover no-repeat !important; box-shadow: 0 0 0 2px rgba(76,115,48,.5); }
/* themed chips for task quick-start + journal filters */
.ps-chip-wood { background: #8a5a2b url(assets/theme/wood-button.png) center/cover no-repeat !important; color: #fff !important; border: 0 !important; text-shadow: 0 1px 2px rgba(0,0,0,.45); font-weight: 700; }
.ps-chip-wood.active { background: #4c7330 url(assets/theme/green-grass-button.png) center/cover no-repeat !important; box-shadow: 0 0 0 2px rgba(76,115,48,.5); }
.ps-planner-zoom .ps-btn:not(.ps-btn-primary) { background: #f2e8d1; border: 1px solid #cdb588; color: #5a4a2a; }
.ps-planner-hint { background: #f6efdd; border: 1px solid #e0cfa3; border-radius: 10px; padding: 9px 13px; color: #5e4c28; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ===== shared plant thumbnails (bed / growing-now / library) ===== */
.ps-thumb { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ps-thumb-emoji { line-height: 1; }
.ps-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ps-grow-thumb { width: 72px; height: 72px; }
.ps-rec-why { font-size: .62rem; color: var(--ps-muted); text-align: center; line-height: 1.1; }
.ps-icard { position: relative; }
.ps-pro-badge { position: absolute; top: 6px; right: 7px; font-size: .54rem; font-weight: 800; letter-spacing: .05em; background: #b5852a; color: #fff; border-radius: 6px; padding: 1px 5px; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ps-grow-thumb .ps-thumb-emoji { font-size: 38px; }
.ps-icard-thumb { width: 46px; height: 46px; }
.ps-icard-thumb .ps-thumb-emoji { font-size: 30px; }
.ps-plant-hero { display: flex; justify-content: center; margin: 4px 0 12px; }
.ps-plant-hero-img { width: 140px; height: 140px; background: rgba(233,240,217,.6); border: 1px solid var(--ps-line); border-radius: 18px; }
.ps-plant-hero-img .ps-thumb-emoji { font-size: 66px; }

/* taller hero planner */
.ps-planner-scroll { max-height: 80vh; }

/* ============ illustrated home theme ============ */
body, #ps-shell { background-color: #efe2c4; }
#ps-shell { background-image: radial-gradient(rgba(150,120,70,.07) 1px, transparent 1.5px), radial-gradient(rgba(120,95,55,.05) 1px, transparent 1.5px); background-size: 16px 16px, 23px 21px; }
#ps-header { background: linear-gradient(#5f8a3a, #4c7330); border-bottom: 3px solid #38561f; }
#ps-tabs { background: linear-gradient(#6e9a44, #517730); border-top: 3px solid #38561f; }
.ps-tab { color: rgba(255,255,255,.82); }
.ps-tab.active { color: #4a3a1e; background: #f3ead0; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ps-today { position: relative; }
/* today cards as market stalls */
.ps-today-cards { gap: 14px; }
.ps-day-card { position: relative; background: linear-gradient(#7c5532, #5e3e22); border: 2px solid #472d17; border-radius: 14px; padding: 28px 16px 16px; color: #fdf3e0; box-shadow: 0 5px 12px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.ps-day-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 17px; background: repeating-linear-gradient(90deg, #cf6a3a 0 17px, #f0e8cf 17px 34px); border-bottom: 1px solid rgba(0,0,0,.25); }
.ps-today-cards .ps-day-card:nth-child(even)::before { background: repeating-linear-gradient(90deg, #7e5da8 0 17px, #f0e8cf 17px 34px); }
.ps-day-icon { color: #ffd9a0; }
.ps-day-title { color: #fff; }
.ps-day-sub { color: rgba(253,243,224,.82); }
/* jump-in green wood plaques */
.ps-qa { background: linear-gradient(#6f9a3f, #557c2c); border: 2px solid #3d5a21; color: #fbfdf6; box-shadow: 0 3px 7px rgba(0,0,0,.2); }
.ps-qa-title { color: #fff; }
.ps-qa-sub { color: rgba(251,253,246,.85); }
/* module pills carved (brown off, green on) */
.ps-chip { background: linear-gradient(#9a6f43, #7e572e); border: 2px solid #59391d; color: #fbeed8; border-radius: 20px; box-shadow: 0 2px 4px rgba(0,0,0,.16); }
.ps-chip.on { background: linear-gradient(#6f9a3f, #547b2b); border-color: #3d5a21; color: #fff; }
.ps-chip.soon { opacity: .6; }
/* section heads: Your modules as a wooden sign */
.ps-switcher { border-top: 0; }
.ps-switcher-head { background: linear-gradient(#8a6a45, #6d5032); border: 2px solid #51391f; border-radius: 11px; padding: 9px 14px; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.ps-switcher-head .ps-switcher-h { color: #fdf3e0; margin: 0; }
.ps-switcher-caret { border-top-color: #fdf3e0; }
.ps-quickstart .ps-switcher-h { color: #5a4324; }
/* home critters */
.ps-home-deco { position: absolute; pointer-events: none; z-index: 1; font-size: 18px; opacity: .9; filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)); }

/* ============ illustrated theme: the pieces that actually work ============ */
/* bigger plant images in the library grid */
.ps-icard-thumb { width: 74px; height: 74px; }
.ps-icard-thumb .ps-thumb-emoji { font-size: 46px; }
/* supplied green-plank header + footer bars */
#ps-header { background: url(assets/theme/top-bar.png) center/100% 100% no-repeat, #4c7330; border-bottom: 0; }
#ps-tabs { background: url(assets/theme/bottom-bar.png) center/100% 100% no-repeat, #517730; border-top: 0; }
.ps-tab { color: #fdf3e0; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ps-tab.active { color: #4a3a1e; background: rgba(245,237,213,.92); text-shadow: none; }
/* today cards = supplied market-stall frame, shown at its natural ratio (no stretch), two-up */
.ps-today-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ps-today-cards > .ps-firstrun, .ps-today-cards > .ps-empty, .ps-today-cards > .ps-loading { grid-column: 1 / -1; }
.ps-day-card {
  background: url(assets/theme/box-awing-green.png) top center / 100% 100% no-repeat;
  aspect-ratio: 633 / 366; border: 0; box-shadow: none; color: #fdf3e0;
  padding: 23% 9% 14% 9%; align-items: center; overflow: visible;
}
.ps-day-card::before, .ps-day-card::after { display: none !important; }
.ps-day-title { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); font-size: 1.05rem; line-height: 1.15; }
.ps-day-sub { color: rgba(253,243,224,.9); font-size: .85rem; }
.ps-day-icon { color: #ffd9a0; }
/* garden bed cards = supplied raised-bed illustration */
.ps-bed-img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; margin: -2px auto 4px; pointer-events: none; }
.ps-bed-card { align-items: center; text-align: center; background: none; border: 0; box-shadow: none; padding: 4px; }
.ps-animal-card.ps-bed-listcard { flex-direction: column; align-items: center; text-align: center; background: none; border: 0; box-shadow: none; padding: 4px; }
.ps-bed-listcard .ps-animal-name { font-weight: 700; }
/* parchment page background (supplied tile) */
body { background: url(assets/theme/background-tile.png) top left / 480px repeat, #efe2c4; }
#ps-shell { background: none; }
/* 2nd today card uses the purple stall */
.ps-today-cards .ps-day-card:nth-child(even) { background-image: url(assets/theme/box-awing-purple.png); }
/* Jump-in: illustrated button backgrounds (hide my emoji, keep its spacing) */
.ps-qa-plan, .ps-qa-browse, .ps-qa-sow { border: 0; box-shadow: none; aspect-ratio: 1799 / 466; background-size: 100% 100%; background-repeat: no-repeat; background-position: center; }
.ps-qa-plan { background-image: url(assets/theme/plan-your-garden-bed.png); }
.ps-qa-browse { background-image: url(assets/theme/broswe-plants.png); }
.ps-qa-sow { background-image: url(assets/theme/what-to-sow-now.png); }
.ps-qa-plan .ps-qa-emoji, .ps-qa-browse .ps-qa-emoji, .ps-qa-sow .ps-qa-emoji { visibility: hidden; }
.ps-qa-plan .ps-qa-text, .ps-qa-browse .ps-qa-text, .ps-qa-sow .ps-qa-text { margin-left: 34px; }
.ps-qa-plan .ps-qa-title, .ps-qa-browse .ps-qa-title, .ps-qa-sow .ps-qa-title { color: #2f3a24; text-shadow: 0 1px 0 rgba(255,255,255,.5); font-size: 1.05rem; }
.ps-qa-plan .ps-qa-sub, .ps-qa-browse .ps-qa-sub, .ps-qa-sow .ps-qa-sub { color: #45402f; text-shadow: 0 1px 0 rgba(255,255,255,.45); font-size: .82rem; }
.ps-qa-task { border: 0; box-shadow: none; aspect-ratio: 1799 / 466; background: url(assets/theme/task-list-background.png) center/100% 100% no-repeat; }
.ps-qa-task .ps-qa-emoji { visibility: hidden; }
.ps-qa-task .ps-qa-text { margin-left: 34px; }
.ps-qa-task .ps-qa-title { color: #2f3a24; text-shadow: 0 1px 0 rgba(255,255,255,.5); font-size: 1.05rem; }
.ps-qa-task .ps-qa-sub { color: #45402f; text-shadow: 0 1px 0 rgba(255,255,255,.45); font-size: .82rem; }
/* dashboard: clearer section hierarchy + demoted stats footer */
.ps-today .ps-switcher-h { font-size: 1.15rem; font-weight: 800; color: #5a4324; margin: 0 0 8px; }
.ps-today .ps-quickstart { margin-top: 24px; }
/* dashboard: stats + streak (footer strip) */
.ps-stats { display: flex; gap: 10px; margin: 24px 0 6px; }
.ps-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; background: rgba(255,255,255,.5); border: 1px solid var(--ps-line); border-radius: 14px; padding: 10px 6px; }
.ps-stat-emoji { font-size: 18px; line-height: 1; }
.ps-stat-num { font-weight: 800; font-size: 1.1rem; color: var(--ps-green-dk); }
.ps-stat-label { font-size: .68rem; color: var(--ps-muted); }
/* dashboard: quick log */
.ps-quicklog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.ps-qlog { display: flex; flex-direction: column; align-items: center; gap: 3px; background: rgba(255,255,255,.55); border: 1px solid var(--ps-line); border-radius: 14px; padding: 12px 6px; font-weight: 600; font-size: .82rem; color: var(--ps-ink); cursor: pointer; box-shadow: var(--ps-shadow); }
.ps-qlog-emoji { font-size: 22px; line-height: 1; }
/* dashboard: seasonal strip */
.ps-seasonal { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #f6efdd; border: 1px solid #e0cfa3; border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ps-seasonal-emoji { font-size: 22px; line-height: 1; }
.ps-seasonal-text { display: flex; flex-direction: column; min-width: 0; }
.ps-seasonal-title { font-weight: 700; color: #5a4324; }
.ps-seasonal-sub { font-size: .8rem; color: #6b5836; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* custom cozy farm-sim raster icons (fall back to the line SVG if missing) */
.ps-icon-img { object-fit: contain; vertical-align: middle; display: inline-block; }

/* bigger note textarea */
.ps-note-area { width: 100%; min-height: 140px; resize: vertical; line-height: 1.45; font-family: inherit; }

/* module manager: compact two-up cells + toggle switch */
.ps-modgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.ps-modcell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 11px; background: rgba(255,255,255,.5); min-width: 0; }
.ps-modcell.on { background: rgba(124,166,108,.16); border-color: rgba(124,166,108,.45); }
.ps-modcell.soon { opacity: .6; }
.ps-modcell-main { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; flex: 1; min-width: 0; cursor: pointer; text-align: left; color: inherit; }
.ps-modcell-label { font-weight: 700; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-toggle-sm { width: 38px; height: 22px; flex: 0 0 auto; }
.ps-toggle-sm .ps-toggle-knob { width: 16px; height: 16px; top: 3px; left: 3px; }
.ps-toggle-sm.on .ps-toggle-knob { left: 19px; }
@media (max-width: 360px) { .ps-modgrid { grid-template-columns: 1fr; } }

/* calendar / agenda month grid */
.ps-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.ps-cal-title { font-weight: 800; font-size: 1.05rem; color: #5a4324; }
.ps-cal-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ps-cal-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--ps-muted); padding-bottom: 4px; }
.ps-cal-cell { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; background: rgba(255,255,255,.45); border-radius: 9px; cursor: pointer; color: inherit; font: inherit; padding: 0; }
.ps-cal-cell.empty { background: none; pointer-events: none; }
.ps-cal-cell.today { box-shadow: inset 0 0 0 2px var(--ps-green); }
.ps-cal-cell.has:not(.sel) { background: #dcecc6; }
.ps-cal-cell.sel { background: var(--ps-green); color: #fff; }
.ps-cal-num { font-size: .85rem; font-weight: 700; line-height: 1; }
.ps-cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ps-terracotta, #c0563a); margin-top: 3px; }
.ps-cal-cell.sel .ps-cal-dot { background: #fff; }
.ps-cal-glyphs { font-size: .72rem; line-height: 1; margin-top: 2px; letter-spacing: -1px; }

/* friendly empty state with big module icon + add button */
.ps-emptystate { text-align: center; padding: 28px 16px 12px; }
.ps-emptystate-icon { font-size: 56px; line-height: 1; margin: 0 auto 10px; display: inline-block; width: 64px; height: 64px; }
img.ps-emptystate-icon { object-fit: contain; }
.ps-emptystate-title { margin: 0 0 6px; font-size: 1.15rem; color: #5a4324; }
.ps-emptystate-blurb { color: var(--ps-muted); max-width: 36ch; margin: 0 auto 16px; line-height: 1.45; }
.ps-emptystate-btn { max-width: 280px; margin: 4px auto 0; }
.ps-emptystate-mascot { width: 120px; height: auto; display: block; margin: 0 auto 2px; }
.ps-emptystate-say { font-weight: 800; color: var(--ps-green-dk, #3f5a2a); margin: 0 0 8px; font-size: 1.02rem; }

/* centered module header: big icon + name on a button, add pinned right */
.ps-modhead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 16px; }
.ps-modhead .ps-icon-img, .ps-modhead .ps-icon { width: 60px; height: 60px; }
.ps-modhead-name { font-weight: 800; font-size: 1.12rem; color: #fff; background: #8a5a2b url(assets/theme/wood-button.png) center/cover no-repeat; padding: 8px 24px; border-radius: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ps-modhead-add { position: absolute; right: 0; top: 6px; }
.ps-modhead-desc { display: block; text-align: center; max-width: 440px; margin: 6px auto 0; color: var(--ps-muted, #8a7550); font-size: .9rem; line-height: 1.45; }
.ps-modhead-sub { text-align: center; margin: -10px 0 16px; }

/* daily briefing — the smart morning hero on Today */
.ps-brief { background: linear-gradient(160deg, #fbf6ea 0%, #f3ead6 100%); border: 1px solid #e6d8bd; border-radius: 18px; padding: 16px 16px 10px; margin: 4px 0 18px; box-shadow: 0 2px 10px rgba(120,90,40,.08); }
.ps-brief-top { margin-bottom: 10px; }
.ps-brief-hl { margin: 0; font-size: 1.18rem; font-weight: 800; color: #4a3b1e; line-height: 1.25; }
.ps-brief-wx { margin: 4px 0 0; font-size: .9rem; color: #8a7550; }
.ps-brief-list { display: flex; flex-direction: column; gap: 8px; }
.ps-brief-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fffdf8; border: 1px solid #ece0c8; border-left: 4px solid #c9b487; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: transform .06s ease, box-shadow .12s ease; }
.ps-brief-row:active { transform: scale(.99); }
.ps-brief-row:hover { box-shadow: 0 2px 8px rgba(120,90,40,.1); }
.ps-brief-ico { flex: 0 0 auto; display: flex; }
.ps-brief-txt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ps-brief-title { font-weight: 700; color: #3f3320; font-size: .98rem; }
.ps-brief-sub { font-size: .85rem; color: #8a7550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-brief-chev { flex: 0 0 auto; color: #c2ad84; font-size: 1.3rem; font-weight: 700; }
.ps-brief-empty { margin: 0; color: #8a7550; font-size: .92rem; }
.ps-brief-row.tone-cold { border-left-color: #6ba6d6; }
.ps-brief-row.tone-wet  { border-left-color: #5bb6c4; }
.ps-brief-row.tone-dry  { border-left-color: #e0a33c; }
.ps-brief-row.tone-pick { border-left-color: #7bb661; }
.ps-brief-row.tone-grow { border-left-color: #9ac26f; }
.ps-brief-row.tone-task { border-left-color: #c9923f; }
.ps-brief-row.tone-animal { border-left-color: #cc8a4e; }
.ps-brief-row.tone-alert { border-left-color: #d6694e; }

/* the standard list row (Daily Briefing look), used across modules via ui.row() */
.ps-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fffdf8; border: 1px solid #ece0c8; border-left: 4px solid #c9b487; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .12s ease, transform .06s ease; }
.ps-row:active { transform: scale(.995); }
.ps-row:hover { box-shadow: 0 2px 8px rgba(120,90,40,.1); }
div.ps-row { cursor: default; }
.ps-row-ico, .ps-row-left { flex: 0 0 auto; display: flex; align-items: center; }
.ps-row-left img, .ps-row-left .ps-thumb, .ps-row-ico img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.ps-row-emoji { font-size: 30px; line-height: 1; }
.ps-row-txt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ps-row-title { font-weight: 700; color: #3f3320; font-size: .98rem; line-height: 1.25; }
.ps-row-sub { font-size: .85rem; color: #8a7550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-row-right { flex: 0 0 auto; font-size: .65rem; text-transform: uppercase; background: var(--ps-green-soft); color: var(--ps-green-dk); padding: 3px 8px; border-radius: 10px; align-self: center; }
.ps-row-chev { flex: 0 0 auto; color: #c2ad84; font-size: 1.3rem; font-weight: 700; }
.ps-row.tone-cold { border-left-color: #6ba6d6; } .ps-row.tone-wet { border-left-color: #5bb6c4; }
.ps-row.tone-dry { border-left-color: #e0a33c; } .ps-row.tone-pick { border-left-color: #7bb661; }
.ps-row.tone-grow { border-left-color: #9ac26f; } .ps-row.tone-task { border-left-color: #c9923f; }
.ps-row.tone-animal { border-left-color: #cc8a4e; } .ps-row.tone-alert { border-left-color: #d6694e; }

/* ask your garden */
.ps-ask-bar { display: flex; gap: 8px; margin: 4px 0 10px; }
.ps-ask-bar .ps-input { flex: 1 1 auto; }
.ps-ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ps-ask-result { display: flex; flex-direction: column; gap: 8px; }
.ps-ask-line { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fffdf8; border: 1px solid #ece0c8; border-radius: 12px; padding: 11px 13px; font-size: .98rem; color: #3f3320; }
.ps-ask-line span:first-child { flex: 1 1 auto; }
.ps-ask-line.tappable { cursor: pointer; }
.ps-ask-line.tappable:hover { box-shadow: 0 2px 8px rgba(120,90,40,.1); }
.ps-ask-chev { flex: 0 0 auto; color: #c2ad84; font-size: 1.3rem; font-weight: 700; }

/* Pro pricing screen */
.ps-pro-lock { background: #eef6e6; border: 1px solid #cfe3bb; border-radius: 12px; padding: 10px 12px; color: #3f5a2a; font-weight: 600; font-size: .92rem; margin: 6px 0 12px; }
.ps-pro-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: #fffdf8; border: 1px solid #e4d8bf; border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; }
.ps-pro-plan.best { border-color: #7bb661; box-shadow: 0 0 0 2px rgba(123,182,97,.25); }
.ps-pro-plan:active { transform: scale(.99); }
.ps-pro-plan-l { display: flex; flex-direction: column; }
.ps-pro-plan-name { font-weight: 800; color: #3f3320; font-size: 1.02rem; }
.ps-pro-plan-note { font-size: .83rem; color: #8a7550; }
.ps-pro-plan-price { display: flex; flex-direction: column; align-items: flex-end; }
.ps-pro-price { font-weight: 800; color: #4a6b2e; font-size: 1.12rem; }
.ps-pro-per { font-size: .78rem; color: #9a8761; }
/* module manager: descriptive rows + toggle switch (legacy, kept for safety) */
.ps-modlist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.ps-modrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: rgba(255,255,255,.5); }
.ps-modrow.on { background: rgba(124,166,108,.14); border-color: rgba(124,166,108,.4); }
.ps-modrow.soon { opacity: .6; }
.ps-modrow-text { flex: 1; min-width: 0; cursor: pointer; }
.ps-modrow-label { display: block; font-weight: 700; font-size: .95rem; }
.ps-modrow-desc { display: block; font-size: .8rem; color: #6b6b63; line-height: 1.3; }
.ps-toggle { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; border: 0; background: #cfcfc6; position: relative; cursor: pointer; transition: background .15s; }
.ps-toggle.on { background: #7ca66c; }
.ps-toggle-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.ps-toggle.on .ps-toggle-knob { left: 21px; }

/* ---- desktop & tablet: a roomier app and centered modals ----
   Wider screens give the planner the space it wants (it sizes itself to the
   main column), and dialogs become centered cards instead of bottom drawers,
   which is what a mouse/tablet user expects. Mobile is unaffected. */
@media (min-width: 1100px) { :root { --ps-maxw: 1040px; } }
@media (min-width: 1500px) { :root { --ps-maxw: 1200px; } }

/* ===== Desktop app shell: the bottom tab bar becomes a left sidebar ===== */
@media (min-width: 960px) {
  #ps-tabs {
    top: 0; bottom: 0; left: 0; right: auto; width: 232px; height: 100vh;
    max-width: none; margin: 0; flex-direction: column; justify-content: flex-start;
    align-items: stretch; gap: 3px; overflow-y: auto; border-top: 0; border-right: 3px solid #38561f;
    padding: 16px 12px; background: linear-gradient(#6e9a44, #4c7330);
  }
  /* logo sits at the top of the sidebar; the header keeps just the account chip */
  #ps-tabs::before { content: ''; display: block; flex: 0 0 auto; height: 50px; margin: 4px 6px 14px; background: url(assets/logo-white.png) center/contain no-repeat; }
  #ps-header .ps-logo, #ps-header .ps-brand { display: none; }
  #ps-header { justify-content: flex-end; padding: 10px 22px; }
  .ps-tab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: .98rem; border-radius: 12px; text-align: left; overflow: visible; }
  .ps-tab span { font-size: .98rem; max-width: 100%; }
  .ps-tab .ps-icon-img, .ps-tab svg, .ps-tab img { width: 26px; height: 26px; flex: 0 0 auto; }
  .ps-tab.active { color: #fff; background: rgba(255,255,255,.2); box-shadow: none; }
  .ps-tab-more { margin-top: auto; }
  #ps-shell { max-width: none; margin: 0 0 0 232px; padding-bottom: 0; }
  #ps-main { max-width: 1500px; margin: 0 auto; padding: 26px 40px; }
  .ps-bed-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .ps-sheet { max-width: 560px; }
  /* the bed designer should use the room: taller canvas, full content width */
  .ps-planner-scroll { max-height: 80vh; }
}
@media (min-width: 1700px) { #ps-main { max-width: 1760px; } }

/* desktop calendar: month grid on the right, the day's list on the left */
@media (min-width: 960px) {
  .ps-cal-split { display: flex; flex-direction: row-reverse; gap: 28px; align-items: flex-start; }
  .ps-cal-split .ps-cal-month { flex: 1 1 58%; min-width: 0; }
  .ps-cal-split .ps-quick { flex: 1 1 42%; min-width: 0; margin-top: 0; }
}
@media (min-width: 820px) {
  .ps-sheet-overlay { align-items: center; }
  .ps-sheet {
    max-width: 600px; border-radius: 18px;
    padding: 12px 20px 22px; max-height: 86vh;
    box-shadow: 0 14px 44px rgba(0,0,0,.32);
  }
  /* on a wide canvas, two-up the dashboard quick blocks so it fills nicely */
  .ps-today .ps-quicklog { gap: 12px; }
}
/* calendar: drop the white box behind each plant */
.ps-cal-grid .ps-icard { background: none; border: 0; box-shadow: none; padding: 6px 4px; }

/* green grass primary button (e.g. Add to my garden) */
.ps-btn-green { background: #4c7330 url(assets/theme/green-grass-button.png) center/cover no-repeat; border: 0; box-shadow: none; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); font-weight: 700; }

/* wooden Add Bed button */
.ps-btn-wood { background: #8a5a2b url(assets/theme/wood-button.png) center/cover no-repeat; border: 0; box-shadow: none; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); font-weight: 700; padding: 9px 18px; }
.ps-btn-wood:active { filter: brightness(.95); }

/* Grow Guides list (blog-style) */
.ps-guidelist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.ps-guiderow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ps-ink); background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--ps-shadow); }
.ps-guiderow:active { transform: scale(.995); }
.ps-guide-thumb { width: 48px; height: 48px; flex: 0 0 auto; }
.ps-guide-thumb .ps-thumb-emoji { font-size: 30px; }
.ps-guiderow-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ps-guiderow-title { font-weight: 700; }
.ps-guiderow-sub { font-size: .76rem; color: var(--ps-muted); }
.ps-guiderow-arrow { color: var(--ps-green); font-weight: 700; font-size: 1.1rem; }

/* More hub sections */
.ps-more-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ps-muted); margin: 18px 0 8px; }
.ps-more-h:first-child { margin-top: 4px; }
.ps-more-actions { display: flex; flex-direction: column; gap: 8px; }
.ps-more-action { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--ps-shadow); cursor: pointer; }
.ps-more-action-emoji { font-size: 20px; line-height: 1; }
.ps-more-action-text { display: flex; flex-direction: column; }
.ps-more-action-title { font-weight: 600; }
.ps-more-action-sub { font-size: .76rem; color: var(--ps-muted); }
/* other supplied chrome (plaques, signs, mascots, module icons) drops in here as it arrives — see THEME-ASSET-SPEC.md */

/* ---- module switcher ---- */
.ps-switcher { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ps-line); }
.ps-switcher-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; cursor: pointer; }
.ps-switcher-caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--ps-muted); transition: transform .2s; }
.ps-switcher.collapsed .ps-switcher-caret { transform: rotate(-90deg); }
.ps-switcher-body { margin-top: 2px; }
.ps-switcher-h { font-size: 1.05rem; margin: 0 0 2px; }
.ps-switcher-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ps-line); background: #fff; color: var(--ps-muted);
  padding: 8px 12px; border-radius: 22px; font-size: .85rem; font-weight: 600;
}
.ps-chip.on { background: var(--ps-green-soft); color: var(--ps-green-dk); border-color: transparent; }
.ps-chip.soon { opacity: .55; }
.ps-chip-state { font-weight: 700; }

/* ---- animal cards ---- */
.ps-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
/* when a grid holds the standard rows, stack them full-width instead of 2-up */
.ps-card-grid:has(.ps-row) { display: flex; flex-direction: column; gap: 0; }
.ps-row-ico img, .ps-row-ico .ps-thumb, .ps-row-ico canvas { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.ps-animal-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
  padding: 14px; box-shadow: var(--ps-shadow); position: relative;
}
.ps-animal-card.gone { opacity: .7; }
.ps-animal-name { font-weight: 700; }
.ps-animal-sub { font-size: .8rem; color: var(--ps-muted); }
.ps-animal-tag {
  position: absolute; top: 10px; right: 10px; font-size: .65rem; text-transform: uppercase;
  background: var(--ps-green-soft); color: var(--ps-green-dk); padding: 2px 7px; border-radius: 10px;
}

/* ---- animal detail ---- */
.ps-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ps-photo-wrap { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.ps-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; border: 1px solid var(--ps-line); }
.ps-photo-btn { background: var(--ps-green-soft); border: none; color: var(--ps-green-dk); padding: 9px 16px; border-radius: 20px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.ps-card-thumb { width: 100%; height: 84px; object-fit: cover; border-radius: 10px; margin-bottom: 7px; display: block; }
.ps-detail-title { flex: 1; min-width: 0; text-align: center; }
/* wooden title plaque with the name, centered, on every detail page */
.ps-detail-title .ps-h { display: inline-block; max-width: 100%; box-sizing: border-box; background: #7a5a33 url(assets/theme/wood-button.png) center/cover no-repeat; color: #fff; font-weight: 800; padding: 7px 18px; border-radius: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ps-detail-title .ps-muted { margin-top: 4px; }
.ps-detail-edit { flex: 0 0 auto; align-self: center; }
.ps-quick, .ps-events, .ps-manage { margin-top: 22px; }
.ps-hint { font-size: .82rem; color: var(--ps-muted); margin: 2px 0 10px; }
.ps-check { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: .95rem; }
.ps-check input { width: 18px; height: 18px; }
.ps-hive-card { background: var(--ps-green-soft); border-radius: var(--ps-radius); padding: 14px 16px; margin: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-hive-text { min-width: 0; }
.ps-hive-line { margin: 2px 0; font-size: .9rem; }
.ps-hive-bee { width: 86px; height: 86px; object-fit: contain; flex: 0 0 auto; margin: -10px -2px -10px 0; }
.ps-icard-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.ps-icard { flex: 1 1 0; min-width: 70px; background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: 0 2px 8px rgba(42,34,24,.06); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.ps-icard:active { transform: scale(.97); }
.ps-icard-ico { color: var(--ps-green); display: flex; }
.ps-icard-gold .ps-icard-ico { color: var(--ps-gold-dk); }
.ps-icard-label { font-size: .8rem; font-weight: 600; color: var(--ps-ink); text-align: center; }
.ps-icard-emoji { font-size: 30px; line-height: 1; }
.ps-icard-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.ps-stat-emoji { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.ps-animal-tag.warn { background: #f6e3c8; color: #8a5a1a; }
.ps-analytics { margin: 8px 0 20px; }
.ps-analytics-h { font-weight: 600; font-size: .95rem; margin: 16px 0 8px; }
.ps-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-stat { background: #cdd9b4; border-radius: 20px; padding: 15px 16px; text-align: center; }
.ps-stat-val { display: block; font-size: 1.25rem; font-weight: 700; color: #2c4a23; }
.ps-stat-label { display: block; font-size: .72rem; color: #55652f; margin-top: 2px; }
.ps-stat-ico { display: flex; align-items: center; gap: 12px; text-align: left; }
.ps-stat-icon { color: #3d6b26; opacity: .72; flex: 0 0 auto; display: flex; }
.ps-stat-tx { display: flex; flex-direction: column; }
.ps-stat-gold { background: #e6c477; }
.ps-stat-gold .ps-stat-val { color: #6e4a0c; }
.ps-stat-gold .ps-stat-label { color: #785518; }
.ps-stat-green { background: #4f7d34; }
.ps-stat-green .ps-stat-val { color: #fff; }
.ps-stat-green .ps-stat-label { color: #dcebcb; }
.ps-bee-mascot { text-align: center; margin: 2px 0 -40px; position: relative; z-index: 2; }
.ps-mascot-img { width: 170px; height: 170px; object-fit: contain; }
.ps-chores { background: #fbf8f1; border: 1px solid var(--ps-line); border-radius: 22px; padding: 46px 12px 14px; box-shadow: var(--ps-shadow); margin: 0 0 18px; }
.ps-chores-h { text-align: center; font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; color: var(--ps-ink); }
.ps-chore { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: 0 2px 8px rgba(42,34,24,.07); padding: 13px 15px; margin: 9px 0; }
.ps-chore-text { display: flex; flex-direction: column; }
.ps-chore-title { font-weight: 700; font-size: 1.02rem; }
.ps-chore-sub { font-size: .82rem; color: var(--ps-muted); }
.ps-chore-badge { background: var(--ps-accent); color: #6e4d0a; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 14px; white-space: nowrap; }
.ps-bar-item { margin: 10px 0; }
.ps-bar-top { display: flex; justify-content: space-between; font-size: .9rem; gap: 8px; }
.ps-bar-label { font-weight: 600; }
.ps-bar-val { font-weight: 700; color: var(--ps-green-dk); white-space: nowrap; }
.ps-bar-track { height: 8px; background: #e0d2b2; border-radius: 4px; margin: 5px 0; overflow: hidden; }
.ps-bar-fill { height: 100%; background: var(--ps-accent); border-radius: 4px; }
.ps-bar-sub { font-size: .75rem; color: var(--ps-muted); }

/* ---- generic card + bloom calendar ---- */
.ps-card { background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); padding: 14px 16px; box-shadow: var(--ps-shadow); margin: 12px 0; }
.ps-bloom-tl { overflow-x: auto; }
.ps-bloom-months { display: grid; grid-template-columns: 110px repeat(12, 1fr); align-items: end; margin: 6px 0 4px; min-width: 460px; }
.ps-bloom-months .ps-bloom-mon { grid-column: auto; font-size: .62rem; color: var(--ps-muted); text-align: center; }
.ps-bloom-months .ps-bloom-mon:first-child { grid-column: 1; }
.ps-bloom-mon.now { color: var(--ps-accent); font-weight: 700; }
.ps-bloom-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; margin: 7px 0; min-width: 460px; }
.ps-bloom-name { font-size: .78rem; color: var(--ps-ink); }
.ps-bloom-track { position: relative; height: 12px; background: var(--ps-green-soft); border-radius: 6px; }
.ps-bloom-bar { position: absolute; top: 0; height: 12px; border-radius: 6px; }
.ps-bloom-pname { font-size: 1rem; font-weight: 600; margin: 0; }
.ps-bloom-rate { margin: 8px 0 2px; }
.ps-bloom-rate-top { display: flex; justify-content: space-between; font-size: .78rem; }
.ps-bloom-rate-label { color: var(--ps-muted); text-transform: uppercase; letter-spacing: .04em; }
.ps-bloom-rate-val { font-weight: 700; }
/* rating colours (nectar/pollen) */
.r-excellent { color: #6a4fb0; } .ps-bar-fill.r-excellent, .ps-bloom-bar.r-excellent { background: #7c5cd0; color: #fff; }
.r-good { color: #2f7d57; } .ps-bar-fill.r-good, .ps-bloom-bar.r-good { background: #2f9e6f; }
.r-fair { color: #a4641f; } .ps-bar-fill.r-fair, .ps-bloom-bar.r-fair { background: #d98a3d; }
.r-none { color: var(--ps-muted); } .ps-bar-fill.r-none, .ps-bloom-bar.r-none { background: #b4b2a9; }
.ps-bloom-garden { background: var(--ps-green-soft); border-color: transparent; }
.ps-bloom-mini { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.ps-bloom-mini:last-child { border-bottom: none; }
.ps-bloom-mini-name { font-weight: 600; font-size: .9rem; color: var(--ps-green-dk); }
.ps-bloom-mini-when { font-size: .78rem; color: var(--ps-muted); }
.ps-bloom-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ps-quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-prod-sum { margin-top: 10px; font-size: .9rem; color: var(--ps-green-dk); }
.ps-event { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ps-line); }
.ps-tappable { cursor: pointer; border-radius: 8px; transition: background .12s; }
.ps-tappable:hover { background: var(--ps-green-soft); }
.ps-tappable:active { opacity: .65; }
.ps-entries { margin-top: 10px; }
.ps-entry { display: flex; gap: 10px; align-items: baseline; padding: 8px 6px; border-bottom: 1px solid var(--ps-line); font-size: .85rem; }
.ps-entry-date { color: var(--ps-muted); flex: 0 0 74px; font-size: .78rem; }
.ps-entry-main { font-weight: 500; }
.ps-event-date { flex: 0 0 84px; font-size: .8rem; color: var(--ps-muted); }
.ps-event-body { display: flex; flex-direction: column; gap: 2px; }
.ps-event-type { font-weight: 600; }
.ps-event-note { font-size: .88rem; }
.ps-event-wh { font-size: .78rem; color: var(--ps-accent); font-weight: 600; }
.ps-manage { padding-top: 8px; }

/* ---- memorial ---- */
.ps-memorial {
  background: linear-gradient(135deg, #f3eee2, #eef2e8); border-radius: var(--ps-radius);
  padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 4px;
}
.ps-memorial-name { font-weight: 700; color: var(--ps-earth); }
.ps-memorial-sub { font-size: .85rem; color: var(--ps-muted); }

/* ---- forms / fields ---- */
.ps-field { display: block; margin-bottom: 12px; }
.ps-field-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ps-muted); margin-bottom: 4px; }
.ps-input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--ps-line); border-radius: 10px;
  font-size: 1rem; background: #fff; color: var(--ps-ink);
}
.ps-input:focus { outline: 2px solid var(--ps-green-soft); border-color: var(--ps-green); }

/* ---- sheet / modal ---- */
.ps-sheet-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(20,28,16,.45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.ps-sheet-overlay.show { opacity: 1; }
.ps-sheet {
  background: var(--ps-cream); width: 100%; max-width: var(--ps-maxw);
  border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; transform: translateY(12px); transition: transform .2s;
}
.ps-sheet-overlay.show .ps-sheet { transform: translateY(0); }
/* wooden title plaque at the top of every add/edit sub-page */
.ps-sheet-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 11px 42px; margin-bottom: 14px; background: #7a5a33 url(assets/theme/wood-button.png) center/cover no-repeat; border-radius: 12px; }
.ps-sheet-title { font-size: 1.12rem; margin: 0; color: #fff; font-weight: 800; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ps-sheet-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #fff; }
.ps-sheet-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--ps-muted); }
.ps-sheet-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ps-or { text-align: center; color: var(--ps-muted); font-size: .85rem; margin: 14px 0 8px; }
.ps-email-form .ps-input { margin-bottom: 8px; }
.ps-acct-who { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
/* keep the account form a readable centered column instead of stretching wide */
.ps-acct-panel { max-width: 360px; margin: 0 auto; }
.ps-acct-panel .ps-btn { margin-top: 8px; }

/* ---- toast ---- */
#ps-toast-host { position: fixed; left: 0; right: 0; bottom: 90px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.ps-toast {
  background: var(--ps-ink); color: #fff; padding: 10px 16px; border-radius: 22px;
  font-size: .88rem; opacity: 0; transform: translateY(8px); transition: all .2s; max-width: 90%;
}
.ps-toast.show { opacity: .96; transform: translateY(0); }

/* ---- onboarding ---- */
#ps-onboarding { min-height: 100vh; background: var(--ps-green); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ps-ob-card { width: 100%; max-width: 460px; background: var(--ps-card); border-radius: 18px; box-shadow: var(--ps-shadow); padding: 24px; }
.ps-ob-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.ps-dot { width: 26px; height: 4px; border-radius: 2px; background: var(--ps-line); }
.ps-dot.on { background: var(--ps-green); }
.ps-ob-h { font-size: 1.5rem; margin: 0 0 6px; color: var(--ps-green-dk); }
.ps-ob-tag { font-size: 1.05rem; color: var(--ps-earth); margin: 0 0 12px; }
.ps-ob-body { color: var(--ps-ink); margin: 0 0 18px; }
.ps-ob-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.ps-ob-choices { display: flex; flex-direction: column; gap: 12px; }
.ps-choice { text-align: left; border: 2px solid var(--ps-line); background: #fff; border-radius: var(--ps-radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ps-choice.sel { border-color: var(--ps-green); background: var(--ps-green-soft); }
.ps-choice-t { font-weight: 700; font-size: 1.05rem; }
.ps-choice-s { font-size: .85rem; color: var(--ps-muted); }
.ps-ob-grouph { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ps-muted); margin: 14px 0 2px; }
.ps-ob-toggles { display: flex; flex-direction: column; gap: 4px; }
.ps-toggle-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--ps-line); }
.ps-toggle-label { flex: 1; }
.ps-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.ps-consent-list { margin: 4px 0 14px; padding-left: 4px; list-style: none; }
.ps-consent-list li { position: relative; padding-left: 24px; margin: 10px 0; font-size: 1rem; }
.ps-consent-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ps-green); font-weight: 700; }
.ps-link { background: none; border: none; color: var(--ps-earth); text-decoration: underline; padding: 0; font-size: .85rem; cursor: pointer; }
.ps-consent-full { font-size: .85rem; color: var(--ps-muted); margin: 10px 0 0; line-height: 1.5; }

/* ---- planting calendar ---- */
.ps-month-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 16px; }
.ps-month-chip {
  border: 0; background: #5b8a3a url(assets/theme/green-grass-button.png) center/cover no-repeat; color: #fff;
  border-radius: 12px; padding: 12px 4px; font-size: .9rem; font-weight: 700; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.ps-month-chip.now { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.ps-month-chip.active { box-shadow: inset 0 0 0 100px rgba(40,70,30,.42), 0 0 0 2px rgba(40,70,30,.55); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ps-cat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.ps-cat-chip {
  border: 1px solid var(--ps-line); background: var(--ps-bark-mist); color: var(--ps-ink);
  border-radius: 16px; padding: 6px 12px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.ps-cat-chip.active { background: var(--ps-green-soft); border-color: var(--ps-green); color: var(--ps-green-dk); }
.ps-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.ps-cal-grid .ps-icard-thumb { width: 90px; height: 90px; }
.ps-cal-grid .ps-icard-thumb .ps-thumb-emoji { font-size: 56px; }
/* plant popup header (image + name) and grow-guide link */
.ps-plant-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ps-plant-head-img { width: 76px; height: 76px; flex: 0 0 auto; position: relative; }
.ps-plant-head-img .ps-thumb-emoji { font-size: 48px; }
.ps-plant-head-txt h3 { margin: 0; }
.ps-guide-link { display: inline-block; margin-top: 12px; color: var(--ps-green-dk); font-weight: 700; text-decoration: none; }
.ps-sow-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 6px 0 14px; }
.ps-sow-cell {
  text-align: center; font-size: .64rem; font-weight: 700; padding: 7px 0; border-radius: 6px;
  background: #ece4d2; color: #b3a88c;
}
.ps-sow-cell.on { background: url(assets/theme/month-button.png) center/100% 100% no-repeat; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45); box-shadow: inset 0 0 0 100px rgba(40,70,30,.25); }
.ps-sow-cell.now { outline: 2px solid var(--ps-accent); outline-offset: 1px; }
.ps-sow-cell.on.now { outline-color: var(--ps-gold-dk); }
.ps-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin: 6px 0 12px; }
.ps-fact { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--ps-line); padding: 5px 0; }
.ps-fact-l { color: var(--ps-muted); font-size: .82rem; }
.ps-fact-v { font-weight: 600; font-size: .85rem; text-align: right; }
.ps-cal-note { font-size: .88rem; color: var(--ps-ink); line-height: 1.5; background: var(--ps-bark-mist); border-radius: 12px; padding: 11px 13px; margin: 4px 0 12px; }

/* ---- harvest savings hero + net ---- */
.ps-hero-num { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--ps-green); border-radius: 22px; padding: 22px 16px; margin: 6px 0 14px; }
.ps-hero-label { color: #dcebcb; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.ps-hero-val { color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.ps-net { display: flex; align-items: center; justify-content: space-between; background: var(--ps-green-soft); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.ps-net.behind { background: #f3ddd6; }
.ps-net-label { font-weight: 700; color: var(--ps-green-dk); }
.ps-net.behind .ps-net-label { color: var(--ps-terracotta); }
.ps-net-val { font-weight: 800; font-size: 1.3rem; color: var(--ps-green-dk); }
.ps-net.behind .ps-net-val { color: var(--ps-terracotta); }

/* ---- plant library detail ---- */
.ps-plant-sec { margin: 14px 0; }
.ps-plant-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ps-muted); margin: 0 0 7px; }
.ps-chiplist { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-ptag { font-size: .8rem; padding: 5px 11px; border-radius: 14px; background: var(--ps-bark-mist); color: var(--ps-ink); border: 1px solid var(--ps-line); }
.ps-ptag.good { background: var(--ps-green-soft); border-color: transparent; color: var(--ps-green-dk); }
.ps-ptag.bad { background: #f3ddd6; border-color: transparent; color: var(--ps-terracotta); }
.ps-ptag.warn { background: #f6ead0; border-color: transparent; color: #8a6516; }
.ps-variety { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--ps-line); }
.ps-variety:last-child { border-bottom: none; }
.ps-variety-name { font-weight: 700; }
.ps-variety-desc { font-size: .88rem; color: var(--ps-ink); }
.ps-variety-src { font-size: .76rem; color: var(--ps-muted); }
.ps-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ps-badge { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; background: var(--ps-bark-mist); color: var(--ps-muted); }
.ps-badge.easy { background: var(--ps-green-soft); color: var(--ps-green-dk); }
.ps-badge.hard { background: #f3ddd6; color: var(--ps-terracotta); }
.ps-badge.bee { background: #f6ead0; color: #8a6516; }

/* ---- visual bed planner ---- */
.ps-bedgrid { display: grid; gap: 5px; margin: 10px 0; }
.ps-bedcell { aspect-ratio: 1 / 1; border: 1.5px solid var(--ps-line); border-radius: 10px; background: var(--ps-bark-mist); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; min-height: 44px; }
.ps-bedcell.filled { background: var(--ps-green-soft); border-color: var(--ps-green); }
.ps-bedcell.conflict { border-color: var(--ps-terracotta); box-shadow: 0 0 0 2px rgba(192,57,43,.25); }
.ps-bedcell-emoji { font-size: 24px; line-height: 1; }
.ps-bedcell-plus { font-size: 20px; color: var(--ps-muted); }
/* ---- planner enhancements: zoom/pan, lenses, labels ---- */
.ps-planner-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--ps-line); border-radius: 14px; padding: 8px; background: #fbf8f1; -webkit-overflow-scrolling: touch; }
.ps-planner-grid { width: max-content; }
.ps-planner-grid .ps-bedcell { aspect-ratio: auto; min-height: 0; flex-direction: column; gap: 1px; }
.ps-planner-zoom { justify-content: center; gap: 6px; margin: 4px 0 8px; }
.ps-planner-zoom .ps-btn { min-width: 46px; }
.ps-bedcell { position: relative; }
.ps-bedcell.good { border-color: var(--ps-green); box-shadow: 0 0 0 2px rgba(58,101,41,.28); }
.ps-bedcell-label { font-size: .54rem; font-weight: 700; color: var(--ps-green-dk); line-height: 1; max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-bedcell-badge { position: absolute; top: 2px; right: 3px; font-size: 11px; }

/* ---- real-scale bed canvas ---- */
.ps-canvas { position: relative; border: 0; border-radius: 14px; background-color: #6e4f33;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    url(assets/theme/soil-tile.png);
  background-size: var(--cell, 36px) var(--cell, 36px), var(--cell, 36px) var(--cell, 36px), 300px 300px;
  background-repeat: repeat, repeat, repeat;
  box-shadow: inset 0 0 20px rgba(40,26,14,.4), 0 2px 8px rgba(0,0,0,.2);
  background-position: 0 0; touch-action: pan-x pan-y; min-width: 40px; }
.ps-plantdot { position: absolute; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.22); background: rgba(124, 166, 108, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; overflow: hidden;
  cursor: grab; touch-action: none; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ps-plantdot:active { cursor: grabbing; }
.ps-plantdot.good { border-color: var(--ps-green); box-shadow: 0 0 0 2px rgba(58,101,41,.45); }
.ps-plantdot.conflict { background: rgba(214,69,42,.5); border: 2.5px solid var(--ps-terracotta); box-shadow: 0 0 0 3px rgba(192,57,43,.55); z-index: 30; }
.ps-plantdot-warn { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); font-size: 13px; line-height: 1; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.ps-plantdot-emoji { line-height: 1; pointer-events: none; }
.ps-plantdot-label { font-size: 9px; font-weight: 700; color: var(--ps-green-dk); line-height: 1.05; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; pointer-events: none; }
.ps-plantdot-badge { position: absolute; top: 0; right: 1px; font-size: 10px; pointer-events: none; }
.ps-canvas-fill { touch-action: none; cursor: crosshair; }
.ps-canvas-fill .ps-plantdot { pointer-events: none; }
.ps-fillrect { position: absolute; border: 2px dashed var(--ps-green); background: rgba(58,101,41,.14); border-radius: 6px; pointer-events: none; z-index: 40; }
.ps-ptag-pick { cursor: pointer; border: 1px solid var(--ps-line); background: #fff; }
button.ps-detail-title { background: none; border: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
/* ---- Growing-now compact grid ---- */
.ps-grow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ps-grow-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; background: none; border: 0; border-radius: 12px; padding: 4px 2px; box-shadow: none; cursor: pointer; }
.ps-grow-tile:active { transform: scale(.97); }
.ps-grow-emoji { font-size: 26px; line-height: 1; }
.ps-grow-name { font-size: .86rem; font-weight: 700; text-align: center; line-height: 1.1; margin-top: 2px; }
.ps-grow-var { font-size: .72rem; color: var(--ps-muted); text-align: center; line-height: 1.1; }
.ps-grow-count { position: absolute; top: 5px; right: 6px; font-size: .62rem; font-weight: 700; background: var(--ps-green-soft); color: var(--ps-green-dk); border-radius: 10px; padding: 1px 6px; }
.ps-plantdot-flash { animation: ps-flash .55s ease-in-out 3; z-index: 55; }
@keyframes ps-flash { 0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,.12); } 50% { box-shadow: 0 0 0 5px var(--ps-green); transform: scale(1.12); } }

/* ---- moon planting ---- */
.ps-moon-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #2c3a4f, #3a5066); border-radius: 22px; padding: 20px 18px; margin: 6px 0 14px; }
.ps-moon-face { font-size: 56px; line-height: 1; }
.ps-moon-name { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0; }
.ps-moon-sub { color: #cdd9e6; font-size: .9rem; margin: 2px 0 0; }

/* ---- tasks & chores ---- */
.ps-checkbox { width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--ps-line); border-radius: 7px; background: #fff; cursor: pointer; margin-right: 4px; }
.ps-checkbox:hover { border-color: var(--ps-green); background: var(--ps-green-soft); }
.ps-chore-title.ps-done { text-decoration: line-through; color: var(--ps-muted); }
.ps-chore-sub.ps-overdue { color: var(--ps-terracotta); font-weight: 600; }
.ps-subh.overdue { color: var(--ps-terracotta); }

/* ---- journal ---- */
.ps-jentry { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--ps-line); border-radius: 16px; padding: 12px; margin: 10px 0; box-shadow: 0 2px 8px rgba(42,34,24,.05); }
.ps-jthumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; background: var(--ps-bark-mist); }
.ps-jthumb-ph { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ps-jtext { flex: 1; min-width: 0; }
.ps-jtop { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ps-jtitle { font-weight: 700; }
.ps-jdate { font-size: .78rem; color: var(--ps-muted); flex: 0 0 auto; }
.ps-jbody { display: block; font-size: .88rem; color: var(--ps-ink); margin: 3px 0 6px; }
.ps-jtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ps-jbadge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--ps-bark-mist); color: var(--ps-muted); }
.ps-jbadge.win { background: var(--ps-green-soft); color: var(--ps-green-dk); }
.ps-jbadge.fail { background: #f3ddd6; color: var(--ps-terracotta); }
.ps-jbadge.note { background: #f6ead0; color: #8a6516; }

/* ---- weather ---- */
.ps-wx-now { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #7cb3d6, #a9cfe6); border-radius: 22px; padding: 18px; margin: 6px 0 12px; }
.ps-wx-emoji { font-size: 48px; line-height: 1; }
.ps-wx-temp { font-size: 2rem; font-weight: 800; color: #fff; margin: 0; line-height: 1; }
.ps-wx-desc { color: #eef6fb; margin: 3px 0 0; font-size: .9rem; }
.ps-wx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; }
.ps-wx-day { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; padding: 8px 2px; font-size: .72rem; }
.ps-wx-day.now { border-color: var(--ps-green); background: var(--ps-green-soft); }
.ps-wx-dow { color: var(--ps-muted); font-weight: 700; }
.ps-wx-ico { font-size: 34px; line-height: 1; margin: 2px 0; }
.ps-wx-hi { font-weight: 700; }
.ps-wx-lo { color: var(--ps-muted); }
.ps-wx-lo.frost { color: #2f7fd0; font-weight: 700; }
.ps-wx-rain { color: #3a7db5; font-size: .64rem; min-height: .7em; }
.ps-frost { margin: 8px 0; border: 1px solid var(--ps-line); border-radius: 12px; background: #fbf8f1; padding: 0 12px; }
.ps-frost summary { font-weight: 700; cursor: pointer; padding: 10px 0; font-size: .9rem; }
.ps-frost .ps-hint { margin: 2px 0 8px; }
