.storage-page{background:#f8f7ed;color:#334b2c}.sp-main{max-width:1400px;margin:auto;padding:26px 36px 55px}.sp-back{font:11px system-ui;color:#76856b;text-decoration:none}.sp-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:28px 0 22px}.sp-title{display:flex;align-items:center;gap:15px;flex:none}.sp-title>img{width:76px;height:72px;object-fit:contain;filter:drop-shadow(2px 4px 0 #354a2720)}.sp-title h1{font:48px/1.05 var(--pixel-font);margin:0;color:#2f4c28;letter-spacing:-1px}.sp-title p{font:13px system-ui;color:#7e8b71;margin:9px 0 0}.sp-setup{display:flex;gap:12px;align-items:center;padding:12px;background:#efeee0;border:1px solid #c9ccb9;box-shadow:inset 0 0 0 3px #faf9ef,2px 4px 0 #32432a0b;border-radius:7px}.sp-counter{display:flex;align-items:center;gap:7px}.sp-counter+.sp-counter{border-left:1px solid #c9cfb9;padding-left:12px}.sp-counter img{object-fit:contain}.sp-main input,.sp-main select{color:#3a5431;font:14px system-ui;border:1px solid #bdcbaa;border-radius:4px;background:#fffef5;padding:8px;min-height:40px}.sp-counter input{width:64px;font:25px var(--pixel-font);border:0;background:transparent;padding:3px 0}.sp-setup select{max-width:115px;background:#f9f9ed}.sp-main button{cursor:pointer;color:#4b683d;border:1px solid #b5c5a1;background:#fafbf2;border-radius:4px;min-height:36px;padding:7px 12px;font:12px var(--pixel-font);display:inline-flex;align-items:center;justify-content:center;gap:7px}.sp-main button:hover{background:#e9f0df;border-color:#78955f}.sp-main button:disabled{opacity:.4;cursor:default}.sp-main button.sp-primary{background:#4d703e;color:#fff;border-color:#35532b;box-shadow:inset 0 2px 0 #ffffff24,0 3px 0 #354e2b;min-height:43px;padding:9px 15px;white-space:nowrap}.sp-main button .ui-icon{width:17px;height:17px}.sp-topline{display:flex;align-items:center;gap:13px;margin-bottom:13px;font:12px system-ui;color:#849177}.sp-topline>span{margin-right:auto}.sp-topline>button{background:transparent;border-color:transparent;font:11px system-ui}.sp-reserve{position:relative}.sp-reserve summary{cursor:pointer;font:11px system-ui;min-height:32px;display:flex;align-items:center;gap:6px}.sp-reserve summary:after{content:'⌄'}.sp-reserve label{position:absolute;z-index:4;right:0;top:36px;padding:14px;background:#fffdf3;box-shadow:0 8px 25px #33482726;border:1px solid #b9c9a8;border-radius:6px;display:flex;align-items:center;gap:10px;white-space:nowrap}.sp-reserve input{width:60px}.sp-inventory{padding:18px;background:#d9dcd2;border:1px solid #a4ad99;outline:3px solid #eceee5;outline-offset:3px;box-shadow:inset 3px 3px 0 #f8f9f1,inset -3px -3px 0 #b7bdad,0 8px 18px #35462a10;border-radius:6px}.sp-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.sp-main .sp-category{min-width:0;display:flex;flex-direction:column;justify-content:flex-start;padding:15px 6px 12px;gap:7px;border:1px solid #bfc4b3;box-shadow:inset 2px 2px 0 #fffef9,inset -2px -2px 0 #e0e0d2,0 3px 0 #46543b18;background:#f9f7eb;border-radius:5px;min-height:161px;transition:background .15s,border-color .15s}.sp-main .sp-category:hover{background:#f0f5e5;transform:translateY(-1px)}.sp-main .sp-category[aria-pressed=true]{background:#e1edd0;border:2px solid #6b9051;padding:14px 5px 11px;box-shadow:inset 0 0 0 3px #f0f7e4,0 0 0 2px #a8c392}.sp-item{width:74px;height:74px;aspect-ratio:1;object-fit:contain;image-rendering:auto;flex:none}.sp-category strong{font:600 15px/1.3 system-ui;text-align:center;margin-top:auto;color:#314a29}.sp-category .sp-count{padding:3px 14px;border:1px solid #c5cbb7;border-radius:4px;color:#6c7e60;font:11px system-ui;background:#efefe2;white-space:nowrap}.sp-category[aria-pressed=true] .sp-count{color:#fff;background:#729453;border-color:#608349}.sp-allocation{margin-top:29px;border:1px solid #c4cfb5;background:#faf9ee;border-radius:6px;overflow:hidden}.sp-section-head{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;background:#eef1e4;border-bottom:1px solid #cbd4bd}.sp-section-head small{font:9px system-ui;letter-spacing:1.4px;color:#829174}.sp-section-head h2{font:26px var(--pixel-font);margin:4px 0 0;color:#36512c}.sp-chests{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}.sp-chest-card{min-width:0;padding:13px;background:#f2f2e6;border:1px solid #d5dcc8;border-radius:5px;display:flex;flex-direction:column}.sp-chest-label{display:flex;align-items:center;gap:8px;font:10px system-ui;color:#7b8d6e}.sp-chest-number{background:#527343;color:white;padding:4px 7px;font:14px var(--pixel-font);border-radius:3px}.sp-main .sp-edit{margin-left:auto;width:28px;min-height:28px;padding:3px;background:transparent;border:0;font:18px system-ui}.sp-main .sp-chest-picture{position:relative;display:flex;align-items:center;justify-content:center;min-height:136px;background:transparent;border:0;padding:5px}.sp-main .sp-chest-picture>img{object-fit:contain;filter:drop-shadow(0 5px 1px #48472c20)}.sp-item-frame{position:absolute;width:52px;height:52px;left:50%;top:52%;transform:translate(-50%,-50%);background:#9a7044;border:4px solid #d4b27a;box-shadow:inset 0 0 0 2px #614624,1px 2px 0 #372e2366;display:flex;align-items:center;justify-content:center}.sp-item-frame .sp-item{width:46px;height:46px;filter:drop-shadow(1px 2px 0 #35251b44)}.sp-free-plus{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);background:#f2f3e9c9;color:#547444;font:24px system-ui;padding:0 8px}.sp-chest-items{border-top:1px solid #d5ddc9;padding-top:8px;flex:1}.sp-item-group>strong{font:11px system-ui;font-weight:600;color:#667e56}.sp-item-group+.sp-item-group{margin-top:8px}.sp-item-row{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px}.sp-item-row>span{display:flex;justify-content:center;align-items:center;width:39px;height:39px;background:#fbfcf3;border:1px solid #d9e1ce;border-radius:3px}.sp-item-row .sp-item{width:34px;height:34px}.sp-slots{text-align:right;margin-top:10px;font:10px system-ui;color:#94a187}.sp-free-note{font:12px system-ui;color:#87977a}.sp-chest-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:7px}.sp-chest-tags span{font:10px system-ui;padding:3px 5px;border-radius:3px;background:#e3e9d8;color:#6c825c}.sp-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:19px}.sp-actions>span{margin-right:auto;font:11px system-ui;color:#859779}.sp-footnote{font:10px/1.6 system-ui;color:#93a086;margin-top:18px}.sp-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #b2c09f;background:#f8f8ec;color:#36522d;border-radius:9px;box-shadow:0 20px 60px #243a2340}.sp-dialog::backdrop{background:#21332166;backdrop-filter:blur(3px)}.sp-dialog header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.sp-dialog h2{margin:0;font:24px var(--pixel-font)}.sp-dialog button{cursor:pointer;color:#48673b;background:#fafbf0;border:1px solid #c3d0b4;border-radius:4px;min-height:35px;font:12px system-ui;padding:7px}.sp-dialog header button{font-size:24px;border:0;background:transparent}.sp-assign-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sp-assign-choices button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;font:11px system-ui}.sp-assign-choices button[aria-pressed=true]{background:#e3eed6;border-color:#60854b}.sp-assign-choices .sp-item{width:45px;height:45px}.sp-blank-icon{height:45px;font:32px system-ui}.sp-dialog textarea{width:100%;box-sizing:border-box;background:#fffef6;border:1px solid #c2d0b2;padding:10px;color:#405e33}.sp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#empty{padding:20px;font:13px system-ui;color:#7e9270}button:focus-visible,.sp-item-row>span:focus-visible,summary:focus-visible{outline:3px solid #9ab777;outline-offset:3px}
@media(min-width:1450px){.sp-title h1{font-size:56px}.sp-categories{gap:15px}.sp-category .sp-item{width:88px;height:88px}.sp-main .sp-category{min-height:182px}}
@media(max-width:1150px){.sp-heading{align-items:flex-start;flex-direction:column;gap:21px}.sp-setup{align-self:stretch;justify-content:flex-end}.sp-title h1{font-size:46px}.sp-title p{font-size:12px}.sp-main{padding:24px}.sp-categories{gap:9px}.sp-category strong{font-size:12px}.sp-category .sp-item{width:64px;height:64px}.sp-category .sp-count{font-size:10px;padding:3px 8px}.sp-main .sp-category{min-height:144px}.sp-chests{gap:10px;padding:14px}}
@media(max-width:760px){.sp-categories{grid-template-columns:repeat(4,minmax(0,1fr))}.sp-chests{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-setup{flex-wrap:wrap;justify-content:flex-start}.sp-setup .sp-primary{margin-left:auto}.sp-title>img{width:60px;height:57px}.sp-setup select{flex:1}.sp-main{padding:20px}.sp-section-head{padding:15px 18px}}
@media(max-width:480px){.sp-main{padding:20px 15px 36px}.sp-heading{margin-top:22px;gap:18px}.sp-title{gap:10px}.sp-title h1{font-size:36px}.sp-title>img{width:53px;height:50px}.sp-title p{font-size:11px;margin-top:5px}.sp-setup{gap:9px;padding:10px}.sp-counter{gap:4px}.sp-counter img{max-width:48px;height:34px}.sp-counter+.sp-counter{padding-left:10px}.sp-counter input{width:58px;font-size:25px}.sp-setup select{flex:1;max-width:none;min-width:100px}.sp-main .sp-setup button{flex:1}.sp-inventory{padding:10px;outline-offset:2px}.sp-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sp-main .sp-category{padding:10px 3px;min-height:126px}.sp-main .sp-category[aria-pressed=true]{padding:9px 2px}.sp-category .sp-item{width:55px;height:55px}.sp-category strong{font-size:11px}.sp-category .sp-count{padding:3px 5px;font-size:9px}.sp-chests{grid-template-columns:1fr;padding:12px}.sp-chest-card{padding:12px}.sp-chest-picture{min-height:115px!important}.sp-main .sp-chest-picture>img{height:100px}.sp-chest-items .sp-item-row>span{width:37px;height:37px}.sp-item-group>strong{font-size:12px}.sp-item-frame{width:45px;height:45px}.sp-item-frame .sp-item{width:40px;height:40px}.sp-actions{flex-wrap:wrap}.sp-actions>span{flex-basis:100%;margin-bottom:3px}.sp-actions>button{flex:1;min-height:42px}.sp-assign-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.sp-section-head h2{font-size:24px}.sp-dialog{padding:16px}.sp-topline{font-size:11px}.sp-main button{min-height:40px}}
.sp-main .sp-use-free{display:flex;flex-direction:column;gap:12px;min-height:230px;background:transparent;border:1px dashed #b5c4a5;border-radius:5px;color:#7e946c;font:12px system-ui}.sp-use-free img{width:95px;height:87px;opacity:.5}.sp-use-free:hover img{opacity:.8}
@media(min-width:1151px){.sp-heading{margin-top:19px;margin-bottom:14px}.sp-main{padding-top:20px}.sp-inventory{padding:14px}.sp-main .sp-category{min-height:148px;padding-top:12px;padding-bottom:10px}.sp-main .sp-category[aria-pressed=true]{padding-top:11px;padding-bottom:9px}.sp-category .sp-item{width:70px;height:70px}.sp-allocation{margin-top:23px}.sp-section-head{padding-top:13px;padding-bottom:13px}}
html body.storage-page .sp-counter input{font:26px var(--pixel-font)!important;width:60px!important}
