:root{--ink:#243e34;--muted:#64746a;--paper:#f7f7f1;--line:#dfe5da;--green:#2e6248}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.6 system-ui,-apple-system,sans-serif}a{color:inherit}header{padding:22px max(24px,calc((100vw - 1160px)/2));background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-size:24px;font-weight:650;white-space:nowrap}.brand small{display:block;font-size:10px;letter-spacing:1.8px;color:var(--muted)}.mark{display:grid;place-items:center;background:var(--ink);color:white;width:48px;height:48px;border-radius:50%;font:18px Georgia}nav{display:flex;gap:28px;padding:15px max(24px,calc((100vw - 1160px)/2));background:white;overflow:auto;white-space:nowrap}nav a{text-decoration:none;font-size:15px;padding:6px 0}nav a:hover{color:var(--green);text-decoration:underline}main{max-width:1208px;padding:32px 24px;margin:auto}.preview{font-size:11px;letter-spacing:1px;color:#6b715e;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:32px}.preview span{float:right;letter-spacing:0}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--green)}h1{font:clamp(36px,5vw,60px)/1.12 Georgia,serif;letter-spacing:-1.8px;margin:16px 0 20px}h2{font-size:23px;line-height:1.3;margin:0 0 14px}.intro{font-size:19px;color:var(--muted);max-width:650px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.season{text-align:right;color:var(--muted);font-size:11px;letter-spacing:1px}.season strong{display:block;color:var(--ink);font-size:18px;margin-top:8px;letter-spacing:0}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.action{display:block;padding:25px;border-radius:16px;text-decoration:none;border:1px solid #00000008;align-self:start}.action span{font-size:12px;opacity:.7}.action h2{margin:27px 0 10px;font:30px Georgia}.action p{font-size:15px;margin:0;line-height:1.5}.green{background:#dce9d7}.gold{background:#f1e8ce}.blue{background:#dfe9ea}.rose{background:#efdfd5}summary{cursor:pointer;font-weight:650;min-height:44px;align-content:center}summary::marker{color:var(--green)}.action summary{list-style:none}.action-menu{display:grid;gap:8px;padding-top:20px}.action-menu a{font-size:15px;padding:9px;background:#ffffff80;border-radius:7px}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:28px 0 40px;border:1px solid var(--line);background:#ffffff85;border-radius:12px}.stats div{padding:22px;font-size:14px;color:var(--muted)}.stats strong{font-size:30px;color:var(--ink);display:block}.record{display:flex;align-items:center;justify-content:space-between;gap:18px;background:white;border:1px solid var(--line);padding:18px 22px;margin:10px 0;border-radius:10px;text-decoration:none}.record small{display:block;color:var(--muted);font-size:14px}.pill{font-size:12px;border-radius:30px;background:#edf2e9;padding:5px 12px;white-space:nowrap}.small-link{float:right;font-size:14px;font-weight:400}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin:22px 0}.narrow{max-width:650px}label{display:block;font-size:15px;font-weight:600;margin:12px 0}input,select,textarea{display:block;width:100%;font:18px/1.5 system-ui;padding:12px;border:1px solid #bfcbbf;border-radius:7px;background:white;color:var(--ink);margin-top:7px}textarea{min-height:105px}button,.button{display:inline-block;background:var(--green);color:#fff;border:0;border-radius:8px;padding:13px 20px;font:600 16px/1.4 system-ui;cursor:pointer;text-decoration:none;min-height:48px}.light{background:#edf2e9;color:var(--ink)}button:hover,.button:hover{filter:brightness(.95)}:focus-visible{outline:3px solid #b98623;outline-offset:3px}.form-grid,.columns{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.columns{align-items:start}.check{display:flex;align-items:center;gap:10px}.check input{width:22px}.search{display:flex;gap:10px}.search input{margin:0}.hint{color:var(--muted);font-size:14px}.notice,.errors{padding:18px;border-radius:9px;background:#e8efdf}.errors{background:#f9e1da}.history{justify-content:start;align-items:start}.history p{white-space:pre-wrap;margin:8px 0}.date{font-size:14px;min-width:95px;color:var(--muted)}dt{font-size:13px;color:var(--muted)}dd{margin:0 0 15px}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:48px;padding-top:20px;font-size:13px;color:var(--muted)}table{width:100%;border-collapse:collapse;background:white;margin-top:24px}td,th{padding:15px;text-align:left;border-bottom:1px solid var(--line)}td small{display:block}.table-wrap{overflow:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:760px){header{padding:16px}.brand{font-size:20px}.brand small{font-size:8px;letter-spacing:1px}.mark{width:38px;height:38px}header .button{padding:12px}.actions{grid-template-columns:1fr 1fr}.action{padding:20px}.action h2{font-size:26px}.heading{display:block}.season{display:none}.preview span{float:none;display:block}.columns,.form-grid{grid-template-columns:1fr}main{padding:24px 16px}nav{padding:10px 16px;gap:24px}.panel{padding:20px}.search{flex-direction:column}.stats div{padding:14px;font-size:12px}.record{padding:16px}.history{display:block}.date{display:block;margin-bottom:8px}}@media print{header,nav,.preview,button,.button,footer,details,form{display:none!important}body{background:white;color:black;font-size:11pt}main{max-width:none;padding:0}h1{font-size:28pt}thead{display:table-header-group}tr,.record{break-inside:avoid}.table-wrap{overflow:visible}.panel{border:1px solid #ccc;break-inside:avoid}a{text-decoration:none}}
[hidden]{display:none!important}.action summary p{font-weight:400}
.site-chrome{position:sticky;top:0;z-index:30;background:white;box-shadow:0 2px 8px #243e3408}.site-chrome header{transition:padding .18s ease}.site-chrome.compact header{padding-top:10px;padding-bottom:10px}.site-chrome.compact .mark{width:34px;height:34px;font-size:14px}.site-chrome.compact .brand small{display:none}.menu-toggle{display:none;margin-left:auto}.site-chrome.compact .menu-toggle{display:block}.site-chrome.compact nav{display:none}.site-chrome.compact nav.menu-open{display:flex;flex-wrap:wrap}.actions{align-items:stretch}.actions>.action{align-self:stretch}.reminder{display:block;text-decoration:none;margin-top:24px}.reminder span{display:block;font-size:14px}#new-passport{scroll-margin-top:150px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(680px,calc(100vw - 28px));max-height:90dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#172d2466}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{margin:0}@media(prefers-reduced-motion:reduce){.site-chrome header{transition:none}}@media print{.site-chrome,dialog,.reminder{display:none!important}}

@media screen and (max-width:820px){
 .site-chrome .menu-toggle{display:block}
 .site-chrome nav{display:none;overflow:visible;white-space:normal}
 .site-chrome nav.menu-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding:12px 16px}
 .site-chrome nav a{padding:10px 8px;min-height:44px}
 .site-chrome header{gap:10px;padding:12px 16px}
 .brand{min-width:0;font-size:20px;gap:8px}
 .brand small{display:none}
 .mark{width:34px;height:34px;flex-shrink:0;font-size:14px}
 .site-chrome .button,.site-chrome .menu-toggle{padding:12px;flex-shrink:0}
}
@media screen and (max-width:380px){.brand{font-size:17px}.site-chrome header{padding:10px;gap:6px}.mark{display:none}}
.species-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.species-gallery img{width:100%;max-height:360px;object-fit:contain;border-radius:10px;background:#eff2ea}.species-gallery figure{margin:0}.species-gallery figcaption{font-size:15px;padding:10px 0}.species-gallery .panel{margin:0}.preserve-lines{white-space:pre-wrap}
#species-info-popup{width:min(920px,calc(100vw - 24px));height:85dvh;padding:16px;overflow:hidden}#species-info-popup iframe{width:100%;height:calc(100% - 65px);border:0;margin-top:10px}.species-reader{padding:20px;max-width:850px}.species-selection-info{align-self:end;margin-bottom:12px}a[data-species-info]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.site-chrome header{transition:none}

[data-species-selection][hidden]{display:none}
[data-species-selection]{max-height:22rem;overflow-y:auto}
.observation-photos{display:flex;flex-wrap:wrap;gap:.6rem;margin:.7rem 0}
.observation-photos img{display:block;width:88px;height:88px;object-fit:cover;border-radius:.5rem}
.observation-photos a{border:2px solid transparent;border-radius:.6rem}
.observation-photos a:focus-visible{border-color:var(--green,#365b40)}
#observation-photo-popup{max-width:94vw;max-height:94vh;padding:1rem;border:0;border-radius:1rem}
#observation-photo-popup::backdrop{background:#14251ddd}
#observation-photo-popup form{display:flex;justify-content:flex-end;margin-bottom:.6rem}
#observation-photo-popup img{display:block;max-width:85vw;max-height:76vh;object-fit:contain}

[data-locations-selection][hidden]{display:none}
[data-locations-selection]{max-height:22rem;overflow-y:auto}

.plant-search-input{width:100%}
select[data-plant-picker][hidden]{display:none}

.choices{--choices-primary-color:#315f48;--choices-highlight-color:#315f48;--choices-border-radius:8px;--choices-font-size-lg:16px;--choices-font-size-md:16px;--choices-bg-color:#fff;--choices-highlighted-color:#e8f0e4;--choices-z-index:40;margin-bottom:0}
.choices__inner{min-height:48px}
.choices__list--dropdown .choices__item{white-space:normal;overflow-wrap:anywhere;padding:12px}
.choices__input{min-width:0}
.choices__list--single .choices__item{white-space:normal;overflow-wrap:anywhere}
.plant-search-status{display:block;min-height:1.4em;margin:.25rem 0}

.plant-picker-field{display:block;margin:12px 0;min-width:0;font-size:15px;font-weight:600}
.plant-picker-label{display:block;font-weight:600;margin-bottom:7px}
.plant-picker-field .choices__inner{min-height:53px}
.plant-search-status{font-weight:400}
#plant-finder{min-height:min(570px,90dvh)}
#plant-finder .choices__list--dropdown .choices__list{max-height:230px}

:root{--paper:#F8F2EC;--ink:#403D3E;--green:#245C2D}
.brand{min-width:0;flex-shrink:1}
.brand-logo{display:block;width:280px;max-width:100%;height:auto}.brand-logo-mobile{display:none}
.site-chrome.compact .brand-logo{width:220px}
@media(max-width:820px){.brand-logo{width:220px}.site-chrome.compact .brand-logo{width:200px}}
@media(max-width:480px){.brand-logo-full{display:none}.brand-logo-mobile,.site-chrome.compact .brand-logo-mobile{display:block;width:48px;height:auto}}

/* Keep grid content inside the viewport, including long tags and action titles. */
main,.heading>*,.form-grid>*,.columns>*,.stats>*,.action,.record>*{min-width:0}
main{width:100%;overflow-wrap:anywhere}
.actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.form-grid,.columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.light{background:#d6e3cf}

input,select,textarea{min-width:0;max-width:100%}
.action-menu a{min-height:48px;display:flex;align-items:center}
@media(max-width:760px){
 .actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .action{padding:16px}
 .action h2{font-size:clamp(20px,5.6vw,26px);letter-spacing:-.5px}
 .form-grid,.columns{grid-template-columns:minmax(0,1fr)}
 .record{flex-wrap:wrap}
 .pill{white-space:normal}
 button,.button{min-height:52px}
 .check{min-height:48px}
}
@media(min-width:761px) and (max-width:1000px){.actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Touch-friendly menus, dates and form actions. */
#dashboard-plant-menu{width:min(600px,calc(100vw - 28px))}
#dashboard-plant-menu .action-menu a{padding:14px 16px;border-radius:8px;text-decoration:none;font-size:18px}
input[type="date"]{appearance:none;-webkit-appearance:none;min-inline-size:0;inline-size:100%;min-height:53px}
input[type="date"]::-webkit-date-and-time-value{text-align:left;min-width:0}
input[type="date"]::-webkit-datetime-edit{min-width:0;padding:0}
main form>button,main label>button,main .button,main .maintenance-plant-row>button{margin:8px 8px 8px 0}
@media(max-width:820px){
 .site-chrome nav.menu-open{display:flex;flex-direction:column;gap:4px;max-height:70dvh;overflow-y:auto}
 .site-chrome nav.menu-open a{display:block;min-height:52px;padding:13px 12px}
}
@media(max-width:760px){
 main form>button,main label>button,main .button,main .maintenance-plant-row>button{display:block;width:100%;margin:10px 0;text-align:center}
 .search button{width:100%}
 #dashboard-plant-menu{padding:20px}
}

.report-row{padding:16px 0;border-bottom:1px solid var(--line)}
.report-row h3{margin:0 0 8px}.report-row p{margin:6px 0}
@media print{@page{margin:16mm}.report-row{break-inside:avoid}.report-output .hint{font-size:9pt}.report-filters{display:none!important}.report-output h2{font-size:18pt}}

.australian-date{display:flex;gap:8px;align-items:center;min-width:0}
.australian-date>input[type="text"]{flex:1;min-width:0}
.date-calendar{position:relative;display:grid;place-items:center;flex:0 0 48px;height:53px;margin-top:7px;background:#d6e3cf;border-radius:7px;font-size:24px}
.date-calendar input[type="date"]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.date-calendar:focus-within{outline:3px solid #b98623;outline-offset:2px}

.rich-field{margin:18px 0}.rich-label{font-size:15px;font-weight:600;margin-bottom:7px}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#edf2e9;border:1px solid var(--line);border-radius:8px 8px 0 0}
.rich-toolbar button{min-width:48px;padding:10px;margin:0}
.rich-editor{min-height:140px;padding:14px;border:1px solid #bfcbbf;border-top:0;border-radius:0 0 8px 8px;background:white;font-size:18px;overflow-wrap:anywhere}
.formatted-text p{margin:0 0 .7em}.formatted-text ul,.formatted-text ol{padding-left:1.6em;margin:.7em 0}.formatted-text li{margin:.3em 0}
.rich-toolbar button:nth-child(1){font-weight:800}.rich-toolbar button:nth-child(2){font-style:italic}.rich-toolbar button:nth-child(3){text-decoration:underline}

input[type="color"]{height:53px;max-width:180px;padding:6px;cursor:pointer}
#season-calendar-popup{width:min(1100px,calc(100vw - 20px));height:90dvh;padding:16px;overflow:hidden}
#season-calendar-popup iframe{display:block;width:100%;height:calc(100% - 65px);border:0;margin-top:10px}
.calendar-page{padding:16px}.calendar-page h1{font-size:32px}
/* Half-month season chart keeps names readable independently of species colours. */
.season-chart-scroll{overflow-x:auto;max-width:100%;border:1px solid #bac3b8;border-radius:8px;margin-top:18px}
.season-chart{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;background:white;font-size:13px}
.season-chart .season-name-column{width:210px}
.season-chart th,.season-chart td{border-right:1px solid #d5dad2;border-bottom:1px solid #bac3b8;padding:0;text-align:center}
.season-chart thead th{background:#edf2e9;padding:9px 1px;font-weight:600}
.month-initial{display:none}
.season-chart thead th:first-child,.season-chart tbody th{position:sticky;left:0;z-index:1;background:#faf8f4;color:#403D3E;text-align:left;padding:12px 14px;border-right:2px solid #8a9685}
.season-chart tbody th span{display:block;font-size:15px;font-weight:650;overflow-wrap:anywhere}
.season-chart tbody th small{display:block;font-size:12px;font-weight:400;margin-top:3px}
.season-chart .half-start{border-left:1px solid #8a9685}
.season-chart td.in-season{background:var(--species-colour);print-color-adjust:exact;-webkit-print-color-adjust:exact}
.season-chart tbody tr:last-child>*{border-bottom:0}
.season-gaps{margin-top:24px}.season-gaps p{margin:4px 0;font-size:14px}
@media screen and (max-width:900px){.season-chart .season-name-column{width:155px}.season-chart tbody th{padding:10px 8px}.season-chart tbody th span{font-size:14px}.month-abbreviation{display:none}.month-initial{display:inline}.season-chart thead th{font-size:13px}}
@media screen and (max-width:480px){.calendar-page{padding:10px}.season-chart .season-name-column{width:110px}.season-chart tbody th{padding:10px 6px}.season-chart tbody th span{font-size:13px}.season-chart tbody th small{font-size:10px}.season-chart thead th:first-child{padding:10px 6px}.season-chart thead th{font-size:11px}}
@media screen and (max-height:500px) and (orientation:landscape){#season-calendar-popup{height:96dvh;padding:8px}#season-calendar-popup .dialog-heading h2{font-size:20px}#season-calendar-popup .dialog-heading button{padding:6px 12px;min-height:40px}#season-calendar-popup iframe{height:calc(100% - 50px);margin-top:4px}}
@media print{@page{size:landscape}.season-chart-scroll{overflow:visible;border-radius:0}.season-chart{min-width:0;font-size:9px}.season-chart .season-name-column{width:160px}.season-chart tbody th span{font-size:12px}.season-chart tbody th small{font-size:10px}.season-chart thead th:first-child,.season-chart tbody th{position:static}.season-chart thead tr:nth-child(2) th{font-size:8px}.season-chart tr{break-inside:avoid}}

.season-window{padding:16px;margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#faf8f4}.season-window textarea{min-height:70px}.season-window [hidden]{display:none!important}
.season-chart td.secondary-season{background:color-mix(in srgb,var(--species-colour) 50%,white)}

/* Shared navigation and report actions. */
.site-chrome nav{gap:20px;flex-wrap:wrap}
.site-chrome nav a[aria-current="page"]{font-weight:750;text-decoration:underline;text-underline-offset:5px}
.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
main .report-actions>.button,main .report-actions>button{margin:0}
@media screen and (max-width:1100px){.site-chrome .menu-toggle{display:block}.site-chrome nav{display:none}.site-chrome nav.menu-open{display:flex;flex-direction:column;gap:4px;max-height:65dvh;overflow-y:auto;white-space:normal}.site-chrome nav.menu-open a{display:block;min-height:52px;padding:13px 12px}}
@media(max-width:760px){.report-actions{flex-direction:column}.report-actions>*{width:100%}}
@media print{.report-actions{display:none}}

.lifecycle-plant-row{padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px}#lifecycle-form [hidden]{display:none!important}

[data-observation-panel][hidden]{display:none!important}

.weather-dashboard{font-size:13px;letter-spacing:0;line-height:1.5;text-align:left;max-width:380px;margin-top:18px}.weather-dashboard section{padding:12px 0;border-top:1px solid var(--line)}.weather-dashboard p{margin:5px 0}.weather-brief{display:flex;flex-wrap:wrap;gap:6px 14px}.weather-credit{font-size:11px;color:var(--muted)}.weather-day{padding:18px 0;border-bottom:1px solid var(--line)}.weather-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px}.weather-values dd{font-size:19px;margin-bottom:6px}.weather-revision{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.weather-revision p{white-space:pre-wrap}.weather-revision ul{padding-left:22px}
@media(max-width:760px){.heading .season{display:block;text-align:left;margin-top:20px}.weather-dashboard{max-width:none}.weather-values{grid-template-columns:repeat(2,minmax(0,1fr))}}

.weather-preferences{border:1px solid var(--line);border-radius:10px;padding:18px;margin:24px 0;min-width:0}.weather-preference{padding:12px 0;border-bottom:1px solid var(--line)}.weather-preference>div{display:flex;flex-wrap:wrap;gap:8px 24px}.weather-preference label{margin:6px 0}.weather-source-details{margin:12px 0}.weather-source-details li{margin:10px 0;overflow-wrap:anywhere}[data-weather-provider-panel][hidden]{display:none!important}

/* Compact saved weather; measurements wrap individually on small screens. */
.heading{gap:24px;flex-wrap:wrap}.heading .season{margin-left:auto;text-align:right;max-width:100%}
.weather-dashboard{font-size:13px;max-width:none;margin-top:8px;text-align:right;color:var(--ink)}
.weather-dashboard section{border:0;padding:0}.weather-brief{justify-content:flex-end;gap:4px 12px;text-decoration:none;min-height:32px;align-items:center}.weather-brief span{white-space:nowrap}.weather-brief:hover{text-decoration:underline}.weather-stale{font-size:12px;color:var(--muted)}
.weather-credit{margin:6px 0}.weather-footer{display:block}
@media(max-width:760px){.heading .season{text-align:right}.weather-brief{gap:4px 10px}}
@media print{footer.weather-footer{display:block!important}}

.weather-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.weather-summary>div{padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}.weather-summary strong,.weather-summary small{display:block}.weather-summary strong{font-size:24px}.weather-summary small{color:var(--muted);font-size:12px}.weather-summary span{font-size:14px}
.weather-chart-scroll{overflow-x:auto}.weather-chart{display:block;width:100%;min-width:520px;height:auto;font:15px system-ui;color:var(--ink)}.weather-chart text{fill:currentColor}.chart-grid{stroke:#dfe5da;stroke-width:1}.chart-line{fill:none;stroke:currentColor;stroke-width:2}.chart-point{fill:currentColor}.metric-tmin{color:#276596}.metric-tmax{color:#b74525}.metric-tavg{color:#49713e}.chart-line.metric-tavg{stroke-dasharray:6 4}.chart-rain{fill:#397995}.weather-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:15px}
@media(max-width:700px){.weather-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.weather-chart-panel{padding:14px}}
@media print{.weather-chart-panel{break-inside:avoid}.weather-chart-scroll{overflow:visible}.weather-chart{min-width:0;max-height:75mm}.chart-help{display:none}.weather-summary>div{padding:8px}.weather-summary strong{font-size:17px}.weather-chart,.weather-summary{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.location-map-canvas{display:block;width:100%;height:65vh;min-height:300px;max-height:800px;background:#fff;border:1px solid var(--line);border-radius:12px;touch-action:none;user-select:none;cursor:grab}.location-map-canvas:active{cursor:grabbing}.map-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.map-toolbar[hidden],[data-map-length][hidden]{display:none}.map-boundary{fill:#245c2d;fill-opacity:.08;stroke:#245c2d;stroke-width:2;vector-effect:non-scaling-stroke;cursor:pointer}.map-boundary:hover,.map-boundary:focus{fill-opacity:.25;stroke-width:3}.map-label{font:12px system-ui;font-size:calc(12px * var(--map-label-scale,1));fill:#243e34;stroke:white;stroke-width:calc(3px * var(--map-label-scale,1));paint-order:stroke;pointer-events:none;text-anchor:middle}.map-draft{fill:#d59c21;fill-opacity:.16;stroke:#a86400;stroke-width:2;vector-effect:non-scaling-stroke}.map-corner{fill:white;stroke:#a86400;stroke-width:2;vector-effect:non-scaling-stroke}@media(max-width:600px){.map-toolbar button{flex:1 1 auto}.location-map-canvas{height:55vh}}

.location-map-canvas.map-drawing,.location-map-canvas.map-drawing:active,.location-map-canvas.map-drawing .map-boundary{cursor:crosshair}

.location-tree{list-style:none;padding:0;margin:12px 0}.location-tree li{margin:12px 0;overflow-wrap:anywhere}.location-tree .location-tree{margin-left:8px;padding-left:20px;border-left:1px solid var(--line)}

/* Saved outlines guide new boundaries without covering the background map. */
.map-reference-boundary{fill:none;stroke:#50675c;stroke-opacity:.5;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}
.location-map-canvas.map-drawing .map-boundary{fill:none;stroke:#50675c;stroke-opacity:.5;stroke-width:1.5;pointer-events:none}
.location-map-canvas.map-drawing .map-label{display:none}

button.map-survey-link{background:transparent;color:var(--ink);text-decoration:underline;padding:8px;min-height:44px;border:0;}

.map-plant{cursor:pointer}.map-plant:focus .map-plant-centre{stroke:#b88022;stroke-width:3}.map-drawing .map-plant{pointer-events:none}[data-marker-dialog] form{margin-top:20px}

.map-control-panel{background:#f8f2ec;border:1px solid var(--line);border-radius:12px;padding:12px;position:sticky;top:74px;z-index:20}.map-control-panel .map-toolbar{margin:0;gap:6px}.map-control-panel [data-map-plant-field]{margin-top:8px}.map-control-panel .hint{margin:6px 0}.map-control-panel .choices{margin-bottom:0}.map-modes button[aria-pressed=true]{background:#245c2d;color:white}.map-control-panel [data-map-edit-actions]{margin-top:8px}.plant-map-popup{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:12px}.plant-map-popup .dialog-heading h2{font-size:20px}.plant-map-popup iframe{width:100%;height:calc(100% - 58px);border:0}.map-embedded main{padding:10px;max-width:none}.map-embedded main>h1{font-size:22px;margin:8px 0}.map-embedded .map-control-panel{top:0}.map-embedded .location-map-canvas{height:60dvh;min-height:240px}.map-plant{cursor:inherit}.map-plant[role=button]{cursor:pointer}@media(max-width:600px){.map-control-panel{top:70px}.map-control-panel .map-toolbar button{font-size:14px;padding:8px}.map-embedded .map-control-panel{top:0}}

.map-control-panel .plant-picker-field{margin:6px 0}.map-control-panel .plant-search-status:empty{display:none}.map-control-panel .check{margin:6px 0 0}.map-control-panel>.map-toolbar:not(.map-modes){margin-top:8px}.map-embedded main>a,.map-embedded main>p:not(.notice){display:none}.map-embedded .location-map-canvas{height:calc(100dvh - 270px);min-height:220px}.map-control-panel .map-toolbar button{min-height:44px}.map-control-panel .map-modes{margin-bottom:6px}

.map-stage{position:relative;isolation:isolate}.map-floating-tools{position:absolute;left:8px;top:8px;right:8px;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:0;margin:0;pointer-events:none}.map-floating-tools>*{pointer-events:auto}.map-floating-tools button,.map-floating-tools select,.map-floating-tools input{margin:0;min-height:42px;height:42px;padding:7px 10px;box-shadow:0 1px 5px #0002;font-size:14px}.map-floating-tools select{width:170px;max-width:calc(100% - 100px);background:#fff}.map-floating-tools .map-icon{width:42px;min-width:42px;padding:5px;font-size:22px}.map-edit-icons{display:flex;gap:5px}.map-floating-tools [hidden]{display:none!important}.map-floating-tools [data-map-length]{margin:0}.map-floating-tools [name=metres]{width:120px}.map-plant-choice{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-stage .location-map-canvas{height:75dvh;min-height:350px;max-height:none}.map-embedded .map-stage .location-map-canvas{height:calc(100dvh - 65px);min-height:280px}.map-view-options{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.map-view-options .check{flex-basis:100%;margin:0}.map-print-caption{display:none}[data-map-plant-dialog]{min-height:340px;overflow:visible}[data-map-filter-choices]{max-height:50vh;overflow:auto}@media(max-width:600px){.map-plant-choice{max-width:145px}.map-floating-tools{left:5px;right:5px;top:5px}.map-view-options button{padding:9px 12px}}
@media print{@page{size:landscape;margin:10mm}body.map-printing{background:white!important}body.map-printing>.site-chrome,body.map-printing>dialog{display:none!important}body.map-printing main{max-width:none!important;padding:0!important;margin:0!important}body.map-printing main>*:not(h1):not([data-location-map]){display:none!important}body.map-printing [data-location-map]>*:not(.map-stage):not(.map-print-caption){display:none!important}body.map-printing .map-floating-tools{display:none!important}body.map-printing .map-stage{break-inside:avoid}body.map-printing .map-stage .location-map-canvas{width:100%!important;height:auto!important;min-height:0!important;max-height:160mm!important;aspect-ratio:var(--map-print-aspect,1.6);border:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}body.map-printing .map-print-caption{display:block!important}body.map-printing h1{font-size:18pt;margin:0 0 5mm!important}}

.passport-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.passport-action-row>p{margin:0}.map-plan-marker{cursor:pointer}[data-plan-dialog]{overflow:visible;max-height:90dvh}[data-plan-dialog] form{margin-top:16px}@media(max-width:600px){.passport-action-row>p{flex:1 1 100%}.passport-action-row .button{width:100%;text-align:center}[data-plan-dialog]{overflow:auto}}

.map-editor-feedback{position:absolute;right:8px;bottom:8px;z-index:3;max-width:calc(100% - 16px);padding:6px 10px;border-radius:8px;background:#fffef5;box-shadow:0 1px 5px #0002;font-size:14px}.map-editor-feedback button{padding:5px 8px;margin-left:5px}.map-editor-selection{position:absolute;left:8px;bottom:55px;z-index:3;background:#fffef5;border:1px solid var(--line);border-radius:10px;padding:9px;max-width:calc(100% - 16px)}.map-editor-selection .map-toolbar{margin:5px 0;gap:5px}.map-editor-selection button{font-size:13px;padding:7px 9px;min-height:42px}.map-editor-selection small{display:block}.map-editor-selection[hidden]{display:none}.map-editor-feedback [hidden]{display:none}.map-editor-fullscreen{overflow:hidden}.map-editor-fullscreen .site-chrome{display:none}.map-editor-fullscreen .map-stage{position:fixed;inset:0;z-index:100;background:#f8f2ec}.map-editor-fullscreen .map-stage .location-map-canvas{height:100dvh;min-height:0;width:100%;border-radius:0}.map-floating-tools [aria-pressed=true]{background:#245c2d;color:white}.location-map-canvas.map-selecting{cursor:default}.map-selecting .map-plant,.map-selecting .map-plan-marker{cursor:grab}@media print{.map-editor-feedback,.map-editor-selection{display:none!important}.map-editor-fullscreen .map-stage{position:static!important}}
.plant-symbol-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin:16px 0}.plant-symbol-option{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;border:2px solid #d5ded0;border-radius:10px;background:#fff;text-align:center;min-width:0;font-size:.9rem}.plant-symbol-option:has(input:checked){border-color:#245c2d;background:#e5eddf}.plant-symbol-option>svg{width:70px;height:70px;color:var(--symbol-colour,#245c2d);overflow:visible;opacity:.75}.plant-symbol-option>input{width:22px;height:22px;margin:0}.plant-symbol-option span{overflow-wrap:anywhere}
@media(max-width:600px){.plant-symbol-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plant-symbol-option{padding:10px 6px}}
[data-vegetation-dialog] .plant-symbol-grid{max-height:280px;overflow-y:auto;padding:3px;overscroll-behavior:contain}

/* Shared species selection keeps the submitted value tied to an exact variety. */
.species-picker{min-width:0;width:100%}.species-picker .choices{margin-bottom:0}.species-variety{margin-top:12px}.species-variety>span{display:block;margin-bottom:6px}.species-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;min-height:0!important}.species-group summary small{display:block;margin-top:6px;font-weight:normal}.species-group summary .species-planted-count{display:inline;margin-top:0;white-space:nowrap}.species-group summary>.pill{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}.species-variety-record{border-top:1px solid #dce3d9;margin-top:16px;padding-top:12px}.species-variety-record h2{font-size:1.15rem}.species-picker .choices__list--dropdown{z-index:30}.species-picker [hidden],.species-variety-record[hidden],.species-group[hidden]{display:none!important}
.species-picker-field{min-width:0}.species-picker-label{display:block;font-weight:600;margin-bottom:6px}
.pin-reassignment-list{max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:10px;margin:16px 0}.pin-reassignment-row{padding:12px;margin:0;border-bottom:1px solid var(--line);align-items:flex-start;overflow-wrap:anywhere}.pin-reassignment-row:last-child{border-bottom:0}.pin-reassignment-row[hidden]{display:none}
.map-drawing .map-plan-marker,.map-drawing .map-plant[role=button]{cursor:crosshair}

.map-species-legend{position:absolute;right:8px;top:60px;z-index:4;background:#fffef5;border:1px solid var(--line);border-radius:8px;padding:0 9px;max-width:min(460px,calc(100% - 16px));box-shadow:0 2px 6px #0002}.map-species-legend summary{font-size:13px}.map-species-legend[open]{max-height:65%;overflow:auto}.map-species-legend table{font-size:12px;margin:5px 0}.map-species-legend td,.map-species-legend th{padding:5px 7px}.map-species-legend .hint{font-size:11px;max-width:370px}.map-print-legend{display:none}[data-bulk-plans-dialog]{max-height:90dvh;overflow:auto}[data-bulk-species]{max-height:240px;overflow:auto;border:1px solid var(--line);padding:8px}
@media print{.map-species-legend{display:none!important}body.map-printing [data-location-map]>.map-print-legend:not(:empty){display:block!important}.map-print-legend table{font-size:10pt}.map-print-legend td,.map-print-legend th{padding:4px 8px}}

.map-reference-actions{position:absolute;left:8px;bottom:8px;z-index:6;background:#fffef5;border:1px solid var(--line);border-radius:10px;padding:10px;max-width:min(500px,calc(100% - 16px));font-size:14px}.map-reference-actions[hidden]{display:none}[data-reference-dialog]{max-height:90dvh;overflow:auto}[data-reference-fields] .panel{margin:8px 0;padding:12px}@media print{.map-reference-actions,[data-reference-overlay-ready]{display:none!important}}

.map-genus-count th{background:#e8eee3;border-top:1px solid #a7b49f;text-align:left}.map-species-count-name{padding-left:16px!important}
@media print{.map-genus-count{break-after:avoid}.map-genus-count th{border-top:2px solid #777}.map-print-legend tr{break-inside:avoid}}

.map-filter-genus{margin:0 0 14px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}.map-filter-genus legend{font-weight:700;padding:0 6px}.map-filter-genus .check{min-height:44px;margin:0;align-items:center}
.water-map-dialog{width:96vw;max-width:1400px;max-height:96dvh;padding:16px}.water-map-dialog svg{display:block;width:100%;height:65dvh;background:#edf2ec;touch-action:none;cursor:crosshair}.water-map-dialog .map-toolbar{gap:8px;flex-wrap:wrap}.water-map-dialog .map-toolbar button{min-height:44px}[data-water-form] button{margin:10px 0}[data-water-form] label{margin-top:12px}
.water-map-dialog [data-water-area]{width:auto;max-width:100%;min-height:44px;margin:0}.water-map-dialog .map-toolbar{display:flex;align-items:center}.water-map-dialog .map-toolbar button{margin:0}
.water-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px;margin:18px 0}.water-stat{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.water-stat h3{margin-top:0}.water-gauge{--gauge-colour:#8b9395;max-width:520px;margin:12px 0}.water-gauge-green{--gauge-colour:#287647}.water-gauge-teal{--gauge-colour:#168b91}.water-gauge-orange{--gauge-colour:#d77a13}.water-gauge-red{--gauge-colour:#c73930}.water-gauge-track{height:24px;border:1px solid #8b9395;border-radius:7px;overflow:hidden;background:#e8ecea;margin-bottom:8px}.water-gauge-track>span{display:block;height:100%;background:var(--gauge-colour);print-color-adjust:exact;-webkit-print-color-adjust:exact}.water-gauge>strong{display:block}.water-gauge>span{font-size:.9rem}.water-gauge p{margin:6px 0}.water-gauge-unknown .water-gauge-track{background:repeating-linear-gradient(135deg,#e8ecea,#e8ecea 8px,#f7f8f7 8px,#f7f8f7 16px)}
.species-jump-pills{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;font-weight:normal}.species-jump-pills a.pill{display:inline-block;font-size:12px;line-height:1.4;padding:6px 10px;text-decoration:none;white-space:normal}.species-jump-pills a:hover,.species-jump-pills a:focus{background:#c8d9bf;text-decoration:underline}.species-register-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;scroll-margin-top:95px}.species-register-photo{width:100px;aspect-ratio:1}.species-register-photo img{width:100%;height:100%;object-fit:cover;border-radius:8px}.species-register-photo a{display:block;height:100%}.species-register-row h2{margin-top:0}.species-popup-actions{display:flex;align-items:center;gap:8px}.species-related{margin:20px 0}.formatted-text a{overflow-wrap:anywhere}.species-reader .species-gallery img{max-width:100%;object-fit:contain}
@media(max-width:500px){.species-register-row{grid-template-columns:68px minmax(0,1fr);gap:12px}.species-register-photo{width:68px}.species-popup-actions button{padding:8px 10px}}
@media print{@page species-reference{size:A4 portrait;margin:16mm}.species-reader{page:species-reference;max-width:none!important;margin:0!important;padding:0!important;font-size:10.5pt;line-height:1.45;color:#222}.species-reader h1{font-size:24pt}.species-reader h2{font-size:16pt}.species-reader h3{font-size:12pt}.species-reader h1,.species-reader h2,.species-reader h3{break-after:avoid}.species-reader .panel{border:0;box-shadow:none;padding:0;background:none}.species-reader-tools,.species-related{display:none!important}.species-reader .species-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8mm}.species-reader figure{margin:0;break-inside:avoid}.species-reader figure img{max-height:70mm;width:100%;object-fit:contain}.species-reader a{color:#222;text-decoration:underline}.species-reader .formatted-text{overflow-wrap:anywhere}body:has(.species-reader){background:white!important}}

.qr-scanner video{display:block;width:100%;max-height:45dvh;object-fit:contain;background:#18251d;border-radius:10px}.qr-scanner video[hidden],.qr-scanner [hidden]{display:none!important}.qr-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.qr-actions .button{margin:0;cursor:pointer}.qr-actions input[type=file]{display:block;width:100%;max-width:260px;font-size:14px;margin-top:8px}.qr-scanner form{border-top:1px solid var(--line);padding-top:16px}.qr-scanner [role=status]{min-height:2em}@media(max-width:500px){.qr-actions>*{width:100%}.qr-scanner{padding:18px}}

/* Main navigation: destination links and separate touch-friendly submenu controls. */
.site-chrome nav{overflow:visible;align-items:center;gap:16px}.nav-group{position:relative}.nav-group-heading{display:flex;align-items:center}.nav-group-heading>a{flex:1}.nav-expand{min-width:44px;min-height:44px;padding:8px!important;margin:0;background:transparent!important}.nav-submenu{position:absolute;top:100%;left:0;min-width:245px;padding:8px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 20px #0002;z-index:35}.nav-submenu[hidden]{display:none!important}.site-chrome nav .nav-submenu a{display:block;padding:12px;white-space:normal;min-height:44px}.nav-submenu a:hover,.nav-submenu a:focus-visible{background:#f8f2ec}.site-chrome nav.menu-open{align-items:stretch}.site-chrome.compact .nav-submenu{position:static;box-shadow:none}.site-chrome.compact nav.menu-open{flex-direction:column;max-height:65dvh;overflow-y:auto}.sourcing-map{height:390px;min-height:280px;isolation:isolate;z-index:0;border:1px solid var(--line);border-radius:12px;margin:16px 0}.sourcing-map[hidden]{display:none}.source-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.collection-code{font-size:1.4rem;font-weight:750;letter-spacing:1px}.collection-gallery{display:flex;gap:12px;flex-wrap:wrap}.collection-gallery img{width:150px;height:120px;object-fit:contain;background:white;border-radius:8px}.coordinate-fields{scroll-margin-top:160px}.collection-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.collection-list .panel{margin:0}.source-map-legend{display:flex;gap:18px;flex-wrap:wrap}.sourcing-map .leaflet-popup-content a{color:#245c2d}.sourcing-map .leaflet-control-attribution{font-size:11px}.sourcing-map .leaflet-control-zoom a{min-height:30px;padding:0}.source-map-error{color:#8a3d15}@media(max-width:1100px){.nav-group{width:100%}.nav-submenu{position:static;box-shadow:none;margin-left:12px;min-width:0}.site-chrome nav.menu-open{align-items:stretch}.source-actions>.button{flex:1;text-align:center}.sourcing-map{height:320px}}@media print{.sourcing-map,.source-actions{display:none}}
.site-chrome nav.menu-open{flex-wrap:nowrap}.site-chrome nav.menu-open>*{flex-shrink:0}
.site-chrome nav .nav-expand{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;font:inherit;font-size:15px;font-weight:400;color:inherit;border:0;border-radius:6px;padding:6px 0!important}.site-chrome nav .nav-expand:hover,.site-chrome nav .nav-expand:focus-visible{color:var(--green)}.nav-expand span{font-size:11px}.nav-expand[aria-expanded="true"] span{transform:rotate(180deg)}[data-passport-tag]:disabled{background:#f2f2ee;color:var(--muted)}@media(max-width:1100px){.site-chrome nav .nav-expand{width:100%;min-height:52px;padding:13px 12px!important}}

/* Plant workflow controls. */
.farm-icon{display:block;width:28px;height:28px;flex:none}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:48px;height:48px;padding:10px;flex:none}.header-find-actions,.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.header-find-actions{flex-wrap:nowrap}.species-select-row{display:flex;align-items:flex-start;gap:10px;min-width:0}.species-select-row>.species-picker,.species-select-row>select{flex:1;min-width:0}.species-select-row>.species-selection-info{margin-top:7px}.species-select-row .choices{margin-bottom:0}.tag-identifier-field>label{margin-bottom:4px}.tag-identifier-field>.check{margin-top:4px;font-size:14px}.tag-identifier-field small{display:block;font-weight:400;color:var(--muted)}.form-actions{margin:16px 0}.search>label{flex:1}.search>button{align-self:end}.passport-action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.passport-action-row p{margin:10px 0}#add-story{scroll-margin-top:160px}.print-selection-list .check{font-weight:400}.print-selection-list small{display:block}.bulk-print-options{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}

.form-grid>.species-picker-field{margin:12px 0}.species-picker-label{font-size:15px;line-height:24px;margin-bottom:7px}.species-select-row>.species-selection-info{align-self:flex-start;margin:0}.product-select-row{display:flex;align-items:center;gap:10px}.product-select-row select{min-width:0;flex:1}.product-select-row .icon-button{margin-top:7px}.product-photo{display:block;max-width:100%;width:240px;height:240px;object-fit:contain;margin:14px 0}[data-product-dialog]{width:min(800px,calc(100vw - 24px));height:85dvh}[data-product-dialog] iframe{border:0;width:100%;height:calc(100% - 65px)}.camera-upload:focus-within{outline:3px solid #b98623;outline-offset:3px}.species-register-photo{overflow:hidden;border-radius:8px}
.location-profile-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.location-profile-columns>*,.location-profile-details{min-width:0}.location-map-preview{display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#edf2e9}.location-map-preview svg{display:block;width:100%;height:380px}.location-preview-panel{position:sticky;top:150px}#products,#irrigation-settings,#stock-types{scroll-margin-top:150px}@media(max-width:820px){.location-profile-columns{grid-template-columns:1fr}.location-preview-panel{position:static}.location-map-preview svg{height:300px}}

/* Map controls remain available inside the fullscreen workspace. */
.map-top-controls{position:absolute;inset:8px 8px auto;z-index:5;display:flex;align-items:flex-start;gap:6px;pointer-events:none}
.map-top-controls>*{pointer-events:auto}
.map-tools-menu{flex:1;min-width:0;margin:0;padding:0;border:0;background:none}
.map-tools-menu>summary{display:none}
.map-tools-menu:not([open])>.map-floating-tools,.map-tools-menu>.map-floating-tools{display:flex;position:static;flex-wrap:wrap;margin:0;padding:0;pointer-events:auto}
.map-floating-tools .map-icon,.map-top-controls>.map-icon,.map-top-controls summary{box-sizing:border-box;min-height:42px;height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:9px;line-height:1}
.map-tool-icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0}
.map-floating-tools [aria-pressed=true] .map-tool-icon{filter:brightness(0) invert(1)}
.map-layers-menu{position:relative;padding:0;margin:0;border:0;background:none}
.map-layers-menu>summary,.map-tools-menu>summary{background:#dce5d4;border-radius:8px;box-shadow:0 1px 5px #0002;cursor:pointer;list-style:none}
.map-top-controls summary::-webkit-details-marker{display:none}
.map-layers-options{position:absolute;right:0;top:48px;background:#fffef5;padding:14px;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 15px #0002;width:310px;max-width:calc(100vw - 24px);max-height:60dvh;overflow:auto}
.map-layers-options .check{margin:0 0 12px;align-items:flex-start}
.map-layers-options small{display:block;font-size:11px}
.map-layers-options button{margin:0 8px 0 0}
.map-top-controls .map-species-legend{position:relative;top:auto;right:auto;margin:0;max-width:min(390px,calc(100vw - 20px))}
.map-top-controls .map-species-legend summary{white-space:nowrap;padding:9px 0}
.map-top-controls .map-species-legend[open]{position:absolute;right:0;top:0;max-height:60dvh}
.map-footer-controls{padding:8px 0}
.map-print-controls,.map-view-options{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:5px 0}
.map-print-controls .check{margin:0}
.map-view-options .button,.map-view-options button,.map-print-controls button{margin:0}
.map-editor-fullscreen .map-stage{display:flex;flex-direction:column}
.map-editor-fullscreen .map-stage .location-map-canvas{flex:1;min-height:0;height:0}
.map-editor-fullscreen .map-footer-controls{flex-shrink:0;background:#fffef5;padding:5px 10px;max-height:25dvh;overflow:auto}
.map-editor-fullscreen .map-editor-feedback{bottom:140px}
.map-editor-fullscreen .map-editor-selection{bottom:180px}
.map-zones-disabled .map-boundary{pointer-events:none;cursor:default}
@media(max-width:1050px){
.map-tools-menu{flex:0 0 auto}
.map-tools-menu>summary{display:inline-flex}
.map-tools-menu:not([open])>.map-floating-tools{display:none}
.map-tools-menu[open]>.map-floating-tools{position:absolute;left:0;right:0;top:48px;background:#fffef5;padding:10px;border-radius:10px;box-shadow:0 3px 15px #0002;max-height:55dvh;overflow:auto}
.map-top-controls [data-map-legend-slot]{margin-left:auto}
.map-layers-options{position:fixed;left:12px;right:12px;top:auto;margin-top:6px;width:auto}
.map-editor-fullscreen .map-footer-controls button,.map-editor-fullscreen .map-footer-controls .button{font-size:12px;padding:7px}
}
@media print{.map-top-controls,.map-footer-controls{display:none!important}}
.map-top-controls .map-tools-menu>summary{display:none}
.map-editor-fullscreen .map-editor-feedback{bottom:calc(var(--map-footer-height,120px) + 8px)}
.map-editor-fullscreen .map-editor-selection{bottom:calc(var(--map-footer-height,120px) + 52px)}
@media(max-width:1050px){.map-top-controls .map-tools-menu>summary{display:inline-flex}}
.map-footer-controls .button,.map-footer-controls button{width:auto}
.map-top-controls .map-species-legend[open]{position:relative;top:auto;right:auto;overflow:visible;max-height:none}
.map-top-controls [data-map-legend-content]{position:absolute;right:0;top:48px;width:max-content;max-width:min(440px,calc(100vw - 24px));max-height:55dvh;overflow:auto;background:#fffef5;border:1px solid var(--line);border-radius:8px;padding:10px;box-shadow:0 3px 15px #0002}
@media(max-width:600px){.map-print-controls .check{flex:1;min-width:180px;font-size:12px}.map-print-controls{flex-wrap:nowrap}.map-footer-controls .notice,.map-footer-controls .errors{font-size:12px;margin:4px 0}}
.map-boundary-distances{position:absolute;left:8px;bottom:8px;z-index:3;max-width:min(420px,calc(100% - 16px));display:flex;flex-wrap:wrap;gap:4px 12px;background:#fffef2;padding:8px 10px;border-radius:8px;font-size:12px;pointer-events:none}
.map-boundary-distances strong{flex-basis:100%}.map-boundary-distances[hidden],.map-boundary-chooser[hidden]{display:none}
.map-boundary-chooser{position:absolute;left:8px;bottom:95px;z-index:6;background:#fffef5;padding:12px;border-radius:8px;max-width:calc(100% - 16px)}.map-boundary-chooser p{margin:0 0 8px}.map-boundary-chooser button{margin:0 8px 0 0}
.map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-selection{bottom:125px}
.map-editor-fullscreen .map-boundary-distances{bottom:calc(var(--map-footer-height,120px) + 8px)}
.map-editor-fullscreen .map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-selection{bottom:calc(var(--map-footer-height,120px) + 120px)}
.map-editor-fullscreen .map-boundary-chooser{bottom:calc(var(--map-footer-height,120px) + 100px)}
@media print{.map-boundary-distances,.map-boundary-chooser{display:none!important}}
.map-tank-position-form{position:absolute;left:8px;bottom:130px;z-index:4;padding:10px;background:#fffef5;border-radius:8px;max-width:calc(100% - 16px)}.map-tank-position-form[hidden]{display:none}.map-tank-position-form p{margin:4px 0}.map-tank-position-form button{margin:4px 6px 0 0}
.map-editor-fullscreen .map-tank-position-form{bottom:calc(var(--map-footer-height,120px) + 130px)}
@media print{.map-tank-position-form{display:none!important}}
.map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-selection{bottom:calc(var(--map-reference-height,100px) + 20px)}
.map-editor-fullscreen .map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-selection{bottom:calc(var(--map-footer-height,120px) + var(--map-reference-height,100px) + 20px)}
.map-stage:has(.map-boundary-distances:not([hidden])) .map-tank-position-form{bottom:calc(var(--map-reference-height,100px) + 20px)}
.map-editor-fullscreen .map-stage:has(.map-boundary-distances:not([hidden])) .map-tank-position-form{bottom:calc(var(--map-footer-height,120px) + var(--map-reference-height,100px) + 20px)}
@media(max-width:600px){.map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-feedback{bottom:calc(var(--map-reference-height,100px) + 20px)}.map-editor-fullscreen .map-stage:has(.map-boundary-distances:not([hidden])) .map-editor-feedback{bottom:calc(var(--map-footer-height,120px) + var(--map-reference-height,100px) + 20px)}}
.species-map-dot{display:inline-block;width:15px;height:15px;border-radius:50%;border:1px solid #0003;flex-shrink:0;vertical-align:middle}
.species-incomplete-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#e87719;flex-shrink:0;vertical-align:middle}
.species-jump-pills a.pill{display:inline-flex;align-items:center;gap:7px}

/* Shared farm calendar */
.farm-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:1rem 0}.farm-month>strong{text-align:center;font-size:.8rem}.farm-day{display:flex;min-height:65px;flex-direction:column;align-items:center;justify-content:center;border:1px solid #dbe3d8;border-radius:6px;text-decoration:none;padding:5px;color:#245c2d}.farm-day small{font-size:.65rem;white-space:nowrap}.farm-day.outside{opacity:.45}.farm-day.today{outline:2px solid #245c2d;background:#eaf2e7}.farm-agenda{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem}.farm-agenda h3{margin-bottom:.5rem}@media(max-width:700px){.farm-agenda{grid-template-columns:1fr}.farm-day{min-height:52px;padding:3px}}

.calendar-owner-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle;margin-right:2px}

.site-footer{max-width:1200px;margin:1rem auto 0;padding:1.5rem clamp(1rem,4vw,3rem);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--muted);font-size:.85rem}.site-footer nav{display:flex;gap:1rem;flex-wrap:wrap;padding:0;margin:0;background:none;border:0}.site-footer form{margin:0}.legal-page{max-width:860px}.legal-page h2{margin-top:2rem}.legal-page p,.legal-page li{max-width:72ch}@media print{.site-footer{display:none!important}}
.calendar-owner-filter{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;padding:.75rem 1rem}.calendar-owner-filter label{display:inline-flex;align-items:center;gap:.45rem;margin:0;font-size:.9rem}.calendar-owner-filter input[type=checkbox]{width:1rem;height:1rem;margin:0;flex:0 0 1rem}.calendar-filters summary{cursor:pointer}.calendar-month-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;margin-bottom:1rem}.calendar-month-heading h2{margin:0;text-align:center}.calendar-month-heading>a:last-child{text-align:right}.farm-month .farm-day{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;padding:.25rem;min-height:7rem;text-align:left}.calendar-day-open{display:flex;justify-content:space-between;align-items:center;gap:.25rem;padding:.2rem;text-decoration:none}.calendar-day-open small{font-size:.65rem}.calendar-event{position:relative;display:block;background:var(--task-colour);color:#243e34!important;border-radius:4px;padding:.3rem .4rem .3rem 13%;margin:.2rem 0;text-decoration:none;overflow:hidden;overflow-wrap:anywhere;font-size:.8rem;line-height:1.35}.calendar-event:before{content:"";position:absolute;left:0;top:0;bottom:0;width:10%;background:var(--owner-colour)}.calendar-event small{display:block}.calendar-day-dialog{width:min(36rem,calc(100% - 2rem))}.calendar-day-dialog .calendar-event{font-size:1rem;padding-left:1.4rem}.calendar-day-dialog .calendar-event:before{width:.65rem}.calendar-key{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.8rem}.calendar-key span{padding:.2rem .6rem;border-radius:4px}@media(max-width:600px){.calendar-month-heading h2{font-size:1.1rem}.calendar-month-heading a{font-size:.8rem}.farm-month .farm-day{min-height:5rem;padding:.1rem}.calendar-event{font-size:.65rem}.calendar-day-open small{display:none}}

@media(orientation:landscape) and (min-width:600px){body.map-editor-fullscreen .map-tools-menu{flex:1;min-width:0}body.map-editor-fullscreen .map-tools-menu>summary{display:none}body.map-editor-fullscreen .map-tools-menu>.map-floating-tools,body.map-editor-fullscreen .map-tools-menu:not([open])>.map-floating-tools{display:flex;position:static;flex-wrap:wrap;max-height:none;padding:0;gap:3px;background:transparent;box-shadow:none}body.map-editor-fullscreen .map-floating-tools .map-icon{height:36px;min-height:36px;min-width:36px;padding:6px}body.map-editor-fullscreen .map-top-controls{gap:4px}}

.measured-planting{margin:20px 0;padding:16px;border:1px solid #cbd8c7;border-radius:12px;background:#f5f8f2}.measured-planting-map{display:block;width:100%;height:420px;max-height:60vh;background:#fff;border-radius:8px;touch-action:manipulation}.measured-planting-map[hidden]{display:none}.measured-planting-map [role=button]{cursor:pointer}.measured-planting-map [role=button]:focus{outline:none;filter:drop-shadow(0 0 3px #db9500)}.measured-planting dialog{max-width:420px}.measured-planting [data-measured-status]{font-weight:600}.measured-planting .form-actions{margin:12px 0}

.supplier-search{margin:20px 0}.supplier-item{padding:16px 0;border-top:1px solid var(--line)}.supplier-item h3{margin-top:0}.supplier-feedback{padding:10px 14px;border-left:3px solid #a4baa0;margin:12px 0;background:#f4f6f0}.supplier-feedback p{margin:5px 0}
#water-record{scroll-margin-top:110px}

/* Distinct purchase items on both purchase forms. */
fieldset.purchase-line{background:#edf2e9;border:2px solid #a9bba3;border-top:5px solid #6b8863;margin:32px 0;padding:22px;border-radius:14px}
fieldset.purchase-line legend{background:#d8e4d0;border:1px solid #a9bba3;border-radius:8px;padding:8px 14px;font-weight:700;font-size:1.1rem}
#maintenance-map-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:12px;border:0;border-radius:0;box-sizing:border-box;overflow:hidden}
.maintenance-map-layout{height:100%;display:flex;flex-direction:column;gap:8px}.maintenance-map-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.maintenance-map-tools button,.maintenance-map-tools select{min-height:44px;margin:0;padding:8px 12px;width:auto}.maintenance-map-canvas{flex:1;min-height:150px;background:#eceee9;touch-action:none}.maintenance-map-status{margin:0;font-size:14px}.maintenance-map-preview{display:block;width:100%;height:200px;object-fit:contain;background:#eef1eb;border:1px solid #bbc9b6;border-radius:12px;cursor:pointer}

.maintenance-map-canvas.maintenance-drawing,.maintenance-map-canvas.maintenance-drawing .leaflet-interactive {cursor:crosshair!important}
.maintenance-corner {background:white;border:2px solid #c32020;border-radius:50%;box-shadow:0 0 0 1px white;cursor:move}

.plant-tag-icon{width:42px;height:42px;object-fit:contain;vertical-align:middle;flex-shrink:0}
.tag-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem;margin:1rem 0}
.tag-option{border:1px solid var(--border,#d6ddd4);border-radius:10px;padding:.7rem;background:var(--panel,#fff)}
.tag-options .check{min-height:44px;display:flex;align-items:center;gap:.5rem}
.tag-summary{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
#plant-tag-editor{width:min(950px,94vw);max-height:90dvh;overflow:auto;padding:1rem}
#plant-tag-editor .dialog-heading{position:sticky;top:-1rem;background:var(--panel,#fff);z-index:2;padding:.5rem}

.species-info-section{margin:24px -10px;padding:0 20px 20px;border:1px solid;border-left-width:6px;border-radius:12px;scroll-margin-top:calc(var(--species-chrome-height,90px) + 70px)}
.species-public-section{background:#f0f7ed;border-color:#9dbb8c;--species-section-colour:#e2efdc}
.species-farm-section{background:#faf1e7;border-color:#c9a77a;--species-section-colour:#f1e1cd}
.species-section-heading{position:sticky;top:var(--species-chrome-height,90px);z-index:20;background:var(--species-section-colour);margin:0 -20px 20px;padding:14px 20px;border-bottom:1px solid #0002;border-radius:6px 6px 0 0;box-shadow:0 3px 6px #00000008}
.species-section-heading span{display:block;font-size:13px;font-weight:500;margin-top:4px}
#plant-tag-editor .tag-options{align-items:stretch;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
#plant-tag-editor .tag-option{display:flex;flex-direction:column;min-width:0;height:100%;background:white}
#plant-tag-editor .tag-choice{align-items:center;min-height:68px;margin-top:0}
#plant-tag-editor .tag-value{display:flex;flex-direction:column;flex:1;font-size:13px;font-weight:500;margin:0 0 8px}
#plant-tag-editor .tag-value textarea{min-height:80px;resize:vertical;flex:1}
#plant-tag-editor .tag-visibility{margin-top:auto;margin-bottom:0;align-items:center;min-height:54px}
.plant-tag-placeholder{display:inline-block;border:1px dashed #aab4a6;border-radius:7px;background:#f5f6f2}
.tag-summary .pill{display:inline-flex;align-items:center;gap:5px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:600px){.species-info-section{margin:20px -6px;padding:0 12px 16px}.species-section-heading{margin:0 -12px 16px;padding:12px;font-size:20px}.tag-options .check input{flex-shrink:0}}

#species-info-popup[open]{display:flex;flex-direction:column}
#species-info-popup>.dialog-heading{flex-shrink:0;flex-wrap:wrap}
#species-info-popup>iframe{flex:1;min-height:0;height:auto}
.species-popup-actions{flex-wrap:wrap;justify-content:flex-end}
.species-reader-tools [hidden],.species-popup-actions [hidden]{display:none!important}
.species-hero-banner{margin:16px -20px 24px;overflow:hidden}
.species-hero-banner img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover}
@media(max-width:500px){#species-info-popup>.dialog-heading{gap:8px}.species-popup-actions{gap:6px}.species-hero-banner img{aspect-ratio:2/1}}
@media print{.species-hero-banner{margin:0 0 6mm;break-inside:avoid}.species-hero-banner img{max-height:65mm}}

#species-photo-status[hidden]{display:none}
.species-public-tag-groups{display:grid;gap:20px;margin:24px 0}
.species-public-tags{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.species-public-tag{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f3f7ee;overflow-wrap:anywhere}
.species-public-tag p{margin:4px 0 0;font-size:15px}
.irrigation-status{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:42px;height:42px;padding:6px;text-decoration:none;font-size:14px;flex:none}.irrigation-status span:first-child{font-size:20px}.irrigation-status[data-unknown]{opacity:.65}
