#modal:has(#garden-shelves){width:min(760px,calc(100vw - 24px));max-width:760px;box-sizing:border-box;padding:24px;background:#faf8ef}
#modal:has(#garden-shelves) h2{font-size:clamp(23px,4vw,34px);margin:12px 0}.shelf-intro{color:#68755c;font-size:15px;margin:8px 0 24px}
#garden-shelves{padding:10px 12px 18px;border-radius:28px;background:linear-gradient(130deg,#e6ecdc,#f5f0e2);border:1px solid #d3dcc7}
.garden-shelf{position:relative;padding:20px 0 0;margin:0 0 12px;border-bottom:14px solid #d2b990;border-radius:0 0 8px 8px;box-shadow:0 9px 6px -7px #82775c60}.garden-shelf:last-child{margin-bottom:0}.shelf-number{position:absolute;top:3px;left:5px;font-size:11px;color:#7c846f;letter-spacing:1px}.shelf-spots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.shelf-spot{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;border:2px solid transparent;border-radius:16px 16px 5px 5px;padding:0 3px 6px;background:transparent;color:#405944;cursor:pointer;font:inherit;min-height:145px}.shelf-spot:hover{background:#ffffff65}.shelf-spot:focus-visible{outline:3px solid #78976c;outline-offset:2px}.shelf-spot.chosen{border-color:#819c68;background:#f9f8e8;box-shadow:0 0 0 3px #c7d8b94d}.shelf-portrait{display:block;position:relative;width:100%;height:120px;overflow:hidden}.shelf-portrait>img{position:absolute;width:155%;height:auto;max-width:none;left:-27.5%;bottom:-5px}.shelf-caption{font-size:11px;line-height:1.35;display:block;min-height:15px}.shelf-empty{font-size:30px;color:#9aac89;border:1px dashed #adbca0;border-radius:50%;width:44px;height:44px;line-height:40px;margin:34px 0 20px}.shelf-young>img{width:95%;left:2.5%;bottom:0}.shelf-seed{position:absolute;bottom:45%;left:25%;width:50%;height:40%;font-size:22px}.shelf-seed img{height:100%;width:100%;object-fit:contain}#shelf-status{font-size:14px;min-height:1.4em;color:#586c50}#shelf-actions{display:flex;gap:10px;flex-wrap:wrap}#shelf-actions button{font-size:14px;padding:12px 20px}#shelf-extra{display:flex;gap:8px;flex-wrap:wrap}#shelf-extra p{width:100%}#shelf-extra button{font-size:13px;padding:8px}
@media(max-width:480px){#modal:has(#garden-shelves){padding:16px}#garden-shelves{padding:6px 5px 14px}.shelf-spots{gap:2px}.shelf-spot{min-height:115px;padding:0 0 4px}.shelf-portrait{height:94px}.shelf-caption{font-size:9px}.shelf-empty{margin:22px 0 16px;width:34px;height:34px;line-height:30px}.shelf-intro{font-size:13px}.garden-shelf{border-bottom-width:11px}}
.shelf-portrait>img{width:100%;height:100%;left:0;bottom:0;object-fit:contain}.shelf-young>img{width:90%;height:90%;left:5%;bottom:0}.shelf-seed:not(:has(img)){width:10px;height:15px;left:calc(50% - 5px);bottom:52%;border-radius:65% 35% 60% 40%;background:#b5c58a;border:1px solid #87996c;transform:rotate(20deg)}
.shelf-portrait:not(.shelf-young)>img{width:135%;height:135%;left:-17.5%;bottom:-3px}
#shelf-actions button{border:1px solid #aab99d;border-radius:24px;background:#45634e;color:#fffaf0;cursor:pointer}#shelf-actions button.secondary{background:transparent;color:#45634e}
