.store-tabs {display:flex;gap:6px;padding:12px 20px;border-bottom:1px solid #64543d;flex-wrap:wrap;background:#211b14}
.store-tabs .button {flex:1;min-width:88px;min-height:42px}
.store-tabs [aria-pressed=true] {background:#38472f;border-color:#bbce97;color:#f2e9d4}
.courier-portrait.shop-preview{display:block;align-self:start;padding:16px 12px;text-align:center}
.shop-preview h3{font-size:20px;margin:0 0 14px}
.shop-courier-types{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;padding:0;margin:0}
.shop-courier-types legend{width:100%;color:var(--muted);font-size:.8rem;margin-bottom:8px}
.shop-courier-types label{display:grid;grid-template-columns:16px 1fr;align-items:center;gap:3px 8px;min-height:52px;padding:8px 10px;text-align:left;border:1px solid var(--frame-edge);background:var(--panel);cursor:pointer;border-radius:3px}
.shop-courier-types label[data-selected=true]{background:var(--selected);border-color:var(--world-accent);color:var(--accent-text)}
.shop-courier-types input{grid-row:1/3;margin:0;accent-color:var(--world-accent)}
.shop-courier-types small{grid-column:2;color:var(--muted);font-size:.8rem}
.courier-portrait.shop-preview canvas{width:100%;height:auto;max-width:320px;aspect-ratio:10/7;margin:auto}
.shop-preview .shop-courier-capacity{font:600 .85rem/1.4 var(--ui);color:var(--heading-text);margin:0 0 12px;min-height:1.4em}
.shop-courier-route{display:grid;grid-template-columns:auto minmax(24px,1fr) auto;align-items:center;gap:8px;text-align:center;color:var(--muted);font-size:.78rem}
.shop-courier-route>span{display:grid;gap:4px;justify-items:center}
.shop-courier-route [data-current=true]{color:var(--accent-text)}
.shop-courier-route .item-art{--size:24px}
.shop-courier-route progress{width:100%;height:7px;appearance:none;border:1px solid var(--line);background:var(--well);border-radius:2px;accent-color:var(--world-accent)}
.shop-courier-route progress::-webkit-progress-bar{background:var(--well)}
.shop-courier-route progress::-webkit-progress-value{background:var(--world-accent)}
.shop-courier-route progress::-moz-progress-bar{background:var(--world-accent)}
.shop-preview #shopCourierCaption{font:400 .85rem/1.45 var(--ui);min-height:2.9em;margin:12px 0;color:var(--text)}
.shop-preview-actions{display:grid;gap:8px;grid-template-columns:1fr 1fr}
.shop-preview-actions .button{min-height:44px;padding:7px 6px;font-size:.8rem;line-height:1.3;white-space:normal}
.shop-preview-note{display:block;margin-top:10px;color:var(--muted);font-size:.76rem;line-height:1.45}
.premium-details #premiumReview{min-height:44px;margin-block:10px}
.premium-details .premium-price{flex-wrap:wrap;gap:6px;margin-top:14px}
.store-tabs .button:focus-visible,.shop-courier-types label:has(input:focus-visible){outline:2px solid var(--world-accent);outline-offset:3px}
.store-content {padding:24px 26px}
.store-content h3 {font-size:25px;line-height:1.2;margin:0 0 10px}
.store-content h4 {font:700 20px/1.2 Spectral,Georgia,serif;color:#f0dbaf;margin:0 0 10px}
.store-intro {max-width:68ch;line-height:1.5;color:#d6c8ac;margin:0 0 18px}
.store-effects {color:#deebcb;font-variant-numeric:tabular-nums;line-height:1.5;padding:12px 0;border-top:1px solid #64543d;border-bottom:1px solid #64543d;margin:12px 0 18px}
.store-product {display:grid;grid-template-columns:150px minmax(0,1fr) 136px;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid #64543d}
.store-product canvas {width:128px;height:128px;object-fit:contain;image-rendering:pixelated;background:#1b1e16}
.store-product[data-premium=true] {grid-template-columns:188px minmax(0,1fr) 136px}
.store-product[data-premium=true] canvas {width:128px;height:128px;object-fit:contain;justify-self:center}
.skin-preview-controls {display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:12px;padding:14px;margin:18px 0 6px;border:1px solid #897454}
.skin-preview-controls legend {padding:0 6px;color:#f0dbaf;font-weight:700}
.skin-preview-controls label {display:grid;gap:5px;min-width:0;color:#d6c8ac}
.skin-preview-controls select {min-width:0;width:100%;background:#15120e;color:#f2e9d4;border:1px solid #897454;padding:8px;border-radius:3px;font:inherit;min-height:42px}
.store-product .store-product-icon {--size:72px;width:var(--size);height:var(--size);display:block;margin:auto;image-rendering:pixelated}
.store-product-copy p {color:#d6c8ac;line-height:1.5;margin:0;max-width:42ch}
.store-product-action {display:grid;gap:12px;justify-items:stretch;font-variant-numeric:tabular-nums}
.store-product-action strong {color:#edc784;text-align:center}
#storeOriginal {margin-top:18px}
.store-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.store-sandbox {color:#edc784;font-weight:700;border:1px solid #897454;background:#211b14;padding:10px 12px;line-height:1.4}
.store-form {display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) minmax(100px,1fr);gap:12px;align-items:end;margin:16px 0 24px}
.store-form label {display:grid;gap:6px;line-height:1.35;color:#d6c8ac;min-width:0}
.store-form select,.store-form input {width:100%;min-width:0;max-width:100%;box-sizing:border-box;background:#15120e;color:#f2e9d4;padding:10px;border:1px solid #897454;border-radius:3px;font:inherit;font-variant-numeric:tabular-nums;min-height:42px}
.store-form button {grid-column:1/-1;justify-self:end}
#rmtSell {border-top:1px solid #64543d;border-bottom:1px solid #64543d;padding:14px 0}
#rmtSell summary {cursor:pointer;font-weight:700;color:#f0dbaf;min-height:32px}
.store-listing {display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #64543d}
.store-listing .store-product-icon {--size:40px;width:var(--size);height:var(--size);display:block;image-rendering:pixelated}
.store-listing strong,.store-listing small {display:block;line-height:1.4}
.store-listing small {color:#d6c8ac;margin-top:4px}
.store-order {border:1px solid #897454;background:#1b1711;padding:18px;margin:18px 0 26px;overflow-wrap:anywhere}
.store-order h4 {color:#deebcb}
.store-history-row {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0;border-bottom:1px solid #64543d;font-variant-numeric:tabular-nums}
.store-empty {padding:18px 0;color:#d6c8ac;line-height:1.5}
.service-dialog [hidden] {display:none!important}
.service-dialog {scrollbar-color:#897454 #211b14;scrollbar-width:thin}
@media(max-width:600px) {
 .premium-details{order:-1}
 .shop-preview-actions .button{min-width:0}
 #premiumShop button,#premiumShop select,#premiumShop input {min-height:44px}
 #premiumShop .pagination-controls button {width:44px;min-width:44px}
 .store-tabs {padding:10px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .store-tabs .button {min-width:0;font-size:14px;min-height:44px}
 .store-content {padding:18px 14px}
 .store-content h3 {font-size:23px}
 .store-product {grid-template-columns:100px minmax(0,1fr);gap:12px;padding:18px 0}
 .store-product[data-premium=true] {grid-template-columns:128px minmax(0,1fr);gap:12px}
 .store-product[data-premium=true] canvas {width:128px;height:128px;justify-self:center}
 .store-product[data-premium=true] .store-product-copy p {font-size:14px;line-height:1.4}
 .skin-preview-controls {grid-template-columns:1fr 1fr;gap:10px;padding:12px}
 .skin-preview-controls label:nth-of-type(2) {grid-column:1/-1;grid-row:2}
 .store-product canvas {width:128px;height:128px;object-fit:contain}
 .store-product-copy h4 {font-size:20px}
 .store-product-action {grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
 .store-product-action button {min-width:150px}
 .store-form {grid-template-columns:1fr;gap:14px}
 .store-form select,.store-form input {min-height:44px}
 .store-form button {width:100%}
 .store-listing {grid-template-columns:40px minmax(0,1fr)}
 .store-listing button {grid-column:1/-1;justify-self:stretch}
 .store-section-heading {align-items:flex-start}
 .store-order {padding:14px}
}
