/* One collection, one display, one result. Native studio transforms remain intact. */
body.s19-store-page [data-view="store-builder"]{overflow:visible!important}
.s19-store{--s19-yellow:#ffcf49;--s19-blue:#173d81;max-width:1440px!important;width:100%;margin:auto;color:#f4f6fc;padding:20px 24px 100px!important}
.s19-store [hidden],.s19-maker [hidden],.s19-dialog [hidden]{display:none!important}
.s19-store .store-builder-panel{padding:24px!important;border:1px solid #344565!important;background:#101c32!important;border-radius:20px;max-height:none!important;overflow:visible!important}
.s19-title h1{font-size:clamp(25px,3vw,38px);margin:6px 0 12px}.s19-title p,.s19-store p{line-height:1.55}.s19-title small{letter-spacing:.15em;color:#ffcf49}
.s19-store .store-panel-heading{margin:0 0 20px!important}.s19-store .store-panel-heading h2{font-size:24px!important}
.s19-store .store-builder-steps{position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px;margin:24px 0 12px}
.s19-store .store-builder-steps button{min-width:0!important;min-height:60px;white-space:normal!important;display:flex!important;align-items:center;gap:10px;padding:12px!important;color:#edf3ff;border:1px solid #3c517b;background:#152642;border-radius:12px}
.s19-store .store-builder-steps button.is-active{background:#244f9c;color:white;border-color:#8fb8ff}
.s19-store .store-builder-steps b{background:#0d1930;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px}
.s19-store button,.s19-dialog button,.s19-maker button{min-height:44px;cursor:pointer;font:inherit;border-radius:10px;padding:10px 16px;border:1px solid #60769b;background:#20375d;color:#fff}
.s19-store button:disabled,.s19-maker button:disabled{opacity:.5;cursor:default}
.s19-primary,.s19-store .s19-primary,.s19-dialog .s19-primary,.s19-maker .s19-primary{background:#ffcf49!important;color:#14223d!important;border-color:#ffcf49!important;font-weight:750}
.s19-store button:focus-visible,.s19-dialog button:focus-visible{outline:3px solid #9ac8ff;outline-offset:3px}
#s19Status{min-height:24px;color:#cbdcff}.s19-store .is-error{color:#ffb4ab!important}
.s19-entry{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.s19-entry [aria-pressed="true"]{border-color:#ffcf49;box-shadow:0 0 0 1px #ffcf49}
#s10Owned{display:grid;grid-template-columns:minmax(0,3fr) minmax(250px,2fr);gap:24px;align-items:start}
.s19-product-left{min-width:0}.s19-store .store-product-library-tools{display:block!important;margin:0 0 12px}
.s19-store #storeSourceRail{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;overflow:visible!important;max-height:none!important;padding:0!important;width:100%!important;scroll-snap-type:none!important}
.s19-store .store-source-card{display:flex!important;flex-direction:column;min-width:0!important;width:auto!important;max-width:none!important;flex:none!important;overflow:hidden;border:1px solid #344f7b!important;border-radius:14px;background:#172841!important}
.s19-store .store-source-card.is-selected{border-color:#ffcf49!important}
.s19-store .store-source-card .visual{display:block;width:100%!important;aspect-ratio:1!important;height:auto!important;min-height:0!important;padding:0!important;background:#f5f4f0!important;position:relative;border-radius:12px 12px 0 0!important}
.s19-store .store-source-card .visual img{width:100%!important;height:100%!important;object-fit:contain!important;position:absolute;inset:0}
.s19-store .store-source-card>div{padding:12px!important}.s19-store .store-source-card h3{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.s19-store .store-source-card p{font-size:12px;color:#bfcee5}
.s19-store .store-source-card [data-add-store-source]{width:100%;font-size:13px;padding:8px;white-space:normal}
.s19-store .store-readiness{font-size:11px;color:#b6cae9}.s19-store .store-selected-badge{position:absolute;right:6px;top:6px;background:#ffcf49;color:#172842;padding:3px 7px;border-radius:8px}
#s19ProductDetail{position:sticky;top:110px;background:#1a2d4d;border:1px solid #365482;border-radius:16px;padding:20px;min-height:220px}#s19ProductDetail img{width:100%;max-height:430px;object-fit:contain;background:#f3f4f5;border-radius:12px}
.s19-store .store-artwork-library{margin-top:32px}.s19-store .store-artwork-rail{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;overflow:visible!important;max-height:none!important;gap:12px!important}
.s19-store .store-artwork-card{min-width:0!important;width:auto!important}.s19-store .store-artwork-rail img{width:100%!important;aspect-ratio:1;object-fit:contain!important;height:auto!important}
.s19-store .store-artwork-selection{display:flex;flex-wrap:wrap;gap:15px}.s19-store .store-artwork-selection>div:last-of-type>div{display:none}.s19-store .store-artwork-selection [data-s19]{align-self:center}
.s19-store .store-selected-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;overflow:visible!important;max-height:none!important}
.s19-store .store-selected-item{position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;width:auto!important;padding:12px!important;background:#182b4a!important;border-radius:12px!important}
.s19-store .s11-selected-image{display:block;width:100%;aspect-ratio:1;background:#f3f4f5!important;padding:0!important;overflow:hidden}
.s19-store .s11-selected-image img{width:100%!important;height:100%!important;object-fit:contain!important}.s19-store .store-selected-copy{display:grid;gap:6px;margin:8px 0}.s19-store .store-selected-copy small{color:#bfcee5}
.s19-store .store-selected-item .remove{position:absolute;right:16px;top:16px;width:36px;min-height:36px;background:#173b72!important}
.s19-store .store-selected-tray{width:100%!important;max-width:none!important}.s19-store .store-brand-layout{display:block!important;margin-top:24px}.s19-store .store-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.s19-store input,.s19-store textarea,.s19-store select,.s19-dialog input,.s19-dialog textarea{width:100%;max-width:100%;min-height:44px;color:#f4f6ff;background:#0c1930;border:1px solid #49618b;border-radius:8px;padding:10px;font:inherit;box-sizing:border-box}.s19-store label,.s19-dialog label{display:grid;gap:8px}.s19-add{margin-top:16px}
.s19-store .store-studio-view-tabs,.s19-store #studioOnlinePanel,.s19-store #studioVisualPanel{display:none!important}
.s19-store #studioArrangePanel{display:block!important}.s19-store .store-studio-workbench{display:grid!important;grid-template-columns:minmax(140px,1fr) minmax(0,4fr)!important;gap:20px!important;align-items:start}
.s19-store .studio-product-dock{grid-column:1;grid-row:1;max-height:none!important}.s19-store .studio-stage-column{grid-column:2;grid-row:1;min-width:0}.s19-store .studio-inspector{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.s19-store .studio-inspector header,.s19-store .studio-inspector-note{grid-column:1/-1}
.s19-store #studioProductTray{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;max-height:none!important;gap:8px}.s19-store #studioProductTray>*{min-width:0!important;width:auto!important}.s19-store #studioProductTray img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.s19-store .store-studio-canvas{width:100%!important;max-width:none!important;aspect-ratio:3/2!important;height:auto!important;min-height:0!important;overflow:hidden!important}.s19-store .studio-scene-picker{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important}.s19-store .studio-scene-picker button{min-width:0!important;padding:5px!important;font-size:12px!important}.s19-store .studio-scene-picker img{width:100%;aspect-ratio:3/2;object-fit:cover}
.s19-store .studio-stage-toolbar{display:flex;gap:8px;flex-wrap:wrap}.s19-store .studio-history-actions{display:flex;gap:6px;flex-wrap:wrap}.s19-store .studio-history-actions button{font-size:12px;padding:8px}
.s19-review{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,2fr);gap:24px;align-items:start}.s19-review figure{margin:0}.s19-review figure img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:14px}.s19-result-actions{display:flex;flex-wrap:wrap;gap:10px}.s19-result-actions button{flex:1 1 160px}.s19-note{color:#b9cbe8;font-size:13px}.s19-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:28px}.s19-grid button{text-align:left;display:grid;gap:8px;align-content:start;overflow:hidden}.s19-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#f5f6f7;border-radius:8px}.s19-grid span{font-size:12px;overflow-wrap:anywhere;color:#bbcee9}
.s19-extra{margin-top:24px}.s19-extra summary{cursor:pointer;padding:16px;background:#1b3253;border-radius:10px}.s19-extra .store-form-grid{margin-top:14px}
.s19-flowbar{position:sticky;bottom:12px;z-index:45;display:flex;gap:12px;align-items:center;justify-content:space-between;background:#101e38ee;border:1px solid #5273a0;border-radius:15px;padding:12px;margin-top:24px;backdrop-filter:blur(10px)}.s19-flowbar span{font-size:13px;color:#c6d9f5}
.s19-maker,.s19-dialog{color:#f5f7ff;background:#11213c;border:1px solid #607da8;border-radius:18px;padding:0;box-shadow:0 24px 70px #0009;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
.s19-maker{width:1400px;height:calc(100dvh - 32px);overflow:hidden}.s19-maker[open]{display:flex;flex-direction:column}.s19-maker::backdrop,.s19-dialog::backdrop{background:#03091ccb;backdrop-filter:blur(4px)}
.s19-maker header,.s19-maker footer,.s19-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;flex:none}.s19-maker h2,.s19-dialog h2{font-size:20px;margin:0}.s19-maker #s10MakerNotice{margin:0;padding:0 20px 10px;color:#c5d8f4;font-size:13px;flex:none}#s10FrameHost{flex:1;min-height:0}#s10ProductFrame{display:block;border:0;width:100%;height:100%;background:#11213c}.s19-maker footer{justify-content:flex-end;border-top:1px solid #48618a}
.s19-dialog{width:980px;padding:20px;overflow:auto}.s19-dialog header{position:sticky;top:-20px;background:#11213c;z-index:2;padding:0 0 16px}.s19-detail{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);gap:22px}.s19-detail>img{width:100%;max-height:65dvh;object-fit:contain;background:#f5f6f7;border-radius:12px}.s19-detail textarea{min-height:140px}.s19-detail label{margin-bottom:16px}
.s19-store #md15{margin:0 0 22px}.s19-store #md15 .md15-heading p{font-size:14px}.s19-store #md15Result,.s19-store #md15 [data-md="save"],.s19-store #md15 [data-md="pdf"],.s19-store #md15 [data-md="manual"]{display:none!important}.s19-store #md15Grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.s19-store #md15Grid button{min-width:0!important}.s19-store #md15Grid img{object-fit:contain}
@media(max-width:900px){#s10Owned{grid-template-columns:minmax(0,1fr)}#s19ProductDetail{display:none}.s19-store #storeSourceRail{grid-template-columns:repeat(3,minmax(0,1fr))!important}.s19-store .store-artwork-rail{grid-template-columns:repeat(4,minmax(0,1fr))!important}.s19-review{grid-template-columns:1fr}.s19-store .store-selected-list,.s19-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:600px){.s19-store{padding:12px 10px 90px!important}.s19-store .store-builder-panel{padding:14px!important}.s19-store .store-builder-steps button{flex-direction:column!important;gap:5px;font-size:12px!important;padding:8px 3px!important;min-height:76px}.s19-store .store-builder-steps{gap:5px}.s19-store #storeSourceRail,.s19-store .store-selected-list,.s19-store .store-artwork-rail,.s19-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.s19-store .store-form-grid{grid-template-columns:1fr}.s19-store .store-product-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.s19-store .store-studio-workbench{display:flex!important;flex-direction:column}.s19-store .studio-product-dock{width:100%}.s19-store #studioProductTray{display:flex!important;overflow-x:auto!important}.s19-store #studioProductTray>*{flex:0 0 85px}.s19-store .studio-stage-column{width:100%}.s19-store .studio-inspector{width:100%;grid-template-columns:1fr 1fr}.s19-store .studio-scene-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}.s19-store #md15Grid{grid-template-columns:1fr!important}.s19-flowbar{gap:8px;bottom:8px;padding:8px}.s19-flowbar span{display:none}.s19-flowbar button{font-size:13px;padding:10px}.s19-maker{max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.s19-dialog{max-width:calc(100vw - 16px);padding:14px}.s19-detail{grid-template-columns:1fr}.s19-detail>img{max-height:42dvh}.s19-maker h2{font-size:16px}.s19-maker header,.s19-maker footer{padding:10px}.s19-maker footer button{width:100%}.s19-dialog header{top:-14px}.s19-store .studio-scene-picker button{white-space:normal}}

/* V19.1: isolate the store journey from the shared cream/green theme and
   its old three-step guide. Other SavorIP pages keep their existing theme. */
body.s19-store-page,body.s19-store-page #workspaceMain{background:#091528!important;color:#edf3ff!important}
#storeBuilderApp.s19-store{background:#091528!important;color:#edf3ff!important}
#storeBuilderApp.s19-store>.svh-card{display:none!important}
#storeBuilderApp.s19-store .s19-title :is(h1,p){color:#edf3ff!important}
#storeBuilderApp.s19-store .store-builder-steps{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#storeBuilderApp.s19-store .store-builder-steps b{color:inherit!important}
#storeBuilderApp.s19-store :is(.store-panel-heading,.store-selected-tray,.store-artwork-library,.store-artwork-library>header,.store-artwork-selection,.studio-product-dock,.studio-product-dock>header,.studio-inspector,.studio-inspector>header,.studio-stage-column,.store-studio-workbench){background:#13243e!important;color:#edf3ff!important;border-color:#49618b!important}
#storeBuilderApp.s19-store :is(h2,h3,h4,label,legend,.store-selected-copy strong,.store-artwork-total,.store-artwork-selection p,.studio-stage-toolbar>div,.studio-canvas-footer,.studio-gesture-help){color:#edf3ff!important}
#storeBuilderApp.s19-store :is(.store-panel-heading,.store-selected-tray>header,.store-artwork-library>header,.studio-product-dock>header,.studio-inspector>header) :is(p,span,small){color:#c9d9f2!important}
#storeBuilderApp.s19-store .store-form-grid{background:transparent!important;color:#edf3ff!important}
#storeBuilderApp.s19-store :is(input,select,textarea){background:#0b1930!important;color:#f4f6ff!important;-webkit-text-fill-color:#f4f6ff;border-color:#617ba5!important}
#storeBuilderApp.s19-store :is(input,textarea)::placeholder{color:#acbfdc!important;-webkit-text-fill-color:#acbfdc;opacity:1}
#storeBuilderApp.s19-store :is(.store-source-card,.store-selected-item,.store-artwork-card) :is(strong,b,small){color:#edf3ff!important}
#storeBuilderApp.s19-store :is(.store-artwork-card em,.store-artwork-total){background:#21395f!important;color:#fff0bc!important}
#storeBuilderApp.s19-store .store-selected-tray{padding:18px!important;border-radius:14px}
#storeBuilderApp.s19-store :is(#storeSourceRail,.store-artwork-rail,.store-selected-list,.studio-scene-picker,#studioProductTray,#md15Grid){grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-rows:none!important}
#storeBuilderApp.s19-store .studio-product-layer{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#storeBuilderApp.s19-store .s19-review{margin-top:8px}
#storeBuilderApp.s19-store :is(#s19Saved,#s19PreviewStatus){color:#d4e3ff!important}
#storeBuilderApp.s19-store [data-s19-package]{color:#a9d2ff;text-decoration:underline;text-underline-offset:3px}
#storeBuilderApp.s19-store .s19-manufacturers>.r796-makers{margin-top:14px}
@media(max-width:600px){#storeBuilderApp.s19-store .store-selected-tray{padding:10px!important}}

/* V30: visible product groups and deliberate PDF selection. */
.s30-filter{display:flex;gap:8px;overflow-x:auto;padding:6px 0 12px;scrollbar-width:thin}
.s30-filter button{flex:0 0 auto;min-height:44px;border-radius:24px!important}
#storeBuilderApp .s30-filter button[aria-pressed="true"]{background:#ffdc69!important;color:#152341!important;border-color:#ffdc69!important}
.s30-library-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 20px}.s30-library-actions>span{margin-right:auto}
.s30-create-rail{margin:24px 0;padding:20px;border:1px solid #4b648e;border-radius:16px}.s30-create-rail>div{display:flex;flex-wrap:wrap;gap:12px}
.s30-pdf-selection{margin-top:24px}.s30-pdf-selection button{margin:0 10px 10px 0}
.s30-pdf-card{min-width:0;border:1px solid #4b648e;border-radius:14px;padding:10px;background:#13243e}
.s30-pdf-card>label{display:flex!important;gap:8px;align-items:center;margin-bottom:10px!important;font-size:13px;min-height:36px}
#storeBuilderApp .s30-pdf-card input[type="checkbox"]{width:20px!important;height:20px!important;min-height:20px!important;accent-color:#ffdc69}
.s30-pdf-card>button{width:100%;border:0!important;background:transparent!important;padding:0!important}.s30-pdf-card strong{overflow-wrap:anywhere}
.s19-manufacturers>h3{margin-bottom:6px}.s19-manufacturers>p{color:#c9d9f2}
@media(max-width:600px){.s30-library-actions>span{flex-basis:100%}.s30-library-actions>button{flex:1;font-size:12px}.s30-create-rail{padding:12px}.s30-create-rail>div{display:grid;grid-template-columns:1fr}.s30-pdf-card{padding:8px}}
