:root {
  --bg: #EEF1EC; --surface: #FFFFFF; --text: #1B2420; --muted: #66716A; --line: #DCE1DA;
  --pine: #1F4D3A; --pine-ink: #FFFFFF; --pine-soft: #E2ECE5; --danger: #A3352B; --paper: #FDFDFB;
  --shadow: 0 1px 2px rgba(20,40,28,.06), 0 8px 24px rgba(20,40,28,.07);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Ljust är standard för alla. Mörkt bara med data-theme="dark" (ingen väljare än). */
:root[data-theme="dark"] {
  --bg: #111613; --surface: #1A201C; --text: #E7ECE8; --muted: #98A39C; --line: #2B332E;
  --pine: #8CC4A6; --pine-ink: #0E1A14; --pine-soft: #22342A; --danger: #E08273; color-scheme: dark;
}
/* the planner is a tool, not a page: no pull-to-refresh when a swipe overshoots */
html { scroll-padding-top: env(safe-area-inset-top, 0px); overscroll-behavior-y: none; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
#root { height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
button:disabled { opacity: .35; cursor: default; }

.app { min-height: 100%; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.title { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 2px 4px; border-radius: 10px; }
.pname { display: block; font: 700 24px/1.1 Kalam, "Segoe Print", cursive; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dims { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.dims svg { flex: none; }
.save { color: var(--muted); }
.tools { display: flex; gap: 2px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--text); flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--pine-soft); }
.icon-btn.sm { width: 30px; height: 30px; }

/* --foot is measured from whatever is pinned to the bottom of a phone (menu, coach,
   dock); 270px is the coach's height, used until the first measurement. */
.stage { padding: 0 12px calc(var(--foot, 270px) + 12px); max-width: 980px; margin: 0 auto; }
/* The season reads as one travelling year rather than nine separate buttons:
   a bar you drag from March to October, and a play button that walks it for you. */
.season { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 2px 10px; }
.season-track { flex: 1 1 220px; min-width: 160px; }
.season-track.off { opacity: .45; }
.season input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 9px;
  border-radius: 999px; outline: none; margin: 0; cursor: pointer;
  background: linear-gradient(to right, var(--pine) var(--fill), var(--line) var(--fill));
}
.season input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--pine); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: grab;
}
.season input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.season input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--pine); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: grab;
}
.season input[type="range"]:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }
.season-ticks { display: flex; justify-content: space-between; margin: 5px 1px 0; font-size: 11px; color: var(--muted); }
.season-ticks .on { color: var(--pine); font-weight: 700; }
.cats::-webkit-scrollbar, .cards::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }


.paper { background: var(--paper); border-radius: 20px; padding: 14px 12px 6px; box-shadow: var(--shadow); color: #28312B; }
.drawing { user-select: none; -webkit-user-select: none; }
.drawing.armed .view { cursor: crosshair; }
.cap { font: 400 17px/1 Kalam, "Segoe Print", cursive; color: #4A554D; margin: 2px 4px 2px; }
.view { display: block; width: 100%; height: auto; touch-action: pan-y; }
.view .art { pointer-events: none; }
.view .hit { cursor: grab; touch-action: none; }
.view .hit:active { cursor: grabbing; }
.view.side { margin-bottom: 8px; }
.hint { font-size: 13px; color: #5F6A63; margin: 6px 6px 10px; max-width: 70ch; }

/* palette: bottom sheet on phones, sidebar on wide screens */
.pal { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(20,40,28,.12); padding: 12px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.search { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 0 10px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); height: 100%; outline: none; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 8px; scrollbar-width: none; }
.cards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 4px; scrollbar-width: none; }
.card { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; text-align: center; touch-action: pan-x pan-y; }
.card:hover { border-color: color-mix(in srgb, var(--pine) 45%, var(--line)); }
.card.on { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: var(--pine-soft); }
.thumb { display: block; background: #FAFAF7; border-radius: 10px; }
.cname { font-size: 12.5px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.ccv { font-size: 11.5px; color: var(--muted); line-height: 1.2; min-height: 1.2em; }
.ctags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 3px; }
.ctags i.why { background: #F6E7D2; color: #9A5A12; }
.ctags i { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--pine-soft); color: var(--pine); }
.empty { color: var(--muted); padding: 18px 4px; margin: 0; }

.selbar { padding: 0 14px; }
.selinfo { display: flex; align-items: center; gap: 10px; }
.selinfo > div { flex: 1; min-width: 0; }
.selinfo b { display: block; font-size: 15px; }
.selinfo small { color: var(--muted); font-size: 12.5px; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; flex: 1; }
.btn:hover:not(:disabled) { background: var(--pine-soft); }
.btn.primary { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--pine) 88%, #000); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 34px; flex: none; font-size: 13px; }
.btn.wide { width: 100%; flex: none; }
.rowpanel { margin-top: 10px; }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 4px; font-size: 13px; }
.seg button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.rowctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rowctl label { width: 64px; font-size: 13px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 38px; height: 36px; border: 0; background: none; font-size: 18px; }
.stepper span { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.link { border: 0; background: none; color: var(--pine); font-size: 13px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; z-index: 70; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); }
.toast button { flex: none; border: 0; background: none; color: inherit; font-weight: 700; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(12,20,15,.38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 86vh; background: var(--surface); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 4px 20px; }
.sheet-head h2 { margin: 0; font: 700 22px/1.1 Kalam, "Segoe Print", cursive; }
.sheet-body { overflow-y: auto; padding: 8px 20px 22px; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; font: inherit; color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit { position: relative; }
.unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.plans, .plist { list-style: none; margin: 12px 0 0; padding: 0; }
.plans li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.plans li.cur .pl b::after { content: " (öppen)"; font-weight: 400; color: var(--muted); }
.pl { flex: 1; text-align: left; border: 0; background: none; padding: 12px 2px; }
.pl b, .plist b { display: block; }
.pl small, .plist small { color: var(--muted); font-size: 12.5px; }
.plans .none { color: var(--muted); padding: 12px 0; border: 0; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plist li > div { flex: 1; min-width: 0; }
.plist .n { font-variant-numeric: tabular-nums; font-weight: 600; }


.badge-host { position: relative; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #C0792A; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
.hint .link { font-size: inherit; padding: 0; }
.actions.top0 { margin-top: 0; }
.note.first { margin-top: 0; }
.note.err { color: var(--danger); }
.note a { color: var(--pine); }
.btn.gap { margin-top: 14px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--pine-soft); }
.acct > div { flex: 1; min-width: 0; }
.acct b { display: block; }
.acct small { color: var(--muted); font-size: 12.5px; }
.tpls { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.tpls li { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mini { display: block; width: 100%; height: auto; background: #FDFDFB; padding: 10px 6px 0; }
.tpl-body { display: flex; align-items: flex-end; gap: 10px; padding: 10px 14px 12px; }
.tpl-body > div { flex: 1; min-width: 0; }
.tpl-body p { margin: 2px 0 6px; font-size: 13.5px; }
.tpl-body small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.sw { display: inline-flex; gap: 3px; }
.sw i, .fams i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ck { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ck:last-child { border-bottom: 0; }
.ck h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.ck p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st.good { background: var(--pine-soft); color: var(--pine); }
.st.warn { background: #F6E7D2; color: #9A5A12; }
.ck-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 6px; font-size: 13.5px; }
.ck-row span { margin-left: auto; color: var(--pine); font-weight: 600; flex: none; }
.fams { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.fams span { display: inline-flex; align-items: center; gap: 6px; }
.fams em { font-style: normal; color: var(--muted); }
.bloom { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 8px; }
.bm { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 0; }
.bm .bmbar { width: 100%; height: 96px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 8px; overflow: hidden; background: var(--bg); }
.bm .bmbar i { display: block; flex: none; width: 100%; box-shadow: inset 0 0 0 1px rgba(40,49,43,.14); }
.bm.gap .bmbar { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, #F6E7D2 6px 9px); }
.bn { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bl { font-size: 11.5px; color: var(--muted); }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; height: 100%; }
  .bar { grid-column: 1 / -1; position: static; }
  .beds { grid-column: 1; grid-row: 2; }
  .stage { grid-column: 2; grid-row: 2; padding: 0 20px 24px; overflow-y: auto; width: 100%; }
  .paper, .season, .compare { max-width: 760px; margin-left: auto; margin-right: auto; }
  .pal { grid-column: 3; grid-row: 2; position: static; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 0 0; }
  .cards { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; overflow-y: auto; overflow-x: hidden; padding-bottom: 16px; }
  .cards .card { width: auto; }
  .cats { flex-wrap: wrap; overflow: visible; }
  .scrim { align-items: center; }
  .sheet { border-radius: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---- variety chips on a selected plant ---- */
.sorts { display: flex; align-items: center; gap: 6px; overflow-x: auto; margin: 10px -14px 0; padding: 0 14px 2px; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.sorts > span { flex: none; font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.sorts .chip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }

/* ---- share and AI sheets ---- */
a.btn { text-decoration: none; color: inherit; }
.prompt { width: 100%; min-height: 180px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); padding: 10px 12px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.actions a.btn, .actions .btn { white-space: nowrap; }

/* ---- a shared bed, read-only ---- */
.shared { min-height: 100%; }
.shared .bar .title { cursor: default; }
.shared .dims { white-space: normal; }
.shared-main { max-width: 860px; margin: 0 auto; padding: 4px 12px 40px; display: grid; gap: 16px; }
.shared-card { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.shared-card h2 { margin: 0 0 4px; font: 700 22px/1.1 Kalam, "Segoe Print", cursive; }
.shared-cta .btn { margin-top: 14px; flex: none; }
.drawing.ro .view .hit { cursor: default; }

/* ---- the drawing: zoom, and one view at a time on a phone ---- */
.drawing { position: relative; }
.zoom { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.zoom::-webkit-scrollbar { display: none; }
.zoom .view { width: calc(var(--z, 1) * 100%); max-width: none; touch-action: pan-x pan-y; }
.zoom-reset { position: absolute; z-index: 2; top: 6px; right: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; box-shadow: var(--shadow); }
.viewseg { display: none; margin: 0 2px 8px; }
.season-ticks .short { display: none; }
.season-ticks i { font-style: normal; }

/* ---- phone: a dock at the foot, and a plant menu that tucks into a strip ---- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 32; display: flex; gap: 2px; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 6px env(safe-area-inset-bottom, 0px); }
.dock button { flex: 1; min-width: 0; height: 54px; border: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.dock button span { white-space: nowrap; }
.dock button.on { color: var(--pine); background: var(--pine-soft); }
.dock button.danger { color: var(--danger); }
.dock button.done { color: var(--pine); font-weight: 700; }
.dock .badge { top: 3px; right: calc(50% - 22px); }
.pal-grip { display: block; width: 100%; height: 30px; margin: -12px 0 0; padding: 0; border: 0; background: none; touch-action: none; }
.pal-grip i { display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
/* four actions two by two in the sidebar, so no label has to wrap */
.selacts .btn { flex: 1 1 calc(50% - 4px); white-space: nowrap; }
.swaphead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 14px 10px; font-size: 14px; }
@media (max-width: 959px) {
  .wide-only { display: none; }
  .pal:not(.coach) { transition: transform .18s ease-out; }
  .pal.min .cards { display: none; }
  .pal.min .cats { padding-bottom: 2px; }
  /* the menu sits on the dock; the coach (no dock while it runs) keeps the foot */
  .pal:not(.coach) { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  /* a selected plant's actions live in the dock, so the menu only names it */
  .selacts, .selinfo .icon-btn { display: none; }
  .viewseg { display: flex; }
  .zoom[data-show="top"] .v-side, .zoom[data-show="side"] .v-top { display: none; }
  .zoom:not([data-show="both"]) .cap { display: none; }
  /* the season fits on one line: play, the bar, Allt i blom and the name tag */
  .season { flex-wrap: nowrap; gap: 6px; padding-bottom: 8px; }
  .season-track { flex: 1 1 auto; min-width: 0; }
  .season .chip { padding: 6px 10px; }
  .season-ticks .full { display: none; }
  .season-ticks .short { display: inline; }
  /* the undo sits by the thumb, just above whatever is pinned to the foot */
  .toast { top: auto; bottom: calc(max(var(--foot, 80px), var(--gdk, 0px) + var(--gsh, 0px)) + 12px); }
}
@media (min-width: 960px) {
  .dock, .pal-grip { display: none; }
}

/* ---- onboarding: welcome, three steps, the closing choice ---- */
.tools.away { display: none; }
.ob-sheet { max-width: 520px; }
.ob-sheet .sheet-body { padding: 28px 28px calc(26px + env(safe-area-inset-bottom, 0px)); }
.ob-emoji { font-size: 54px; line-height: 1; margin: 0 0 14px; }
.ob-title { font: 700 30px/1.12 Kalam, "Segoe Print", cursive; margin: 0 0 14px; }
.ob-lead { color: var(--text); margin: 0 0 14px; max-width: 46ch; font-size: 15.5px; }
.ob-choice { margin-top: 22px; }
@media (min-width: 560px) { .ob-sheet .sheet-body { padding: 36px 36px 30px; } .ob-emoji { font-size: 62px; } }
.btn.wide { width: 100%; justify-content: center; }
.ob-choice { display: grid; gap: 8px; margin-top: 18px; }
.ob-choice + .note { text-align: center; }

/* The stage reserves 270px at the foot on a phone, so the coach stays inside it
   and scrolls rather than creeping up over the drawing. */
.coach { display: flex; flex-direction: column; max-height: 270px; overflow-y: auto; }
.coach-head { display: flex; align-items: center; gap: 10px; padding: 2px 14px 0; }
.coach-count { font-size: 12.5px; font-weight: 600; color: var(--pine); }
.coach-skip { margin-left: auto; font-size: 12.5px; }
.coach-bar { display: flex; gap: 5px; margin: 8px 14px 0; }
.coach-bar i {
  flex: 1; height: 20px; border-radius: 999px; background: var(--line);
  display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
  color: var(--pine-ink); transition: background .3s ease;
}
.coach-bar i.done { background: var(--pine); }
.coach-bar i.on { background: var(--pine-soft); box-shadow: inset 0 0 0 2px var(--pine); animation: coach-on 1.8s ease-in-out infinite; }
@keyframes coach-on { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.coach-title { font-size: 17px; margin: 4px 14px 2px; }
.coach-lead { font-size: 13.5px; color: var(--muted); margin: 0 14px 10px; max-width: 52ch; }
.coach-ask { font-size: 13px; color: var(--pine); font-weight: 600; margin: 8px 14px 2px; }
.coach-cards { flex: none; }
.coach-cards .card { width: 104px; }
/* the step's instruction stays under the cards, not pushed to the foot of the column */
.coach > :last-child { margin-bottom: auto; }

@media (min-width: 960px) {
  .coach { max-height: none; padding-top: 16px; }
  .coach-cards { flex-wrap: wrap; overflow: visible; }
}

/* the ring the step's plant drops into, and the hand that shows the way */
@keyframes ob-ring { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.ob-ring { transform-box: fill-box; transform-origin: center; animation: ob-ring 1.5s ease-in-out infinite; }
.ob-hand {
  position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none;
  transition: transform .95s cubic-bezier(.35, 0, .2, 1), opacity .4s ease;
  will-change: transform, opacity;
}
/* Each hand hangs from its own working point: the fingertip when pointing or
   pressing, the middle of the fist when carrying. */
.ob-cursor { position: absolute; display: block; height: 68px; width: auto; opacity: 0; transition: opacity .12s linear; }
.ob-point { transform: translate(-34%, -3%); }
.ob-click { transform: translate(-30%, -5%); }
.ob-grab { transform: translate(-50%, -40%); }
.ob-hand[data-hand="point"] .ob-point,
.ob-hand[data-hand="click"] .ob-click,
.ob-hand[data-hand="grab"] .ob-grab { opacity: 1; }
.ob-hand-plant {
  position: absolute; left: -6px; top: -62px; opacity: 0; transition: opacity .15s ease;
  background: var(--paper); border-radius: 10px; padding: 2px; box-shadow: var(--shadow);
}
.ob-hand[data-carry="1"] .ob-hand-plant { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .ob-ring { animation: none; opacity: 1; } }
.coach-acts { display: grid; gap: 8px; margin: 0 14px; }
.coach-acts .btn { justify-content: flex-start; }
.ob-alt { text-align: center; }

/* ---- hotspots: one pulsing ring per feature, explained once ---- */
.hots { position: fixed; inset: 0; z-index: 44; pointer-events: none; }
.hot {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 0;
  border: 0; border-radius: 999px; background: none; pointer-events: auto; display: grid; place-items: center;
}
.hot::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--pine) 22%, transparent);
  animation: hot-pulse 2s ease-out infinite;
}
.hot i { position: relative; width: 13px; height: 13px; border-radius: 999px; background: var(--pine); box-shadow: 0 0 0 3px var(--surface); }
.hot.on::before { animation: none; background: color-mix(in srgb, var(--pine) 34%, transparent); }
@keyframes hot-pulse { 0% { transform: scale(.55); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.hot-tip {
  position: absolute; width: 260px; pointer-events: auto; background: var(--surface);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hot-tip b { display: block; margin-bottom: 5px; }
.hot-tip p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .hot::before, .coach-bar i.on { animation: none; } }

/* ---- carrying a plant from the palette into the bed ---- */
body.dragging, body.dragging * { cursor: grabbing !important; }
body.dragging .cards { overflow: visible; }
.ghost {
  position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -78%);
  background: var(--paper); border-radius: 12px; padding: 3px;
  box-shadow: 0 8px 20px rgba(20, 40, 28, .25);
}

/* ---- AI: the picture and the describe sheet ---- */
.ai-img { display: block; width: 100%; height: auto; border-radius: 16px; margin: 4px 0 12px; background: var(--bg); }
.shared-img { margin: 0; box-shadow: var(--shadow); border-radius: 20px; }
h3.sub { font-size: 14px; margin: 22px 0 0; color: var(--muted); font-weight: 600; }
.prompt.desc { font: inherit; min-height: 110px; margin-top: 0; }

/* ---- a computer: my beds and the account in a left column ---- */
.beds { display: none; }
.narrow-only { display: inline; }
@media (min-width: 960px) {
  .narrow-only { display: none; }
  .beds { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px 12px 16px 16px; border-right: 1px solid var(--line); }
  .beds h3 { margin: 4px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .beds-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 0 1 auto; display: grid; gap: 2px; }
  .beds-list button { width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; }
  .beds-list button:hover { background: var(--pine-soft); }
  .beds-list button.cur { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .beds-list b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .beds-list small { color: var(--muted); font-size: 12px; }
  .beds-acct { margin-top: auto; display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--pine-soft); font-size: 13px; }
  .beds-acct small { color: var(--muted); line-height: 1.4; }
  .beds-acct .btn { margin-top: 6px; }
  .beds-acct .link { justify-self: start; }
  .in-sheet { display: none; }
  /* wide enough: the picture and the drawing side by side, to compare */
  .compare.with-photo { max-width: 1280px; }
}
@media (min-width: 1400px) {
  .compare.with-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .compare.with-photo .photo { position: sticky; top: 0; margin: 0; }
}
.icon-btn.lit { color: var(--pine); background: var(--pine-soft); }

/* ---- the AI picture: painted in beside the drawing ---- */
.photo { margin: 0 0 14px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.photo-img { display: block; width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; background: #ECE7DC;
  filter: blur(22px) saturate(.2) contrast(.8); transform: scale(1.06); opacity: .5;
  transition: filter 2.8s cubic-bezier(.2, .7, .2, 1), transform 2.8s cubic-bezier(.2, .7, .2, 1), opacity 1s ease; }
.photo-img.in { filter: none; transform: none; opacity: 1; }
.photo-wait { aspect-ratio: 1376 / 768; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; color: #4A554D;
  background: linear-gradient(110deg, #ECE7DC 30%, #F6F2EA 50%, #ECE7DC 70%) 0 0 / 300% 100%; animation: photo-shimmer 1.8s linear infinite; }
.photo-wait small { max-width: 34ch; color: #6B746D; font-size: 13px; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(31, 77, 58, .18); border-top-color: #1F4D3A; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes photo-shimmer { to { background-position: -300% 0; } }
.photo figcaption { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; font-size: 13px; color: #4A554D; }
.photo figcaption > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.photo-acts { margin-left: auto; display: flex; gap: 2px; }
.photo .icon-btn { color: #28312B; }
@media (prefers-reduced-motion: reduce) { .photo-img { transition: none; filter: none; transform: none; opacity: 1; } .photo-wait, .spin { animation: none; } }

/* ---- sheets: the AI confirmation and sharing ---- */
.promptbox { margin-top: 12px; font-size: 13.5px; }
.promptbox summary { cursor: pointer; color: var(--pine); }
.own { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.own > span { flex: 1; font-size: 13px; color: var(--muted); }
.round { width: 46px; height: 46px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; text-decoration: none; }
.round:hover { background: var(--pine-soft); }
.round.brand { border: 0; color: #fff; }
.round.brand:hover { filter: brightness(1.08); }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--pine-soft); margin-bottom: 14px; }
.nudge > div { flex: 1; min-width: 0; }
.nudge b { display: block; }
.nudge small { color: var(--muted); font-size: 12.5px; }
.linkrow { display: flex; gap: 8px; align-items: center; }
.linkrow input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; font: inherit; font-size: 13px; color: var(--muted); }
.linkrow .btn { height: 40px; }
.sharerow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Ny rabatt: flikar, mått med förhandsvisning, chattrutan ---------- */
.newtabs { margin-bottom: 14px; }
.newtabs button { padding: 9px 4px; font-size: 13.5px; }
.sizer { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.sizeprev { flex: none; width: 96px; height: 58px; }
.sizeprev rect, .sizeprev line { transition: all .15s ease-out; }
.sliders { flex: 1; display: grid; gap: 6px; min-width: 0; }
.sliders label { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.sliders label span { display: flex; justify-content: space-between; }
.sliders b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sliders input[type=range] { width: 100%; margin: 0; accent-color: var(--pine); }
.presets.sm { gap: 5px; margin-top: 14px; }
.chip.xs { padding: 4px 10px; font-size: 12px; color: var(--muted); }
.chatbox { position: relative; margin-top: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.chatbox:focus-within { border-color: var(--pine); }
.chatbox textarea { display: block; width: 100%; min-height: 84px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; padding: 12px 54px 12px 14px; resize: none; outline: none; }
.chatbox .send { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--pine); color: var(--pine-ink); display: grid; place-items: center; cursor: pointer; }
.chatbox .send:disabled { opacity: .35; cursor: default; }
.chatbox .send .spin { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.linkish { border: 0; background: none; padding: 0; color: var(--pine); font: inherit; text-decoration: underline; cursor: pointer; }
.newtabs button { white-space: nowrap; }
@media (max-width: 480px) { .newtabs .more { display: none; } }

/* ---------- Mina rabatter, molnet och kontofrågan ---------- */
.chevbtn { width: 30px; margin-left: -8px; color: var(--muted); align-self: flex-start; margin-top: 2px; }
@media (min-width: 960px) { .chevbtn { display: none; } }
.cloudbtn { color: var(--muted); }
.chatbox .ph { position: absolute; left: 14px; right: 54px; top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); opacity: .8; pointer-events: none; animation: ph-in .45s ease-out; }
@keyframes ph-in { from { opacity: 0; transform: translateY(6px); } to { opacity: .8; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chatbox .ph { animation: none; } }
.authbox { display: grid; gap: 12px; text-align: center; justify-items: center; padding-top: 4px; }
.authbox .authicon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); }
.authbox p { margin: 0; line-height: 1.5; }
.authbox .two { width: 100%; }
.authbox .note { font-size: 12.5px; }
/* the title only as wide as the name, so the chevron sits right beside it */
.bar .title { flex: 0 1 auto; }
.bar .tools { margin-left: auto; }
@media (max-width: 959px) {
  .chevbtn { width: 22px; margin-left: -6px; }
  .bar { gap: 4px; padding-left: 12px; padding-right: 10px; }
  .bar .tools .icon-btn { width: 34px; }
}
.authbox .google { color: var(--text); }
.authbox .google svg { color: #4285F4; }
.authbox .or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.authbox .or::before, .authbox .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.emailform { width: 100%; display: grid; gap: 8px; }
.emailform input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; padding: 11px 12px; }
.emailform input:focus { outline: none; border-color: var(--pine); }
.linkish.small { font-size: 13px; }

/* ---------- mobile: the plant menu hides behind a round + in the middle of the dock ---------- */
@media (max-width: 959px) {
  .pal.min { display: none; }
  .bar .dims.save { display: none; }
  /* ritningen nästan kant i kant, så att hela rabatten blir så stor som möjligt */
  .stage { padding-left: 6px; padding-right: 6px; }
  .paper { padding: 10px 4px 4px; border-radius: 16px; }
}
.dock .addbtn { flex: 0 0 64px; }
.dock .addbtn i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--pine-ink); box-shadow: 0 4px 14px rgba(31, 77, 58, .3); transform: translateY(-8px); transition: transform .15s ease-out; }
.dock .addbtn.on { background: none; }
.dock .addbtn.on i { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px rgba(0, 0, 0, .12); }
.dock .addbtn:active i { transform: translateY(-8px) scale(.94); }
.dock button:disabled { opacity: .4; }

/* ---------- odlingszon ---------- */
.ctags i.cold { background: #F6E3CF; color: #8A4A12; }
.zonefind { display: flex; gap: 8px; margin-top: 12px; }
.zonefind input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px; }
.zonefind input:focus { outline: none; border-color: var(--pine); }
.zonehits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.zones { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 14px; }
.zones button { height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 16px; font-weight: 600; }
.zones button.on { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
.zonerow { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font: inherit; font-size: 14px; text-align: left; }
.zonerow span { flex: 1; color: var(--muted); }
.zonerow svg { transform: rotate(-90deg); color: var(--muted); }
.beds .zonerow { margin-top: auto; }
.beds .zonerow + .beds-acct { margin-top: 0; }

/* ---------- admin och testläge ---------- */
.adminbox { display: grid; gap: 4px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #C9A15A; background: #FBF4E6; }
.adminbox small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.adminbox .btn { justify-self: start; margin-top: 6px; }
.zonerow.testrow { border-style: dashed; border-color: #C9A15A; }
.testpill { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: #8A5A12; color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.testpill button { border: 0; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font: inherit; padding: 3px 10px; }

/* Menyn bakom ☰: en låda från vänster, med inställningar som minns. */
.menubtn, .homebtn { margin-right: -2px; }
.homebtn.cur { color: var(--pine); }
.drawer-scrim { align-items: stretch; justify-content: flex-start; }
.drawer { width: min(320px, 86vw); height: 100%; background: var(--surface); display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(14px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; box-shadow: var(--shadow); animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px 10px; }
.drawer-head b { font-size: 16px; }
.drawer h4 { margin: 18px 10px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; padding: 11px 10px; border-radius: 12px; cursor: pointer; }
.mi:hover:not(:disabled) { background: var(--pine-soft); }
.mi:disabled { opacity: .5; cursor: default; }
.mi > span { flex: 1; min-width: 0; }
.mi small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.mi em { font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.mi.switch input { position: absolute; opacity: 0; pointer-events: none; }
.mi.switch i { flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.mi.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.mi.switch input:checked + i { background: var(--pine); }
.mi.switch input:checked + i::after { transform: translateX(16px); }
.mi.switch input:focus-visible + i { outline: 2px solid var(--pine); outline-offset: 2px; }
.drawer-foot { margin-top: auto; padding: 16px 10px 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.drawer-foot small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hem: rabattkort, blomningsgantt och hela växtlistan. */
h3.sub small { font-weight: 400; margin-left: 6px; }
.homegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.homecard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 0 0 10px; overflow: hidden; font: inherit; text-align: left; cursor: pointer; }
.homecard:not(.new) { position: relative; padding: 0; overflow: visible; cursor: default; }
.homecard.open { z-index: 5; }
.hc-open { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 0 0 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; overflow: hidden; }
.hc-open .mini { margin-bottom: 6px; }
.hc-more { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hc-more:hover, .homecard.open .hc-more { background: var(--surface); box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.cmenu { position: absolute; top: 42px; right: 6px; min-width: 196px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.cm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cm-item:hover { background: var(--hover, color-mix(in srgb, var(--pine) 8%, transparent)); }
.cm-item.danger { color: #B3261E; }
.cm-rename { display: flex; gap: 6px; padding: 4px; }
.cm-rename input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); }
.homecard:hover { border-color: var(--pine); }
.homecard .mini { margin-bottom: 6px; }
.homecard b, .homecard small { padding: 0 10px; }
.homecard b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.homecard small { font-size: 12px; color: var(--muted); }
.homecard.new { align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 10px; border-style: dashed; color: var(--muted); }
.gantt { margin-top: 10px; font-size: 12px; overflow-x: auto; }
.g-row { display: grid; grid-template-columns: minmax(96px, 2fr) repeat(8, minmax(22px, 1fr)); gap: 3px; align-items: center; margin-bottom: 4px; }
.g-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.g-row > i { display: flex; height: 18px; border-radius: 4px; overflow: hidden; font-style: normal; }
.g-row > i > b { flex: 1; }
.g-row > i.gap { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 6px); }
.g-head > i { height: auto; justify-content: center; color: var(--muted); }
.g-total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }

/* Hem som egen sida: ritningen, växtmenyn och dockan viker undan. */
.tools.homing { visibility: hidden; }
.homestage { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.homepage { max-width: 900px; margin: 0 auto; padding: 4px 4px 0; }
.home-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 0; }
.homepage h3.sub:first-of-type { margin-top: 14px; }
.homepage .homegrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 959px) { .home-title { display: none; } .homepage { padding: 0 6px; } }
@media (min-width: 960px) {
  .app.at-home { grid-template-columns: 230px minmax(0, 1fr); }
  .at-home .bar .title { visibility: hidden; }
  .beds-home { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
  .beds-home:hover { background: var(--pine-soft); }
  .beds-home.cur { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
}
[data-look="mono"] .beds-home:hover { background: var(--hover); }

/* Ritpapperet är alltid ljust, även i mörkt läge, så allt på det (vyreglaget,
   Hela rabatten, hjälptexten) får ljusa tokens i stället för sidans mörka. */
.paper { --bg: #EEF1EC; --surface: #FFFFFF; --text: #1B2420; --muted: #66716A; --line: #DCE1DA; --pine: #1F4D3A; --pine-ink: #FFFFFF; --pine-soft: #E2ECE5; color-scheme: light; }
[data-look="mono"] .paper { --bg: #F7F7F7; --text: #0D0D0D; --muted: #6E6E73; --line: #E6E6E8; --pine: #0D0D0D; --pine-soft: #E9F5EC; --hover: #E9F5EC; }

/* Rabattens inställningar och Spara och dela */
.setlist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.savegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.savegrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; font-size: 12.5px; line-height: 1.25; text-align: center; padding: 4px 2px; cursor: pointer; }
.savegrid button:disabled { opacity: .45; cursor: default; }
.savegrid .round { width: 54px; height: 54px; }
.savegrid button:hover:not(:disabled) .round { background: var(--pine-soft); }
.saved-ok { display: flex; align-items: center; gap: 6px; }

/* Trädgården: kartan över hela tomten överst på Hem (garden.js). */
.garden { margin-top: 10px; }
.gmap { position: relative; background: #FDFDFB; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; color-scheme: light; }
.gsvg { display: block; width: 100%; height: auto; max-height: 64vh; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.gsvg:active { cursor: grabbing; }
.gitem { cursor: pointer; }
.gdim, .glabel { font-family: Kalam, "Segoe Print", cursive; fill: #28312B; pointer-events: none; }
.gdim { fill: #66716A; }
.gzoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.gzoom .icon-btn { background: #FFFFFF; color: #1B2420; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.gpanel { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ggroup + .ggroup { margin-top: 10px; }
.ggroup > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ggroup .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ghead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ghead > b { flex: 1; font-size: 16px; }
.gname { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 600; background: var(--surface); color: var(--text); }
.gsize { color: var(--muted); font-size: 13px; white-space: nowrap; }
.gpanel .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; background: var(--surface); color: var(--text); }
.gbedsum { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gstart { margin-top: 10px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 14px; }
.gstart p { margin: 0 0 10px; color: var(--muted); }
.areaguess, .mapshelp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.areaguess > b, .mapshelp > b { display: block; font-size: 14px; }
.ag-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; }
.ag-row .field { flex: 0 1 180px; }
.ag-row .chips { margin-bottom: 4px; }
.areaguess .note, .mapshelp .note { margin: 8px 0 0; }
.areaguess .linkish { margin-left: 6px; }
.mh-row { display: flex; gap: 8px; margin-top: 10px; }
.mh-row input { flex: 1; min-width: 0; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; font: inherit; font-size: 14px; color: var(--text); }
.mh-row .btn { white-space: nowrap; }

/* Grödorna på ett köksland, en pallkrage eller i växthuset. */
.soilbox { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.soilbox > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.soilbox > p { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.soilacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.soilacts select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.crops { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.crops > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.crops ul { list-style: none; margin: 6px 0 8px; padding: 0; }
.crops li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.crops li > span:first-child { flex: 1; font-weight: 600; }
.crops li small { color: var(--muted); font-size: 12px; width: 76px; text-align: right; }
.crops .step { display: inline-flex; align-items: center; gap: 6px; }
.crops .step button { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.crops .step b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.crops select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: inherit; background: var(--surface); color: var(--text); }

/* Kalendern: månaden, dagarna med prickar och listan med att göra. */
.calpage { max-width: 760px; margin: 0 auto; padding: 4px 4px 0; }
.frostrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.frostrow b { color: var(--text); }
.frostedit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.frostedit input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--surface); color: var(--text); }
.frostedit .note { width: 100%; margin: 0; }
.calcard { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 12px; }
.calhead { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.calhead b { font-size: 17px; }
.calgrid { display: grid; grid-template-columns: 26px repeat(7, 1fr); gap: 2px; text-align: center; }
.calgrid .dow, .calgrid .wk { font-size: 12px; color: var(--muted); padding: 4px 0; }
.calgrid .wk { font-variant-numeric: tabular-nums; align-self: center; }
.cday { position: relative; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; height: 42px; border-radius: 12px; cursor: pointer; font-variant-numeric: tabular-nums; padding: 4px 0 12px; }
.cday:hover { background: var(--pine-soft); }
.cday.today { box-shadow: inset 0 0 0 1.5px var(--pine); font-weight: 700; }
.cday.on { background: var(--pine); color: var(--pine-ink); }
.cday .dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 3px; }
.cday .dots i { width: 5px; height: 5px; border-radius: 50%; }
.calsum { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 6px; }
.calsum b { font-size: 16px; }
.tasks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.task { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.task .tick { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--pine-ink); display: grid; place-items: center; cursor: pointer; }
.task.done .tick { background: var(--pine); border-color: var(--pine); }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.task .tbody { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.task .tt { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.task .tt i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.task small { color: var(--muted); font-size: 12.5px; }
.tmore { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
.rainadv { display: block; margin-top: 3px; font-size: 12.5px; color: #3B6E99; }
.rainadv.skip { color: var(--pine); font-weight: 600; }
.rainsrc { font-size: 12.5px; }
.subscribe { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.subscribe > b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.subscribe > p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.subacts { display: flex; flex-wrap: wrap; gap: 8px; }
.subacts .btn { text-decoration: none; white-space: nowrap; flex: 1 1 auto; justify-content: center; padding: 0 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 2px 24px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 959px) { .calpage { padding: 0 6px; } }

/* Solkartan: kompassen på kartan och panelen under den (sun.js). */
.gcompass { position: absolute; left: 8px; top: 8px; width: 52px; height: 52px; cursor: grab; touch-action: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.18)); }
.gcompass svg { display: block; width: 100%; height: 100%; }
.sunpanel .months { display: flex; flex-wrap: wrap; gap: 6px; }
.sunpanel .chip.on { background: var(--pine); color: var(--pine-ink); border-color: var(--pine); }
.sunlegend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sunlegend span { display: inline-flex; align-items: center; gap: 6px; }
.sunlegend i { width: 14px; height: 10px; border-radius: 3px; opacity: .8; }
.sunplace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.sunplace > span { flex: 1 1 100%; color: var(--muted); }
.sunplace b { color: var(--text); }
.sunplace select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.sunbeds { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sunbeds li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sunbeds b { font-weight: 600; white-space: nowrap; }
.hnote { align-self: end; margin: 0 0 10px; font-size: 12.5px; }

/* Flytta-handtaget bredvid en markerad planta. */
.movehandle .hit { cursor: grab; }
.movehandle .hit:active { cursor: grabbing; }

/* =====================================================================
   Teman. Tema 1 (classic) är allt ovan: tallgrönt, Instrument Sans, Kalam i
   rubrikerna. Tema 2 (mono) nedan: svartvitt som Apple, OpenAI och ElevenLabs,
   Inter, pillerformade knappar, rundade kvadrater för ikonerna och en
   ljusgrön hover. Ett nytt tema = ett block till här + en rad i THEMES (app.js).
   ===================================================================== */
:root[data-look="mono"] {
  --bg: #F7F7F7; --surface: #FFFFFF; --text: #0D0D0D; --muted: #6E6E73; --line: #E6E6E8;
  --pine: #0D0D0D; --pine-ink: #FFFFFF; --pine-soft: #E9F5EC; --danger: #C2362B; --paper: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --hover: #E9F5EC;
  --ui-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-font="figtree"] { --ui-font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; }
  :root[data-look="mono"][data-theme="dark"] {
    --bg: #0B0B0C; --surface: #161618; --text: #F2F2F2; --muted: #9A9AA0; --line: #2A2A2E;
    --pine: #F2F2F2; --pine-ink: #0B0B0C; --pine-soft: #1C2A21; --danger: #F07A6E; --hover: #1C2A21;
  }
[data-look="mono"] body { font-family: var(--ui-font); letter-spacing: -.005em; font-feature-settings: "cv11", "ss01"; }
[data-look="mono"] .pname, [data-look="mono"] .sheet-head h2, [data-look="mono"] .ob-title, [data-look="mono"] .shared-card h2 { font-family: var(--ui-font); font-weight: 600; letter-spacing: -.025em; }
[data-look="mono"] .pname { font-size: 22px; }
/* Rabattens namn i toppraden: lika stort som brödtexten, menyn bär resten. */
.bar .pname { font-size: 19px; }
[data-look="mono"] .bar .pname { font-size: 16px; letter-spacing: -.01em; }
[data-look="mono"] .sheet-head h2 { font-size: 20px; }
[data-look="mono"] .ob-title { font-size: 28px; }
[data-look="mono"] b, [data-look="mono"] strong, [data-look="mono"] h3 { font-weight: 600; }
/* knappar: piller */
[data-look="mono"] .btn { border-radius: 999px; padding: 0 18px; font-weight: 500; }
[data-look="mono"] .btn:hover:not(:disabled), [data-look="mono"] .chip:hover:not(.on), [data-look="mono"] .zonerow:hover,
[data-look="mono"] .dock button:hover:not(.addbtn), [data-look="mono"] .beds-list button:hover { background: var(--hover); }
[data-look="mono"] .btn.primary:hover:not(:disabled) { background: #2A2A2A; }
[data-look="mono"] .chip { border-radius: 999px; }
[data-look="mono"] .seg { border-radius: 999px; padding: 3px; background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
[data-look="mono"] .seg button { border-radius: 999px; }
[data-look="mono"] .seg button.on { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); font-weight: 400; }
/* ikoner: rundade kvadrater */
[data-look="mono"] .icon-btn { border-radius: 12px; }
[data-look="mono"] .icon-btn:hover:not(:disabled) { background: var(--hover); }
[data-look="mono"] .icon-btn.lit { background: var(--hover); color: var(--text); }
[data-look="mono"] .card { border-radius: 18px; }
[data-look="mono"] .card:hover { background: var(--hover); border-color: var(--line); }
[data-look="mono"] .card.on { background: var(--hover); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
[data-look="mono"] .search, [data-look="mono"] .zonefind input, [data-look="mono"] .field input { border-radius: 999px; }
[data-look="mono"] .ctags i { background: color-mix(in srgb, var(--text) 6%, var(--surface)); color: var(--muted); }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.looks button { display: grid; gap: 1px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px 10px; }
.looks button.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.looks small, .looks-h { color: var(--muted); font-size: 11.5px; }
.looks-h { margin-top: 8px; }
[data-look="mono"] .looks button { border-radius: 14px; }
[data-look="mono"] .badge { background: var(--text); color: var(--surface); }
[data-look="mono"] .ctags i.why { background: var(--hover); color: #2E6B45; }

/* ---- Hem: tomma rutor, uppsättningen av trädgården, växthusen ---- */
.emptybox { margin-top: 10px; padding: 22px 18px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.emptybox b { font-size: 16px; }
.emptybox p { margin: 0 0 6px; color: var(--muted); font-size: 14px; max-width: 52ch; }
.btn.dark { background: #111; color: #fff; border-color: #111; display: inline-flex; align-items: center; gap: 6px; }
.btn.dark:hover { background: #2a2a2a; }
.gsetup { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.gsetup h4 { margin: 14px 0 6px; font-size: 18px; }
.gsetup > .note { margin: 0 0 10px; }
.steps { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; }
.steps li { flex: 1; min-width: 0; }
.steps button { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; border-bottom: 3px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.steps button:disabled { cursor: default; }
.steps button span { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: var(--text); font-size: 11px; font-weight: 600; }
.steps li.on button { color: var(--text); border-color: #111; font-weight: 600; }
.steps li.on button span { background: #111; color: #fff; }
.steps li.done button { border-color: #1F4D3A; color: var(--text); }
.steps li.done button span { background: #1F4D3A; color: #fff; }
.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.shape { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.shape svg { width: 56px; height: 52px; fill: #E3EDD6; stroke: #28312B; stroke-width: 1.4; stroke-dasharray: 4 3; }
.shape.on { border-color: #111; background: var(--surface); box-shadow: 0 0 0 2px #111 inset; }
.setupnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.setupnav .btn.primary { min-width: 120px; }
.gsetup .linkish { margin-top: 8px; }
.mapsdetails { margin-top: 14px; }
.mapsdetails summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.mapsdetails .mapshelp { border-top: 0; margin-top: 4px; padding-top: 4px; }
.mapsdetails .mapshelp > b { display: none; }
.gfrontlab { font-family: Kalam, "Segoe Print", cursive; fill: #1F4D3A; font-weight: 700; pointer-events: none; }
.gfront path { pointer-events: none; }
.grot { display: inline-flex; align-items: center; gap: 4px; }
.grot > span { font-size: 13px; color: var(--muted); }
.ghgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.ghcard { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.ghhead { display: flex; align-items: baseline; gap: 8px; }
.ghhead small { color: var(--muted); font-size: 12px; }
.ghhead .linkish { margin-left: auto; font-size: 13px; }
.ghcrops { display: flex; flex-wrap: wrap; gap: 6px; }
.ghcrop { display: inline-flex; align-items: center; gap: 5px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.ghcrop button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ghcard select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.ghcard .note { margin: 0; }
.ghtasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ghtasks li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.ghtasks i { width: 8px; height: 8px; border-radius: 50%; }
.ghtasks small { color: var(--muted); font-size: 12px; }
.emptybox .btn, .setupnav .btn { flex: none; }
.steps em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .steps li:not(.on) { flex: none; } .steps li:not(.on) em { display: none; } }
.ghnext { margin: 0; font-size: 14px; } .ghnext span { color: var(--muted); } .ghnext small { color: var(--muted); font-size: 12px; margin-left: 4px; }
/* a card on the left edge opens its menu to the right, so it stays on screen */
.cmenu.left { right: auto; left: 6px; }
.cmenu { max-width: calc(100vw - 32px); }

/* ---- luft: lite mer avstånd mellan fälten, kortare texter ---- */
.field { margin-top: 16px; }
.field > span { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.two { gap: 12px; }
.gsub { display: flex; align-items: center; gap: 6px; margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.lead { margin: 4px 0 6px; color: var(--muted); font-size: 15px; }
.gline { margin: 12px 0 0; font-size: 14px; } .muted { color: var(--muted); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 999px; }

/* (?) – förklaringen ett tryck bort */
.help { position: relative; display: inline-flex; }
.help-q { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 12px/1 var(--ui-font, inherit); display: grid; place-items: center; cursor: pointer; padding: 0; }
.help-pop { position: absolute; z-index: 60; top: 26px; left: -10px; width: min(260px, 70vw); padding: 10px 12px; border-radius: 12px; background: #111; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* kartans bottenark: lämnar kartan fri, som växtmenyn i rabatten */
.gsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 58vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.14); padding-bottom: env(safe-area-inset-bottom, 0px); }
.gsheet.low { max-height: 40vh; }
.gsheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 4px 20px; }
.gsheet-head b { font-size: 17px; }
.gsheet-body { overflow-y: auto; padding: 0 20px 22px; }
.gsheet-body > .field:first-child, .gsheet-body > .two:first-child { margin-top: 4px; }
.homepage:has(.gsheet), .homepage:has(.gdock) { padding-bottom: calc(var(--gsh, 0px) + var(--gdk, 0px) + 16px); }
@media (min-width: 960px) {
  .gsheet { left: auto; right: 24px; bottom: 24px; width: 400px; border-radius: 20px; max-height: 72vh; box-shadow: 0 16px 50px rgba(0,0,0,.18); }
  .gsheet.low { max-height: 60vh; }
  .homepage:has(.gsheet) { padding-bottom: 0; }
}
.gadds { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 6px; }
.gaddk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.gaddk:hover { border-color: #111; }
.kicon { width: 44px; height: 36px; }
.gitem.dim { opacity: .45; pointer-events: none; }
.ghandle .gh-move { cursor: grab; }
.gsheet .rotbtn { margin-top: 12px; gap: 8px; }

/* första besöket och adressen */
.intro { margin: 8vh auto 0; max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 8px; }
.intro-emoji { font-size: 56px; }
.intro h1 { margin: 0; font-size: 30px; }
.intro p { margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.placebox .zipcity { grid-template-columns: 2fr 3fr; }
.placeacts { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.placeacts .btn { flex: none; }
.placeres { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.placeres li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; }
.placeres li + li { border-top: 1px solid var(--line); }
.placeres span { color: var(--muted); }
.placeres select { border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); text-align: right; }
.gsetup h4 { margin: 20px 0 4px; font-size: 20px; }
.gsetup .garden { margin-top: 12px; }
.setupnav { align-items: center; }
.setupnav .later { margin-left: auto; margin-right: 6px; }
[data-look="mono"] .btn.dark, .btn.dark { background: #111; color: #fff; border-color: #111; }
[data-look="mono"] .btn.dark:hover:not(:disabled), .btn.dark:hover:not(:disabled) { background: #2a2a2a; color: #fff; }
.btn.dark:disabled { background: #111; color: #fff; opacity: .35; }

/* solen: större kompass, ett reglage för väderstrecken, upp- och nedgång på tomten */
.gcompass.big { width: 92px; height: 92px; left: 10px; top: 10px; }
.northslider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; margin: 4px 0 16px; }
.northslider > span { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.northslider input { width: 100%; accent-color: #111; height: 32px; }
.northslider b { font-size: 14px; white-space: nowrap; }
.gsunlab { font-family: Kalam, "Segoe Print", cursive; fill: #7A4E08; font-weight: 700; pointer-events: none; paint-order: stroke; stroke: #FDFDFB; stroke-width: 3px; stroke-linejoin: round; }
.gsunmark { pointer-events: none; }
.gzoom { top: 10px; bottom: auto; right: 10px; }
.gcompass.big { width: 80px; height: 80px; }
.gsunlab { stroke-width: 5px; font-size-adjust: none; }

/* The greenhouse planner and how much fits */
.ghplan .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ghplan .back svg { transform: rotate(90deg); }
.ghplan .home-title small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.ghplanbtn { margin-top: 10px; }
.crops small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.crops small.over { color: #B4532A; font-weight: 600; }
.fitchips { margin: 4px 0 10px; }
.fitchips .chip b { margin-left: 4px; font-weight: 600; }

/* Hem as a dashboard: the season, the weather, the focus and the week */
.season-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin: 6px 0 12px; }
.sc-top { display: flex; align-items: center; gap: 8px; }
.sc-top b { font-size: 20px; letter-spacing: -.01em; }
.sc-top small { margin-left: auto; color: var(--muted); font-size: 13px; }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; }
.sc-bar { position: relative; height: 12px; margin: 14px 0 6px; border-radius: 6px; overflow: hidden; background: var(--line); }
.sc-bar i { position: absolute; top: 0; bottom: 0; opacity: .5; }
.sc-bar i.cur { opacity: 1; }
.sc-bar em { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: var(--text); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); }
.sc-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11px; color: var(--muted); text-align: center; }
.sc-months .cur { color: var(--text); font-weight: 700; }
.season-card p { margin: 12px 0 0; font-size: 14px; line-height: 1.45; }
.season-card .sc-bloom { margin-top: 6px; color: var(--muted); font-size: 13px; }
.sc-bloom b { color: var(--text); }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 4px; }
.wtile { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wtile small { color: var(--muted); font-size: 12px; }
.wtile b { font-size: 20px; letter-spacing: -.01em; }
.wtile span { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.wtile.warn { border-color: #E8B48F; background: #FFF6EF; }
.wtile.warn b { color: #B4532A; }
.wsrc { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-align: right; }
.wsrc:empty { display: none; }
.gprev { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #FDFDFB; overflow: hidden; cursor: pointer; text-align: left; color: var(--text); font: inherit; position: relative; }
.gprev > svg { display: block; width: 100%; height: 200px; padding: 8px; box-sizing: border-box; }
.gprev.inside { border: 0; border-radius: 12px; background: none; }
.gprev.inside > svg { height: 120px; padding: 0; }
.gprev-lab { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 13px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(0,0,0,.12); color: #1B2420; }
.gprev-lab small { color: #66716A; font-size: 12.5px; }
.gprev-lab svg { margin-left: auto; width: 16px; height: 16px; padding: 0; transform: none; }
.gprev:hover { border-color: var(--muted); }
@media (min-width: 960px) { .gprev > svg { height: 300px; } }
button.ghcard { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
button.ghcard:hover { border-color: var(--muted); }
.ghhead svg { margin-left: auto; align-self: center; color: var(--muted); }
.focus { display: flex; gap: 8px; overflow-x: auto; margin: 2px 0 10px; scrollbar-width: none; }
.fchip { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fchip svg { grid-row: span 2; width: 30px; height: 30px; padding: 4px; border-radius: 10px; box-sizing: border-box; }
.fchip b { font-size: 14px; } .fchip small { color: var(--muted); font-size: 12px; }
.fchip.water svg { color: #3F7FB3; background: #E6F0F8; } .fchip.cut svg { color: #5E8A45; background: #EAF2E3; }
.fchip.feed svg { color: #8A6A2E; background: #F5EEDC; } .fchip.harvest svg { color: #C46F1F; background: #FBEBDC; } .fchip.sow svg { color: #1F6B4A; background: #E2EFE7; }
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 14px -6px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.weekstrip > button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; border-radius: 12px; background: none; font: inherit; color: var(--text); cursor: pointer; }
.weekstrip > button.today b { text-decoration: underline; text-underline-offset: 3px; }
.weekstrip small { font-size: 11px; color: var(--muted); }
.weekstrip b { font-size: 16px; font-weight: 600; }
.weekstrip i { display: flex; gap: 3px; height: 6px; }
.weekstrip em { width: 6px; height: 6px; border-radius: 50%; }
.weekstrip .sel { background: var(--text); color: var(--surface); }
.weekstrip .sel small { color: inherit; opacity: .7; }
.weekstrip .past:not(.sel) { opacity: .45; }
.gardenpage .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.gardenpage .back svg { transform: rotate(90deg); }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-head .linkish { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-left: auto; }
.hcustom { padding: 14px 16px; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.hcustom .note { margin: 0 0 8px; }
.hcustom ul { list-style: none; margin: 0; padding: 0; }
.hcustom li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hcustom li:last-child { border-bottom: 0; }
.hcustom li.off span { color: var(--muted); }
.hcustom label { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.hcustom input { width: 18px; height: 18px; accent-color: var(--text); }
.hcustom .down svg { transform: rotate(180deg); }
.hcustom button:disabled { opacity: .25; }
.hc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.sc-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; padding: 12px 2px 2px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.sc-acc span { font-weight: 600; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.sc-acc small { font-weight: 400; color: var(--muted); font-size: 13px; }
.sc-acc i { position: relative; width: 16px; height: 16px; }
.sc-acc i::before, .sc-acc i::after { content: ''; position: absolute; left: 1px; right: 1px; top: 7px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s; }
.sc-acc i::after { transform: rotate(90deg); }
.sc-acc.open i::after { transform: rotate(0deg); }
.sc-list { margin-top: 8px; }
.sc-list .tasks { margin: 0; }
.sc-list .linkish { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.hcustom li { flex-wrap: wrap; }
.hc-tiles { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 4px 28px; }
.hc-tiles label { flex: 0 0 auto; font-size: 13.5px; gap: 6px; }
.hc-tiles input { width: 16px; height: 16px; }

/* Onboarding: two big choices, a big Hämta, and the setup as its own page */
.intro-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin: 8px auto 0; }
.intro-choices .btn.big { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-items: start; width: 100%; height: auto; min-height: 72px; padding: 14px 20px; border-radius: 20px; font-size: 17px; font-weight: 600; text-align: left; }
.intro-choices .btn.big svg { grid-row: span 2; }
.intro-choices .btn.big small { font-size: 13px; font-weight: 400; opacity: .7; }
.placebox .btn.big.wide { width: 100%; min-height: 54px; font-size: 16.5px; justify-content: center; border-radius: 999px; }
.placebox .or { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.placebox .or::before, .placebox .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.setuppage .gsetup { margin-top: 0; }
.setuppage .gsetup .gsvg { max-height: 40vh; }
.setuppage:has(.gsheet) { padding-bottom: 46vh; }
.gsheet .setupnav { margin-top: 14px; }
@media (min-width: 960px) { .setuppage .gsetup .gsvg { max-height: 60vh; } .setuppage:has(.gsheet) { padding-bottom: 0; } }
/* on a phone the plant blinks slowly where a tap will put it */
.ob-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; margin: -20px 0 0 -20px; animation: ob-ghost 1.8s ease-in-out infinite; }
@keyframes ob-ghost { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ob-ghost { animation: none; opacity: .6; } }
.welcomecard { position: relative; margin: 6px 0 14px; padding: 18px 18px 16px; border-radius: 18px; background: #1F4D3A; color: #fff; }
.welcomecard b { font-size: 19px; }
.welcomecard p { margin: 6px 0 14px; font-size: 14.5px; line-height: 1.45; opacity: .9; }
.welcomecard .wc-acts { display: flex; flex-direction: column; gap: 8px; }
.welcomecard .wc-acts .btn { justify-content: flex-start; gap: 8px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.welcomecard .wc-acts .btn:hover { background: rgba(255,255,255,.2); }
.welcomecard .wc-x { position: absolute; top: 10px; right: 10px; color: #fff; }
.placebox .addr > .btn.big.wide { margin-top: 18px; }

/* Mina växter */
.myplants .mp-add { width: 100%; justify-content: center; margin: 4px 0 6px; }
.home-title small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.mplist li, .pickl li { padding: 0; }
.mplist button, .pickl button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 12px; }
.mplist button:hover, .pickl button:hover { background: var(--bg); }
.mplist button > div, .pickl button > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mplist small, .pickl small { color: var(--muted); font-size: 12.5px; }
.mplist button > svg:last-child { color: var(--muted); }
.owntag { font-style: normal; font-size: 11px; font-weight: 600; color: #3F7A35; background: #E8F2E3; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.pickl { max-height: 40vh; overflow-y: auto; margin: 6px 0 10px; }
.picked { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; }
.picked b { flex: 1; }
.pdseg { margin: 4px 0 8px; }
.mp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet .field select, .sheet .field input[type="date"], .sheet .field input[type="number"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.sheet .field .two { margin-top: 0; }
button.fchip { font: inherit; color: var(--text); cursor: pointer; text-align: left; }
button.fchip:hover { border-color: var(--muted); }

/* Trädgården och växthuset: samma docka som rabatten, med + i mitten. Flyouten ligger ovanför
   dockan och kartan krymper så att det man redigerar syns ovanför båda (--gdk, --gsh). */
.gsheet-tools { display: flex; align-items: center; gap: 4px; }
.gsheet-head .gear.on { background: var(--pine-soft); color: var(--pine); }
.gsum { margin: 2px 0 12px; }
.btn.cta { width: 100%; flex: none; height: 52px; font-size: 16px; font-weight: 600; border-radius: 14px; margin-top: 6px; }
[data-look="mono"] .btn.cta { border-radius: 999px; }
.ctapair { display: flex; gap: 8px; margin-top: 8px; }
.ctapair .btn { height: 52px; flex: 1 1 0; }
@media (max-width: 959px) {
  .gdock ~ .gsheet, .garden.docked .gsheet { bottom: var(--gdk, 0px); max-height: 46vh; }
  .garden.docked .gsvg { max-height: max(180px, calc(100dvh - var(--gsh, 0px) - var(--gdk, 0px) - 120px)); }
}
@media (min-width: 960px) {
  .dock.gdock { display: flex; position: static; max-width: 560px; margin: 12px auto 0; border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; }
  .dock.gdock button { cursor: pointer; }
  .dock.gdock button:hover:not(:disabled):not(.addbtn) { background: var(--pine-soft); color: var(--pine); }
}

/* Växthusplaneraren: sort per gröda, hel bredd, antalet i bädden */
.crops li .cname { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.csort { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); width: 100%; max-width: 200px; }
.checkrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 14.5px; cursor: pointer; }
.checkrow input { width: 20px; height: 20px; accent-color: var(--pine); }
.ctag text { font-family: var(--ui-font, sans-serif); }
.crops .step button:disabled { opacity: .35; }

/* Hem: rubriker med en väg in till avsnittets egen sida, och översiktssidorna */
.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.subhead .linkish { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; white-space: nowrap; }
.overpage .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.overpage .back svg { transform: rotate(90deg); }
.overpage .home-title small, .myplants .home-title small { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.overpage .mp-add { margin: 4px 0 16px; }
.ghover { margin-bottom: 18px; }
.ghover .ghcard { width: 100%; }
.mp-copy { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; font-size: 14px; }

/* Mina växter: snabbfilter per sorts plats, och grödorna som rader */
.mpfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.cropthumb { flex: none; border-radius: 50%; background: #F1ECE2; }
.myplants .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.myplants .back svg { transform: rotate(90deg); }

/* Skapa rabatt: tre val som i Canva, sedan ett steg för det valda */
.newchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.newchoice { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.nc-tile { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); color: var(--text); transition: background .15s, transform .1s; }
.newchoice:hover .nc-tile { background: var(--pine-soft); }
.newchoice:active .nc-tile { transform: scale(.97); }
.newchoice b { font-size: 14.5px; font-weight: 600; text-align: center; }
.newchoice:first-child .nc-tile { background: linear-gradient(140deg, #EAF3EC, #F4EFE2); }
.newback { display: flex; width: fit-content; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 14px; }
.sizeline { display: flex; width: fit-content; text-decoration: none; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.sizeline span { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tplpick { display: block; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.tplpick .tpl-body { display: flex; align-items: center; gap: 10px; }
.tplpick:hover { background: var(--bg); }
.chatbox textarea { padding-right: 14px; }

/* Växtmenyn: Alla som en kategorisida med filter */
.fbar { display: flex; align-items: center; gap: 10px; padding: 0 14px 8px; font-size: 13.5px; color: var(--muted); }
.fbar > span { flex: 1; }
.fbar .fbtn { gap: 6px; }
.fbar .fbtn.on { background: var(--pine-soft); border-color: var(--pine); color: var(--pine); }
.fpanel { padding: 0 14px 6px; overflow-y: auto; }
.fgroup { padding: 8px 0 10px; border-top: 1px solid var(--line); }
.fgroup > b { display: block; font-size: 13px; margin-bottom: 8px; }
.fgroup .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); vertical-align: -1px; }
.fpanel .cta { margin: 10px 0 4px; }
@media (max-width: 959px) {
  .pal.browse:not(.min) { height: min(72vh, calc(100dvh - 140px)); display: flex; flex-direction: column; }
  .pal.browse:not(.min) .fpanel { flex: 1; min-height: 0; }
  .pal.browse:not(.min) .cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; overflow-y: auto; overflow-x: hidden; gap: 10px; padding-bottom: 12px; }
  .pal.browse .cards .card { width: auto; touch-action: pan-y; padding: 10px 8px; }
}
@media (min-width: 960px) { .fpanel { flex: 1; min-height: 0; } }

.cmeta { font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }

.fslight { display: flex; align-items: center; gap: 6px; margin: 0 14px 6px; font-size: 12.5px; color: var(--muted); }
.pal.min .fslight { display: none; }

.lightpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.lightpick > span { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-right: 4px; }
.lightpick .chip { padding: 5px 11px; font-size: 13.5px; }
.gsheet .field select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; background: var(--bg); color: var(--text); }

/* Sol: månaden som ett reglage i stället för åtta piller */
.monthslider { display: grid; gap: 2px; margin: 0 0 12px; }
.monthslider > span:first-child { font-size: 13px; color: var(--muted); }
.monthslider b { color: var(--text); }
.monthslider input { width: 100%; accent-color: #111; height: 28px; margin: 0; }
.mticks { display: flex; justify-content: space-between; padding: 0 6px; font-size: 11px; color: var(--muted); }
.mticks i { font-style: normal; width: 12px; text-align: center; }
.mticks i.on { color: var(--text); font-weight: 700; }
/* Uppsättningen: rubriken och stegen står kvar överst, kartan krymper så att arket får plats under */
@media (max-width: 959px) {
  .setuppage .gsetup .gsvg { max-height: max(150px, min(40vh, calc(100dvh - var(--gsh, 0px) - 300px))); }
  .setuppage:has(.gsheet) { padding-bottom: calc(var(--gsh, 0px) + 16px); }
}

/* Växthuset: grödor utan bädd, som en lista */
.ghlist { list-style: none; margin: 6px 0 0; padding: 0; }
.ghlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ghlist .cname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.ghlist .cname small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ghlist .step { display: inline-flex; align-items: center; gap: 8px; }
.ghlist .step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 17px; color: var(--text); }
.ghlist .step b { min-width: 20px; text-align: center; }
.cropgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cropbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.cropbtn:hover { border-color: var(--pine); }

/* Trädgården: rutnätet syns medan man drar */
.gguide line { stroke: #D6336C; stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.gside { touch-action: none; }
.gside.ew { cursor: ew-resize; }
.gside.ns { cursor: ns-resize; }
