.master-affiliation{display:inline-block;white-space:nowrap;padding:5px 10px;border-radius:99px;color:var(--text);background:var(--accent-dim,rgba(123,117,210,.12));border:1px solid var(--border);font-size:12px;font-weight:600}.master-affiliation[data-platform=web]{color:var(--primary-dark,var(--primary))}.master-search-bar{display:flex;align-items:center;gap:16px;padding:16px 20px;flex-wrap:wrap}.master-search-bar input{max-width:420px}.master-search-bar small{color:var(--text-muted)}
.goods-template-dialog{width:min(1250px,96vw);height:min(850px,92dvh);max-width:96vw;max-height:92dvh;padding:0;border:1px solid var(--border);border-radius:22px;background:var(--card-bg,#222534);color:var(--text,#eef);box-shadow:0 28px 100px #0005;overflow:hidden}.goods-template-dialog[open]{display:flex;flex-direction:column}.goods-template-dialog::backdrop{background:#090e1ba8;backdrop-filter:blur(8px)}.goods-template-dialog [hidden]{display:none!important}.gt-head{padding:25px 28px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:radial-gradient(ellipse at 100% 0,rgba(133,118,220,.13),transparent 70%)}.gt-head h2{margin:5px 0 8px;font-size:26px}.gt-head p,.gt-note{font-size:12px;line-height:1.7;color:var(--text-muted);margin:0}.gt-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--primary)}.gt-tabs{display:flex;align-items:center;gap:20px;padding:0 28px;border-bottom:1px solid var(--border);flex-shrink:0}.gt-tabs>button{padding:12px 0;border:0;border-bottom:2px solid transparent;color:var(--text-muted);background:none;font:inherit;font-size:13px;cursor:pointer}.gt-tabs>button.active{color:var(--primary-dark,var(--primary));border-bottom-color:currentColor;font-weight:700}.gt-tabs>span{margin-left:auto;color:var(--text-muted);font-size:12px}.goods-template-dialog [role=alert]{margin:0;padding:0 28px;color:var(--danger,#d75b66);font-size:13px}.goods-template-dialog [role=alert]:not(:empty){padding:12px 28px;background:#df677512}.gt-gallery{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:0;flex:1}.gt-gallery>aside{padding:20px 15px;display:flex;flex-direction:column;border-right:1px solid var(--border);min-height:0;overflow:auto}.gt-label{display:grid;gap:8px;font-size:12px;color:var(--text-muted);margin-bottom:16px}.gt-list{display:grid;gap:10px}.gt-template{position:relative;border:1px solid var(--border);border-radius:12px;background:var(--bg-2,var(--card-bg));transition:border-color .2s,transform .2s}.gt-template:hover{border-color:var(--primary);transform:translateY(-1px)}.gt-template.selected{border-color:var(--primary);box-shadow:inset 3px 0 0 var(--primary);background:var(--accent-dim,rgba(125,115,200,.1))}.gt-pick{display:grid;gap:9px;width:100%;text-align:left;background:none;border:0;padding:15px;color:inherit;cursor:pointer}.gt-pick strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.gt-pick small{font-size:10px;color:var(--text-muted)}.gt-kind{font-size:10px;letter-spacing:.7px;color:var(--primary-dark,var(--primary))}.gt-delete{display:block;margin:0 12px 10px auto;border:0;background:none;color:var(--danger,#d75b66);font-size:11px;cursor:pointer}.gt-detail{padding:20px 24px;display:flex;flex-direction:column;min-height:0;min-width:0}.gt-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.gt-preview-head h3{font-size:19px;margin:0 0 5px}.gt-preview-head small{font-size:11px;color:var(--text-muted)}.gt-preview-head input{max-width:250px}.gt-table-wrap{flex:1;min-height:120px;overflow:auto;margin-top:14px;border:1px solid var(--border);border-radius:12px}.gt-table-wrap table{min-width:790px;width:100%;border-collapse:collapse}.gt-table-wrap th{position:sticky;top:0;z-index:1;background:var(--card-bg);text-align:left;font-size:11px;white-space:nowrap;padding:12px}.gt-table-wrap td{padding:12px 10px;font-size:12px;border-top:1px solid var(--border);max-width:250px;overflow-wrap:anywhere}.gt-table-wrap code{white-space:pre-wrap;word-break:break-word;font:11px/1.6 ui-monospace,Consolas,monospace;color:var(--text-muted)}.gt-product{display:flex;gap:10px;align-items:center;min-width:130px}.gt-product img,.gt-placeholder{height:44px;width:44px;object-fit:contain;border-radius:8px;background:rgba(128,128,128,.08);flex-shrink:0}.gt-product strong{font-size:12px;line-height:1.5}.gt-placeholder{display:grid;place-items:center}.gt-pager{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;flex-wrap:wrap;font-size:11px;color:var(--text-muted)}.gt-pager button{font-size:11px;padding:6px 10px}.gt-import{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-top:18px;border-top:1px solid var(--border);padding-top:15px}.gt-import label{font-size:11px;display:grid;gap:6px;color:var(--text-muted)}#gtUpload{overflow:auto;padding:36px max(28px,10%);margin:auto;width:100%;box-sizing:border-box}#gtUpload p{font-size:13px;color:var(--text-muted);line-height:1.9;margin:12px 0 20px}#gtUpload h3{font-size:24px}.gt-upload-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--border);background:var(--accent-dim);color:var(--primary);font-size:32px;border-radius:18px;margin-bottom:20px}.gt-upload-actions{display:flex;justify-content:flex-end;gap:12px}.goods-template-dialog button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media(max-width:760px){.goods-template-dialog{width:98vw;max-width:98vw;height:96dvh;max-height:96dvh;border-radius:15px}.gt-head{padding:18px}.gt-head h2{font-size:21px}.gt-tabs{padding:0 18px;gap:14px}.gt-tabs>span{font-size:10px}.gt-gallery{grid-template-columns:1fr;overflow:auto;display:block}.gt-gallery>aside{border-right:0;border-bottom:1px solid var(--border);max-height:250px;padding:12px 18px}.gt-list{display:flex;overflow:auto;min-height:90px}.gt-template{min-width:190px}.gt-detail{min-height:530px;padding:16px}.gt-table-wrap{max-height:350px;flex:auto}.gt-preview-head{align-items:stretch;flex-direction:column;gap:10px}.gt-preview-head input{max-width:none}.gt-import{align-items:stretch}.gt-import label{flex:1}.gt-head p{display:none}}@media(prefers-reduced-motion:reduce){.gt-template{transition:none}}
.gt-confirm{width:min(460px,92vw);padding:26px;border:1px solid var(--border);border-radius:18px;background:var(--card-bg,#242737);color:var(--text,#eee);box-shadow:0 20px 80px #0005}.gt-confirm::backdrop{background:#080b1766;backdrop-filter:blur(4px)}.gt-confirm h3{margin:0 0 14px}.gt-confirm p{font-size:13px;line-height:1.8;color:var(--text-muted);margin-bottom:24px}.goods-template-dialog,.gt-confirm{margin:auto;}
