@font-face{font-family:"Noto Sans Thai";src:url("../vendor/ffstock-ui/fonts/NotoSansThai-Variable.ttf") format("truetype");font-display:swap;font-weight:100 900}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Noto Sans Thai",system-ui,sans-serif;color:#10233d;background:#f5f8fc}button,input,select{font:inherit}button,a{touch-action:manipulation}.skip-link{position:fixed;left:12px;top:-80px;z-index:1000;background:#fff;padding:10px 14px}.skip-link:focus{top:12px}.auth-screen{min-height:100vh;display:grid;place-items:center;background:#071b36;padding:24px}.auth-card{width:min(440px,100%);background:#fff;border-radius:14px;padding:28px;box-shadow:0 20px 60px #00152d55}.auth-brand,.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.auth-brand{justify-content:center;margin-bottom:22px}.auth-brand .brand-mark,.brand .brand-mark{width:34px;color:#d99b35}.brand-mark svg{width:100%;height:42px;fill:none;stroke:currentColor;stroke-width:1.7}.auth-brand strong,.brand strong{display:block;letter-spacing:.08em}.auth-brand small,.brand small{display:block;font-size:10px;letter-spacing:.22em}.auth-form{display:grid;gap:14px}.auth-form header p,.auth-form header h1,.auth-form header span{margin:0}.auth-form header p{color:#1559b7;font-weight:800;font-size:12px}.auth-form header h1{font-size:24px;margin:3px 0}.auth-form header span{color:#67758a}.auth-form label{display:grid;gap:5px;font-weight:700;font-size:13px}.auth-form input{border:1px solid #cdd8e8;border-radius:8px;padding:10px}.auth-loading{text-align:center}.spinner{display:inline-block;width:26px;height:26px;border:3px solid #dbe5f1;border-top-color:#1559b7;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.feedback{margin-top:12px;padding:10px;border-radius:8px;background:#fff1f0;color:#b42318}.grouping-app{min-height:100vh}.side-rail{position:fixed;inset:0 auto 42px 0;width:224px;background:#fff;border-right:1px solid #dde5ef;padding:20px 12px;z-index:20}.brand{height:54px;padding:0 10px;margin-bottom:18px}.side-nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:8px;color:#34445a;text-decoration:none;font-weight:650;font-size:14px}.nav-item svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}.nav-item.active{background:#eef4fd;color:#124fa8;box-shadow:inset 3px 0 #1559b7}.rail-help{position:absolute;left:16px;right:16px;bottom:22px;border:1px solid #dce6f2;background:#f8fbff;border-radius:9px;padding:12px;font-size:12px}.rail-help strong{display:block;color:#1559b7}.rail-help p{margin:4px 0 0;line-height:1.65}.workspace{margin-left:224px;min-width:0}.topbar{height:68px;background:#071b36;color:#fff;display:flex;align-items:center;gap:18px;padding:0 24px;position:sticky;top:0;z-index:15}.menu-toggle{display:none;background:none;border:0}.global-search{width:min(660px,56vw);height:42px;background:#fff;border-radius:8px;display:flex;align-items:center;gap:10px;padding:0 13px;color:#69778a}.global-search svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.global-search input{border:0;outline:0;min-width:0;flex:1;color:#10233d}.global-search kbd{font-size:11px;border:1px solid #dce4ef;border-radius:5px;padding:2px 6px}.user-menu{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px}.user-menu strong,.user-menu small{display:block}.user-menu small{opacity:.72}.user-menu button{background:transparent;border:0;color:#fff;cursor:pointer}.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8eef7;color:#0d2a50;font-weight:800}.grouping-main{height:calc(100vh - 110px);padding:18px 20px 0;overflow:hidden}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.page-heading h1{margin:0;font-size:28px;letter-spacing:-.02em}.page-heading p{margin:2px 0 0;color:#5b6b80;font-size:13px}.summary-strip{display:flex;gap:8px}.summary-strip span{min-width:108px;background:#fff;border:1px solid #dbe4ef;border-radius:8px;padding:7px 10px;font-size:11px;color:#657489}.summary-strip strong{font-size:17px;color:#0f2f57;margin-right:4px}.grouping-board{display:grid;grid-template-columns:minmax(280px,330px) minmax(460px,1fr) minmax(300px,360px);height:calc(100% - 64px);border:1px solid #d7e1ed;border-radius:10px 10px 0 0;overflow:hidden;background:#fff}.board-panel{min-width:0;overflow:hidden}.queue-panel{border-right:1px solid #dbe4ef;display:grid;grid-template-rows:auto auto 1fr}.queue-panel>header,.canvas-toolbar{padding:14px 16px 10px}.queue-panel header div{display:flex;align-items:center;justify-content:space-between}.queue-panel h2,.canvas-toolbar h2{margin:0;font-size:17px}.queue-panel p,.canvas-toolbar p{margin:2px 0 0;color:#6b788a;font-size:11px}.count-badge{background:#e9f1fd;color:#1559b7;border-radius:6px;padding:3px 7px;font-size:11px;font-weight:800}.queue-drop{margin:0 12px 8px;border:1px dashed #aabbd1;border-radius:7px;padding:7px;text-align:center;color:#5f7188;font-size:11px}.queue-drop svg{width:14px;height:14px;vertical-align:-2px;margin-right:5px;fill:none;stroke:currentColor;stroke-width:2}.queue-list{overflow:auto;padding:0 10px 18px;display:grid;align-content:start;gap:7px}.listing-card{display:grid;grid-template-columns:56px 1fr auto;gap:9px;background:#fff;border:1px solid #d9e3ef;border-radius:8px;padding:7px;text-align:left;color:inherit;cursor:grab;min-width:0}.listing-card:hover,.listing-card.selected{border-color:#2a67bd;box-shadow:0 0 0 1px #2a67bd22}.listing-card.dragging{opacity:.45}.listing-thumb{width:56px;height:56px;border-radius:6px;background:#f2f5f8;overflow:hidden;display:grid;place-items:center}.listing-thumb img{width:100%;height:100%;object-fit:cover}.listing-thumb span{font-size:9px;color:#8994a3}.listing-copy{min-width:0}.listing-copy b{display:block;color:#1559b7;font-size:11px}.listing-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.38;margin:2px 0 4px}.listing-meta{display:flex;gap:8px;color:#637186;font-size:10px}.listing-actions{display:grid;align-content:space-between;justify-items:end}.drag-handle{color:#708095;font-weight:900}.move-button{border:0;background:#eef4fd;color:#1559b7;border-radius:5px;padding:3px 6px;font-size:10px;cursor:pointer}.canvas-panel{display:grid;grid-template-rows:auto auto 1fr;background:#f8fafd}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e8f1}.outline-button,.quiet-button,.primary-button{border-radius:7px;padding:8px 12px;cursor:pointer;font-weight:750}.outline-button,.quiet-button{background:#fff;border:1px solid #b8c9dd;color:#174d94}.primary-button{border:1px solid #1559b7;background:#1559b7;color:#fff}.category-tabs{display:flex;gap:5px;padding:9px 12px;overflow:auto;border-bottom:1px solid #dfe7f1;background:#fff}.category-tab{white-space:nowrap;border:1px solid #d8e2ee;background:#fff;border-radius:7px;padding:6px 9px;color:#44546a;font-size:11px;cursor:pointer}.category-tab b{margin-left:4px;color:#1559b7}.category-tab.active{background:#1559b7;border-color:#1559b7;color:#fff}.category-tab.active b{color:#fff}.category-canvas{overflow:auto;padding:12px}.category-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.category-header h3{margin:0;font-size:16px}.category-header p{margin:1px 0 0;color:#69778a;font-size:11px}.category-drop{border:1px dashed #8fa8c7;background:#fff;border-radius:8px;padding:10px;text-align:center;color:#49627f;font-size:11px;margin-bottom:10px}.category-drop.drag-over,.group-card.drag-over,.queue-drop.drag-over{border-color:#1559b7;background:#edf5ff;color:#124fa8}.loose-section{background:#fff;border:1px solid #dbe4ef;border-radius:8px;margin-bottom:10px}.loose-section summary{cursor:pointer;padding:9px 11px;font-size:12px;font-weight:800}.loose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 8px 8px}.group-list{display:grid;gap:8px}.group-card{background:#fff;border:1px solid #d9e3ef;border-radius:8px;padding:9px}.group-card.confirmed{border-color:#a8d7b8}.group-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}.group-head strong{min-width:0;flex:1;font-size:13px}.status-pill{border-radius:6px;padding:3px 7px;font-size:10px;font-weight:800;background:#fff3dd;color:#a45b00}.status-pill.confirmed{background:#e8f7ed;color:#19723b}.group-head button{border:0;background:transparent;color:#1559b7;cursor:pointer;font-size:11px}.group-members{display:grid;gap:4px;min-height:36px}.group-member{display:grid;grid-template-columns:1fr auto;align-items:center;border:1px solid #e1e7ef;border-radius:6px;padding:6px 8px;background:#fbfcfe;font-size:11px;cursor:grab}.group-member b{color:#1559b7}.empty-group{border:1px dashed #c4d0de;border-radius:6px;padding:10px;text-align:center;color:#77869a;font-size:10px}.group-footer{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.group-footer small{color:#728096}.confirm-group{border:1px solid #1559b7;background:#fff;color:#1559b7;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer}.confirm-group:disabled{opacity:.45;cursor:not-allowed}.inspector-panel{border-left:1px solid #dbe4ef;background:#fff;overflow:auto}.inspector-empty{height:100%;display:grid;place-content:center;text-align:center;padding:28px;color:#6f7d8e}.inspector-empty svg{width:32px;height:32px;margin:auto;fill:none;stroke:#8aa0bc;stroke-width:1.7}.inspector-empty strong{margin-top:10px;color:#263b55}.inspector-empty span{font-size:11px;line-height:1.6}.inspector{padding:16px}.inspector h2{font-size:16px;margin:8px 0 2px}.inspector-cover{height:170px;border-radius:8px;background:#f1f4f8;display:grid;place-items:center;overflow:hidden}.inspector-cover img{width:100%;height:100%;object-fit:contain}.inspector-item{color:#1559b7;font-size:12px;font-weight:800}.inspector-title{font-size:13px;line-height:1.55;margin:3px 0 10px}.inspector-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.inspector-facts span{border:1px solid #e0e7ef;border-radius:7px;padding:7px;font-size:10px;color:#6c798a}.inspector-facts b{display:block;color:#203650;font-size:13px}.suggestion-box{border-top:1px solid #dce4ee;padding-top:12px;margin-top:12px}.suggestion-box h3{font-size:13px;margin:0}.suggestion-box p{font-size:10px;color:#9a620d;background:#fff7e7;border:1px solid #f2d495;padding:7px;border-radius:6px}.sku-list{display:flex;flex-wrap:wrap;gap:4px}.sku-list code{font-size:9px;background:#eef3f8;padding:3px 5px;border-radius:4px}.inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.inspector-actions a{text-align:center;text-decoration:none;border:1px solid #ee5b2d;color:#d94719;border-radius:7px;padding:8px;font-size:11px;font-weight:800}.save-bar{position:fixed;left:224px;right:0;bottom:0;height:42px;background:#fff;border-top:1px solid #d5deea;display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:18;font-size:11px}.save-bar i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2a9b57;margin-right:5px}.save-bar strong{color:#1559b7}.mobile-view-switch{display:none}.form-dialog{border:0;border-radius:12px;padding:0;width:min(460px,calc(100% - 28px));box-shadow:0 20px 70px #071b3650}.form-dialog::backdrop{background:#071b3673}.form-dialog form{padding:18px;display:grid;gap:13px}.form-dialog header{display:flex;align-items:start;justify-content:space-between}.form-dialog header p,.form-dialog header h2{margin:0}.form-dialog header p{font-size:10px;color:#1559b7;font-weight:800}.form-dialog header h2{font-size:20px}.form-dialog header button{border:0;background:transparent;font-size:22px}.form-dialog label{display:grid;gap:5px;font-size:12px;font-weight:750}.form-dialog input,.form-dialog select{border:1px solid #cbd7e6;border-radius:7px;padding:9px;background:#fff}.form-dialog>form>p{font-size:11px;color:#6b788a;margin:0}.form-dialog footer{display:flex;justify-content:flex-end;gap:7px}.toast-region{position:fixed;right:18px;bottom:54px;z-index:100;display:grid;gap:7px}.toast-message{background:#0f2c50;color:#fff;border-radius:8px;padding:10px 12px;font-size:12px;box-shadow:0 10px 30px #071b3630}.toast-message.error{background:#a92828}.toast-message button{border:0;background:transparent;color:#8fc0ff;font-weight:800;margin-left:10px;cursor:pointer}.empty-state{padding:28px;text-align:center;color:#758397;font-size:12px}.loading-card{height:76px;border-radius:8px;background:linear-gradient(90deg,#edf1f6,#f8fafc,#edf1f6);background-size:200% 100%;animation:loading 1.4s infinite}@keyframes loading{to{background-position:-200% 0}}.rail-overlay{display:none}
@media(max-width:1180px){.grouping-board{grid-template-columns:300px minmax(420px,1fr)}.inspector-panel{position:fixed;right:0;top:68px;bottom:42px;width:360px;z-index:14;box-shadow:-12px 0 32px #071b3620;transform:translateX(100%);transition:transform .2s}.inspector-panel.open{transform:none}.loose-grid{grid-template-columns:1fr}}
@media(max-width:760px){.side-rail{transform:translateX(-100%);transition:transform .2s}.side-rail.open{transform:none}.rail-overlay{position:fixed;inset:0;z-index:19;border:0;background:#071b365e}.rail-overlay.show{display:block}.workspace{margin-left:0}.save-bar{left:0}.topbar{height:60px;padding:0 10px;gap:9px}.menu-toggle{display:grid;width:34px;height:34px;padding:8px;gap:4px}.menu-toggle span{display:block;height:2px;background:#fff}.global-search{width:auto;flex:1;height:38px}.global-search kbd,.user-menu>span:not(.user-avatar){display:none}.grouping-main{height:calc(100vh - 102px);padding:10px 10px 0}.page-heading{align-items:start;margin-bottom:8px}.page-heading h1{font-size:21px}.page-heading p{font-size:11px}.summary-strip span:not(:first-child){display:none}.summary-strip span{min-width:auto}.mobile-view-switch{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:7px;background:#e8eef6;border-radius:7px;padding:3px}.mobile-view-switch button{border:0;background:transparent;border-radius:5px;padding:6px;color:#5d6c80}.mobile-view-switch button.active{background:#fff;color:#1559b7;font-weight:800}.grouping-board{display:block;height:calc(100% - 92px);border-radius:8px}.board-panel{height:100%}.board-panel:not(.mobile-active){display:none}.queue-panel{border:0}.canvas-panel{grid-template-rows:auto auto 1fr}.inspector-panel{position:static;width:auto;transform:none!important;box-shadow:none;border:0}.canvas-toolbar{padding:10px}.category-tabs{padding:7px}.category-canvas{padding:8px}.save-bar{height:42px;padding:0 10px}.save-bar span{display:none}.toast-region{left:10px;right:10px}.inspector-actions{position:sticky;bottom:0;background:#fff;padding:8px 0}.listing-card{grid-template-columns:52px 1fr auto}.listing-thumb{width:52px;height:52px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Shared, database-driven application navigation. */
.app-nav-divider{height:1px;margin:9px 10px;background:#e2e8f1}.app-nav-group{display:grid;gap:3px}.app-nav-group-title{display:flex;align-items:center;gap:8px;padding:8px 10px 4px calc(12px + var(--nav-depth,0) * 12px);color:#8190a4;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.app-nav-group-title svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.nav-item[data-menu-depth]{padding-left:calc(12px + var(--nav-depth,0) * 14px)}
.nav-item[data-menu-depth="1"]{padding-left:26px}.nav-item[data-menu-depth="2"]{padding-left:40px}.nav-item[data-menu-depth="3"]{padding-left:54px}.app-nav-group-title[data-menu-depth="1"]{padding-left:24px}.app-nav-group-title[data-menu-depth="2"]{padding-left:36px}.app-nav-group-title[data-menu-depth="3"]{padding-left:48px}
.page-title-row{display:flex;align-items:center;gap:8px}.page-info-balloon{position:relative}.page-info-balloon>button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #b8c9dd;border-radius:50%;background:#fff;color:#1559b7;cursor:help}.page-info-balloon>button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.page-info-balloon>button:hover,.page-info-balloon>button:focus-visible{border-color:#3977c3;background:#eef5ff;outline:2px solid #72a0db33;outline-offset:2px}.page-info-balloon-content{display:none;position:absolute;left:0;top:36px;z-index:60;width:min(470px,calc(100vw - 300px));border:1px solid #c9d8ea;border-radius:10px;background:#fff;padding:12px 14px;box-shadow:0 16px 40px #071b3630;color:#50647d}.page-info-balloon:hover .page-info-balloon-content,.page-info-balloon:focus-within .page-info-balloon-content{display:block}.page-info-balloon-content::before{content:"";position:absolute;top:-6px;left:8px;width:10px;height:10px;border-left:1px solid #c9d8ea;border-top:1px solid #c9d8ea;background:#fff;transform:rotate(45deg)}.page-info-balloon-content strong{display:block;color:#173c68;font-size:11px}.page-info-balloon-content p{margin:5px 0 0!important;color:#5b6b80!important;font-size:10px!important;line-height:1.65}.page-info-balloon-content b{color:#174d94}
@media(max-width:760px){.page-info-balloon-content{position:fixed;left:12px;right:12px;top:118px;width:auto}.page-info-balloon-content::before{display:none}.page-info-balloon>button{width:26px;height:26px}.page-title-row{gap:6px}}

/* Unified catalog + marketplace mapping workspace */
.vision-guide{color:#365b8a!important}.vision-guide b{color:#113f78}.summary-strip{flex-wrap:nowrap}.summary-strip span{min-width:94px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));gap:9px;align-items:start}.product-card{position:relative;min-width:0;background:#fff;border:1px solid #d8e3ef;border-radius:9px;padding:7px;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}.product-card:hover,.product-card.selected{border-color:#2465bd;box-shadow:0 0 0 2px #2465bd18}.product-card.drag-over{border-color:#1559b7;background:#edf5ff;box-shadow:0 0 0 3px #1559b72a;transform:translateY(-2px)}.product-thumb{height:92px;border-radius:7px;background:#f1f4f8;display:grid;place-items:center;overflow:hidden}.product-thumb img{width:100%;height:100%;object-fit:contain;pointer-events:none}.product-thumb span{font-size:10px;color:#8994a3}.product-copy{padding:7px 3px 2px}.product-code{display:block;color:#1559b7;font-size:10px;font-weight:850;letter-spacing:.04em}.product-copy h4{font-size:12px;line-height:1.4;margin:2px 0 5px;min-height:34px}.product-badges{display:flex;gap:4px;flex-wrap:wrap}.product-badges span{font-size:9px;border-radius:5px;background:#edf3fb;color:#33577f;padding:2px 5px}.product-copy p{font-size:9px;color:#5a6c81;line-height:1.4;margin:5px 0 0}.product-drop-hint{display:none;position:absolute;inset:6px;border:2px dashed #2465bd;border-radius:7px;background:#edf5fff2;place-items:center;color:#124fa8;font-size:11px;font-weight:850}.pointer-drag-active .product-card .product-drop-hint{display:grid}.category-drop svg{vertical-align:-3px}.category-drop.drop-ready{background:#fbfdff}.channel-listing{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:7px;border:1px solid #e0e7ef;border-radius:7px;padding:6px;background:#fbfcfe;font-size:10px;cursor:grab}.channel-listing .listing-thumb{width:44px;height:44px}.channel-copy{min-width:0;display:grid}.channel-copy b{color:#1559b7}.channel-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-listing a{white-space:nowrap;text-decoration:none;color:#1559b7;font-weight:800}.inspector .eyebrow{color:#1559b7;font-size:9px;font-weight:900;letter-spacing:.12em;margin:9px 0 0}.inspector-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #dde6f0;margin:13px -16px 0;padding:0 12px}.inspector-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 3px;font-size:9px;color:#607086;cursor:pointer}.inspector-tabs button.active{color:#1559b7;border-bottom-color:#1559b7;font-weight:850}.inspector-section{padding-top:12px}.inspector-section h3{font-size:13px;margin:0 0 8px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title span{font-size:10px;color:#1559b7;font-weight:800}.human-note,.vision-card{font-size:10px;line-height:1.5;background:#eef5ff;border:1px solid #cfe0f6;color:#31577e;padding:7px;border-radius:6px}.vision-card{display:grid;gap:3px;margin:8px 0 12px}.sku-table{display:grid;gap:4px;max-height:460px;overflow:auto}.sku-table>div{display:grid;grid-template-columns:minmax(98px,1fr) minmax(100px,1.4fr);gap:2px 7px;border:1px solid #e1e8f1;border-radius:6px;padding:6px}.sku-table code{font-size:9px;color:#1559b7;font-weight:800}.sku-table span{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sku-table b{grid-column:1/-1;color:#66758a;font-size:8px}.channel-list{display:grid;gap:6px}.coming-platforms{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.coming-platforms span{border:1px dashed #cad6e4;border-radius:6px;padding:7px;text-align:center;font-size:9px;color:#768598}.mini-channel-list{display:grid;gap:5px}.mini-channel-list button{border:1px solid #dce5ef;background:#fff;border-radius:6px;padding:7px;text-align:left;color:#1559b7;font-size:10px;cursor:pointer}.mini-channel-list>span{font-size:10px;color:#7a8797}.primary-link{display:block;text-align:center;text-decoration:none;background:#1559b7;color:#fff;border-radius:7px;padding:9px;font-size:11px;font-weight:800}.loose-section:not([open]){margin-bottom:10px}.loose-section[open]{max-height:250px;overflow:auto}
@media(max-width:1500px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.summary-strip span{min-width:82px}.summary-strip strong{font-size:15px}}
@media(max-width:760px){.page-heading>div:first-child{min-width:0}.vision-guide{display:none}.summary-strip span{display:none!important}.summary-strip span:nth-child(3){display:block!important}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-thumb{height:88px}.product-card{padding:6px}.product-copy h4{font-size:11px}.inspector-tabs{position:sticky;top:0;background:#fff;z-index:2}.channel-listing{grid-template-columns:42px 1fr}.channel-listing>a{grid-column:2}.sku-table{max-height:none}}

/* Shopee source data, live availability and imported product media */
.sold-out-summary{background:#fff3e7!important;color:#9a4b10!important}.sold-out-summary strong{color:#b5520b!important}.availability-badge{display:inline-flex;width:max-content;max-width:100%;margin-top:4px;border-radius:999px;padding:2px 6px;font-size:8px;font-weight:850;line-height:1.35;background:#eef2f6;color:#657386}.availability-badge.available{background:#e8f7ed;color:#23703e}.availability-badge.sold_out{background:#fff0df;color:#a84d0a}.availability-badge.unavailable,.availability-badge.error{background:#fdebec;color:#a22f35}.listing-card.sold-out{border-color:#e9b57c;background:#fffaf4}.product-badges .sold-out{background:#fff0df;color:#a84d0a}.sold-out-pile{margin:0 0 9px;border:1px solid #efc08c;border-radius:8px;background:#fffaf4;overflow:hidden}.sold-out-pile>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;background:#fff1e0;color:#914108;font-size:11px;font-weight:850;cursor:pointer}.sold-out-pile>summary b{border-radius:999px;background:#fff;padding:2px 7px}.sold-out-pile>p{margin:0;padding:6px 9px;color:#8c633d;font-size:9px;line-height:1.4}.sold-out-list{display:grid;gap:6px;padding:0 6px 6px}.active-queue>header{display:flex;justify-content:space-between;align-items:center;padding:3px 2px 6px;color:#526279;font-size:10px}.active-queue{display:grid;gap:6px}.detail-loading{min-height:82px;display:flex;align-items:center;justify-content:center;gap:7px;color:#67768a;font-size:10px}.data-title{margin-top:14px;padding-top:10px;border-top:1px solid #e2e9f1}.marketplace-records{display:grid;gap:7px}.marketplace-record{border:1px solid #dbe5f0;border-radius:7px;background:#fff;overflow:hidden}.marketplace-record>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;background:#f5f8fc;cursor:pointer}.marketplace-record>summary span{display:grid;min-width:0}.marketplace-record>summary b{font-size:10px;color:#1559b7}.marketplace-record>summary small{font-size:8px;color:#708095}.marketplace-record>summary strong{max-width:45%;font-size:8px;color:#37714a;text-align:right}.marketplace-table-wrap{max-height:310px;overflow:auto;overscroll-behavior:contain}.marketplace-table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:8px}.marketplace-table-wrap th,.marketplace-table-wrap td{max-width:190px;padding:5px 6px;border-right:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.marketplace-table-wrap th{position:sticky;top:0;z-index:2;background:#eaf1f9;color:#294d76;font-weight:850}.marketplace-table-wrap th:first-child,.marketplace-table-wrap td:first-child{position:sticky;left:0;z-index:1;background:#f8fafc}.marketplace-table-wrap th:first-child{z-index:3;background:#dfeaf6}.marketplace-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:420px;overflow:auto;overscroll-behavior:contain;margin-bottom:8px}.marketplace-media-grid a{min-width:0;border:1px solid #dfe7f0;border-radius:7px;background:#fff;overflow:hidden;text-decoration:none}.marketplace-media-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#f1f4f7}.marketplace-media-grid span{display:block;padding:4px;font-size:7px;color:#5e6d80;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-status-card{display:grid;gap:2px;border:1px solid #d8e4ef;border-left:4px solid #7890aa;border-radius:7px;padding:8px;margin-bottom:8px;background:#f7f9fc}.channel-status-card strong{font-size:11px}.channel-status-card span{font-size:8px;color:#6d7c90}.channel-status-card.available{border-left-color:#2d914e;background:#f1faf4}.channel-status-card.sold_out{border-left-color:#d36b17;background:#fff7ed}.channel-status-card.unavailable,.channel-status-card.error{border-left-color:#b73b42;background:#fff3f3}.empty-state.error{color:#a22f35}.inspector-section>.primary-link+.coming-platforms{margin-top:8px}
@media(max-width:760px){.summary-strip span.sold-out-summary{display:block!important}.marketplace-table-wrap{max-height:340px}.marketplace-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:360px}.sold-out-pile>summary{font-size:10px}}

.sku-db-note{display:grid;gap:2px;margin:0 0 8px}.sku-db-note strong{font-size:10px;color:#174f94}.sku-db-note span{font-size:8px;color:#5a6f89}.sku-db-note small{font-size:8px;color:#7a5b31}.marketplace-sku-records{display:grid;gap:8px}.marketplace-sku-listing{border:1px solid #dbe5f0;border-radius:8px;background:#f8fafc;overflow:hidden}.marketplace-sku-listing>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:#edf4fc;border-bottom:1px solid #dbe5f0}.marketplace-sku-listing>header span{display:grid;min-width:0}.marketplace-sku-listing>header b{font-size:10px;color:#1559b7}.marketplace-sku-listing>header small{font-size:8px;color:#6b7d92}.marketplace-sku-listing>header>strong{max-width:44%;font-size:8px;color:#2f7547;text-align:right}.sku-record-list{display:grid;gap:6px;padding:6px}.sku-record{border:1px solid #dfe7f0;border-radius:7px;background:#fff;overflow:hidden}.sku-record>summary{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:7px;cursor:pointer;list-style:none}.sku-record>summary::-webkit-details-marker{display:none}.sku-record>summary>span:first-child{display:grid;min-width:0}.sku-record>summary b{font-size:10px;color:#172b47;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sku-record>summary small{font-size:8px;color:#718096;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sku-summary-price{display:grid;text-align:right;flex:0 0 auto}.sku-summary-price strong{font-size:10px!important;color:#1559b7!important}.sku-record[open]>summary{background:#f5f9fe;border-bottom:1px solid #e0e8f1}.sku-record-body{display:grid;gap:9px;padding:8px}.sku-record-body section>h4{margin:0 0 5px;font-size:9px;color:#31577e}.sku-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0}.sku-field{min-width:0;border:1px solid #e5ebf2;border-radius:6px;padding:5px;background:#fff}.sku-field dt{font-size:7px;color:#75849a}.sku-field dd{margin:1px 0 0;font-size:9px;font-weight:750;color:#1d2f48;line-height:1.35;overflow-wrap:anywhere}.sku-field.identifier dd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#1559b7}.sku-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.sku-price-field{display:grid;gap:1px;border:1px solid #e2e9f1;border-radius:6px;padding:5px;background:#fff}.sku-price-field span{font-size:7px;color:#728299}.sku-price-field strong{font-size:10px;color:#263d5d}.sku-price-field small{font-size:7px;color:#4d7c5b}.sku-price-field.emphasis{border-color:#b9d4f4;background:#edf6ff}.sku-price-field.emphasis strong{color:#1559b7}.sku-stock-source{display:grid!important;grid-template-columns:1fr 1fr;gap:5px}.sku-stock-source>span{display:grid;border-radius:6px;padding:6px;background:#fff7e9;border:1px solid #f0d5a6}.sku-stock-source>span:last-child{background:#f6f8fb;border-color:#e1e7ef}.sku-stock-source small{font-size:7px;color:#80613a}.sku-stock-source strong{font-size:9px;color:#4d3b25}.inspector-section>.sku-table+.sku-db-note{margin-top:8px}
@media(max-width:760px){.marketplace-sku-listing>header{padding:7px}.sku-record-list{padding:5px}.sku-record-body{padding:7px}.sku-field-grid,.sku-price-grid{grid-template-columns:1fr 1fr}.sku-field dd{font-size:8px}}

/* Verified product master v2: Item ID is a container, Variation ID is the mapping unit. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.queue-list{display:flex;flex-direction:column;align-items:stretch}.queue-list>*{flex:0 0 auto}
.listing-group{border:1px solid #d9e3ef;border-radius:9px;background:#fff;overflow:hidden}.listing-group.sold-out{border-color:#e9b57c;background:#fffaf4}.listing-group>summary{display:list-item;padding:0;cursor:pointer;list-style:none}.listing-group>summary::-webkit-details-marker{display:none}.listing-summary-grid{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px}.listing-group[open]>summary{border-bottom:1px solid #e2e9f1;background:#f8fbff}.listing-group.sold-out[open]>summary{background:#fff4e8}.listing-group .listing-thumb{width:52px;height:52px}.listing-summary-copy{display:grid;min-width:0}.listing-summary-copy b{color:#1559b7;font-size:10px}.listing-summary-copy strong{font-size:11px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-summary-copy small{font-size:8px;color:#69798e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-progress{display:grid;text-align:right;color:#1559b7}.listing-progress b{font-size:12px}.listing-progress small{font-size:8px;color:#77869a}.listing-group>footer{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-top:1px solid #e5ebf2;background:#f8fafc}.listing-group>footer button,.listing-group>footer a{border:0;background:none;color:#1559b7;text-decoration:none;font-size:9px;font-weight:800;cursor:pointer}
.variation-list,.loose-variations,.mapped-variation-list{display:grid;gap:5px;padding:6px;max-height:330px;overflow:auto;overscroll-behavior:contain}.loose-variations{grid-template-columns:repeat(2,minmax(0,1fr));max-height:310px}.variation-row{display:grid;grid-template-columns:20px minmax(0,1fr) 14px;align-items:start;gap:6px;padding:7px;border:1px solid #dde6f0;border-radius:7px;background:#fff;cursor:grab;min-width:0}.variation-row:hover,.variation-row:focus-visible{border-color:#72a0db;outline:none}.variation-row.selected{border-color:#1559b7;background:#eef5ff;box-shadow:0 0 0 1px #1559b726}.variation-row.dragging{opacity:.42}.variation-row.compact{padding:6px}.variation-select{display:grid;place-items:center;padding-top:2px}.variation-select input{accent-color:#1559b7;width:14px;height:14px}.variation-copy{display:grid;gap:2px;min-width:0}.variation-head{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}.variation-head b{font-size:9px;color:#1559b7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.variation-copy>strong{font-size:10px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.variation-meta,.variation-copy>small{font-size:8px;color:#738196;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.variation-copy>small{color:#31577e}.variation-drag{color:#7e8da1;font-size:13px;line-height:1}.mapping-badge,.sku-suggestion{display:inline-flex;width:max-content;max-width:100%;align-items:center;border-radius:999px;padding:2px 5px;font-size:7px;font-weight:800;line-height:1.35}.mapping-badge.pending{background:#f0f3f7;color:#657386}.mapping-badge.categorized{background:#fff2d9;color:#9a5a00}.mapping-badge.mapped{background:#e7f7ed;color:#19713a}.sku-suggestion{margin-top:2px;border-radius:4px}.sku-suggestion.exact{background:#e7f7ed;color:#19713a}.sku-suggestion.conflict{background:#fdebec;color:#a22f35}.sku-suggestion.none{background:#f2f4f7;color:#778397}.sku-suggestion code{font:inherit;margin-left:3px}.pointer-drag-active [data-drop-product],.pointer-drag-active [data-drop-category],.pointer-drag-active [data-drop-unassigned]{outline:1px dashed #5590dc;outline-offset:2px}.drag-over{border-color:#1559b7!important;background:#e7f1ff!important;box-shadow:0 0 0 3px #1559b726!important}
.master-empty{grid-column:1/-1;min-height:150px;border:1px dashed #afc0d4;border-radius:9px;background:#fff;display:grid;place-content:center;gap:4px;text-align:center;color:#5e7086;padding:24px}.master-empty strong{color:#203956}.master-empty span{font-size:10px}.product-kind{float:right;width:max-content;border-radius:999px;padding:2px 5px;font-size:7px;font-weight:850}.product-kind.physical{background:#e8f7ed;color:#19723b}.product-kind.bundle{background:#f1eafe;color:#6743a7}.product-card{min-height:184px}.product-card .product-code{padding-top:3px}.product-card .product-badges span{font-size:8px}.dialog-note{border:1px solid #d7e4f3;border-radius:7px;background:#f4f8fd;padding:8px!important;color:#365b84!important}.selection-bar{position:fixed;left:50%;bottom:51px;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #c9d8ea;border-radius:10px;background:#fff;box-shadow:0 12px 34px #071b3633;font-size:11px}.selection-bar[hidden]{display:none}.selection-bar strong{color:#1559b7;font-size:14px}.selection-bar button{padding:6px 9px}.danger-button{border:1px solid #e0a4a8;background:#fff5f5;color:#a22f35;border-radius:7px;padding:8px 12px;font-weight:750;cursor:pointer}.component-section{margin-top:13px;border-top:1px solid #dfe7f0;padding-top:11px}.component-section .section-title button{border:0;background:#edf4fe;color:#1559b7;border-radius:5px;padding:4px 7px;font-size:9px;font-weight:800}.component-list{display:grid;gap:5px}.component-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e0e7ef;border-radius:6px;padding:7px}.component-list span{display:grid;font-size:9px}.component-list small{color:#748296}.component-list button{border:0;background:none;color:#a22f35;font-size:8px;cursor:pointer}.component-list>span{color:#7a8797;font-size:9px}.mapped-variation-list{padding:0;max-height:330px}.mapped-variation-list .variation-row{grid-template-columns:minmax(0,1fr) 14px}.mapped-variation-list .variation-select{display:none}
@media(max-width:1180px){.loose-variations{grid-template-columns:1fr}.selection-bar{left:calc(50% + 112px)}}
@media(max-width:760px){.listing-summary-grid{grid-template-columns:46px minmax(0,1fr) auto}.listing-group .listing-thumb{width:46px;height:46px}.listing-summary-copy strong{font-size:10px}.variation-list,.mapped-variation-list{max-height:none}.loose-variations{grid-template-columns:1fr;max-height:none}.selection-bar{left:10px;right:10px;bottom:49px;transform:none;justify-content:space-between}.selection-bar span{display:block!important}.selection-bar .quiet-button{margin-left:auto}.product-card{min-height:176px}}
.listing-group>summary[draggable="true"]{cursor:grab}.listing-group>summary[draggable="true"]:active{cursor:grabbing}.listing-group>summary.dragging{opacity:.5}.listing-progress em{display:block;margin-top:2px;border-radius:4px;background:#eef4fd;color:#1559b7;padding:2px 4px;font-size:7px;font-style:normal;font-weight:850;white-space:nowrap}.master-empty .outline-button{margin:8px auto 0}.pointer-drag-active .listing-progress em{background:#dcecff}.pointer-drag-active .category-drop,.pointer-drag-active .product-card{animation:dropPulse 1s ease-in-out infinite alternate}@keyframes dropPulse{to{box-shadow:0 0 0 3px #1559b71c}}
.create-product-drop{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px}.create-product-drop>span{display:grid;text-align:left}.create-product-drop strong{font-size:11px;color:#174d94}.create-product-drop small{font-size:9px;color:#6b7c91}.create-product-drop.drag-over{border-width:2px;background:#e9f4ff!important}.pointer-drag-active .create-product-drop strong{color:#0d58b8}

/* Wide SKU workspace: the detail panel is intentionally close to twice its former 360px width. */
@media(min-width:1801px){.grouping-board{grid-template-columns:minmax(280px,330px) minmax(460px,1fr) minmax(620px,720px)}}
@media(min-width:761px) and (max-width:1800px){.grouping-board{grid-template-columns:300px minmax(420px,1fr)}.inspector-panel{position:fixed;right:0;top:68px;bottom:42px;width:min(720px,calc(100vw - 260px));z-index:14;box-shadow:-16px 0 38px #071b3630;transform:translateX(100%);transition:transform .2s}.inspector-panel.open{transform:none}}
.copy-value,.stock-sku-copy,.barcode-copy{border:0;background:transparent;color:inherit;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:5px;min-width:0;text-align:left}.copy-value svg,.stock-sku-copy svg,.barcode-copy svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.9;flex:0 0 auto;opacity:.62}.copy-value:hover,.stock-sku-copy:hover,.barcode-copy:hover{color:#1559b7}.copy-value.copied,.stock-sku-copy.copied,.barcode-copy.copied{color:#19723b}.copy-value:focus-visible,.stock-sku-copy:focus-visible,.barcode-copy:focus-visible{outline:2px solid #72a0db;outline-offset:3px;border-radius:3px}.empty-copy-value{color:#263d5d}.sku-field dd .copy-value{width:100%;font:inherit;font-weight:inherit;color:inherit}.sku-field.identifier dd .copy-value{font-family:inherit;color:#1559b7}.marketplace-sku-listing>header .listing-item-copy{font-size:10px;color:#1559b7;font-weight:850}.marketplace-sku-listing>header .listing-item-copy::before{content:"Item ID ";font-family:"Noto Sans Thai",system-ui,sans-serif}.sku-table .stock-sku-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1fr) minmax(140px,.8fr);align-items:center;gap:10px}.stock-sku-copy code{font-size:10px;color:#1559b7}.barcode-copy{font-size:9px;color:#53657b;justify-self:start}.barcode-copy:disabled{cursor:default;color:#8a95a4}.sku-record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.sku-edit-button{border:1px solid #a9c4e6;background:#fff;color:#1559b7;border-radius:6px;padding:5px 9px;font-size:9px;font-weight:800;cursor:pointer}.sku-edit-button:hover{background:#edf5ff}.manual-override-badge,.source-value-badge{width:max-content;border-radius:999px;padding:3px 7px;font-size:7px;font-weight:850}.manual-override-badge{background:#fff2db;color:#9a5b00}.source-value-badge{background:#edf3f9;color:#5d6f84}.sku-edit-dialog{width:min(860px,calc(100% - 28px))}.sku-edit-dialog header span{display:block;margin-top:3px;font-size:10px;color:#65758a}.sku-edit-grid{display:grid;gap:9px}.identity-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.price-edit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sku-edit-grid label{min-width:0}.sku-edit-grid input{width:100%}.sku-edit-dialog .dialog-note{margin:0}.sku-edit-dialog footer{position:sticky;bottom:-18px;background:#fff;padding-top:10px}
@media(min-width:761px){.sku-field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sku-price-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.marketplace-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.inspector-panel{position:static;width:auto;transform:none!important;box-shadow:none;border:0}.identity-edit-grid,.price-edit-grid{grid-template-columns:1fr 1fr}.sku-table .stock-sku-row{grid-template-columns:1fr 1fr}.sku-table .stock-sku-row>span{grid-column:1/-1;grid-row:2}.sku-edit-dialog{width:calc(100% - 16px);max-height:calc(100vh - 16px)}.sku-edit-dialog form{padding:14px}.sku-edit-dialog footer{bottom:-14px}.sku-field-grid,.sku-price-grid{grid-template-columns:1fr 1fr}}
.sku-table .stock-sku-row.barcode-hidden{grid-template-columns:minmax(150px,.8fr) minmax(0,1.8fr)}
@media(max-width:760px){.sku-table .stock-sku-row.barcode-hidden{grid-template-columns:1fr}.sku-table .stock-sku-row.barcode-hidden>span{grid-column:auto;grid-row:auto}}

/* All-category product overview */
.category-overview-tab{position:sticky;left:0;z-index:2;font-weight:850;box-shadow:5px 0 10px #10233d12}
.category-canvas.overview-mode{padding:10px;background:#f5f8fc}
.overview-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cfe0f3;border-radius:9px;background:#eef5ff;color:#31577e;padding:9px 12px;margin-bottom:10px;font-size:10px}
.overview-guide strong{color:#174d94;font-size:12px}.overview-guide span{text-align:right}
.overview-category-list{display:grid;gap:11px}
.overview-category{border:1px solid #d8e3ef;border-radius:10px;background:#fff;padding:9px;transition:border-color .16s,background .16s,box-shadow .16s}
.overview-category>header{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 2px 8px;border-bottom:1px solid #e4ebf3;margin-bottom:8px}
.overview-category-index{width:28px;height:28px;border-radius:8px;background:#edf4fd;color:#1559b7;display:grid;place-items:center;font-size:9px;font-weight:900}
.overview-category h3{margin:0;font-size:14px}.overview-category header p{margin:1px 0 0;color:#6b798b;font-size:9px}
.overview-drop-copy{border:1px dashed #b7c9de;border-radius:999px;color:#61758d;padding:4px 8px;font-size:8px;white-space:nowrap}
.overview-category.drag-over{border-color:#1559b7;background:#eef6ff;box-shadow:0 0 0 3px #1559b720}
.overview-category.drag-over .overview-drop-copy{border-color:#1559b7;background:#1559b7;color:#fff}
.overview-product-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.overview-product-grid .product-thumb{aspect-ratio:1/1;height:auto}
.overview-product-grid .product-copy h4{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.42}
.overview-product-grid .product-badges span{font-size:7px}
.overview-empty{grid-column:1/-1;min-height:48px;display:grid;place-items:center;border:1px dashed #c8d5e4;border-radius:8px;background:#f9fbfd;color:#7a899a;font-size:9px}
.product-drag-active .overview-category:not(.dragging){border-style:dashed}
@media(max-width:760px){.overview-guide{display:grid}.overview-guide span{text-align:left}.overview-category>header{grid-template-columns:28px minmax(0,1fr)}.overview-drop-copy{grid-column:1/-1;text-align:center}.overview-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-category{padding:7px}.category-canvas.overview-mode{padding:7px}}

/* Compact inspector: square cover and collapsed SKU details by default. */
.inspector-cover{width:min(240px,100%);height:auto;max-height:240px;aspect-ratio:1/1;margin:0 auto;border:1px solid #e2e8f0}.inspector-cover img{width:100%;height:100%;object-fit:contain}.sku-record>summary::after{content:"ดูข้อมูล ▾";flex:0 0 auto;border-radius:999px;background:#edf4fc;color:#1559b7;padding:3px 7px;font-size:8px;font-weight:850;white-space:nowrap}.sku-record[open]>summary::after{content:"ยุบข้อมูล ▴"}.sku-record:not([open]) .sku-record-body{display:none}
@media(max-width:760px){.inspector-cover{width:min(180px,52vw);max-height:180px}.sku-record>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto}.sku-record>summary::after{padding:3px 6px;font-size:7px}}

/* Sale-page hierarchy: one verified product can own many marketplace pages. */
.product-card-minimal{min-height:0}.product-card-minimal .product-thumb{height:auto;aspect-ratio:1/1}.product-card-minimal .product-copy{display:grid;gap:6px;padding:7px 3px 3px}.product-card-minimal .product-copy h4{min-height:0;margin:0;font-size:12px;line-height:1.42}.product-card-minimal .product-badges{margin-top:0}.product-detail-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.product-header-badges{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 2px}.product-header-badges span{border-radius:999px;background:#edf4fc;color:#315b8a;padding:3px 8px;font-size:9px;font-weight:800}.product-sales-section>.section-title{margin-bottom:7px}.sale-page-guide{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px}.sale-page-guide strong{font-size:10px}.sale-page-guide span{font-size:9px;text-align:right}.sale-platform-groups{display:grid;gap:10px}.sale-platform-group{border:1px solid #dbe5f0;border-radius:9px;background:#f8fafd;overflow:hidden}.sale-platform-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #dce6f1;background:#eef4fb}.sale-platform-group>header strong{font-size:11px;color:#193e6b}.sale-platform-group>header span{border-radius:999px;background:#fff;color:#315d8d;padding:2px 7px;font-size:8px;font-weight:850}.sale-page-list{display:grid;gap:7px;padding:7px}.sale-page-card{border:1px solid #d9e4ef;border-radius:8px;background:#fff;overflow:hidden}.sale-page-card>summary{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;list-style:none;cursor:pointer}.sale-page-card>summary::-webkit-details-marker{display:none}.sale-page-card>summary::after{content:"ดูรายละเอียด ▾";grid-column:2/4;justify-self:end;border-radius:999px;background:#edf4fc;color:#1559b7;padding:3px 8px;font-size:8px;font-weight:850}.sale-page-card[open]>summary{border-bottom:1px solid #e0e8f1;background:#f8fbff}.sale-page-card[open]>summary::after{content:"ยุบรายละเอียด ▴"}.sale-page-cover{width:84px;height:84px;border-radius:7px;background:#f1f4f8;display:grid;place-items:center;overflow:hidden}.sale-page-cover img{width:100%;height:100%;object-fit:cover}.sale-page-cover>span{font-size:8px;color:#8995a5}.sale-page-summary{display:grid;gap:2px;min-width:0}.sale-page-summary>strong{font-size:12px;color:#152e4e}.sale-page-summary>small{font-size:9px;color:#64758a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-pill{width:max-content;border-radius:999px;padding:2px 6px;font-size:7px;font-weight:900;letter-spacing:.03em;background:#edf1f5;color:#52647a}.platform-pill.shopee{background:#fff0eb;color:#d6481d}.platform-pill.lazada{background:#edf1ff;color:#2952c7}.platform-pill.tiktok{background:#eef0f2;color:#111c2c}.sale-page-counts{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.sale-page-counts em{border-radius:5px;background:#eef3f8;color:#49627f;padding:2px 5px;font-size:7px;font-style:normal;font-weight:800}.sale-page-state{align-self:start;max-width:110px;border-radius:999px;padding:3px 7px;background:#eef2f6;color:#647386;font-size:7px;font-weight:850;text-align:center}.sale-page-state.available{background:#e8f7ed;color:#23703e}.sale-page-state.sold_out{background:#fff0df;color:#a84d0a}.sale-page-state.unavailable{background:#fdebec;color:#a22f35}.sale-page-body{display:grid;gap:8px;padding:8px;background:#fbfcfe}.sale-page-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.sale-page-actions>span{display:grid}.sale-page-actions strong{font-size:10px}.sale-page-actions small{font-size:8px;color:#68798e}.sale-page-actions>a,.media-library-link{border:1px solid #a9c2e1;border-radius:6px;background:#fff;color:#1559b7;padding:5px 8px;text-decoration:none;font-size:8px;font-weight:850;white-space:nowrap}.sale-page-system-data{border:1px dashed #bccddd;border-radius:7px;background:#f7f9fc}.sale-page-system-data>summary{padding:6px 8px;color:#63758b;font-size:8px;font-weight:800;cursor:pointer}.sale-page-system-data>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0 7px 7px}.sale-page-system-data>div>span{display:grid;border-radius:6px;background:#fff;padding:6px}.sale-page-system-data small{font-size:7px;color:#78879a}.sale-page-system-data strong,.sale-page-system-data .copy-value{font-size:8px;color:#234b78;font-weight:800;overflow-wrap:anywhere}.sale-page-block{border:1px solid #dfe7f0;border-radius:8px;background:#fff;overflow:hidden}.sale-block-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-bottom:1px solid #e3eaf2;background:#f3f7fc}.sale-block-heading>span{display:grid}.sale-block-heading strong{font-size:10px}.sale-block-heading small{font-size:8px;color:#6d7d91}.sale-block-heading>b{font-size:8px;color:#1559b7}.sale-page-media{padding-bottom:7px}.sale-page-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px}.sale-media-item{min-width:0;margin:0;border:1px solid #e1e8f0;border-radius:7px;background:#fff;overflow:hidden;text-decoration:none;color:#53657b}.sale-media-item img,.sale-media-item video{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#f0f3f7}.sale-media-item span,.sale-media-item figcaption{display:block;padding:4px;font-size:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-library-link{display:block;width:max-content;margin:0 7px 0 auto}.unlinked-platforms{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.unlinked-platforms span{border:1px dashed #c8d4e2;border-radius:999px;padding:4px 8px;color:#718095;font-size:8px}.listing-inspector>.sale-page-card{margin-top:9px}
@media(max-width:760px){.product-card-minimal{min-height:0}.product-card-minimal .product-copy h4{font-size:10px}.sale-page-guide{display:grid}.sale-page-guide span{text-align:left}.sale-page-card>summary{grid-template-columns:64px minmax(0,1fr);gap:7px}.sale-page-cover{width:64px;height:64px}.sale-page-state{grid-column:2;grid-row:2;justify-self:start}.sale-page-card>summary::after{grid-column:2;grid-row:2;justify-self:end}.sale-page-summary>strong{font-size:10px}.sale-page-actions{align-items:start}.sale-page-actions>span small{display:none}.sale-page-system-data>div{grid-template-columns:1fr}.sale-page-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sale-page-body{padding:6px}.sale-page-list{padding:6px}.sale-page-block .sku-record-list{padding:5px}}

/* Product-level shared values stay separate from marketplace sale-page and SKU records. */
.product-detail-tabs button{min-width:0;padding-inline:4px;white-space:normal;line-height:1.25}.product-shared-section{display:grid;gap:9px}.shared-section-title{align-items:flex-start}.shared-section-title>div{display:grid;gap:2px}.shared-section-title p{margin:0;color:#6a7a8f;font-size:8px}.shared-values-note{margin:0}.shared-values-form fieldset{display:grid;gap:9px;margin:0;padding:0;border:0}.shared-values-form fieldset:disabled{opacity:.72}.shared-field-group{display:grid;gap:7px;border:1px solid #dce6f0;border-radius:8px;background:#f8fbff;padding:9px}.shared-field-group>h4{margin:0;color:#244c79;font-size:10px}.shared-field-group>p{margin:0;color:#718096;font-size:8px;line-height:1.5}.shared-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.shared-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.shared-field{display:grid;gap:4px;min-width:0}.shared-field-wide{grid-column:1/-1}.shared-field>span{color:#65768b;font-size:8px;font-weight:750}.shared-field input,.shared-field select,.shared-field textarea{width:100%;min-width:0;border:1px solid #cfdceb;border-radius:7px;background:#fff;color:#17324f;padding:7px 8px;font:inherit;font-size:10px;line-height:1.4;box-sizing:border-box}.shared-field textarea{resize:vertical;min-height:72px}.shared-field input:focus,.shared-field select:focus,.shared-field textarea:focus{border-color:#2872c9;outline:2px solid #2872c920;outline-offset:0}.shared-discount-output{grid-column:1/-1;border-radius:7px;background:#eaf6ee;color:#287342;padding:6px 8px;font-size:8px;font-weight:800}.shared-form-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.shared-form-footer>span{color:#718096;font-size:8px}.shared-form-footer .primary-button{padding:7px 11px;font-size:9px;white-space:nowrap}
@media(max-width:760px){.product-detail-tabs button{font-size:8px}.shared-field-grid,.shared-price-grid{grid-template-columns:1fr}.shared-field-wide,.shared-discount-output{grid-column:auto}.shared-form-footer{align-items:stretch;flex-direction:column}.shared-form-footer .primary-button{width:100%}}

/* One global development switch: checked means login and role checks are bypassed. */
.login-toggle{display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid #ffffff3d;border-radius:8px;cursor:pointer;white-space:nowrap}.login-toggle input{position:absolute;opacity:0;pointer-events:none}.login-toggle-track{position:relative;width:34px;height:18px;border-radius:999px;background:#708198;transition:.18s}.login-toggle-track::after{content:"";position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:#fff;transition:.18s}.login-toggle input:checked+.login-toggle-track{background:#e7a52c}.login-toggle input:checked+.login-toggle-track::after{transform:translateX(16px)}.login-toggle.active{border-color:#e7a52c66;background:#e7a52c1c}.login-toggle input:focus-visible+.login-toggle-track{outline:2px solid #fff;outline-offset:2px}.login-toggle input:disabled+.login-toggle-track{opacity:.55}
@media(max-width:760px){.login-toggle-label{display:none}.login-toggle{padding:5px}.topbar .user-avatar{display:none}}

/* Verified-product merge: drag one master card onto the card that should survive. */
.product-card[draggable="true"]{cursor:grab}.product-card[draggable="true"]:active{cursor:grabbing}.product-card.dragging{opacity:.42;transform:scale(.97)}.merge-drop-copy{display:none}.product-drag-active .product-card:not(.dragging){outline:1px dashed #5590dc;outline-offset:2px;animation:dropPulse 1s ease-in-out infinite alternate}.product-drag-active .product-card:not(.dragging) .product-drop-hint{display:grid}.product-drag-active .product-card .variation-drop-copy{display:none}.product-drag-active .product-card .merge-drop-copy{display:block;text-align:center;padding:8px}.product-drag-active .create-product-drop,.product-drag-active .loose-section{opacity:.45}.merge-dialog{width:min(720px,calc(100% - 28px))}.merge-preview{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:10px;align-items:center}.merge-product-preview{min-width:0;display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:3px 9px;border:1px solid #d8e3ef;border-radius:10px;background:#f8fbff;padding:9px}.merge-product-preview .merge-preview-label{grid-column:1/-1;width:max-content;max-width:100%;border-radius:999px;background:#e8f1fd;color:#1559b7;padding:3px 7px;font-size:8px;font-weight:850}.merge-product-preview .product-thumb{grid-row:2/4;width:74px;height:74px}.merge-product-preview>strong{min-width:0;font-size:11px;line-height:1.45}.merge-product-preview>span:last-child{color:#66778d;font-size:9px}.merge-preview-arrow{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1559b7;color:#fff;font-size:19px;font-weight:900}.merge-dialog .dialog-note{line-height:1.65}.merge-dialog .dialog-note b{color:#174d94}
@media(max-width:560px){.merge-preview{grid-template-columns:1fr}.merge-preview-arrow{transform:rotate(90deg);justify-self:center}.merge-product-preview{grid-template-columns:64px minmax(0,1fr)}.merge-product-preview .product-thumb{width:64px;height:64px}}

/* Detail is one consistent right-side drawer; the catalog remains visible underneath. */
@media(min-width:761px){
  .grouping-board{grid-template-columns:minmax(280px,330px) minmax(460px,1fr)}
  .grouping-board.queue-collapsed{grid-template-columns:72px minmax(460px,1fr)}
  .inspector-panel{position:fixed;right:0;top:68px;bottom:42px;width:clamp(520px,36vw,640px);max-width:calc(100vw - 280px);z-index:30;border-left:1px solid #cfdbea;box-shadow:-18px 0 44px #071b3633;transform:translateX(calc(100% + 24px));transition:transform .2s ease;background:#fff;overflow:auto;overscroll-behavior:contain}
  .inspector-panel.open{transform:none}
}
.inspector-drawer-header{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:8px 12px;border-bottom:1px solid #dce5ef;background:#fffffff2;backdrop-filter:blur(10px)}
.inspector-drawer-header>strong{color:#173c68;font-size:11px;letter-spacing:.02em}
.inspector-drawer-header button{display:inline-flex;align-items:center;gap:6px;border:1px solid #b9cbe0;border-radius:7px;background:#fff;color:#174f94;padding:5px 8px;font-size:9px;font-weight:850;cursor:pointer}
.inspector-drawer-header button b{font-size:17px;line-height:1;font-weight:500}
.inspector-drawer-header button:hover{border-color:#3977c3;background:#f2f7fd}
.inspector-drawer-header button:focus-visible{outline:2px solid #72a0db;outline-offset:2px}

/* The pending queue can collapse to a narrow status rail without hiding its count. */
.queue-header-row{display:flex;align-items:center;gap:8px}
.queue-heading-copy{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;flex:1}
.panel-collapse-button{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;border:1px solid #c3d2e3;border-radius:7px;background:#fff;color:#174f94;padding:4px 7px;font-size:9px;font-weight:850;cursor:pointer}
.panel-collapse-button b{font-size:16px;line-height:1;font-weight:500}
.panel-collapse-button:hover{border-color:#3977c3;background:#f2f7fd}
.panel-collapse-button:focus-visible{outline:2px solid #72a0db;outline-offset:2px}
.queue-collapsed-summary{display:none}
@media(min-width:761px){
  .queue-panel,.grouping-board{transition:grid-template-columns .2s ease}
  .queue-panel.collapsed{grid-template-rows:1fr}
  .queue-panel.collapsed .queue-heading-copy,.queue-panel.collapsed .queue-header>p,.queue-panel.collapsed .queue-drop,.queue-panel.collapsed .queue-list{display:none}
  .queue-panel.collapsed .queue-header{display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 5px}
  .queue-panel.collapsed .queue-header-row{width:100%;justify-content:center}
  .queue-panel.collapsed .panel-collapse-button{display:grid;place-items:center;width:42px;height:34px;padding:0}
  .queue-panel.collapsed .panel-collapse-label{display:none}
  .queue-panel.collapsed .queue-collapsed-summary{display:grid;justify-items:center;gap:6px;color:#49627f;font-size:9px}
  .queue-panel.collapsed .queue-collapsed-summary b{font-size:10px}
  .queue-panel.collapsed .queue-collapsed-summary strong{min-width:34px;border-radius:999px;background:#e9f1fd;color:#1559b7;padding:4px 5px;text-align:center;font-size:10px}
}
@media(max-width:760px){
  .panel-collapse-button{display:none}
  .inspector-drawer-header{min-height:44px}
  .inspector-drawer-header button span{display:none}
  .inspector-drawer-header button{width:36px;height:32px;justify-content:center;padding:0}
}

/* Shared Product Hub shell: the navigation is a drawer and starts collapsed. */
.side-rail{
  inset:68px auto 42px 0;
  transform:translateX(calc(-100% - 18px));
  visibility:hidden;
  pointer-events:none;
  box-shadow:16px 0 38px #071b3624;
  transition:transform .2s ease,visibility 0s linear .2s;
}
.side-rail.open{
  transform:none;
  visibility:visible;
  pointer-events:auto;
  transition:transform .2s ease,visibility 0s;
}
.workspace{margin-left:0}
.save-bar{left:0}
.topbar{z-index:25}
.menu-toggle{
  display:grid;
  flex:0 0 auto;
  width:38px;
  height:38px;
  padding:9px;
  gap:4px;
  place-content:center;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
}
.menu-toggle:hover{background:#ffffff1a}
.menu-toggle:focus-visible{outline:2px solid #8ab6ef;outline-offset:2px}
.menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}
.rail-overlay{display:none}
.rail-overlay.show{
  position:fixed;
  inset:68px 0 42px 0;
  z-index:19;
  display:block;
  border:0;
  background:#071b365e;
  cursor:pointer;
}
@media(max-width:760px){
  .side-rail{inset:60px auto 42px 0;width:min(280px,86vw)}
  .rail-overlay.show{inset:60px 0 42px 0}
}
