/* Lantern-lit artisans, jade refining and bronze-bound storage. Compact by design. */
#panel-village .village-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#panel-village .village-services>.village-service-card{position:relative;isolation:isolate;overflow:hidden;min-height:92px;padding:12px 14px;border-image:none;border:1px solid #9d82534f;background:linear-gradient(90deg,#10151aee 12%,#10151ab5 65%,#10151a55),var(--service-scene) center/cover;box-shadow:inset 0 0 0 3px #080c105c,inset 0 1px #f0ce8744,0 5px 12px #0004;transition:border-color .18s,filter .18s}
#panel-village .village-services>.village-service-card:after{content:'';position:absolute;inset:4px;border:1px solid #e4c17c1c;pointer-events:none}
#panel-village .village-services>.village-service-card:hover{border-color:#d4aa67;filter:brightness(1.12)}
#panel-village .village-services>.village-service-card>img{width:43px;height:48px;filter:drop-shadow(0 3px 5px #000)}
#panel-village .village-services strong{font-size:19px;text-shadow:0 2px 4px #000}
#panel-village .village-services small{font-size:12px;color:#ccbea4}
#panel-village>.npc-village-heading{min-height:118px;padding:16px 18px}
#panel-village>.npc-village-heading .npc-scene img{filter:brightness(.9);object-position:center 45%}
#village-shop[data-service-art] .npc-vendor-heading{background:linear-gradient(90deg,#10151ae8,#10151a66),url('/ui/assets/village/services-v2/blacksmith.webp') center 40%/cover}
#village-shop[data-service-art=general] .npc-vendor-heading{background-image:linear-gradient(90deg,#10151ae8,#10151a66),url('/ui/assets/village/services-v2/general.webp')}
#village-shop .npc-vendor-heading .npc-scene{display:none}
#village-shop .npc-vendor-heading{min-height:64px}
#storekeeper-sheet{width:min(760px,calc(100% - 24px));padding:0;overflow:auto}
.service-art-header,#storekeeper-sheet>header{position:relative;min-height:82px;padding:15px 20px!important;background:linear-gradient(90deg,#0c131af2,#10151a77),url('/ui/assets/village/services-v2/storage.webp') center 38%/cover!important;border-bottom:1px solid #a4834666}
#gathering-sheet.alchemist-service>header{background-image:linear-gradient(90deg,#0c131ae8,#10151a66),url('/ui/assets/village/services-v2/alchemist.webp')!important;background-position:center 74%!important}
.alchemist-requirements{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 16px;padding:8px 0 12px;border-bottom:1px solid #a88a4a33}.alchemist-requirements>div{display:flex;flex-direction:column;gap:4px;text-align:center}.alchemist-requirements strong{font:19px Georgia;color:#dfc995}.alchemist-requirements span{font:11px Arial;color:#b7b39d}.alchemist-requirements small{grid-column:1/-1;font:11px Arial;color:#969b8f;margin-top:5px;text-align:center}
#gathering-sheet.alchemist-service .gathering-sheet-body{background:radial-gradient(ellipse at right top,#466a4822,transparent 65%)}
#gathering-sheet.alchemist-service .gathering-help{font-size:13px;line-height:1.5;margin:0 0 14px}
#gathering-sheet.alchemist-service .gather-ore-list>button,#gathering-sheet.alchemist-service .gather-stones>button{background:linear-gradient(125deg,#36483944,#10151ab3);box-shadow:inset 0 1px #d6c58c12}
.storekeeper-tabs{display:flex;gap:6px;padding:12px 16px;border-bottom:1px solid #99824f33;background:#080e14a3}
.storekeeper-tabs>button{flex:1;min-height:40px;padding:8px;font:15px Georgia,serif;background:linear-gradient(#222a2e88,#10151a);border:1px solid #8f794d55}
.storekeeper-tabs>button[aria-selected=true]{background:linear-gradient(115deg,#79532c,#34271a);color:#ffe7b5;border-color:#ba995e;box-shadow:inset 0 1px #eed49955}
.storekeeper-body{padding:14px 18px 18px}.storekeeper-note,.storekeeper-status{font:13px/1.5 Arial;color:#bfb6a1;margin:0 0 12px}.storekeeper-status:empty{display:none}
#storekeeper-sheet #storage-window{border:0;background:none;padding:0}#storekeeper-sheet #storage-window>.section-heading,#storekeeper-sheet #storage-window>.hint{display:none}
#storekeeper-sheet [data-personal-storage]{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
#storekeeper-sheet [data-personal-storage]>.storekeeper-status{grid-column:1/-1}
#storekeeper-sheet #storage-items,#storekeeper-sheet .inventory-grid{--inventory-cell:clamp(38px,7vw,56px);grid-template-columns:repeat(5,var(--inventory-cell));grid-auto-rows:var(--inventory-cell);width:max-content;max-width:100%;gap:0;padding:2px;border:1px solid #857046;box-sizing:content-box;background:#0b1017}
#storekeeper-sheet .slot{background:url('/ui/assets/inventory-slot-frame.svg') center/100% 100% no-repeat;border:0;border-radius:0;padding:4px;min-height:0;width:var(--inventory-cell);height:100%;box-shadow:none;position:relative;touch-action:pan-y}
#storekeeper-sheet .slot img{max-width:100%;max-height:100%;object-fit:contain}#storekeeper-sheet .slot b{position:absolute;bottom:3px;right:5px;font-size:12px;text-shadow:0 1px 3px #000}
#storekeeper-sheet #village-inventory>h3{font:17px Georgia;color:#dbc594;margin:0 0 8px}#storekeeper-sheet .segmented{display:flex;margin:0 0 6px}#storekeeper-sheet .segmented button{flex:1;min-height:30px;padding:4px}
.shop-inbox-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shop-inbox-item{display:flex;align-items:center;gap:12px;padding:10px;text-align:left;min-width:0;background:linear-gradient(125deg,#3b352449,#0c141c);border:1px solid #9a804b55;box-shadow:inset 0 1px #e7c88616}
.shop-inbox-item>span:nth-child(2){flex:1;min-width:0}.shop-inbox-item strong{display:block;font:16px/1.3 Georgia;color:#ecdbb1}.shop-inbox-item small{display:block;font:11px/1.4 Arial;color:#aaa38f;margin-top:5px}.shop-inbox-item i{font:24px Georgia;color:#d6b776}
.shop-inbox-icon{position:relative;display:grid;place-items:center;width:60px;height:78px;flex:none;background:url('/ui/assets/theme/everidle-v1/slot-1.svg') center/100% 100% no-repeat;padding:6px}.shop-inbox-icon img{max-width:46px;max-height:64px;object-fit:contain;filter:drop-shadow(0 3px 4px #000)}.shop-inbox-icon b{position:absolute;bottom:4px;right:7px;font:12px Arial;color:#fff0cb;text-shadow:0 1px 3px #000}
[data-store-more]{display:block;margin:12px auto 0;min-height:36px}
#shop-storage-preview{width:min(450px,calc(100% - 24px));padding:0}.shop-inbox-preview{display:flex;align-items:center;gap:16px;padding:18px}.shop-inbox-preview h3{font:22px/1.3 Georgia;color:#ead4a4;margin:0}.shop-inbox-preview p{font-size:13px;color:#bfb6a1;margin:6px 0}#shop-storage-preview footer{display:flex;gap:8px;padding:12px 18px 18px}#shop-storage-preview footer button{flex:1;min-height:40px}
#panel-itemshop [data-itemshop-storage]{display:flex;align-items:center;gap:6px;padding:6px 10px;font:13px Georgia;min-height:40px;background:linear-gradient(110deg,#36414866,#151b20);border:1px solid #ad8b5055}#panel-itemshop [data-itemshop-storage] img{width:25px;height:28px;object-fit:contain}
@media(max-width:700px){#panel-village .village-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#panel-village .village-services>.village-service-card{min-height:82px;padding:10px;gap:8px}#panel-village .village-services strong{font-size:17px}#panel-village .village-services small{display:none}#panel-village .village-services>.village-service-card>img{width:36px;height:42px}#panel-village>.npc-village-heading{min-height:108px;padding:12px}#storekeeper-sheet [data-personal-storage]{grid-template-columns:1fr;justify-items:center}#storekeeper-sheet [data-personal-storage]>.storekeeper-status{justify-self:start}#storekeeper-sheet #storage-items,#storekeeper-sheet .inventory-grid{--inventory-cell:clamp(40px,15vw,57px)}.storekeeper-body{padding:12px 14px 16px}.shop-inbox-list{grid-template-columns:1fr}.service-art-header,#storekeeper-sheet>header{min-height:72px;padding:12px 16px!important}#panel-itemshop .itemshop-account{flex-wrap:wrap}#panel-itemshop [data-itemshop-storage]{min-height:36px}}
[data-personal-storage][hidden],[data-shop-storage][hidden],[data-store-more][hidden]{display:none!important}
@media(max-width:650px){#panel-itemshop .itemshop-account{display:grid;grid-template-columns:auto auto;gap:6px 8px}#panel-itemshop [data-itemshop-storage]{grid-column:1/-1;grid-row:2;justify-self:end;min-height:30px;padding:3px 8px;font-size:12px}#panel-itemshop [data-itemshop-storage] img{width:21px;height:23px}}
#storekeeper-sheet #storage-items{max-height:none;overflow:visible}
