/* Pocket Life 2.93: a lavender keepsake box, with a fixed header and small pages. */
#panel.cozy-inventory{width:min(660px,calc(100% - 20px));height:min(720px,calc(var(--visible-height,100dvh) - 24px));max-height:calc(var(--visible-height,100dvh) - 24px);margin:auto;inset:0;border:3px solid #fff8f7;border-radius:32px 32px 38px 38px;background:radial-gradient(ellipse at top left,#fff2e6,transparent 60%),#eee2f1;overflow:hidden;box-shadow:0 20px 70px #4d3e5b40,inset 0 0 0 5px #ffffff55}
.cozy-inventory .modal-head{position:relative;z-index:5;background:#f4eaf6;border-bottom:2px dashed #dbc6df;padding:12px 20px;min-height:68px;flex:none}
.cozy-inventory .modal-head .eyebrow{font-size:10px;letter-spacing:1.3px}.cozy-inventory .modal-head h2{font-size:23px}.cozy-inventory .close{background:#e6cce0;border:2px solid #fff9f4;box-shadow:0 3px 0 #d6b9d2;color:#775c80}
#panel.cozy-inventory[open]{display:flex;flex-direction:column}
.cozy-inventory #panel-body{padding:8px 16px 12px;display:flex;flex-direction:column;gap:6px;min-height:0;flex:1;overflow:hidden}
.cozy-inventory .inventory-tabs{position:static;z-index:auto;background:transparent;flex:none;padding:0;margin:0;gap:6px}
.cozy-inventory .inventory-tabs button{border-radius:16px 16px 11px 11px;background:#fff5ea;min-height:38px;padding:7px 5px;box-shadow:0 2px 0 #ddc9d4;font-size:13px}
.cozy-inventory .inventory-tabs [aria-selected=true]{background:#ceb9df;color:#513d67;box-shadow:inset 0 -3px #b69bca}
.cozy-inventory .item-sections button{font-size:11px;min-height:34px;padding:5px}
.bag-workspace{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1}.bag-pocket{min-height:0;display:flex;flex-direction:column;flex:1}.bag-side{display:flex;flex-direction:column;gap:6px;flex:none;min-width:0}
.cozy-inventory .rpg-bag{grid-template-columns:repeat(var(--bag-columns),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);flex:1;min-height:0;margin:2px 0;gap:6px;background:#e0d1e6;padding:7px;border-radius:22px;box-shadow:inset 0 2px 6px #ae8ab22b}
.cozy-inventory .bag-slot{aspect-ratio:auto;min-height:0;min-width:0;max-height:90px;padding:4px;border:2px solid #fffaf4;border-radius:18px;background:#faf0e9;box-shadow:0 2px 0 #cfb7d3,inset 0 2px 7px #fff}
.cozy-inventory .bag-slot:nth-child(3n+2){background:#e6efe4}.cozy-inventory .bag-slot:nth-child(3n+3){background:#f5e4ed}.cozy-inventory .bag-slot.selected{border-color:#aa83c1;box-shadow:0 0 0 2px #c7a8da;background:#efe1f8}.cozy-inventory .bag-slot.empty{color:#c7acd0;opacity:.52;font-size:18px}
.cozy-inventory .bag-slot .inventory-icon{margin:0;font-size:30px;line-height:1;width:36px!important;height:36px!important}.cozy-inventory .bag-count{border-radius:9px;color:#695372;background:#fffaf4;padding:1px 5px;font-size:11px;max-width:95%;overflow:hidden;bottom:2px;right:2px}
.bag-pages{display:flex;align-items:center;justify-content:center;gap:20px;flex:none;height:34px;font-size:12px;font-weight:800}.bag-pages button{width:44px;height:30px;border-radius:12px;font-size:24px;background:#f9f0f4}
.cozy-inventory .inventory-actions{margin:0;gap:6px}.cozy-inventory .inventory-actions:empty{display:none}.cozy-inventory .inventory-actions button{flex:1;border-radius:13px;min-height:36px;padding:6px;font-size:13px}
.cozy-inventory .bag-detail{padding:8px 10px;gap:5px;min-height:72px;background:#fff7f0;border:1px solid #fff;border-radius:18px;flex:none}.bag-caption{display:flex;gap:6px;align-items:center;justify-content:space-between;min-width:0}.bag-caption strong{font-size:13px;overflow-wrap:anywhere}.bag-caption span{font-size:11px;white-space:nowrap}.bag-hint{font-size:12px;line-height:1.5;color:#8a7290;text-align:center;margin:auto}
.bag-buttons{display:flex;gap:5px;justify-content:center}.bag-buttons button,.bag-quantity button{font-size:12px;min-height:32px;padding:5px 9px;border-radius:11px;background:#e9ddec}.bag-buttons button.primary{background:#9b83ae;color:white}.bag-buttons button:disabled{opacity:.4}
.bag-quantity{display:flex;align-items:center;justify-content:center;gap:9px}.bag-quantity output{font-size:20px;font-weight:900;min-width:54px;text-align:center;font-variant-numeric:tabular-nums}.bag-quantity button{min-width:36px}.bag-detail input[type=range]{width:100%;height:22px;margin:0;padding:0;accent-color:#a58bb6}
.cozy-inventory .bag-drop-zone{padding:9px;margin:0;font-size:11px;border:2px dashed #c5a3bb;background:#f7e5e8;border-radius:18px;color:#89697e;min-height:36px;flex:none}.cozy-inventory .bag-drop-zone.drop-ready{background:#e2efdc;border-color:#9ab58d;color:#527a54}
.cozy-inventory .shop-note{margin:0;font-size:11px;flex:none}
#plant-seeds{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:6px 0}#plant-seeds button{margin:0;font-size:12px}#plant-seeds [aria-pressed=true]{background:#c5ddbb;box-shadow:inset 0 0 0 2px #90b580}#placement{z-index:8;max-width:calc(100vw - 20px);white-space:normal;text-align:center}#placement>span{display:block;font-size:12px}#plant-confirm{background:#c6dcb9!important;color:#426341;font-weight:800}
@media(max-height:599px) and (orientation:landscape){
 #panel.cozy-inventory{width:min(900px,calc(100% - 16px));height:calc(var(--visible-height,100dvh) - 12px);max-height:calc(var(--visible-height,100dvh) - 12px);border-radius:22px}
 .cozy-inventory .modal-head{min-height:46px;padding:3px 16px}.cozy-inventory .modal-head .eyebrow{display:none}.cozy-inventory .modal-head h2{font-size:19px}.cozy-inventory .close{width:36px;height:36px}
 .cozy-inventory #panel-body{padding:5px 12px;gap:4px}.cozy-inventory .inventory-tabs button{min-height:28px;padding:3px;font-size:11px}
 .bag-workspace{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:10px}.bag-side{justify-content:center}.cozy-inventory .rpg-bag{gap:4px;padding:5px}.cozy-inventory .bag-slot .inventory-icon{width:28px!important;height:28px!important;font-size:25px}.bag-pages{height:28px}.bag-pages button{height:26px}.cozy-inventory .bag-detail{min-height:50px;padding:6px}.bag-caption{flex-wrap:wrap;gap:2px}.bag-caption strong{font-size:11px}.bag-quantity{gap:3px}.bag-quantity output{font-size:16px}.bag-buttons button,.bag-quantity button{min-height:27px;font-size:10px;padding:3px 6px}.bag-detail input[type=range]{height:16px}.cozy-inventory .bag-drop-zone{min-height:28px;padding:5px;font-size:10px}.cozy-inventory .inventory-actions button{min-height:28px;font-size:11px}.cozy-inventory .shop-note{font-size:10px}
 #placement{bottom:105px;font-size:11px}#placement button{padding:5px}
}
.bag-workspace{position:relative}.bag-workspace.amount-open .bag-pocket,.bag-workspace.amount-open .inventory-actions,.bag-workspace.amount-open .bag-drop-zone{visibility:hidden}.cozy-inventory .amount-open .bag-detail{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100%,350px);padding:18px;background:#fff6ef;border:3px solid #fff;border-radius:25px;box-shadow:0 8px 24px #a381ac25;gap:10px}.amount-open .bag-caption{justify-content:center;flex-direction:column}.amount-open .bag-quantity button{min-height:40px;min-width:40px}.amount-open .bag-buttons button{min-height:38px;flex:1}.amount-open .bag-detail input[type=range]{height:28px}
@media(max-height:420px) and (orientation:landscape){.cozy-inventory .amount-open .bag-detail{padding:7px 12px;gap:4px}.amount-open .bag-caption{flex-direction:row;gap:9px}.amount-open .bag-quantity button,.amount-open .bag-buttons button{min-height:28px}.amount-open .bag-detail input[type=range]{height:20px}}
