:root{--nav:#202b3d;--blue:#386ee8;--text:#293548;--line:#e3e8f0;--muted:#69768b;--bg:#f3f5f9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d9e0eb;border-radius:5px;background:#fff;color:#354258;padding:10px 15px;font-weight:600;transition:background .12s}button:hover{background:#edf2fd}button:disabled{cursor:not-allowed;opacity:.55}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.primary:hover{background:#2c5dc9}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8db0ff;outline-offset:3px}input,select,textarea{border:1px solid #d9e0eb;border-radius:5px;padding:10px 12px;background:white;color:var(--text);min-width:0}input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}aside{position:fixed;inset:0 auto 0 0;width:232px;background:var(--nav);color:#c4cedd;display:flex;flex-direction:column;z-index:25}.logo{color:#fff;font-size:29px;letter-spacing:-1.4px;font-weight:750;line-height:1;padding:25px 24px 20px;border-bottom:1px solid #344053}.logo span{font-size:11px;letter-spacing:.2px;color:#b4c977;font-weight:500;display:inline-block;margin-left:9px}.account-block{padding:17px 23px;border-bottom:1px solid #344053}#account{font-weight:600;color:white;font-size:13px}.account-block small{display:block;color:#95a4b9;margin-top:5px}nav{padding:12px 11px;overflow:auto}.navlabel{font-size:11px;font-weight:600;display:block;padding:13px 14px 7px;color:#90a0b6}.navgroup{margin-bottom:8px}nav button{border:0;color:#cbd4e2;background:transparent;width:100%;display:flex;align-items:center;gap:12px;text-align:left;font-size:13px;font-weight:500;padding:12px;margin:2px 0}nav button:hover{background:#2d3a50}nav button.active{background:#386ee8;color:white}.navicon{width:20px;text-align:center;font-size:19px;line-height:18px}.sidefoot{margin-top:auto;padding:16px 20px;border-top:1px solid #344053;font-size:11px;color:#93a2b8}.sidefoot button{display:block;width:100%;background:#2d3a50;color:#dbe3ee;border:0;margin-top:10px}main{margin-left:232px;min-height:100vh;padding:0 28px 30px}header{height:68px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);margin:0 -28px;padding:0 28px;background:white;font-size:12px}#breadcrumb{color:var(--muted);flex:1}.header-user{display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;width:30px;height:30px;background:#e9effc;color:var(--blue);display:grid;place-items:center;font-weight:700}.tag{background:#fff2d9;color:#986310;border:1px solid #f1ddb5;padding:4px 9px;font-size:11px;border-radius:4px}.notice{margin:14px 0 0;font-size:12px;color:#6e7b91;display:flex;align-items:center;gap:8px}.notice:before{content:'i';display:grid;place-items:center;width:15px;height:15px;border:1px solid #91a0b7;border-radius:50%;font-size:10px}#sectionTabs{display:flex;gap:22px;border-bottom:1px solid #dce3ee;margin-top:14px;overflow:auto;white-space:nowrap}#sectionTabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#6f7b8e;padding:13px 2px;font-size:13px}#sectionTabs button.active{border-bottom-color:var(--blue);color:var(--blue)}.title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 18px}h1{font-size:25px;font-weight:650;letter-spacing:-.5px;line-height:1.3;margin:0 0 7px}h2{font-size:18px;margin:0 0 15px;font-weight:650}p{color:var(--muted);line-height:1.6;margin:8px 0}.title p{margin:0;font-size:13px}.product-summary{display:flex;gap:24px;align-items:center;font-size:12px;margin:19px 0;flex-wrap:wrap}.product-summary span{display:flex;align-items:center;gap:6px}.product-summary b{font-size:15px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%}.green{background:#278461}.amber{background:#df9e32}.gray{background:#8b98aa}.table-panel{background:white;border:1px solid var(--line);border-radius:6px;overflow:hidden}.filters{display:flex;align-items:end;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filters label{margin:0;min-width:150px}.filters label:first-child{flex:1;min-width:230px}.filters button{margin-bottom:0}label{display:grid;gap:7px;margin:16px 0;color:#69768b;font-size:12px;font-weight:600}label input,label select{width:100%;font-weight:400;font-size:13px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;background:white;font-size:13px}td,th{padding:16px;text-align:left;border-bottom:1px solid #edf0f5;vertical-align:middle}th{font-size:12px;font-weight:600;color:#64718a;background:#fafbfe;padding-top:13px;padding-bottom:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.check-col{width:40px}.thumb-cell{width:68px;padding-left:0;padding-right:0}.product-thumb,.no-image{width:48px;height:58px;object-fit:contain;border:1px solid #edf0f5;border-radius:4px;background:white}.no-image{display:grid;place-items:center;color:#b5becb;font-size:23px;background:#f6f8fb}.product-name{font-weight:600;display:block;min-width:170px;max-width:360px}td small{display:block;margin-top:6px;color:#8691a3;font-size:11px}.inline{display:inline}.stock-number{font-weight:650}.nowrap{white-space:nowrap}.badge{font-size:11px;padding:5px 9px;border-radius:4px;display:inline-block;white-space:nowrap;font-weight:500}.success{background:#e9f5ee;color:#28754a}.warning{background:#fff4e2;color:#986718}.neutral{background:#eef1f6;color:#6c788d}.error{color:#b34a43}.text-button{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:500;padding:6px;white-space:nowrap}.table-foot{display:flex;justify-content:space-between;padding:14px 20px;background:#fafbfe;border-top:1px solid var(--line);font-size:11px;color:#8190a4}.upload-bar{display:flex;gap:18px;align-items:center;background:white;border:1px solid #d7e2f7;border-left:3px solid var(--blue);padding:18px 20px;margin-top:18px;border-radius:5px;box-shadow:0 3px 12px #24345205}.selection-info{flex:1;min-width:155px}.selection-info b{display:block;font-size:14px}.selection-info small{display:block;font-size:11px;color:#8190a4;max-width:220px;margin-top:5px}.upload-bar label{margin:0;min-width:145px}.theme-choice{display:grid;gap:7px;min-width:160px}.theme-choice>span{font-size:12px;color:#69768b;font-weight:600}.theme-choice button{text-align:left;font-size:13px;font-weight:500}.theme-choice button span{margin-left:20px;color:var(--blue);font-size:11px}.upload-bar>.primary{align-self:end;min-height:39px;margin-bottom:1px}.helper{font-size:11px;color:#7a879a;line-height:1.6;margin-top:12px}.theme-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.theme-catalog{min-width:0}.theme-filter{display:flex;justify-content:space-between;margin-bottom:16px;font-size:12px;color:#788498}.theme-filter b{color:#44526a}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.theme-tile{padding:9px;text-align:left;position:relative;background:white;border:1px solid #dfe5ee;border-radius:6px;min-width:0;font-weight:400}.theme-tile:hover{border-color:#8dacef;background:white}.theme-tile.selected{border:2px solid var(--blue);padding:8px;box-shadow:0 0 0 2px #e4ecff}.tile-image{position:relative;background:#f4f6f9;padding:9px;border-radius:3px}.tile-image img{width:100%;aspect-ratio:2/3;object-fit:contain;display:block}.theme-tile strong{display:block;font-size:12px;margin:10px 3px 4px;font-weight:600}.theme-tile small{display:block;font-size:10px;line-height:1.5;color:#8490a1;margin:0 3px 4px}.theme-check{display:none;position:absolute;right:3px;top:3px;background:var(--blue);color:white;width:22px;height:22px;border-radius:50%;text-align:center;line-height:22px}.selected .theme-check{display:block}.preview-panel{position:sticky;top:18px;background:white;border:1px solid var(--line);border-radius:6px;padding:17px}.preview-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px}.preview-heading .badge{font-size:10px}.preview-panel label{margin:15px 0;font-size:11px}.large-preview{background:#eff2f7;display:flex;justify-content:center;padding:14px}.large-preview img{height:auto;width:100%;max-height:440px;object-fit:contain;box-shadow:0 2px 8px #14264115}.preview-info{padding-top:16px}.preview-info b{font-size:14px}.preview-info p{font-size:11px;line-height:1.6;margin-bottom:16px}.wide{width:100%;margin-bottom:8px}.card{background:white;padding:24px;border:1px solid var(--line);border-radius:6px;margin-bottom:16px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.metric{display:block;font-size:30px;margin:10px 0}.bar{display:flex;gap:12px;align-items:center;margin:18px 0;flex-wrap:wrap}.muted{color:#8793a6}.good{color:#28754a}.small{font-size:12px}.empty{text-align:center;padding:45px 20px;color:#8390a3}.empty button{margin:5px}details{padding:15px;background:#fff;border:1px solid var(--line);border-radius:4px;margin:10px 0}summary{cursor:pointer;font-weight:600;font-size:13px}pre{white-space:pre-wrap;word-break:break-word;background:#f6f8fc;padding:14px;font-size:12px;max-height:300px;overflow:auto}progress{accent-color:var(--blue);width:100%}dialog{border:1px solid var(--line);border-radius:10px;padding:30px;width:510px;max-width:calc(100vw - 30px)}dialog::backdrop{background:#15243a80}dialog .logo{color:var(--text);padding:0 0 24px;border:0}dialog button{display:block;width:100%;margin-top:12px;text-align:left}#toast{display:none;position:fixed;bottom:25px;right:25px;background:#263b5c;color:#fff;padding:16px 22px;border-radius:6px;max-width:480px;z-index:99}#menuToggle{display:none}#catsearch{margin-bottom:12px;width:340px;max-width:100%}@media(min-width:1600px){.theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.theme-workspace{grid-template-columns:minmax(0,1fr) 380px}}@media(max-width:1150px){aside{width:205px}main{margin-left:205px;padding-left:20px;padding-right:20px}header{margin:0 -20px;padding:0 20px}.theme-workspace{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.upload-bar{flex-wrap:wrap}.grid{grid-template-columns:1fr}.header-user span:not(.avatar){display:none}.filters{gap:10px}.filters label{min-width:125px}.filters label:first-child{min-width:180px}}@media(max-width:760px){aside{transform:translateX(-100%);transition:transform .15s}.menu-open aside{transform:translateX(0);top:60px;width:232px}main{margin:0;padding:0 15px 25px}header{margin:0 -15px;padding:0 15px;height:60px;position:sticky;top:0;z-index:30}#menuToggle{display:block;padding:6px 10px}.notice{font-size:11px;align-items:start;line-height:1.5}.theme-workspace{display:flex;flex-direction:column}.theme-catalog{width:100%}.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.preview-panel{position:static;width:100%;order:-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.preview-heading,.preview-panel label{grid-column:1/-1}.large-preview{grid-column:1;grid-row:3/7}.preview-info{grid-column:2;padding:0}.preview-panel .wide,.preview-panel .helper{grid-column:2}.preview-panel label{margin:0}.large-preview img{max-height:300px}.title{margin:18px 0}h1{font-size:23px}.title p{font-size:12px}.product-summary{gap:10px;font-size:11px}.cards{grid-template-columns:1fr}.upload-bar{gap:13px;padding:15px}.upload-bar label,.theme-choice{flex:1}.selection-info{flex-basis:100%}.upload-bar>.primary{width:100%}.filters label:first-child{flex-basis:100%}.theme-tile small{display:none}.badge{font-size:10px}.table-foot{gap:15px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:760px){aside{visibility:hidden}.menu-open aside{visibility:visible}}
.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.connection-grid .card{margin:0}.connection-grid h2{margin-bottom:18px}#editPanel{width:min(620px,92vw);max-height:90vh;overflow:auto;border:0;border-radius:12px;padding:28px}#editPanel::backdrop{background:#17253899}.dialog-close{float:right}#listingChoices{display:grid;gap:8px;margin:16px 0;max-height:250px;overflow:auto}#mapSearch{min-width:260px;flex:1}@media(max-width:900px){.connection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.connection-grid{grid-template-columns:1fr}#mapSearch{min-width:0}}
.source-guide{background:#eaf1ff;border-left:3px solid #386ee8;padding:16px 20px;margin:0 0 20px;line-height:1.6}.source-guide p{margin:6px 0 0;max-width:78ch}.source-query{flex:1;min-width:220px}.source-pagination{display:flex;align-items:center;gap:8px;padding:14px;flex-wrap:wrap}.source-pagination span{flex:1;color:#526176;font-size:13px}.source-url{max-width:330px;overflow-wrap:anywhere}.source-help{margin:20px 0}.selected-product{padding:14px;background:#eef3fa;border:1px solid #d7e2f1;border-radius:6px;margin:12px 0}.selected-product small{display:block;margin-top:6px}#productChoices{max-height:280px;overflow:auto;display:grid;gap:6px}#productChoices button{text-align:left;display:grid;gap:4px;padding:10px}#productChoices button[aria-pressed="true"]{background:#eaf1ff;border-color:#386ee8}#productChoices span{font-weight:normal}
#editPanel>.dialog-close{width:34px;min-height:34px;padding:4px;float:right;margin:0 0 8px 12px;text-align:center}#editPanel>h2{padding-top:4px}
.auth-tabs{display:flex;gap:8px;margin:20px 0}.registration-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#login{max-height:92vh;overflow:auto;width:min(650px,94vw)}#login textarea{min-height:80px}.mfa-qr{display:block;width:220px;height:220px;margin:16px auto}.mfa-secret{display:block;overflow-wrap:anywhere;padding:12px}.recovery-codes{letter-spacing:1px;line-height:1.8}@media(max-width:560px){.registration-fields{grid-template-columns:1fr}}
.brand-logo{background:white!important;padding:12px 18px!important}.brand-art{position:relative;width:190px;max-width:100%;height:66px;overflow:hidden}.brand-art img{width:100%;height:auto;transform:translateY(-35%);display:block}.brand-logo>span{color:#526176!important;margin-top:0!important}#login .brand-art{margin:auto}#login .brand-logo{text-align:center}
.public-auth>aside,.public-auth>main{display:none}.public-auth{background:#eef2f8}.public-auth #login::backdrop{background:#eef2f8}.public-auth #login{box-shadow:0 14px 55px #24324718;border:1px solid #dce3ed}
/* Scrollbars follow the panel palette, including the long registration form. */
:root{scrollbar-color:#aab8cb #edf2f8;scrollbar-width:thin}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:#edf2f8;border-radius:8px}*::-webkit-scrollbar-thumb{background:#aab8cb;border:2px solid #edf2f8;border-radius:8px}*::-webkit-scrollbar-thumb:hover{background:#7d91ae}*::-webkit-scrollbar-corner{background:transparent}#login{scrollbar-width:thin;scrollbar-color:#aab8cb #f5f7fb;scrollbar-gutter:stable;padding:28px;max-height:calc(100dvh - 40px);border-radius:14px}#login::-webkit-scrollbar-track{background:#f5f7fb;margin:14px 0}#login::-webkit-scrollbar-thumb{border-color:#f5f7fb}.auth-tabs{position:sticky;top:-28px;background:white;padding:12px 0;z-index:2}.public-auth #login{overflow-x:hidden}@media(max-width:560px){#login{padding:20px;max-height:calc(100dvh - 20px)}.auth-tabs{top:-20px}}
/* Dark sidebar: override the light global scrollbar without hiding navigation. */
#nav{min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#53647d var(--nav);color-scheme:dark}
#nav::-webkit-scrollbar{width:6px;height:6px}
#nav::-webkit-scrollbar-track{background:var(--nav);border-radius:0}
#nav::-webkit-scrollbar-thumb{background:#53647d;border:1px solid var(--nav);border-radius:8px}
#nav::-webkit-scrollbar-thumb:hover{background:#798ba5}
#nav::-webkit-scrollbar-button{display:none;width:0;height:0}
#nav::-webkit-scrollbar-corner{background:var(--nav)}

.desktop-detail{width:min(950px,94vw);max-height:88vh;overflow:auto}.desktop-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.desktop-image{max-width:240px;max-height:360px;object-fit:contain}
.desktop-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.desktop-fields small,.desktop-fields strong{display:block}.desktop-fields small{color:var(--muted);margin-bottom:4px}.desktop-fields strong{overflow-wrap:anywhere}

/* Selection actions remain reachable without scrolling through the catalogue. */
.product-selection main{padding-bottom:180px}.product-selection .upload-bar{position:fixed;left:260px;right:28px;bottom:16px;z-index:35;margin:0;box-shadow:0 6px 28px #182d4933;border:1px solid #cad8ef;border-left:3px solid var(--blue)}
@media(max-width:1150px){.product-selection .upload-bar{left:225px;right:20px}.product-selection main{padding-bottom:230px}}
@media(max-width:760px){.product-selection .upload-bar{left:10px;right:10px;bottom:8px;padding:12px;gap:8px}.product-selection main{padding-bottom:300px}.product-selection .selection-info{flex-basis:auto}.product-selection .selection-info small{display:none}.product-selection .upload-bar>.primary{width:auto;flex:1}.product-selection #clearSelection{font-size:12px}.product-selection .upload-bar label,.product-selection .theme-choice{min-width:120px}.product-selection .theme-choice button span{margin-left:5px}}

.upload-bar .theme-choice[hidden]{display:none}
