:root{--teal:#06aaa9;--teal-dark:#049596;--light:#e9f9f8;--ink:#34383d;--muted:#858b92;--line:#e4e8eb;--sidebar:#fafbfc}*{box-sizing:border-box}html,body{margin:0;font:13px/1.5 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:#fff}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--teal)}.global-head{height:54px;position:fixed;top:0;left:0;right:0;display:flex;align-items:center;background:#04aaa9;color:white;z-index:50;box-shadow:0 1px 3px #0001}.logo{width:213px;display:flex;align-items:center;padding:0 17px;flex-shrink:0;gap:10px;white-space:nowrap}.logo-glyph{font-size:31px;line-height:1}.logo b{font-size:17px;letter-spacing:-.6px}.logo small{margin-left:8px;font-size:10px;border:1px solid #c1ffff80;padding:1px 5px;border-radius:3px;font-weight:bold}.main-tabs{display:flex;height:100%;align-items:center;gap:0}.main-tabs button,.head-link{height:100%;border:0;background:transparent;color:#fff;padding:0 17px;font-weight:600;font-size:14px}.main-tabs button:hover,.main-tabs button.active{background:#008d8e}.head-right{display:flex;align-items:center;gap:14px;margin-left:auto;padding-right:22px}.local-chip{font-size:11px;color:#eaffff;white-space:nowrap}.head-link{font-size:12px;padding:0 4px}.avatar{background:#f3ffff;color:#00a5a3;border-radius:50%;height:27px;width:27px;display:grid;place-items:center;font-weight:800;font-size:10px}.frame{display:flex;padding-top:54px;min-height:100vh}.sidenav{position:fixed;top:54px;bottom:0;left:0;width:213px;background:var(--sidebar);border-right:1px solid #e5ebee;overflow:auto;scrollbar-width:thin}.menu-group{border-bottom:1px solid #edf0f2;padding-bottom:8px}.menu-title{height:37px;background:#f0f3f5;font-weight:700;padding:8px 18px;color:#333e42;display:flex;justify-content:space-between}.menu-title span{font-weight:400;color:#89959c}.menu-subtitle{font-weight:650;padding:12px 16px 4px;font-size:12px}.nav-link{background:transparent;border:0;width:100%;height:36px;text-align:left;padding:0 15px;color:#48525a;font-size:12px;display:flex;justify-content:space-between;align-items:center}.nav-link:hover{background:#eef8f7}.nav-link.active{color:var(--teal-dark);font-weight:700;background:#e8f8f6}.tiny-counter{border-radius:9px;background:#eaf0f2;padding:0 6px;font-size:10px;color:#889296}.side-note{margin:24px 15px;border-top:1px solid #e5ebeb;padding-top:14px;color:#8d9899;font-size:11px}.side-note b{color:#c18c35}.side-note p{margin:4px 0;line-height:1.6}.workspace{margin-left:213px;padding:14px 20px 40px;min-width:0;width:calc(100% - 213px)}.page-title{display:flex;align-items:center;gap:15px;margin:0 0 13px}.page-title h1{font-size:23px;font-weight:500;margin:0}.chip{border-radius:20px;background:#eaf8f7;color:#6f9291;font-size:12px;padding:5px 11px}.notice{padding:9px 11px;margin-bottom:10px;background:#fff6ef;color:#c58e68;font-size:11px;border-left:2px solid #ffb47a}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px;margin-bottom:9px}.filter-cell{position:relative;min-width:0;display:flex;align-items:center;border:1px solid #dce2e6;background:#fff;height:31px;border-radius:2px;color:#818990}.filter-cell:focus-within{border-color:#04aaa9}.filter-cell label{flex:none;padding:0 9px;color:#6d7780;white-space:nowrap}.filter-cell input,.filter-cell select{min-width:0;max-width:100%;border:0;outline:0;background:transparent;width:100%;height:29px;padding:0 8px;color:#4e565e;font-size:12px}.filter-cell select{padding-left:2px}.filter-cell.range{gap:4px;padding-right:7px}.filter-cell.range input{min-width:28px;text-align:center}.filter-cell.range span{color:#adb8c0}.search-actions{display:flex;align-items:center;gap:10px;margin:12px 0 9px}.btn{border:1px solid var(--line);background:#fff;color:#65717b;min-height:31px;padding:5px 12px;border-radius:2px;white-space:nowrap}.btn:hover{border-color:var(--teal);color:var(--teal)}.btn-teal{background:var(--teal);border-color:var(--teal);color:white}.btn-teal:hover{color:white;background:#008c8b;border-color:#008c8b}.btn-soft{border-color:#9adfdb;color:#00a7a6;background:#f0fbfb}.btn-red{color:#d66767;border-color:#efc8c8}.btn-text{border:0;background:none;color:var(--teal);padding:4px 6px;min-height:25px}.btn-text:hover{text-decoration:underline}.mini{padding:4px 9px;min-height:27px;font-size:12px}.right{margin-left:auto}.action-bar{display:flex;gap:9px;margin:16px 0 9px;align-items:center;flex-wrap:wrap}.group-dropdown{position:relative;display:inline-block}.dropdown-panel{position:absolute;top:100%;left:0;z-index:25;min-width:165px;background:white;border:1px solid #dce4e7;box-shadow:0 7px 22px #20343b2b;display:none;padding:5px 0}.group-dropdown.open .dropdown-panel{display:block}.dropdown-panel button{display:block;text-align:left;border:0;background:none;min-height:32px;width:100%;padding:7px 13px;color:#53616a}.dropdown-panel button:hover{background:#f2f9f9;color:var(--teal)}.status-tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #e6eaea;margin-top:12px;flex-wrap:wrap}.status-tab{min-height:36px;padding:0 18px;background:#fff;border:1px solid #e2e7eb;border-right:0;color:#687780;font-size:12px}.status-tab:last-of-type{border-right:1px solid #e2e7eb}.status-tab.active{background:var(--teal);border-color:var(--teal);color:#fff}.status-hint{color:#91a1a5;font-size:11px;margin-left:15px}.status-total{font-weight:500}.table-wrap{width:100%;overflow:auto}.data-table{width:100%;min-width:980px;border-collapse:collapse;font-size:12px;table-layout:fixed}.data-table thead th{height:44px;background:#f7f8f9;color:#7e8a94;text-align:left;font-weight:600;border-bottom:1px solid #edf0f0;padding:0 10px}.data-table thead th:first-child{width:40px}.data-table tbody td{border-bottom:1px solid #e7eaf0;vertical-align:top;padding:12px 10px;color:#636e73;word-wrap:break-word}.data-table tbody tr:hover td{background:#fbfefe}.data-table tbody tr.checked td{background:#f0fafa}.product-summary{display:flex;gap:10px;min-width:0}.thumb{width:65px;height:74px;flex:none;border:1px solid #edf0f0;display:grid;place-items:center;background:#fafafa;overflow:hidden;color:#c1c9cc}.thumb img{width:100%;height:100%;object-fit:contain}.product-main{min-width:0}.product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#4e575b;max-width:360px;min-height:37px}.product-meta{margin-top:6px;font-size:11px;color:#9ba5a9}.product-meta a{color:#09aba9;text-decoration:none}.small-pill{border:1px solid #e0e7e7;font-size:11px;color:#888;padding:1px 5px}.row-actions{display:flex;flex-wrap:wrap;gap:2px 5px;max-width:100px}.empty{min-height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a7afb5;gap:7px}.empty-graphic{font-size:54px;color:#c6cccc;line-height:1}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 10px;border-top:1px solid #e8ecee;color:#849199}.pagination input{width:48px;height:28px;border:1px solid #e2e6e8;text-align:center}.pagination select{height:28px;border:1px solid #e2e6e8;color:#64727b;background:white}.footer-select{margin-right:auto}.muted{color:#96a3aa}.pill-ok{color:#17a58e}.pill-warn{color:#db9d36}.pill-error{color:#e06a63}.info-panel{border:1px solid #e6ecef;padding:16px;background:white;margin-top:14px}.info-panel h2{font-size:15px;margin:0 0 12px}.info-panel p{font-size:12px;color:#798590;line-height:1.7}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{padding:17px;border:1px solid #e2e8e9}.stat b{font-size:28px;display:block;margin-top:7px}.chip-box{display:inline-block;padding:3px 9px;background:#e9f8f8;color:var(--teal-dark);font-size:11px}.modal-shade{position:fixed;inset:0;background:#0008;z-index:80;display:flex;align-items:center;justify-content:center}.simple-modal{width:min(800px,94vw);max-height:92vh;overflow:hidden;background:#fff;display:flex;flex-direction:column;box-shadow:0 15px 50px #0003;border-radius:4px}.simple-head{height:52px;padding:13px 20px;border-bottom:1px solid #e7eaea;font-size:17px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.simple-body{padding:20px;overflow:auto}.simple-footer{border-top:1px solid #e5e9eb;padding:12px 16px;display:flex;align-items:center;gap:9px;justify-content:flex-end}.simple-footer small{color:#98a4a9;margin-right:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;color:#68737a;font-size:12px}.field.full{grid-column:1/-1}.field input,.field select,.field textarea,.editor-control{border:1px solid #dce2e8;width:100%;padding:8px 10px;border-radius:2px;outline:none;background:#fff;font-size:12px;color:#555;min-height:34px}.field textarea{min-height:115px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.editor-control:focus{border-color:#00b1aa}.hint{font-size:11px;color:#9ba6ad}.warning{color:#dc8a57;font-size:11px}.editor-modal{width:min(1550px,96vw);height:calc(100vh - 40px);max-height:1000px;background:#fff;display:flex;box-shadow:0 12px 50px #0004;border-radius:3px;overflow:hidden}.editor-rail{width:300px;flex:none;background:#fff;border-right:1px solid #e6e7e9;display:flex;flex-direction:column;min-width:0}.editor-rail-list{overflow:auto;flex:1}.editor-item{display:flex;gap:9px;padding:10px;border:0;border-bottom:1px solid #e8ecee;background:white;width:100%;text-align:left;align-items:center;min-height:76px}.editor-item.active{background:#d6f4f3}.editor-item:hover{background:#e9fafa}.editor-item .thumb{width:54px;height:57px}.editor-item-title{font-size:12px;color:#555;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}.editor-item-meta{color:#97a5aa;font-size:11px;margin-top:5px}.editor-rail-foot{display:flex;align-items:center;justify-content:center;height:46px;border-top:1px solid #e7eaee;color:#7e898e;font-size:12px;gap:14px}.editor-panel{flex:1;display:flex;flex-direction:column;min-width:0}.editor-tabs{height:44px;border-bottom:1px solid #dbe4e7;display:flex;align-items:stretch;overflow-x:auto;flex-shrink:0;white-space:nowrap}.editor-tabs button{border:0;background:white;padding:0 18px;color:#61686d;border-bottom:2px solid transparent}.editor-tabs button.active{border-color:#00aca8;color:#00aaa7}.editor-x{margin-left:auto!important;font-size:23px!important;padding:0 16px!important}.editor-scroll{padding:24px 36px 35px;overflow:auto;flex:1;scrollbar-width:thin}.editor-scroll h2{font-size:15px;margin:0 0 22px;font-weight:700;color:#656a6e}.editor-scroll h3{margin:20px 0 15px;font-size:14px;color:#5e666b}.editor-section{max-width:1280px}.editor-field{margin:0 0 20px}.editor-field>label{display:block;color:#777;font-size:12px;margin-bottom:10px}.editor-field.required>label:before{content:'* ';color:#ed7979}.editor-field>input,.editor-field>select,.editor-field>textarea{display:block;width:100%;border:1px solid #dce2e8;border-radius:2px;padding:9px 10px;outline:0;font-size:12px;color:#555;background:white}.editor-field>input:focus,.editor-field>select:focus,.editor-field>textarea:focus{border-color:var(--teal)}.editor-field>textarea{resize:vertical;min-height:180px}.editor-field .length-count{float:right;color:#abb0b5;font-size:11px}.attrs-grid{background:#f7f8f9;padding:11px 10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.attrs-grid .field{margin:0}.skus{width:100%;border-collapse:collapse;font-size:12px}.skus th{background:#f8f9fa;color:#90989d;font-weight:600;text-align:left;padding:10px 9px;white-space:nowrap}.skus td{border-bottom:1px solid #e8edf0;padding:10px 9px}.skus input{width:100%;min-width:75px;padding:7px 8px;border:1px solid #dde4e6;color:#555}.skus input:focus{outline:1px solid var(--teal)}.skus th:first-child{width:24%}.skus th:last-child{width:100px}.editor-bottom{height:51px;border-top:1px solid #e5eaed;display:flex;gap:10px;align-items:center;justify-content:flex-end;padding:0 17px;flex-shrink:0}.editor-bottom .btn{min-width:78px}.editor-bottom .editor-status{margin-right:auto;color:#8c9ba0;font-size:11px}.img-tools{display:flex;justify-content:flex-end;gap:5px;margin-bottom:13px;flex-wrap:wrap}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.image-tile{border:1px solid #e4e9eb;padding:8px;min-width:0}.image-tile .tile-image{height:130px;display:grid;place-items:center;overflow:hidden;background:#f6f8fa}.image-tile img{max-width:100%;max-height:100%;object-fit:contain}.image-tile small{display:block;color:#929ca4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-tile .tile-btns{display:flex;justify-content:space-between;gap:4px;margin-top:7px}.image-tile .tile-btns button{font-size:11px;color:#07aaa7;border:0;background:transparent;padding:2px}.image-tile .tile-btns button:hover{text-decoration:underline}.link-row{display:flex;align-items:center;gap:10px}.link-row input{flex:1}.section-divider{height:1px;background:#e8edef;margin:26px 0}.publish-option{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.publish-row{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:18px 0}.publish-box-title{font-weight:700;font-size:12px;color:#60676a;margin-bottom:12px}.checklist{padding:10px;border:1px solid #ecedef;background:#fcfcfc;margin-top:15px}.checklist li{padding:6px 0;font-size:12px}.panel-empty{padding:40px;text-align:center;color:#9eabae}.error-tip{border:1px solid #ffd3ca;background:#fff7f4;color:#a55e52;padding:9px 13px;font-size:12px;margin-bottom:13px}#toast{position:fixed;bottom:24px;right:24px;z-index:120;max-width:540px;background:#294c52;color:#fff;opacity:0;transform:translateY(9px);pointer-events:none;padding:11px 16px;box-shadow:0 10px 28px #0002;transition:.2s;font-size:12px}#toast.visible{opacity:1;transform:translateY(0)}@media(max-width:1100px){.filter-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.head-right{display:none}.editor-rail{width:220px}.editor-tabs button{padding:0 12px}.editor-scroll{padding:20px}}@media(max-width:700px){.sidenav{width:145px}.logo{width:145px;padding:0 8px}.logo b{font-size:12px}.logo small{display:none}.main-tabs button{padding:0 9px;font-size:11px}.workspace{margin-left:145px;width:calc(100% - 145px);padding:9px}.page-title h1{font-size:18px}.filter-grid{grid-template-columns:1fr}.editor-modal{width:100%;height:100vh;max-height:none}.editor-rail{width:95px}.editor-item .thumb{display:none}.editor-item-title{font-size:10px}.editor-scroll{padding:12px}.attrs-grid,.form-grid,.publish-row{grid-template-columns:1fr}}
/* v0.5 offline workbench enhancements */
.bulk-form{display:grid;gap:8px;margin:14px 0}.bulk-row{display:grid;grid-template-columns:135px 1fr;align-items:start;gap:10px;padding:10px;border:1px solid #e5eaed;background:#fcfdfd}.bulk-check{display:flex;align-items:center;gap:8px;min-height:30px}.bulk-controls{display:flex;flex-wrap:wrap;gap:8px}.bulk-controls input,.bulk-controls textarea{flex:1;min-width:145px}.bulk-controls select{max-width:190px}.bulk-controls input,.bulk-controls select,.bulk-controls textarea{padding:7px;border:1px solid #dce5e8;border-radius:3px}.attrs-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.attrs-heading h3 small{font-size:11px;color:#859499;font-weight:400}.attr-field label{display:flex;justify-content:space-between;gap:10px}.attr-remove{border:0;background:transparent;color:#b05555;font-size:17px;line-height:12px;cursor:pointer}.category-head .editor-field{margin-bottom:6px}.sku-image-cell{display:flex;gap:5px;align-items:center;min-width:125px}.sku-image-cell img{width:35px;height:35px;object-fit:cover;border:1px solid #e1e8eb}.sku-image-cell .btn-text{white-space:nowrap}.image-tile[draggable=true]{cursor:grab}.image-tile.dragging{opacity:.4}.image-number{font-size:11px;color:#008b88;font-weight:600}.file-btn{cursor:pointer}.template-select{height:32px;max-width:160px;border:1px solid #dae3e6;border-radius:3px;padding:0 6px;font-size:12px}.editor-bottom{gap:6px}.editor-status{margin-right:auto;white-space:nowrap}.filter-cell input[type=date]{min-width:0}.simple-modal{max-height:94vh;overflow:hidden}.simple-body{max-height:calc(94vh - 125px);overflow-y:auto}.skus{min-width:900px}.image-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}@media(max-width:850px){.bulk-row{grid-template-columns:1fr}.editor-bottom{flex-wrap:wrap}.editor-status{display:none}}
/* v0.6 · Stage 2: personal Wildberries store management */
.stores-panel{border:1px solid #e3eaec;background:#fff;margin:12px 0 16px;padding:15px 17px}.stores-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f2;padding-bottom:12px;margin-bottom:14px;font-size:14px;color:#485860}.stores-muted,.stores-hint{font-size:11px;color:#88999f;line-height:1.65}.stores-connect-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.stores-connect-row label,.stores-tools label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#7a888f}.stores-connect-row label:first-child{flex:2;min-width:245px}.stores-connect-row label:nth-child(2){flex:1.2;min-width:220px}.stores-connect-row input,.stores-tools input,.stores-tools select{border:1px solid #dce5e8;border-radius:3px;background:white;padding:8px 11px;font-size:12px;height:34px;min-width:0}.stores-connect-row .btn,.stores-tools .btn{height:34px}.stores-panel .stores-hint{margin-top:14px}.stores-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stores-stats>div{background:white;border:1px solid #e1e9eb;padding:15px 18px;min-height:90px}.stores-stats span{display:block;color:#87959c;font-size:12px}.stores-stats b{font-size:27px;color:#404c52;display:block;margin:6px 0}.stores-stats small{font-size:10px;color:#97a2a9}.stores-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:14px}.stores-tools label:first-child{flex:1;min-width:190px}.stores-tools label:nth-child(2){width:145px}.stores-table{font-size:12px}.stores-table td{padding:14px 10px;vertical-align:middle}.stores-table th{white-space:nowrap}.store-id,.store-auth{display:block;font-size:10px;color:#9ca6ab;margin-top:6px}.store-state{font-size:11px;color:#008d83;background:#e4f6f4;padding:4px 8px;white-space:nowrap}.store-state.store-inactive{background:#f4f4f4;color:#919999}.store-row-actions{display:flex;gap:8px;flex-wrap:wrap}.store-row-actions button{white-space:nowrap}.store-policy p{font-size:12px;color:#829198;line-height:1.7;margin-bottom:0}.store-history{display:grid;gap:0}.store-history>div{border-bottom:1px solid #e9eff0;padding:9px 3px;display:flex;gap:14px;font-size:11px}.store-history time{color:#9aa6a9;min-width:145px}.store-history strong{color:#61787d}.stores-table .empty{gap:8px}@media(max-width:850px){.stores-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stores-connect-row{display:grid;grid-template-columns:1fr}.stores-tools label{width:100%!important}}

/* Override v0.5 first-column checkbox width on the store table (it has no checkbox). */
.stores-table{min-width:1060px;table-layout:fixed}
.stores-table thead th:first-child{width:22%}
.stores-table thead th:nth-child(2){width:13%}
.stores-table thead th:nth-child(3){width:15%}
.stores-table thead th:nth-child(4){width:13%}
.stores-table thead th:nth-child(5){width:12%}
.stores-table thead th:nth-child(6){width:13%}
.stores-table thead th:nth-child(7){width:12%}
.stores-table td:first-child{overflow:hidden;min-width:0;word-break:break-word}
.stores-table .store-id{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95%}
.stores-table td{word-break:normal}
.stores-table .store-row-actions{gap:3px 8px}
