*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#1f1f1f;font:14px/22px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input{font:inherit}button,a{cursor:pointer}button{border:0}a{color:#168348;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #07c160;outline-offset:3px}main{max-width:1440px;margin:28px auto;padding:0 32px 32px}h1{font-size:22px;line-height:30px;font-weight:500;margin:0 0 20px}h2{font-size:16px;line-height:24px;font-weight:500;margin:0}p{margin:0;color:#888}.workspace{background:#fff;border:1px solid #e3e7e5;border-radius:10px;overflow:hidden}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 20px;border-bottom:1px solid #e3e7e5;min-height:72px}.tabs{display:flex;gap:28px;align-self:stretch}.tabs button{background:none;padding:0;color:#888;font-size:14px;border-bottom:2px solid transparent}.tabs button[aria-selected=true]{color:#168348;border-color:#07c160;font-weight:500}.tools{display:flex;align-items:center;gap:12px}.tools a{margin-right:8px}.primary{background:#07c160;color:#fff;border-radius:6px;padding:8px 20px;line-height:22px}.secondary{background:#fff;color:#3c4841;border:1px solid #dce3df;border-radius:6px;padding:7px 18px;line-height:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;min-width:580px}th{font-weight:400;color:#617369;background:#f7f9f8}th,td{padding:14px 24px;border-bottom:1px solid #edf0f1;vertical-align:top;overflow-wrap:anywhere}th:first-child,td:first-child{width:38%}th:nth-child(2),td:nth-child(2){width:18%}.empty{height:360px;display:grid;place-items:center;color:#999}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 24px;color:#888}.count{margin-left:8px}.status{color:#168348}.overlay{position:fixed;inset:0;background:#0005;z-index:10;display:flex;justify-content:center;align-items:center;padding:32px}.overlay[hidden]{display:none}.dialog{background:#fff;width:800px;max-width:100%;max-height:calc(100vh - 64px);overflow:auto;border-radius:10px;box-shadow:0 16px 60px #0002}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #edf0f1}.close{background:none;color:#999;font-size:24px;width:32px;height:32px;padding:0}.dialog-body{padding:24px}.dialog-foot{padding:16px 24px;border-top:1px solid #edf0f1;display:flex;justify-content:flex-end;gap:12px}.upload{display:flex;align-items:center;gap:16px;margin-top:20px}.file-name{color:#888;overflow-wrap:anywhere;min-width:0}.error{color:#df4545;margin-top:12px}.error:empty,.status:empty{display:none}#preview .table-wrap{margin-top:20px}.confirm{margin-top:20px}.drawer-overlay{justify-content:flex-end;padding:0}.drawer{width:380px;height:100%;max-height:none;border-radius:0;display:flex;flex-direction:column}.fields{padding:24px;display:flex;flex-direction:column;gap:20px;flex:1}label{display:block;color:#617369}input{display:block;width:100%;margin-top:8px;border:1px solid #dfe5e1;border-radius:6px;padding:10px 12px;line-height:22px;color:#1f1f1f;outline:none}input:focus{border-color:#a9e4c3}input::placeholder{color:#aaa}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:auto;padding-top:24px}@media(max-width:760px){main{padding:0 16px 24px;margin-top:24px}.toolbar{padding:12px 16px;flex-wrap:wrap;gap:16px}.tabs{height:40px}.tools{width:100%;justify-content:flex-end}.overlay{padding:16px}.drawer-overlay{padding:0}.drawer{width:min(380px,100%)}h1{font-size:18px;line-height:26px}}

[hidden]{display:none!important}select{font:inherit;border:1px solid #dce3df;border-radius:6px;padding:7px 12px;background:#fff;max-width:320px;color:#1f1f1f}.login-card{max-width:420px;margin:72px auto;background:#fff;border:1px solid #e3e7e5;border-radius:10px;padding:32px;text-align:center}.login-card h1{margin-bottom:8px}.login-card img{display:block;width:240px;height:240px;margin:20px auto}.login-card button{margin-top:20px}.login-card p{margin-top:8px}.error{white-space:pre-wrap;overflow-wrap:anywhere}.notice{margin:0 0 20px;color:#617369}.import-summary{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0;color:#617369}.status-cell{width:120px;color:#168348}.dialog table{min-width:520px}button:disabled{opacity:.5;cursor:default}.dialog .error{padding:12px 16px;background:#fff4f3;border-radius:6px}.dialog .error:empty{padding:0}.workspace-footer button{margin-left:auto}#pageError{margin:0 0 20px}#preview{max-height:380px;overflow:auto}#preview th{position:sticky;top:0}.empty p{color:#999}#loginError{margin-top:16px}.link-button{background:none;color:#168348;padding:4px 0}.loading{color:#888}#workspaceTitle{overflow-wrap:anywhere}@media(max-width:760px){.login-card{margin:32px 0;padding:24px}.dialog-body{padding:16px}.dialog-head{padding:16px}.dialog-foot{padding:16px}th,td{padding:12px 16px}.workspace-footer{padding:12px 16px}.toolbar .tools{gap:12px;justify-content:space-between}.tools a{margin:0}}
@media(max-width:760px){.table-wrap table{min-width:0}.table-wrap th,.table-wrap td{padding:12px 8px}.table-wrap th:first-child,.table-wrap td:first-child{width:40%;padding-left:16px}.table-wrap th:nth-child(2),.table-wrap td:nth-child(2){width:16%}.table-wrap th:last-child,.table-wrap td:last-child{padding-right:16px}.upload{flex-wrap:wrap;gap:8px}.dialog .table-wrap table{min-width:0;font-size:12px;line-height:20px}.dialog .table-wrap th:first-child,.dialog .table-wrap td:first-child{width:34%;padding-left:8px}.dialog .table-wrap th:nth-child(2),.dialog .table-wrap td:nth-child(2){width:14%}.dialog .status-cell{width:20%}.dialog .table-wrap th:last-child,.dialog .table-wrap td:last-child{padding-right:8px}.workspace-footer{flex-wrap:wrap}}
.drawer{width:600px}.fields{overflow:auto;min-height:0;gap:20px}.section-label{color:#617369}.specification-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.specification-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.specification-row input{flex:1;min-width:0;margin:0}.specification-row button{flex-shrink:0;padding:8px 0}.variant-hint{font-size:12px;line-height:20px;margin-top:8px;color:#888}.drawer .form-actions{position:sticky;bottom:-24px;background:#fff;padding-bottom:24px;flex-shrink:0}.fields>label{flex-shrink:0}.fields>section{flex-shrink:0}@media(max-width:760px){.drawer{width:100%}.fields{padding:20px 16px;gap:16px}.dimension-row{grid-template-columns:84px minmax(0,1fr) 32px;gap:8px;margin-bottom:12px}.dimension-row input{padding:10px 8px}.drawer .form-actions{bottom:-20px;padding-bottom:20px}.variant-table table{min-width:260px}}
.specification-row .specification-delete{display:flex;align-items:center;justify-content:center;width:40px;height:44px;padding:0;border-radius:6px;background:none;color:#617369}.specification-delete:hover:not(:disabled){background:#fff4f3;color:#df4545}.specification-delete svg{display:block;flex-shrink:0}
.manual-main-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px;flex-shrink:0}.variant-table th:first-child,.variant-table td:first-child{min-width:64px;width:64px!important;white-space:nowrap}@media(max-width:760px){.manual-main-fields{grid-template-columns:minmax(0,1fr) 84px;gap:12px}}
#preview th:first-child,#preview td:first-child{width:34%}#preview th:nth-child(2),#preview td:nth-child(2){width:10%}#preview th:nth-child(3),#preview td:nth-child(3){width:44%}#preview th:last-child,#preview td:last-child{width:12%}@media(max-width:760px){#preview th:first-child,#preview td:first-child{width:30%}#preview th:nth-child(2),#preview td:nth-child(2){width:12%}#preview th:nth-child(3),#preview td:nth-child(3){width:42%}#preview th:last-child,#preview td:last-child{width:16%}}

.login-card #loginError:not(:empty){margin-top:16px}

/* Keep the account controls aligned with the catalog below. */
.site-header{background:#fff;border-bottom:1px solid #e7eae8}
.header-inner{max-width:1440px;min-height:64px;margin:0 auto;padding:12px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:16px;flex-shrink:0;font-size:16px;line-height:24px;font-weight:600}
.brand span{padding-left:16px;border-left:1px solid #e3e7e5;color:#888;font-size:14px;line-height:20px;font-weight:400}
.identity{display:flex;align-items:center;gap:20px;min-width:0}
.user-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3c4841}
.entry-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}
.entry-heading h1{margin:0}
.team-control{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#617369}
.team-select{position:relative;width:240px;min-width:0}
.team-select::after{content:"";position:absolute;right:14px;top:15px;width:6px;height:6px;border-right:1.5px solid #617369;border-bottom:1.5px solid #617369;transform:rotate(45deg);pointer-events:none}
.team-select select{display:block;appearance:none;width:100%;max-width:none;height:40px;padding:8px 36px 8px 12px;background:#f7f9f8;border:1px solid #e3e7e5;border-radius:6px;font-size:14px;line-height:22px;text-overflow:ellipsis;cursor:pointer;transition:border-color .15s,background .15s}
.team-select select:hover{border-color:#b7c8be;background:#fff}
.team-select select:focus-visible{outline:2px solid #07c160;outline-offset:2px}
.identity #logout{flex-shrink:0;min-height:40px;color:#617369;white-space:nowrap}
.identity #logout:hover{color:#168348}
@media(max-width:760px){
  .header-inner{padding:12px 16px;flex-wrap:wrap;gap:12px}
  .brand{font-size:15px}
  .brand span{font-size:13px}
  .identity{gap:16px;margin-left:auto;max-width:100%}
  .user-name{max-width:180px}
  .entry-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .team-control{width:100%;gap:12px}
  .team-select{flex:1;width:auto}
}

#records th:first-child,#records td:first-child{width:30%}#records th:nth-child(2),#records td:nth-child(2){width:10%}#records .actions-column{width:176px}#records td{vertical-align:middle}.record-actions .link-button{white-space:nowrap}.record-actions .link-button+.link-button{margin-left:16px}.link-button.danger{color:#df4545}.attribute-field{flex:1;min-width:0}.attribute-field input{margin-top:8px}#editHint{font-size:12px;line-height:20px}@media(max-width:760px){#records th:first-child,#records td:first-child{width:30%}#records th:nth-child(2),#records td:nth-child(2){width:14%}#records .actions-column{width:84px}.record-actions .link-button{display:block}.record-actions .link-button+.link-button{margin-left:0;margin-top:4px}}

.catalog-search{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #edf0f1}.catalog-search input{margin:0;max-width:400px;min-width:0;flex:1;padding:8px 12px}.catalog-search button{flex-shrink:0}@media(max-width:760px){.catalog-search{padding:12px 16px;gap:12px}.catalog-search .secondary{padding:7px 12px}}

body{background:#f6f7f9;color:#263247;font-size:13px}a,.link-button,.status{color:#3867ed}button:focus-visible,a:focus-visible{outline-color:#3867ed}.primary{background:#3867ed}.secondary{color:#536786;border-color:#dfe5ef}.danger{color:#d84c41!important}.sidebar{position:fixed;inset:0 auto 0 0;width:210px;background:#fff;border-right:1px solid #e5e9f0;z-index:3;display:flex;flex-direction:column;padding:14px 12px}.sidebar-brand{display:flex;gap:10px;align-items:center;font-size:16px;font-weight:600;white-space:nowrap;padding:0 2px 30px}.sidebar-brand b{background:#3867ed;color:white;font-size:22px;line-height:32px;width:32px;text-align:center;border-radius:9px}.nav-caption{color:#8d9ab0;font-size:11px;padding:0 10px;margin-bottom:10px}.sidebar nav{display:grid;gap:5px}.sidebar nav button{display:flex;align-items:center;gap:14px;text-align:left;min-height:44px;padding:10px 14px;border-radius:7px;background:white;color:#6b7d9c}.sidebar nav button span{width:16px;font-size:18px}.sidebar nav button[aria-selected=true]{background:#edf2ff;color:#3867ed}.sidebar-team{margin-top:auto;background:#f8f9fc;border:1px solid #e9edf3;border-radius:8px;padding:12px}.sidebar-team>span{font-size:11px;color:#8896af}.sidebar-team .team-control{display:block;font-size:0}.sidebar-team .team-select{width:100%;margin-top:8px}.sidebar-team select{width:100%;font-size:13px;font-weight:500;border:0;background:transparent;padding:8px 20px 8px 0}.sidebar-team .team-select:after{right:2px}.site-header{border-color:#e5e9f0}.header-inner{max-width:none;min-height:40px;padding:6px 28px}.brand{font-size:12px;color:#8a98ae;font-weight:400}.brand span{font-size:12px;padding-left:14px;color:#536554}.user-name{font-size:12px}.identity{gap:24px}.identity .link-button{font-size:12px;color:#687c9c}body:has(#sidebar:not([hidden])) .site-header,body:has(#sidebar:not([hidden])) main{margin-left:210px}main{max-width:none;margin-top:24px;padding:0 28px 32px}.entry-heading{margin-bottom:20px}.entry-heading h1{font-size:24px;font-weight:600}.entry-heading .team-control{display:none}.notice{display:none}.page-summary{color:#8996a9;margin:0 0 24px}.page-summary strong{font-size:21px;color:#263247;margin-right:8px}.workspace{border-color:#dfe5ef}.toolbar{min-height:72px;padding:16px 20px;border-color:#e5e9f0;justify-content:flex-start;gap:20px;position:relative}.toolbar>strong{white-space:nowrap;font-size:14px;color:#4b5d7c}.tools{margin-left:auto}.catalog-search{border:0;padding:0;gap:8px;flex:1;max-width:410px}.catalog-search input{max-width:300px;border-color:#dfe5ef;padding:8px 12px;font-size:12px}.catalog-search .secondary{background:#f6f8ff;color:#3867ed;padding:7px 16px}th{background:#fafbfc;color:#85908d;font-size:12px}th,td{padding:20px 24px;border-color:#e7ecf2;vertical-align:middle}td{height:66px}th:first-child,td:first-child{width:46%}th:nth-child(2),td:nth-child(2){width:30%}th:nth-child(3),td:nth-child(3){width:8%}th:nth-child(4),td:nth-child(4){width:6%}th:last-child,td:last-child{width:140px}.stock-number{color:#3867ed;text-align:right;font-weight:600}.record-actions{white-space:nowrap}.record-actions .link-button{color:#263247;font-size:12px}.workspace-footer{font-size:11px;color:#8a98af;min-height:46px}input:focus{border-color:#8da9fa}.business-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.business-toolbar input{margin:0;width:300px}.business-toolbar .primary{margin-left:auto}.business-toolbar button[aria-selected=true]{background:#edf2ff;color:#3867ed}.business-toolbar+.workspace{min-height:120px}#businessMore{margin-top:16px}.detail-section{margin-bottom:24px}.detail-section h3{margin:0 0 12px;font-size:15px}.detail-section p{line-height:1.8}.profile-grid{padding:24px;display:grid;grid-template-columns:100px 1fr;gap:16px}.profile-grid dt{color:#8a98af}.profile-grid dd{margin:0;overflow-wrap:anywhere}.business-form{display:grid;gap:16px}.business-form .primary{justify-self:end}.business-form input{margin-top:8px}.business-form label{color:#687c9c}.detail-section table{min-width:550px}#businessDetail{overflow-x:auto}#businessDetail th,#businessDetail td{width:auto}.login-card{border-color:#dfe5ef}.login-card h1{color:#263247}
@media(max-width:1000px){.toolbar{flex-wrap:wrap}.catalog-search{order:3;flex-basis:100%;max-width:none}.catalog-search input{max-width:none}.tools{gap:8px}.tools a{margin:0}}
@media(max-width:760px){.sidebar{width:76px;padding:12px 6px}.sidebar-brand{font-size:0;justify-content:center;padding-bottom:20px}.sidebar-brand b{font-size:22px}.nav-caption{display:none}.sidebar nav button{padding:10px 4px;justify-content:center;gap:4px;flex-direction:column;font-size:11px}.sidebar-team{padding:6px 2px}.sidebar-team>span{font-size:10px}.sidebar-team select{font-size:10px;padding-right:8px}.sidebar-team .team-select:after{display:none}body:has(#sidebar:not([hidden])) .site-header,body:has(#sidebar:not([hidden])) main{margin-left:76px}.header-inner{padding:8px 12px;gap:8px}.brand{gap:6px}.brand span{padding-left:6px}.identity{gap:8px}.user-name{max-width:80px}main{padding:0 12px 24px;margin-top:20px}.entry-heading h1{font-size:22px}.toolbar{padding:12px;gap:12px}.tools{flex-wrap:wrap;justify-content:flex-start;width:auto}.tools a{font-size:11px}.tools button{padding:6px 10px;font-size:12px}.table-wrap table{min-width:650px}.table-wrap th,.table-wrap td{padding:16px}.table-wrap th:first-child,.table-wrap td:first-child{width:35%}.table-wrap th:nth-child(2),.table-wrap td:nth-child(2){width:30%}.page-summary{margin-bottom:16px}.profile-grid{grid-template-columns:72px 1fr;padding:16px;gap:12px}.business-toolbar input{width:100%}.business-toolbar .primary{margin-left:0}.dialog-body{padding:16px}}
#records th:first-child,#records td:first-child{width:auto}#records th:nth-child(2),#records td:nth-child(2){width:30%}#records th:nth-child(3),#records td:nth-child(3){width:90px;text-align:right;white-space:nowrap}#records th:nth-child(4),#records td:nth-child(4){width:70px;white-space:nowrap}#records .actions-column,#records td:last-child{width:140px}#records th,#records td{padding:20px 24px}#records th{white-space:nowrap}.sidebar-team .team-control{line-height:0}.sidebar-team .team-select{line-height:22px}.sidebar-team .team-select select{min-height:40px}.business-form select{display:block;width:100%;margin-top:8px;max-width:none}
@media(max-width:760px){#records th,#records td{padding:16px}#records th:nth-child(2),#records td:nth-child(2){width:30%}#records th:first-child,#records td:first-child{width:auto}#records .record-actions .link-button{display:inline-block}#records .record-actions .link-button+.link-button{margin-left:12px;margin-top:0}.sidebar-team .team-select select{white-space:nowrap;overflow:hidden}.header-inner .brand{font-size:11px}.header-inner .brand span{font-size:11px}}
#businessRecords .columns-4 th:first-child,#businessRecords .columns-4 td:first-child{width:50%}#businessRecords .columns-4 th:nth-child(2),#businessRecords .columns-4 td:nth-child(2){width:18%}#businessRecords .columns-4 th:nth-child(3),#businessRecords .columns-4 td:nth-child(3){width:18%}#businessRecords .columns-4 th:last-child,#businessRecords .columns-4 td:last-child{width:14%}#businessRecords .columns-3 th:first-child,#businessRecords .columns-3 td:first-child{width:40%}#businessRecords .columns-3 th:nth-child(2),#businessRecords .columns-3 td:nth-child(2){width:35%}#businessRecords .columns-3 th:last-child,#businessRecords .columns-3 td:last-child{width:25%}#businessRecords th{white-space:nowrap}

/* 标题、统计与主要操作共用一行，缩短进入列表的距离。 */
.entry-heading{min-height:40px;margin-bottom:16px;gap:16px;align-items:center}.heading-copy{display:flex;align-items:baseline;gap:12px;min-width:0}.heading-copy h1{margin:0;line-height:32px}.heading-copy .page-summary{margin:0;font-size:12px;line-height:20px;white-space:nowrap;color:#8996a9}.heading-copy .page-summary strong{font-size:12px;font-weight:500;color:#63728a;margin-right:4px}#headingActions{margin-left:auto}#headingActions .tools{gap:12px}.toolbar{min-height:64px;padding:12px 20px}#listTitle{display:none}.toolbar .catalog-search{order:0;max-width:440px}.toolbar .catalog-search input{max-width:340px}
@media(max-width:760px){.entry-heading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}.heading-copy{gap:10px}.heading-copy h1{font-size:22px}#headingActions{width:100%;margin-left:0}#headingActions .tools{width:100%;justify-content:flex-start;gap:8px}.toolbar{padding:12px;min-height:64px}.toolbar .catalog-search{width:100%;max-width:none}.toolbar .catalog-search input{max-width:none}}
