/* A quiet field key inside a responsive app frame. */
:root{--paper:#f8f5ed;--ink:#304733;--soft:#6a7667;--leaf:#dde5d1;--line:#d7dbc9;color-scheme:light}
html{height:100%;background:var(--paper)}
body{height:100%;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--paper);font-size:14px;font-synthesis:none}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #829771;outline-offset:3px}
.masthead{width:100%;max-width:none;min-height:52px;flex-wrap:nowrap;padding:7px 17px;gap:10px;border-bottom:1px solid var(--line)}
.brand{font-size:25px;gap:8px;line-height:1;text-decoration:none;min-width:0;flex:1}.brand img{width:28px;height:28px;flex:none}
.header-tools{gap:3px;flex:none}.icon-button{min-width:38px;min-height:38px;padding:8px;border:0;border-radius:50%;color:var(--soft)}.icon-button svg{width:21px;height:21px}
.connection{font-size:10px}.connection:empty{display:none}
.trial-label{font-size:10px;line-height:1.2;color:var(--soft);padding:4px 0;border-bottom:1px solid var(--line);white-space:nowrap;margin-right:5px}
main{width:100%;max-width:none;min-width:0;min-height:0;padding:0;margin:0;overflow:auto;overscroll-behavior:contain}
body[data-view=vettvangur] main{overflow:hidden}
.dock{position:static;transform:none;display:flex;align-items:stretch;justify-content:center;gap:5px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--paper);box-shadow:none;padding:5px 12px max(5px,env(safe-area-inset-bottom));width:100%;min-height:52px;z-index:5}
.dock a{display:flex;justify-content:center;align-items:center;gap:8px;flex:1;max-width:170px;min-height:40px;padding:7px 12px;border-radius:22px;text-decoration:none;font-size:12px;color:var(--soft)}
.dock a[aria-current=page]{background:#e7ebde;color:var(--ink)}.dock a svg{width:19px;height:19px}.dock a:hover{color:var(--ink)}
.primary{border-radius:22px;padding:10px 16px;font-size:13px;min-height:44px}.primary:hover{background:#405e41}
.secondary{border-radius:18px;min-height:44px;padding:8px 12px;font-size:12px}.secondary:hover{border-color:#a1b18e;background:#eef0e5}
.quiet{font-size:12px;min-height:36px;padding:5px 0;display:inline-flex;align-items:center;gap:6px;text-align:left}.quiet svg{width:16px;height:16px;flex:none}
.field-layout{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:0}
.field-intro{position:static;align-self:stretch;min-width:0;padding:12px 16px 10px;margin:0;border-bottom:1px solid var(--line)}
.field-greeting{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 2px}.field-greeting h1{font-size:26px;line-height:1.1;letter-spacing:-.2px}
.field-intro>.description{margin:0 0 12px;font-size:12px;line-height:1.5;color:var(--soft);max-width:none}
.field-group-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:0;width:auto;max-width:none;min-height:36px;padding:4px 0 4px 8px;font-size:11px;white-space:nowrap;text-decoration:none;flex:none}.field-group-button svg{width:17px;height:17px}
.field-feature-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0;padding:0;overflow:visible}
.field-feature-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:56px;padding:5px 2px;font-size:11px;line-height:1.2;white-space:normal;border:1px solid var(--line);border-radius:15px;background:transparent}
.field-feature-buttons button>svg{width:23px;height:23px;margin:0}.field-feature-buttons button[aria-pressed=true]{background:var(--leaf);border-color:#9baa8e}
.field-helper-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}.field-helper-row:empty{display:none}
.field-next{display:inline-flex;flex-wrap:wrap;gap:0 5px;align-items:center;justify-content:flex-start;background:none;border:0;border-radius:0;padding:3px 0;min-height:34px;margin:0;font-size:11px;text-decoration:none}.field-next>span{color:var(--soft)}.field-next strong{display:inline;font:inherit;font-weight:500;line-height:1.3;text-decoration:underline;text-underline-offset:3px}
.field-reset{white-space:nowrap;text-decoration:none;color:var(--soft);font-size:11px;min-height:34px}.field-reset svg{width:14px;height:14px}
.field-selection{margin:9px 0 0;gap:5px;max-height:68px;overflow:auto}.field-selection:empty{display:none}.field-selection button{padding:4px 8px;font-size:11px;min-height:30px;border:0;border-radius:18px;background:#e7ebde}.field-selection button svg{width:11px;height:11px}
.field-results{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:13px 16px 0}
.field-results .result-head{flex:none;margin:0 0 10px;gap:8px;align-items:center;flex-wrap:nowrap}.field-results .result-head h2{font-size:21px;line-height:1.15}.result-head .count{font-size:11px;white-space:nowrap;color:var(--soft)}
.field-result-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:2px 4px 12px 0;scrollbar-width:thin;scrollbar-color:#b5c0a9 transparent}
.field-result-scroll:focus-visible{outline:2px solid #829771;outline-offset:-2px}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px;align-content:start}
.field-card .plant-open{height:100%;position:relative;border:0;background:none;padding:0;box-shadow:none}
.field-card .plant-art{height:128px;background:#eeefe1;border:0;border-radius:29% 31% 22% 24% / 16% 20% 15% 18%;margin:0 0 8px;transform:none}
.field-card:nth-child(3n+2) .plant-art{background:#efece2}.field-card:nth-child(3n+3) .plant-art{background:#e9ede4}
.field-card .plant-open:hover .plant-art{transform:translateY(-2px);background:#e4e9da}
.field-card .plant-art img{height:96%;width:94%;object-fit:contain}.field-card .plant-name{font-size:19px;line-height:1.15;text-wrap:balance;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;hyphens:auto}
.field-card .latin{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.field-card .field-ceiling{font:10px/1.4 system-ui,sans-serif;padding:0;margin:5px 0 0;background:none;color:var(--soft);border:0;border-radius:0;display:block}
.field-card .match-note,.field-card .field-badge,.field-card .field-check-status{font-size:10px;line-height:1.4;margin:5px 0 0}.field-card .field-badge{padding:1px 5px;border-radius:10px}
.field-results .more{margin:16px 0 0;min-height:40px;padding:7px 12px;border:1px solid var(--line);border-radius:20px;font-size:12px}.field-results .scope-note{margin:16px 0 0;font-size:10px;line-height:1.6;max-width:none;color:var(--soft)}
.field-query-note{font-size:12px;line-height:1.5;margin:0 0 10px}.field-empty-note{font-size:13px;line-height:1.6;padding:20px 8px}
.field-result-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);min-height:40px;flex:none}.field-result-actions .quiet{min-height:38px;text-decoration:none;font-size:11px;color:var(--soft)}
/* Only the chosen feature or plant opens a sheet. */
dialog{width:min(650px,calc(100vw - 20px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:24px;background:var(--paper);box-shadow:0 18px 70px #253b3233;padding:0;overscroll-behavior:contain}
dialog::backdrop{background:#293b2e52;backdrop-filter:blur(2px)}.sheet-head{padding:14px 17px 10px;gap:10px;z-index:3;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:27px;line-height:1.15}.sheet-body{padding:14px 17px 19px}.sheet-body>p{margin-bottom:13px;font-size:13px;line-height:1.6}
.sheet-actions{gap:9px;margin-top:18px}.field-choice-actions{position:sticky;bottom:0;z-index:2;background:var(--paper);padding:12px 0 2px}.sheet-actions .primary{flex:1}
.field-help-details{margin:0 0 3px}.field-help-details summary{font-size:12px;min-height:34px;padding:5px 0}.field-help-details p{font-size:12px}
.choices.visual-choices{gap:17px 13px;margin:14px 0 5px}.choices.visual-choices .visual-choice{font-size:12px;gap:7px}.visual-choice .choice-picture{border-radius:22px;background:#eef0e5;border:1px solid transparent}.visual-choice:nth-child(3n+2) .choice-picture{border-radius:22px;background:#f0ece2}.visual-choice:nth-child(3n+3) .choice-picture{background:#e9eee7}
.visual-choice[aria-pressed=true] .choice-picture{border-color:#829771;box-shadow:inset 0 0 0 1px #829771;background:var(--leaf)}.visual-choice .choice-caption{min-height:30px}
.colour-choices .visual-choice .choice-picture{border-radius:50%;border-color:transparent;background:transparent}.colour-choices .visual-choice[aria-pressed=true] .choice-picture{background:#e3ead9;box-shadow:none}.choices.colour-choices .visual-choice.colour-empty .choice-picture{border-radius:50%}
.field-detail-intro{grid-template-columns:130px minmax(0,1fr);gap:16px}.field-specimen{height:190px;background:#edf0e2;border:0;border-radius:27px}.field-detail-intro p{font-size:12px}.field-detail-intro .latin{font-size:13px;margin-bottom:10px}.field-detail-intro .field-ceiling{background:#ece9da;font-size:11px!important;padding:6px 8px}
.field-art-note{font-size:11px;line-height:1.5;margin:10px 0 18px}.field-checklist{margin-top:18px}.field-checklist h3,.field-related h3{font-size:25px}.field-check{margin:12px 0;padding:10px 0 16px}.field-check legend{font-size:13px}.field-check>p{font-size:12px;line-height:1.6}.field-answer-options span{border-radius:18px;font-size:11px}
.field-progress,.field-limit{font-size:12px;line-height:1.6;padding:11px 13px}.field-plate{border:1px solid var(--line);border-radius:20px;padding:8px;margin-bottom:18px}.field-plate img{height:160px}.field-plate span{font-size:12px}.field-requirements span{font-size:10px}.field-lookalike-title{font-size:22px}.field-lookalike p{font-size:12px}.field-related{margin-top:22px}
.field-compare-checks{gap:18px}.field-compare-checks h3{font-size:23px}.compare-columns img{height:165px;border-radius:22px}.field-compare-checks li{font-size:12px}.field-feature-menu .choice{border-radius:18px;font-size:12px}.field-feature-menu .choice:hover{background:#eef0e5}
.field-zoom{border-radius:20px}.field-zoom img{min-width:450px}.figure-legend{font-size:12px}.field-scope-list{gap:0 15px}.field-scope-list button{border-bottom:1px solid var(--line);padding:7px 0}
/* The library and diary use the same quiet frame. */
main>section{padding:20px 17px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:32px}.page-heading p{font-size:12px;margin-top:8px}.page-heading .search{font-size:12px;padding:10px 14px;max-width:330px}
.filters{flex-wrap:nowrap;overflow:auto;gap:6px;margin:0 0 12px;padding-bottom:5px}.filter-chip{flex:none;font-size:11px;padding:6px 10px}.flora-status{margin:0 0 14px;font-size:11px}.flora-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:21px 14px}.flora-grid .plant-art{height:155px}.flora-grid .plant-name{font-size:21px}.flora-grid .latin{font-size:11px}
.empty{padding:25px 18px;margin:15px auto;border-radius:25px;max-width:520px}.empty img{height:100px;width:100px;margin-bottom:14px}.empty h2{font-size:28px;margin-bottom:10px}.empty p{font-size:13px;margin-bottom:16px}.observation{border-radius:22px;padding:15px}.observation img{height:140px;margin-bottom:10px}.observation h3{font-size:24px}.observation .note{font-size:12px}.diary-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.identify-layout{padding:17px;gap:26px}.identify-layout h1{font-size:30px}.intro .description{font-size:13px;margin:13px 0}.feature-grid{margin:0}.feature{border-radius:19px}.identify-layout .plant-art{height:155px}.identify-layout .plant-name{font-size:21px}
.toast{bottom:72px;font-size:12px}.compare-bar{bottom:69px;max-width:calc(100vw - 24px);font-size:11px}.update-prompt{flex:1 0 100%;margin:0;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.masthead:has(.update-prompt){flex-wrap:wrap}.update-prompt .primary{min-height:35px;padding:5px 10px;font-size:11px}
@media(min-width:760px){
 .masthead{padding:9px 24px;min-height:58px}.brand{font-size:28px}.brand img{width:30px;height:30px}
 .field-layout{grid-template-columns:250px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.field-intro{padding:25px 19px;border-bottom:0;border-right:1px solid var(--line);overflow:auto}.field-greeting{align-items:baseline;flex-wrap:wrap;gap:6px}.field-greeting h1{font-size:30px}.field-group-button{padding-left:0}.field-intro>.description{font-size:13px;margin:7px 0 20px}
 .field-feature-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.field-feature-buttons button{min-height:74px;font-size:12px;gap:8px}.field-feature-buttons button>svg{width:28px;height:28px}
 .field-selection{margin-top:18px;max-height:none;overflow:visible}.field-helper-row{flex-direction:column;align-items:flex-start;margin-top:14px;gap:10px}.field-next{font-size:12px;line-height:1.6}.field-reset{font-size:12px}
 .field-results{padding:24px 24px 0}.field-results .result-head{margin-bottom:16px}.field-results .result-head h2{font-size:28px}.result-head .count{font-size:12px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px}.field-card .plant-art{height:clamp(160px,25vh,220px)}.field-card .plant-name{font-size:22px}.field-result-actions{min-height:46px}.field-result-actions .quiet{font-size:12px}
 .dock{padding:6px 24px;min-height:55px;justify-content:flex-start}.dock a{max-width:150px}
 dialog[data-kind=plant],dialog[data-kind=choices]{position:fixed;inset:12px 13px 12px auto;margin:0;width:min(500px,calc(100vw - 270px));height:calc(100dvh - 24px);max-height:none;border-radius:24px}
 dialog[data-kind=choices] .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr))}dialog[data-kind=choices] .colour-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
 .sheet-head h2{font-size:30px}.sheet-body{padding:17px 21px 22px}.field-detail-intro{grid-template-columns:140px minmax(0,1fr)}.field-specimen{height:210px}
}
@media(min-width:1000px){.field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1200px){.field-layout{grid-template-columns:280px minmax(0,1fr)}.field-intro{padding:28px 23px}.field-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:27px 22px}.field-results{padding:28px 30px 0}.field-card .plant-art{height:clamp(175px,26vh,240px)}}
@media(max-width:380px){.masthead{padding-inline:12px;min-height:48px}.brand{font-size:23px}.brand img{width:26px;height:26px}.header-tools .icon-button{min-width:34px;min-height:34px;padding:6px}.field-intro{padding:9px 12px}.field-greeting h1{font-size:24px}.field-intro>.description{font-size:11px;margin-bottom:10px}.field-results{padding:11px 12px 0}.field-feature-buttons{gap:4px}.field-feature-buttons button{font-size:10px;min-height:52px}.field-card .plant-art{height:125px}.field-card .plant-name{font-size:18px}.field-card .latin{font-size:10px}.field-grid{gap:18px 10px}.field-next{font-size:10px}.field-reset{font-size:10px}.field-detail-intro{grid-template-columns:100px minmax(0,1fr);gap:13px}.field-specimen{height:170px}.sheet-head h2{font-size:25px}.page-heading{display:block}.page-heading .search{margin-top:14px;width:100%}}
@media(max-height:580px) and (max-width:759px){
 .masthead{min-height:43px;padding-top:4px;padding-bottom:4px}.brand{font-size:22px}.brand img{width:25px;height:25px}.header-tools .icon-button{min-height:34px}
 .field-intro{padding-top:6px;padding-bottom:8px}.field-greeting h1{font-size:22px}.field-intro>.description,.field-next{display:none}.field-greeting{margin-bottom:5px}.field-group-button{min-height:30px}.field-feature-buttons button{min-height:46px;gap:3px}.field-feature-buttons button>svg{width:21px;height:21px}.field-helper-row{justify-content:flex-end;margin-top:2px}.field-reset{min-height:28px;font-size:10px}.field-selection{flex-wrap:nowrap;max-height:32px;overflow:auto;margin-top:7px}.field-selection button{flex:none;font-size:10px;min-height:28px}
 .field-results{padding-top:10px}.field-results .result-head h2{font-size:19px}.field-results .result-head{margin-bottom:8px}.field-card .plant-art{height:112px}.field-card .plant-name{font-size:18px}.field-card .latin{font-size:10px}.field-card .field-ceiling{font-size:9px}.field-result-actions{min-height:34px}.field-result-actions .quiet{min-height:33px;font-size:10px}.dock{min-height:46px;padding-top:4px;padding-bottom:4px}.dock a{min-height:36px;font-size:11px}
 .sheet-head{padding:10px 13px}.sheet-head h2{font-size:24px}.sheet-body{padding:11px 13px}.field-help-details{margin:0}.choices.visual-choices{gap:12px}.visual-choice .choice-caption{font-size:11px;min-height:26px}.sheet-body>p{font-size:12px}.field-choice-actions{padding-top:9px}.sheet-actions .primary,.sheet-actions .secondary{padding:8px 12px;min-height:40px}
}

:root[data-thema=jol] .masthead{background:#e8eedf;box-shadow:inset 0 3px #b54839}
:root[data-thema=jol] main{background-color:var(--page)}
