:root {
  color-scheme: light;
  --canvas: #f7f5eb;
  --paper: #fffcf2;
  --ink: #24372d;
  --muted: #64705e;
  --leaf: #244b38;
  --line: #e4e6d9;
  --accent: #dce8ae;
  --soft: #edf0e3;
  --tan: #e6dcd0;
  --title: Georgia, 'Times New Roman', serif;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1,h2,h3,p { margin: 0; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #587438; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
svg { inline-size: 19px; block-size: 19px; flex: none; }
header.top { background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-inner, main, footer { width: min(1190px, calc(100% - 88px)); margin-inline: auto; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: none; font-weight: 720; font-size: 19px; white-space: nowrap; min-height: 44px; }
.brand-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; background: var(--leaf); color: var(--accent); border-radius: 13px; flex: none; }
.brand-icon svg { width: 23px; height: 23px; }
.tabs { display: flex; align-items: center; gap: clamp(4px,1vw,16px); min-height: 75px; }
.tabs button { position: relative; border: 0; padding: 0 6px; background: none; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 75px; font-size: 14px; white-space: nowrap; }
.tab-icon { display: grid; place-items: center; flex: none; }
.tabs button[aria-current] { color: var(--leaf); font-weight: 700; }
.tabs button[aria-current]::after { position: absolute; content: ''; height: 2px; left: 7px; right: 7px; bottom: -1px; border-radius: 3px; background: var(--leaf); }
.tools { margin-block: 4px; display: flex; align-items: center; gap: 10px; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; min-width: 44px; min-height: 44px; background: transparent; }
.btn { min-height: 44px; border: 1px solid transparent; padding: 10px 16px; border-radius: 999px; font-weight: 650; display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; text-align: center; }
.primary { background: var(--leaf); color: #fffdf6; }
.outline { background: transparent; border-color: #cdd7c4; }
.accent { background: var(--accent); color: var(--ink); }
.quiet { background: transparent; padding-inline: 8px; }
.small { background: var(--soft); color: var(--leaf); padding-inline: 12px; }
.btn:hover,.icon-button:hover { filter: brightness(.94); }
main { min-height: 65vh; margin-block: 31px 52px; }
.hero-date { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--muted); font-size: 14px; }
.page-heading h1, .passport h1 { font-family: var(--title); font-weight: 400; letter-spacing: -.048em; font-size: clamp(41px,5.25vw,77px); line-height: .96; margin-block: 20px 14px; }
.plant-image { background-color: var(--tan); background-image: url('/plants.webp'); background-size: 300% 200%; background-position: 100% 100%; overflow: hidden; }
.plant-image[data-species="monstera"] { background-position: 0 0; }
.plant-image[data-species="zamioculcas"] { background-position: 50% 0; }
.plant-image[data-species="ficus"] { background-position: 100% 0; }
.plant-image[data-species="pothos"] { background-position: 0 100%; }
.plant-image[data-species="sansevieria"] { background-position: 50% 100%; }
.plant-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dashboard { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px,4vw,43px); margin-top: 37px; }
.today-home { display: grid; gap: clamp(16px,2.4vw,26px); }
.today-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.today-heading h1 { font: 400 clamp(38px,5.25vw,66px)/1 var(--title); letter-spacing: -.045em; }
.today-heading time { color: var(--muted); font-size: 14px; }
.today-actions, .today-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.today-actions .btn, .today-shortcuts .btn { border-radius: 14px; text-align: left; justify-content: flex-start; line-height: 1.3; }
.today-actions .btn { min-height: 56px; padding: 10px 12px; }
.today-shortcuts .btn { background: var(--paper); min-height: 52px; padding: 9px 10px; }
.today-shortcuts .btn svg { color: var(--leaf); }
.dashboard.today-more { margin-top: 0; }
.daily-plant-card { width: 100%; }
.daily-plant-card > .plant-image { aspect-ratio: 16 / 9; max-height: 340px; }
.daily-plant-card .plant-copy strong { font: 400 clamp(22px,3vw,34px)/1.1 var(--title); }
.daily-plant-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agronomist { padding: clamp(12px,2vw,18px); border-radius: 20px; background: var(--soft); }
.agronomist-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.agronomist-heading .btn { padding-inline: 10px; }
.agronomist h2 { font: 400 28px/1.1 var(--title); color: var(--leaf); }
.agronomist > p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.agronomist-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 8px; margin-top: 12px; }
.agronomist-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 65px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-align: left; }
.agronomist-action strong, .agronomist-action small { display: block; }
.agronomist-action strong { font-size: 14px; }
.agronomist-action small { margin-top: 2px; color: var(--muted); }
.agronomist-action > svg { width: 15px; color: var(--leaf); }
.agronomist-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--leaf); }
.agronomist-preview { display: grid; gap: 12px; }
.agronomist-preview img { width: 100%; max-height: 38dvh; object-fit: contain; border-radius: 12px; background: var(--soft); }
.section-title { min-height: 45px; display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.section-title .quiet { margin-left: auto; }
.section-title h2, .dialog-top h2 { font: 400 clamp(25px,3vw,34px)/1.08 var(--title); letter-spacing: -.034em; }
.section-title.upcoming { margin-top: 23px; }
.count { font-size: 13px; color: #374e32; background: var(--accent); border-radius: 100%; min-width: 25px; text-align: center; }
.panel, .plant-card, .story-card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; }
.task-list { margin: 0; padding: 0; list-style: none; }
.task { display: flex; align-items: center; gap: 13px; padding: 12px 14px; min-height: 78px; }
.task + .task, .care-line + .care-line, .journal + .journal { border-top: 1px solid var(--line); }
.task-photo { inline-size: 53px; block-size: 53px; border-radius: 12px; flex: none; }
.task-label { flex: 1; min-height: 44px; min-width: 0; display: grid; gap: 3px; align-content: center; padding: 0; background: none; border: 0; text-align: left; }
.task-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.task-label span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.task-label svg { width: 15px; height: 15px; }
.task-actions { display: flex; align-items: center; gap: 5px; }
.task-actions .btn { font-size: 13px; }
.upcoming .subtle, .subtle { color: var(--muted); font-size: 13px; }
.plants-grid, .story-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: 15px; }
.side .plants-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.plant-card { display: grid; grid-template-rows: auto 1fr; padding: 0; text-align: left; min-width: 0; }
.plant-card > .plant-image { aspect-ratio: 1.35; }
.plant-copy { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 13px; }
.plant-copy > span { display: grid; min-width: 0; }
.plant-copy > span > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.plant-copy strong { overflow-wrap: anywhere; }
.empty { padding: 23px; color: var(--muted); }
footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-block: 19px 30px; }
footer span { display: flex; align-items: center; gap: 6px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(35px,5vw,63px); margin: 0; }
.detail-top { margin-bottom: 8px; }
.passport { display: grid; grid-template-columns: 1fr 1.45fr; background: var(--soft); border-radius: 24px; overflow: hidden; min-height: 270px; }
.passport-copy { padding: clamp(26px,5vw,56px); align-self: center; }
.passport-copy .hero-date { overflow-wrap: anywhere; }
.passport h1 { font-size: clamp(40px,6vw,65px); overflow-wrap: anywhere; }
.passport p { margin-bottom: 18px; color: var(--muted); }
.passport-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.public-plant-section { margin-top: 24px; }
.public-plant-section h2 { font: 400 28px/1.1 var(--title); margin-bottom: 10px; }
.public-plant-note { padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sharing-actions { margin-top: 14px; }
.care-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 8px; }
.care-line > span { display: flex; align-items: center; gap: 9px; }
.care-line span span { display: grid; }
.care-line .propagation-copy { min-width: 0; overflow-wrap: anywhere; }
small { color: var(--muted); font-size: 13px; }
.journal { padding: 12px 16px; overflow-wrap: anywhere; }
.journal-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
.journal-entry .btn { padding-inline: 6px; font-size: 13px; }
.journal-entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-more { margin-top: 12px; }
.care-heading { flex-wrap: wrap; }
.batch-tasks { max-height: 42dvh; overflow: auto; }
.batch-tasks .checkbox { min-height: 44px; margin-block: 4px; cursor: pointer; }
.batch-tasks .checkbox span { display: grid; }
.plant-story-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.story-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); }
.story-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story-card .plant-image { aspect-ratio: 1.9; }
.story-photo { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.5; padding: 0; border: 0; background: var(--soft); color: var(--leaf); }
.story-photo:focus-visible { outline-offset: -4px; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-copy { padding: 17px; }
.story-copy h2 { font: 400 28px/1.1 var(--title); margin: 5px 0 11px; }
.story-copy h3 { font-size: 13px; }
.story-copy p + h3 { margin-top: 10px; }
.story-copy p { overflow-wrap: anywhere; }
.story-question { white-space: pre-wrap; }
.story-author { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
.story-author .quiet { padding-inline: 0; color: var(--leaf); }
.profile-hero { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; }
.profile-banner { height: clamp(110px, 17vw, 200px); position: relative; }
.profile-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #244b38af, #244b3822 83%); }
.profile-banner-custom::after { content: none; }
.profile-banner-custom img, .profile-cover-preview { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-cover-preview { height: auto; aspect-ratio: 3; border-radius: 12px; }
.profile-content { position: relative; padding: 0 clamp(16px, 4vw, 44px) 25px; }
.profile-avatar { position: relative; width: clamp(78px, 12vw, 112px); aspect-ratio: 1; margin: -40px 0 10px; display: grid; place-items: center; overflow: hidden; border: 5px solid var(--paper); border-radius: 50%; background: var(--accent); color: var(--leaf); font: 400 44px/1 var(--title); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.profile-title h1 { font: 400 clamp(35px, 5vw, 57px)/1.05 var(--title); letter-spacing: -.045em; overflow-wrap: anywhere; min-width: 0; }
.profile-visibility { padding: 4px 10px; color: var(--muted); background: var(--soft); border-radius: 999px; font-size: 13px; }
.profile-bio { max-width: 68ch; margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-link { text-decoration-color: #9bab86; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 7px; color: var(--leaf); min-height: 44px; max-width: 100%; }
.profile-link span { overflow-wrap: anywhere; }
.profile-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
.profile-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-link-entry { margin-bottom: 12px; }
.profile-share-help { margin-top: 12px; }
.profile-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; margin-bottom: 12px; background: var(--soft); }
.profile-qr { display: grid; justify-items: center; gap: 8px; margin-bottom: 8px; text-align: center; }
.profile-qr img { width: min(100%, 256px); height: auto; border: 1px solid var(--line); border-radius: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; margin: 0; padding: 15px clamp(16px, 4vw, 44px); border-top: 1px solid var(--line); background: var(--soft); }
.profile-stats div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.profile-stats dt { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.profile-stats dd { margin: 0; font: 400 27px/1.1 var(--title); }
.profile-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px 14px; }
.profile-sections .btn { padding-inline: 9px; }
.profile-gallery-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.profile-gallery-filter [aria-pressed=true] { color: var(--leaf); background: var(--soft); }
.profile-gallery-layout { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.gallery-plant { cursor: auto; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; }
.gallery-open:focus-visible { outline-offset: -4px; }
.gallery-open .plant-image { aspect-ratio: 1.35; }
.community-photos .gallery-open { touch-action: pan-y; }
.community-photo-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; padding-inline: 8px; border-bottom: 1px solid var(--line); }
.community-photo-controls span { text-align: center; color: var(--muted); font-size: 13px; }
.gallery-actions { padding: 0 12px 12px; }
.gallery-actions .btn { padding-inline: 8px; width: 100%; }
.profile-gallery-list { display: grid; gap: 8px; }
.profile-gallery-list .gallery-plant { grid-template: auto / 58px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; }
.profile-gallery-list .plant-image { aspect-ratio: 1; border-radius: 9px; }
.profile-gallery-list .plant-copy, .profile-gallery-list .gallery-actions { padding: 0; }
.profile-gallery-list .gallery-actions .btn { width: auto; }
.profile-gallery-list .gallery-actions svg { display: none; }
.wish-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.wish-actions .btn { padding-inline: 9px; }
.wish-row { flex-wrap: wrap; }
.wish-row .wish-summary { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.wish-row .wish-actions { margin-inline-start: auto; }
.wish-photo { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--soft); color: var(--leaf); }
.wish-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.attachment-preview img { width: 100%; max-height: 65vh; object-fit: contain; border-radius: 12px; }
.activity-heading { align-items: flex-start; flex-wrap: wrap; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-item { display: grid; gap: 5px; padding: 14px; overflow-wrap: anywhere; }
.activity-item + .activity-item { border-top: 1px solid var(--line); }
.activity-title, .activity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.activity-item time, .activity-actions small { color: var(--muted); font-size: 13px; }
.activity-new { padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--leaf); font-size: 12px; }
.activity-more { margin-top: 12px; }
.profile-plant-choices .checkbox { min-height: 44px; }
.profile-pin-choices { display: grid; gap: 8px; }
.plant-copy .profile-pinned { color: var(--leaf); font-weight: 650; }
.share-field { display: grid; gap: 7px; margin-bottom: 12px; }
.collection-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.collection-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 12px; margin-bottom: 20px; }
.collection-group + .collection-group { margin-top: 21px; }
.collection-group h2 { font: 400 26px/1.1 var(--title); margin-bottom: 10px; }
.match-species { color: var(--muted); margin: -10px 0 18px; }
.calendar-controls { display: grid; grid-template-columns: minmax(0, 230px) auto; align-items: end; gap: 9px; width: fit-content; max-width: 100%; margin-bottom: 14px; }
.calendar-month { max-width: 600px; padding: 8px; }
.calendar-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-month-nav h2 { font: 400 clamp(22px, 5vw, 29px)/1.1 var(--title); text-align: center; }
.calendar-month-nav h2::first-letter { text-transform: uppercase; }
.calendar-month-nav .icon-button { font-size: 24px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-block: 10px 6px; }
.calendar-weekday { text-align: center; font-size: 13px; font-weight: 650; color: var(--muted); padding-block: 8px; }
.calendar-day { display: grid; grid-template-rows: auto 7px; justify-items: center; align-content: center; gap: 3px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: 14px; }
.calendar-day[aria-current] { border-color: var(--leaf); font-weight: 750; }
.calendar-day[aria-pressed=true] { color: var(--leaf); background: var(--soft); font-weight: 750; }
.calendar-day:focus-visible { outline-offset: -2px; }
.calendar-marks, .calendar-legend, .calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-legend { flex-wrap: wrap; gap: 8px 14px; margin: 8px 6px 4px; color: var(--muted); font-size: 13px; }
.calendar-marks i, .calendar-legend i { width: 7px; height: 7px; border: 1px solid var(--leaf); border-radius: 50%; }
.calendar-marks .planned, .calendar-legend .planned { background: var(--leaf); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 14px; }
.photo-grid figure { margin: 0; cursor: auto; }
.photo-thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; }
.photo-thumb:focus-visible { outline-offset: -4px; }
.photo-grid img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.photo-grid figcaption { padding: 10px; overflow-wrap: anywhere; }
.variegation-history { padding: 14px 16px; max-width: 580px; margin-bottom: 14px; }
.variegation-history h3 { font: 400 24px/1.1 var(--title); }
.variegation-history ul { list-style: none; margin: 8px 0 0; padding: 0; }
.variegation-history li { display: grid; grid-template-columns: minmax(0, 100px) minmax(30px, 1fr) 4ch; align-items: center; gap: 8px; min-height: 31px; font-size: 13px; }
.variegation-history meter { display: block; width: 100%; }
.variegation-history strong { text-align: right; }
.photo-timeline-launch { margin-bottom: 12px; }
.photo-viewer > img { display: block; width: 100%; height: min(45dvh, 420px); object-fit: contain; background: #e8ebdd; border-radius: 12px; }
.photo-load-status { color: var(--muted); font-size: 13px; margin-top: 6px; }
.photo-load-status:empty { display: none; }
.photo-viewer [data-retry-photo][hidden] { display: none; }
.photo-viewer-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.photo-viewer-caption { margin-top: 4px; overflow-wrap: anywhere; }
.photo-timeline { margin-top: 10px; }
.photo-timeline input { display: block; accent-color: var(--leaf); padding: 0; }
.photo-timeline-buttons { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.photo-timeline-buttons .btn { padding-inline: 8px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.photo-action-caption { margin-top: 6px; overflow-wrap: anywhere; }
.story-reactions { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 12px; }
.comment-list { max-height: 31vh; overflow-y: auto; margin-bottom: 15px; }
.calculator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.calculator { padding: 20px; }
.calculator h2 { font: 400 28px/1.1 var(--title); margin-bottom: 8px; }
.calculator form { margin-top: 15px; }
.calculator output:not(:empty) { font: 400 30px/1.1 var(--title); color: var(--leaf); }
.discovery-search { max-width: 430px; margin-bottom: 18px; }
.market-heading { flex-wrap: wrap; }
.market-controls { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.3fr) minmax(0,1fr); gap: 10px; margin-bottom: 18px; }
.market-more { margin-top: 12px; }
.listing-text { margin-top: 8px; white-space: pre-wrap; }
a.btn { text-decoration: none; }
.boot { display: grid; place-content: center; justify-items: center; gap: 13px; text-align: center; }
.boot [hidden] { display: none; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 23px; padding: 22px; max-height: min(84dvh,770px); width: min(570px,calc(100% - 30px)); }
dialog::backdrop { background: #20302677; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
form, form label, .filter { display: grid; gap: 6px; min-width: 0; }
form { gap: 13px; }
form label, .filter { font-size: 14px; font-weight: 650; }
input,select,textarea { width: 100%; min-height: 44px; border: 1px solid #ccd5c3; border-radius: 11px; background: #fffdf8; color: var(--ink); padding: 8px 10px; min-width: 0; }
input[type="file"] { padding: 8px 5px; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox[data-cover-option][hidden] { display: none; }
.checkbox input { width: 19px; min-height: 19px; accent-color: var(--leaf); }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
legend { font-weight: 700; }
.hint { color: var(--muted); font-size: 13px; }
.reminder-check { background:var(--soft); border-radius:12px; padding:10px 12px 4px; margin-bottom:14px; }
.reminder-check p { font-size:14px; }
.reminder-actions { display:flex; flex-wrap:wrap; column-gap:16px; }
.reminder-check .btn { padding-inline:0; color:var(--leaf); }
.reminder-check .btn[hidden] { display:none; }
.reminder-kinds .checkbox { min-height:44px; cursor:pointer; }
fieldset .interval-label { margin-top: 9px; }
.season-fields { margin-top: 8px; padding-inline: 8px; border: 1px solid var(--line); border-radius: 12px; }
.season-fields summary { min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--leaf); font-size: 14px; }
.season-fields[open] { padding-bottom: 8px; }
.season-fields .field-pair { margin-bottom: 8px; }
.form-error { color: #8d3f32; font-size: 14px; }
.form-error:empty { display: none; }
.creation-draft { border-top: 1px solid var(--line); padding-top: 10px; }
.creation-draft > div { display: flex; flex-wrap: wrap; gap: 4px; }
.creation-draft .btn { padding-inline: 8px; }
.creation-draft [hidden] { display: none; }
#status:not(:empty) { position: fixed; inset: auto 15px 20px; margin: auto; max-width: fit-content; z-index: 4; background: #263d30; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; }
@media (max-width: 1140px) {
  .desktop-add { display: none; }
}
@media (min-width: 681px) {
  .today-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .top-inner,main,footer { width: calc(100% - 42px); }
  .dashboard { gap: 18px; }
  .task-actions { gap: 0; }
  .task-actions .small svg { display: none; }
}
@media (max-width: 1040px) {
  .tabs { position: fixed; inset: auto max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); z-index: 3; min-height: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: 0 5px 20px rgb(36 55 45 / .13); }
  .tabs button { min-width: 0; min-height: 52px; padding: 3px 0; flex-flow: column; justify-content: center; gap: 1px; border-radius: 20px; font-size: clamp(10px,2.7vw,12px); }
  .tab-icon { width: min(100%,36px); height: 27px; border-radius: 12px; }
  .tabs button[aria-current] .tab-icon { background: var(--accent); }
  .tabs button[aria-current]::after { display: none; }
  footer { margin-bottom: calc(70px + env(safe-area-inset-bottom)); }
  #status:not(:empty) { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 600px) and (max-width: 1040px) {
  .tabs { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .top-inner,main,footer { width: calc(100% - 30px); }
  .top-inner { min-height: 59px; }
  .brand { font-size: 17px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 11px; }
  main { margin-block: 14px 34px; }
  .dashboard { grid-template-columns: 1fr; margin-top: 22px; }
  .task { padding: 9px; gap: 8px; }
  .task-photo { inline-size: 39px; block-size: 43px; }
  .task-actions .btn { font-size: 12px; padding-inline: 7px; }
  .task-label span { font-size: 12px; }
  .task-label svg { display: none; }
  .plants-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .passport { grid-template-columns: 1fr; }
  .passport > .plant-image { aspect-ratio: 1.48; }
  .passport-copy { padding: 22px; }
  .stories-heading { align-items: stretch; flex-direction: column; }
  .story-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-controls { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .market-controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .market-controls > :first-child { grid-column: 1 / -1; }
  dialog { bottom: 0; top: auto; width: 100%; max-width: 100%; margin: 0; border-radius: 22px 22px 0 0; padding-bottom: max(22px,env(safe-area-inset-bottom)); }
}
