/* Shop workspace: choose a type, an NPC, then a compact tab of products. */
.store-root{--store-ink:#193650;--store-muted:#52748e;color:var(--store-ink);background:#eaf4ff;border:1px solid #a7c5e4;border-radius:14px;padding:20px;min-height:440px}
.store-root h2,.store-root h3{color:#16364e}.store-root p,.store-root small{color:#52748e}.store-root button,dialog:has([class^="store-"]) button{background:#fff;border:1px solid #9fc0df;color:#244962;border-radius:7px;font-size:12px;box-shadow:none}.store-root button:hover,dialog:has([class^="store-"]) button:hover{background:#edf4ff;border-color:#4f85c6}.store-root button:focus-visible,dialog:has([class^="store-"]) button:focus-visible{outline:3px solid #418de4;outline-offset:3px}.store-root .primary,dialog:has([class^="store-"]) .primary{background:#087f74!important;border-color:#087f74!important;color:#fff!important}.store-root .primary:hover,dialog:has([class^="store-"]) .primary:hover{background:#096b63!important}.store-root .empty{grid-column:1/-1;color:#57738d}.store-root .empty strong{color:#244962}
:is(.store-root,.store-editor,.store-picker,.store-manager,.store-tab-editor) :is(input,select,textarea){background:#f4f8fe!important;color:#16364e!important;border:1px solid #96bade!important;font-size:12px;min-width:0} :is(.store-root,.store-editor,.store-picker,.store-manager,.store-tab-editor) :is(input,select,textarea):focus{border-color:#377dd0!important;box-shadow:0 0 0 2px #448ce526!important} :is(.store-root,.store-editor,.store-picker,.store-manager,.store-tab-editor) input::placeholder{color:#7390a7}
.store-intro{text-align:center;padding:16px 10px 26px}.store-intro h2{font-size:23px;margin:0 0 9px}.store-intro p{font-size:13px;margin:0}.store-kind-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.store-root .store-kind{padding:38px 30px 25px;border-radius:12px;min-height:275px;text-align:center;transition:transform .15s,border-color .15s}.store-kind:hover{transform:translateY(-2px)}.store-kind-art{display:flex;justify-content:center;align-items:center;gap:20px;height:82px;margin-bottom:27px}.store-kind .store-art{width:66px;height:66px}.store-kind h3{font-size:23px;margin:12px 0}.store-kind p{font-size:13px;margin:0 0 27px}.store-kind>small{display:block;border-top:1px solid #e0eaf5;padding-top:15px;font-size:11px}.store-kind>small span{margin-left:12px}
.store-art{display:inline-flex;align-items:center;justify-content:center;width:36px;height:40px;flex-shrink:0;vertical-align:middle}.store-art img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}.store-art.missing img{display:none}.store-art.missing:after{content:'◇';color:#708ea5;font-size:24px}.store-money-art{display:inline-flex;width:21px;height:23px;flex-shrink:0;align-items:center;justify-content:center}.store-money-art img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.store-nav{display:flex;align-items:center;gap:16px;margin-bottom:18px}.store-nav>div{flex:1;min-width:0}.store-nav h2{font-size:18px;margin:0 0 5px}.store-nav small{font-size:11px}.store-nav button{white-space:nowrap}.store-npcs{background:white;border:1px solid #a8c8e6;border-radius:10px;overflow:hidden}.store-section-bar{padding:12px 16px;background:linear-gradient(100deg,#d6e9fa,#e6e0fb);font-size:13px;font-weight:650;display:flex;justify-content:space-between;gap:12px}.store-section-bar small{font-weight:400;font-size:11px}.store-npc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px;padding:14px}.store-root .store-npc{padding:8px 10px;display:flex;align-items:center;text-align:left;gap:10px;min-width:0}.store-npc>span:last-child{min-width:0}.store-npc b,.store-npc small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-npc b{font-size:12px;line-height:1.6}.store-npc small{font-size:10px;line-height:1.5}.store-root .store-npc.active{background:#e5e2ff;border:1px solid #7164cc;box-shadow:0 0 0 1px #7164cc33}.store-listing{background:white;border:1px solid #a8c8e6;border-radius:10px;margin-top:16px;padding:15px}.store-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:10px;background:#e9f2fc;border-radius:8px}.store-tabs button{border-radius:20px;padding:7px 13px}.store-tabs small{margin-left:9px;opacity:.8}.store-root .store-tabs .active{background:#6050bf;color:#fff;border-color:#6050bf}.store-tabs .active small{color:#fff}.store-list-toolbar{display:flex;gap:8px;align-items:center;margin:15px 0;flex-wrap:wrap}.store-list-toolbar form{display:flex;gap:7px;margin-right:auto;flex:1;min-width:200px;max-width:430px}.store-list-toolbar input{flex:1;width:150px}.store-list-toolbar select{width:110px}.store-list-toolbar>button{white-space:nowrap;padding:9px 12px}.store-result-head{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#668298;margin:12px 0}.store-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;align-items:stretch}.store-root .store-product{padding:12px;text-align:left;background:#f2f7ff;display:flex;flex-direction:column;gap:10px;min-width:0;border:1px solid #b2cce6;border-radius:8px}.store-root .store-product:hover{background:#e8f2ff;border-color:#528dd0}.store-product.is-hidden{opacity:.7;border-style:dashed}.store-product-head{display:flex;align-items:center;gap:10px;min-width:0}.store-product-head>span:last-child,.store-product-head>div{flex:1;min-width:0}.store-product-head b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.store-price{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px;line-height:1.5}.store-price b{font-size:12px;font-variant-numeric:tabular-nums}.store-price>span:last-child{font-size:10px;color:#57738d}.store-option-preview{display:flex;flex-direction:column;border-top:1px dashed #aec7df;padding-top:9px;gap:4px;font-size:11px;line-height:1.55;color:#b03f51;overflow-wrap:anywhere}.store-option-preview small{font-size:10px;color:#668298}.store-card-meta{display:flex;gap:8px;margin-top:auto;padding-top:4px;flex-wrap:wrap}.store-card-meta small{font-size:9px}.store-card-meta .store-warning-label{color:#ae5638}.store-card-meta .store-hidden-label{color:#886f3b}.store-sync-note{font-size:10px;color:#658198;line-height:1.6;padding-top:16px}
/* Same two-column editor and full-width attribute list as the supplied reference. */
dialog:has([class^="store-"]){background:#fff!important;border:1px solid #91b7db!important;color:#193650;padding:20px;width:min(1100px,calc(100% - 28px));max-height:92vh}dialog:has(.store-manager),dialog:has(.store-tab-editor){width:min(650px,calc(100% - 28px))}dialog:has([class^="store-"]) .modal-top{margin:0 0 12px}dialog:has([class^="store-"]) .modal-top .eyebrow{color:#7690a6;font-size:10px}dialog:has([class^="store-"]) .modal-top button{font-size:24px;border:0;background:none}dialog:has([class^="store-"]) :is(h2,h3,b){color:#193650}dialog:has([class^="store-"]) :is(label,small,.muted,p){color:#587b97}dialog:has([class^="store-"]) .error{color:#c53946!important}
.store-editor-title{padding:15px 20px;margin:0 -20px 22px;background:linear-gradient(105deg,#d5e8f9,#e6defc);border-block:1px solid #b4cce5}.store-editor-title h2{font-size:20px;margin:0 0 5px}.store-editor-title small{font-size:11px}.store-editor fieldset{margin:0;padding:0;border:0;min-width:0}.store-editor fieldset:disabled{opacity:.65}.store-editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}.store-preview-panel{background:#f1f7ff;border:1px dashed #729dce;border-radius:9px;padding:18px;min-width:0;position:relative}.store-preview-panel h3{font-size:11px;text-transform:uppercase;margin:-26px 0 18px;background:#5266bd;color:#fff!important;display:table;padding:5px 12px;border-radius:15px;letter-spacing:.3px}.store-preview-card{background:#edf5ff;border:1px solid #618ec8;border-radius:8px;padding:16px;box-shadow:0 5px 16px #3870a50d}.store-preview-card .store-art{width:44px;height:48px}.store-preview-card .store-option-preview{margin-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.store-preview-caption{display:block;margin-top:15px;font-size:10px;line-height:1.6}.store-editor-fields>label{margin:0 0 8px;font-size:11px;text-transform:uppercase;font-weight:650}.store-select-item{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:83px;background:#f1f7ff!important;border:1px dashed #84a8d1!important;text-align:left}.store-select-item small{display:block;margin-top:4px;font-size:10px}.store-select-item .store-art{width:36px;height:40px}.store-editor .form-grid{gap:0 12px;grid-template-columns:1fr 1fr}.store-editor .form-grid label{font-size:11px;margin:12px 0;min-width:0}.store-editor .form-grid input,.store-editor .form-grid select{margin-top:6px}.store-payment-field{display:flex;align-items:center;gap:10px;background:#f4f8fe;border:1px solid #96bade;border-radius:7px;padding-left:12px}.store-payment-field select{flex:1;border:0!important;min-width:0}.store-payment-field .store-money-art{width:28px;height:28px}.store-payment-note{font-size:10px!important;line-height:1.6;margin:6px 0 0!important}.store-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 10px}.store-section-heading h3{font-size:12px;margin:0;text-transform:uppercase}.store-section-heading button{font-size:11px}.store-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#edf5ff;border:1px solid #abc7e3;border-radius:8px;padding:12px;min-height:80px}.store-options-grid>.muted{grid-column:1/-1;align-self:center;text-align:center;font-size:12px}.store-option-row{display:grid;grid-template-columns:minmax(0,1fr) 75px 22px;gap:10px;align-items:center;padding:12px;background:#f7faff;border:1px solid #b1cce6;border-radius:7px}.store-option-row span small{display:block;font-size:10px;margin-bottom:5px}.store-option-row span b{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.store-option-row input{padding:7px;text-align:center;color:#b3374c!important}.store-option-row button{padding:0;border:0!important;color:#c03d4d!important;background:none!important;font-size:20px!important}.store-extra{margin:15px 0 0;border-bottom:1px solid #d7e3ee;padding-bottom:10px}.store-extra summary{color:#547490;font-size:11px}.store-editor .form-actions{display:flex;gap:9px;align-items:center;margin:0 -20px -20px;padding:15px 20px;background:#eff5fc;border-top:1px solid #aac6e3;position:sticky;bottom:-20px;z-index:1}.store-actions-spacer{flex:1}.store-editor .form-actions button{font-size:12px}.store-editor .danger-button{color:#b83d48!important;border-color:#e3b8bf!important}.store-editor .form-error{font-size:12px}.store-picker .store-section-heading{margin-top:0}.store-picker h2{font-size:20px;margin:5px 0}.store-picker .eyebrow{color:#6986a0}.store-picker-search{display:flex;gap:8px;margin:16px 0}.store-picker-search input{flex:1}.store-picker-search select{width:170px}.store-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.store-picker-grid>button.grant-item-choice{background:#f2f7ff;padding:12px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;min-width:0;border:1px solid #b1cbe5;border-radius:8px}.store-picker-grid>button.grant-item-choice:hover{background:#e0edff;border-color:#578ed0}.store-picker-grid b{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.store-picker-grid small{font-size:9px}.store-picker-grid .store-art{width:36px;height:40px}.store-picker .empty{grid-column:1/-1}.store-picker .empty strong{color:#193650}.store-tab-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #d1e0ee}.store-tab-row small{display:block;margin-top:5px}.store-tab-editor textarea{min-height:80px}.store-manager .store-section-heading{margin-top:18px}.store-manager label,.store-tab-editor label{font-size:12px}
@media(min-width:1700px){.store-products{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}.store-npc-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:1000px){.store-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.store-editor-layout{grid-template-columns:1fr 1fr}.store-option-row{grid-template-columns:minmax(0,1fr) 65px 18px;gap:6px;padding:9px}.store-root{padding:14px}.store-npc-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.store-list-toolbar form{max-width:none;flex-basis:100%}.store-kind{padding:25px 15px!important}}
@media(max-width:650px){.store-kind-grid{grid-template-columns:1fr;gap:12px}.store-root .store-kind{min-height:195px;padding:20px!important}.store-kind-art{height:48px;margin-bottom:12px}.store-kind .store-art{width:45px;height:45px}.store-kind h3{font-size:20px}.store-kind p{margin-bottom:15px}.store-nav{flex-wrap:wrap;gap:10px}.store-nav>div{order:-1;flex-basis:100%}.store-nav h2{font-size:18px}.store-npc-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:7px}.store-root .store-npc{padding:7px;gap:7px}.store-npc .store-art{width:28px;height:33px}.store-npc b{font-size:11px}.store-npc small{font-size:9px}.store-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.store-root .store-product{padding:9px}.store-product-head{gap:6px;align-items:start}.store-product .store-art{width:26px;height:30px}.store-product-head b{font-size:11px}.store-price>span:last-child{font-size:9px}.store-option-preview{font-size:10px}.store-result-head{font-size:10px}.store-listing{padding:9px}.store-list-toolbar>button{font-size:10px;padding:8px}.store-tabs{gap:5px;padding:7px}.store-tabs button{font-size:10px;padding:6px 9px}.store-editor-layout{grid-template-columns:1fr}.store-preview-panel{padding:14px;margin-top:7px}.store-preview-card .store-option-preview{grid-template-columns:1fr 1fr}.store-editor-fields{margin-top:3px}.store-options-grid{grid-template-columns:1fr;padding:8px}.store-editor .form-actions{flex-wrap:wrap;padding:12px}.store-editor .form-actions button{font-size:11px;padding:8px}.store-actions-spacer{display:none}.store-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.store-picker-search{flex-wrap:wrap}.store-picker-search input{flex-basis:100%}.store-picker-search select{flex:1}.store-section-heading{flex-wrap:wrap}.store-picker h2{font-size:18px}.store-root{padding:10px}.store-intro h2{font-size:21px}}