body[data-page=piante] .page-heading{margin-bottom:20px}body[data-page=piante] .page-actions:empty{display:none}body[data-page=piante] #pageNotice:empty{display:none}body[data-page=piante] .page-filters{gap:12px;margin-bottom:20px}body[data-page=piante] .favorite-filter{align-self:end;display:flex;align-items:center;gap:7px;min-height:43px}body[data-page=piante] .favorite-filter[aria-pressed=true]{background:#254b37;color:white;border-color:#254b37}.favorite-filter svg{width:19px;height:19px}.plants-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;align-items:stretch}.plant-card{min-width:0;display:flex;flex-direction:column;padding:20px 22px;background:#fffdf5;border:1px solid #ddd9cb;border-radius:17px;box-shadow:0 2px 8px #263c2d05}.plant-art{height:178px;position:relative;display:flex;align-items:center;gap:8px;margin-bottom:8px}.plant-illustration{flex:1;min-width:0;display:flex;align-items:center;justify-content:center}.plant-illustration>.crop-sprite{width:100%;height:auto;aspect-ratio:1;display:block;max-width:170px}.plant-tags{flex-shrink:0;display:flex;flex-direction:column;gap:6px;align-items:stretch;max-width:108px;padding-top:28px}.plant-tags span{font:600 11px/1.3 system-ui;text-transform:uppercase;letter-spacing:.04em;text-align:center;border-radius:16px;background:#e9eddb;color:#496149;padding:7px 9px;overflow-wrap:anywhere}.page-main .plant-favorite{position:absolute;right:-6px;top:-8px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#315947}.plant-favorite svg{height:25px;width:25px}.page-main .plant-favorite[aria-pressed=true]{color:#a5324d}.page-main .plant-favorite:hover{background:#f0ecdf}.plant-card h2{font:600 29px/1.1 Georgia,serif;margin:0 0 7px;color:#1e392d;overflow-wrap:anywhere}.plant-scientific,.plant-family{margin:0;color:#687163;font:16px/1.4 Georgia,serif}.plant-family{font-size:14px;margin-top:3px}.plant-description{font:16px/1.5 Georgia,serif;color:#4d5b48;margin:12px 0 16px}.plant-summary{margin:auto 0 16px;border-top:1px solid #e5e1d5}.plant-summary>div{display:grid;grid-template-columns:22px 82px minmax(0,1fr);gap:9px;align-items:center;min-height:37px;padding:7px 0;border-bottom:1px solid #e8e5da;font:14px/1.4 system-ui}.plant-summary svg{width:21px;height:21px;color:#3d634b}.plant-summary dt{color:#5e6a58}.plant-summary dd{margin:0;color:#344633;overflow-wrap:anywhere}.plant-summary small{display:block;font:inherit;color:#687163;font-size:12px;margin-top:2px}.page-main .plant-sheet-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:#244c3b;color:#fff;border-color:#244c3b;min-height:44px}.plant-sheet-button svg{width:23px;height:23px}.plant-sheet-button:hover{background:#183d2e}.plants-grid:has(>.plant-card:only-child){grid-template-columns:minmax(0,360px)}
@media(max-width:700px){body[data-page=piante] .page-main{padding:22px 14px}.plants-grid{gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}.plant-card{padding:16px 20px}.plant-art{height:158px}.plant-illustration>.crop-sprite{max-width:154px}.plant-card h2{font-size:28px}.plant-description{margin-bottom:12px}.plant-summary{margin-bottom:14px}.plant-summary>div{padding:6px 0}.plants-grid:has(>.plant-card:only-child){grid-template-columns:minmax(0,1fr)}}@media(max-width:340px){.plants-grid{grid-template-columns:minmax(0,1fr)}.plant-card{padding:14px}.plant-tags{max-width:90px}.plant-summary>div{grid-template-columns:20px 70px minmax(0,1fr);gap:6px}}

/* Both faces share one grid cell: their common height is stable during rotation. */
.plant-card{display:block;padding:0;border:0;background:transparent;box-shadow:none;perspective:1100px}
.plant-card-turner{display:grid;height:100%;transform-style:preserve-3d;transition:transform .3s ease}
.plant-card.is-flipped .plant-card-turner{transform:rotateY(180deg)}
.plant-face{grid-area:1/1;min-width:0;display:flex;flex-direction:column;padding:20px 22px;background:#fffdf5;border:1px solid #ddd9cb;border-radius:17px;box-shadow:0 2px 8px #263c2d05;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.plant-back{transform:rotateY(180deg)}
.plant-face[inert]{pointer-events:none}
.page-main .plant-flip-trigger{border:0;background:transparent;color:inherit;padding:0;border-radius:7px;cursor:pointer;touch-action:manipulation}
.page-main .plant-name{font:inherit;text-align:left;min-height:44px;line-height:inherit;overflow-wrap:anywhere;max-width:100%}
.page-main .plant-illustration{min-height:44px}
.plant-art{flex-shrink:0}
.plant-flip-hint{font:12px/1.4 system-ui;color:#687163;margin:0 0 12px}
.plant-front .plant-flip-hint{margin-top:auto}
.plant-back-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.plant-back-heading .plant-illustration{flex:0 0 64px}
.plant-back-heading .crop-sprite{max-width:64px}
.plant-back-heading h2{font-size:25px;margin:0;min-width:0}
.plant-back .plant-summary{margin:auto 0}
.plant-back .plant-sheet-button{margin-top:16px}
@media(hover:hover){.page-main .plant-name:hover{color:#4b6d42}.page-main .plant-illustration:hover{background:#e9eddb44}}
@media(max-width:700px){.plant-face{padding:16px 20px}.plant-back-heading h2{font-size:24px}}
@media(max-width:340px){.plant-face{padding:14px}}
@media(prefers-reduced-motion:reduce){.plant-card-turner{transition:none}}

.plant-flip-hint>svg{display:inline-block;width:12px;height:12px;margin-right:5px;vertical-align:-2px;pointer-events:none}

.plants-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:12px;align-items:start}
.plant-card-turner{height:auto}
.plant-face{padding:14px;min-width:0}
.plant-face[inert]{position:absolute;inset:0;visibility:hidden}
.plant-art{height:104px;margin-bottom:4px}
.plant-art .crop-sprite{max-height:102px;max-width:118px}
.plant-card h2{font-size:clamp(1.35rem,2vw,1.65rem);margin-bottom:2px}
.plant-front .plant-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 10px}
.plant-back .plant-summary{margin:4px 0}
.plant-back .plant-sheet-button{margin-top:8px}

body[data-page=piante] .page-filters{position:relative}
body[data-page=piante] .catalog-scopes{display:flex;flex-wrap:wrap;gap:4px;max-width:100%}
body[data-page=piante] .catalog-scopes button{min-height:44px;justify-content:center}
body[data-page=piante] .floating-filters[open]{flex-basis:auto;grid-column:auto}
body[data-page=piante] .secondary-filter-panel{box-sizing:border-box;max-width:100%}
body[data-page=piante] .secondary-filter-panel label{min-width:0}
body[data-page=piante] .secondary-filter-panel select{width:100%}
body[data-page=piante] #catalogRegionNote{font-size:.8rem;line-height:1.35;color:#465b4e}
.catalog-presence:not(:empty){display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem;margin:.5rem 0}
@media(max-width:640px){
 body[data-page=piante] .page-filters.compact-filters{grid-template-columns:minmax(0,1fr) auto}
 body[data-page=piante] .page-filters>label,body[data-page=piante] .catalog-scopes{grid-column:1/-1}
 body[data-page=piante] .catalog-scopes button{flex:1 1 auto}
 body[data-page=piante] .floating-filters .secondary-filter-panel{left:0;right:0;width:100%}
}

.crop-sheet .sheet-varieties{margin-top:12px;padding:12px 0 0;border-top:1px solid #d5dac9}
.sheet-variety-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.sheet-variety-heading h3{display:flex;align-items:center;gap:8px;margin:0;font:600 1.15rem/1.25 Georgia,serif;color:#234a34}
.sheet-variety-heading svg{width:20px;height:20px}
.sheet-variety-empty{margin:4px 0 0;color:#52644f;font-size:.9rem}
.sheet-varieties details{margin-top:6px;border-top:1px solid #e0e1d4}
.sheet-varieties summary{padding:7px 0;cursor:pointer;font-weight:650}
.sheet-varieties .record-actions{margin:6px 0 0}
.sheet-varieties img{max-width:100%;max-height:200px}
