:root{--brand: #3b82f6;--brand-dark: #1d4ed8;--brand-light: #dbeafe;--violet: #8b5cf6;--violet-light: #ede9fe;--ok: #16a34a;--warn: #d97706;--bad: #dc2626;--bg: #f8fafc;--card: #ffffff;--line: #e2e8f0;--ink: #0f172a;--ink-soft: #475569;--ink-mute: #94a3b8;--sidebar: #0f172a;--sidebar-hover: #1e293b;--sidebar-active: #1d4ed8;--gradient: linear-gradient(135deg, #3b82f6, #8b5cf6)}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,PingFang SC,Microsoft YaHei,sans-serif;color:var(--ink);background:var(--bg)}#app{height:100%}.product-link:hover{text-decoration-color:var(--brand)!important;opacity:.8}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px #0f172a0a}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;font-weight:600;font-size:13px;transition:all .15s;cursor:pointer;border:none}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover{background:var(--brand-dark)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn-ghost:hover{background:#f1f5f9}.btn-sm{padding:5px 10px;font-size:12px;border-radius:6px}.btn-danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.btn-danger:hover{background:#fee2e2}.list-page{display:flex;flex-direction:column;gap:16px}.list-toolbar{padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.list-toolbar-main{display:flex;align-items:center;gap:12px;flex:1;flex-wrap:wrap}.list-toolbar-meta{margin-left:auto;font-size:11px;color:var(--ink-mute);white-space:nowrap}.list-table-card{padding:0;overflow:hidden}.list-card-header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.list-card-title{font-size:13px;font-weight:700;color:var(--ink)}.list-card-subtitle{font-size:11px;color:var(--ink-mute)}.list-empty{padding:48px;text-align:center}.list-empty-title{font-size:14px;font-weight:600;color:var(--ink-soft)}.list-empty-desc{margin-top:4px;font-size:12px;color:var(--ink-mute)}.list-section{display:flex;flex-direction:column;gap:16px}.list-loading{padding:48px;text-align:center;color:var(--ink-mute)}.product-identity{display:flex;align-items:center;min-width:0}.product-identity-thumb{border-radius:10px;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border:1px solid #e2e8f0;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0}.product-identity-thumb.is-placeholder{box-shadow:inset 0 1px #fff9}.product-identity-img{width:100%;height:100%;object-fit:cover;display:block;background:#fff}.product-identity-placeholder{font-size:9px;line-height:1;letter-spacing:.08em;font-weight:800;color:#475569}.product-platform-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.product-platform-badge-icon{width:16px;height:16px;border-radius:999px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:800}.product-list-identity{display:flex;flex-direction:column;gap:8px;min-width:0}.product-list-inline-meta{display:flex;gap:8px 12px;flex-wrap:wrap}.product-list-inline-row,.product-list-platform-stack{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.product-status-list{display:flex;flex-direction:column;gap:8px}.product-status-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.product-status-main{display:flex;flex-direction:column;gap:4px;min-width:0}.product-status-platform{display:flex;align-items:center;gap:8px;min-width:0}.product-status-name{font-size:11px;font-weight:600;color:var(--ink-soft)}.product-status-explain{font-size:10px;line-height:1.45;color:var(--ink-mute);max-width:320px}.product-status-empty{display:flex;flex-direction:column;gap:6px}.product-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.product-summary-stat{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;font-size:12px;font-weight:700;color:var(--ink)}.product-summary-label{font-size:10px;font-weight:600;color:var(--ink-mute)}.product-summary-detail{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:var(--ink-soft)}.pill{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}.pill-ok{background:#dcfce7;color:#15803d}.pill-warn{background:#fef3c7;color:#b45309}.pill-bad{background:#fee2e2;color:#b91c1c}.pill-mute{background:#e2e8f0;color:#475569}.pill-brand{background:#dbeafe;color:#1d4ed8}.pill-purple,.pill-violet{background:#ede9fe;color:#6d28d9}.form-label{display:block;font-size:12px;font-weight:600;color:var(--ink-soft);margin-bottom:5px}.form-input{width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;outline:none;transition:all .15s}.form-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #3b82f61a}.form-input:disabled{background:#f8fafc;color:var(--ink-mute);cursor:not-allowed}.form-select{padding:9px 28px 9px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;outline:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center/16px no-repeat;-webkit-appearance:none;min-width:120px}.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #3b82f61a}.toggle{width:40px;height:22px;border-radius:11px;background:#cbd5e1;position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}.toggle.on{background:var(--brand)}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px #00000026}.toggle.on:after{left:20px}.ch-logo{border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;flex-shrink:0}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.status-dot.green{background:#22c55e;box-shadow:0 0 0 3px #22c55e33}.status-dot.yellow{background:#eab308;box-shadow:0 0 0 3px #eab30833}.status-dot.red{background:#ef4444;box-shadow:0 0 0 3px #ef444433}.status-dot.blue{background:#3b82f6}.status-dot.gray{background:#94a3b8}.auth-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:all .15s;background:#fff}.auth-card:hover{box-shadow:0 2px 12px #0000000f}.auth-card-header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.auth-card-body{padding:20px}.cb{width:16px;height:16px;accent-color:var(--brand);cursor:pointer;border-radius:4px}.section-tab{padding:8px 16px;font-size:13px;font-weight:500;border-radius:8px;cursor:pointer;transition:all .15s;color:var(--ink-soft)}.section-tab:hover{background:#f1f5f9}.section-tab.active{background:var(--brand);color:#fff}.tip{position:relative}.tip:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:#1e293b;color:#fff;font-size:11px;padding:4px 10px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:50}.tip:hover:after{opacity:1}.matrix-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.matrix-table thead th{position:sticky;top:0;background:#f8fafc;padding:10px 12px;text-align:left;font-size:10px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e2e8f0;z-index:2;white-space:nowrap}.matrix-table tbody td{padding:10px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.matrix-table tbody tr{transition:background .1s}.matrix-table tbody tr:hover{background:#f8fafc}.matrix-table tbody tr.selected{background:#eff6ff}.matrix-cell{min-width:140px;cursor:pointer;border-radius:8px;padding:8px 10px;transition:all .15s;position:relative}.matrix-cell:hover{box-shadow:0 0 0 2px var(--brand);z-index:1}.matrix-cell.listed{background:#f0fdf4;border:1px solid #bbf7d0}.matrix-cell.draft{background:#fefce8;border:1px solid #fde68a}.matrix-cell.failed{background:#fef2f2;border:1px solid #fecaca}.matrix-cell.review{background:#f5f3ff;border:1px solid #ddd6fe}.matrix-cell.unbound{background:#f8fafc;border:1px dashed #cbd5e1}.matrix-cell.syncing{background:#eff6ff;border:1px solid #93c5fd}.filter-select{padding:7px 28px 7px 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:500;outline:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 6px center/16px no-repeat;-webkit-appearance:none;min-width:100px;color:var(--ink-soft);transition:all .15s}.filter-select:focus{border-color:var(--brand);box-shadow:0 0 0 2px #3b82f61a}.search-box{position:relative}.search-box input{width:100%;padding:8px 12px 8px 36px;border:1px solid var(--line);border-radius:8px;font-size:13px;outline:none;transition:all .15s;background:#fff}.search-box input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #3b82f61a}.search-box .search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:14px}.progress-track{height:4px;background:#e2e8f0;border-radius:2px;overflow:hidden}.progress-fill{height:100%;border-radius:2px;transition:width .3s ease}.ai-glow{box-shadow:0 0 0 3px #8b5cf61f,0 4px 16px #8b5cf614;border-color:#c4b5fd!important}.ai-grad{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}.main-scroll{flex:1;overflow-y:auto;padding:24px;background:var(--bg)}.sidebar{width:220px;background:var(--sidebar);color:#e2e8f0;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.sidebar-logo{padding:16px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.06)}.sidebar-section{padding:12px 0}.sidebar-section-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#64748b;padding:0 18px;margin-bottom:6px}.sidebar-item{display:flex;align-items:center;gap:10px;padding:8px 18px;font-size:13px;font-weight:500;color:#94a3b8;cursor:pointer;transition:all .15s;border-left:3px solid transparent}.sidebar-item:hover{background:var(--sidebar-hover);color:#e2e8f0}.sidebar-item.active{background:#3b82f626;color:#60a5fa;border-left-color:var(--brand)}.sidebar-item .icon{width:18px;text-align:center;font-size:14px;flex-shrink:0}.sidebar-item .count{margin-left:auto;font-size:11px;background:#ffffff14;padding:1px 7px;border-radius:99px;color:#94a3b8}.sidebar-item.active .count{background:#3b82f640;color:#93c5fd}.topbar{height:48px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;gap:16px;flex-shrink:0}.topbar-crumb{font-size:13px;color:var(--ink-soft)}.topbar-crumb b{color:var(--ink);font-weight:600}.main-wrap{display:flex;flex-direction:column;flex:1;overflow:hidden}.slide-panel{position:fixed;top:0;right:0;bottom:0;width:460px;background:#fff;box-shadow:-4px 0 24px #0000001f;z-index:100;display:flex;flex-direction:column;transform:translate(100%);transition:transform .25s ease}.slide-panel.open{transform:translate(0)}.slide-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003;z-index:99;opacity:0;pointer-events:none;transition:opacity .2s}.slide-panel-overlay.open{opacity:1;pointer-events:auto}.batch-bar{background:#1d4ed8;color:#fff;border-radius:12px;padding:10px 20px;display:flex;align-items:center;gap:12px;font-size:13px;box-shadow:0 4px 20px #1d4ed84d}.batch-bar button{padding:6px 14px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;border:none;transition:all .15s}.batch-bar .bb-primary{background:#fff;color:#1d4ed8}.batch-bar .bb-primary:hover{background:#dbeafe}.batch-bar .bb-ghost{background:#ffffff26;color:#fff}.batch-bar .bb-ghost:hover{background:#ffffff40}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:100;display:flex;align-items:center;justify-content:center}.modal-box{background:#fff;border-radius:16px;box-shadow:0 20px 60px #00000026;max-width:560px;width:100%;max-height:85vh;overflow:hidden;display:flex;flex-direction:column}.modal-header{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#f8fafc}.modal-body{padding:20px;overflow-y:auto;flex:1}.modal-footer{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#f8fafc}.fade-in{animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.slide-in-right{animation:slideInRight .25s ease}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:none}}.float-up{animation:floatUp .6s ease}@keyframes floatUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}.pulse-slow{animation:pulseSlow 3s ease-in-out infinite}@keyframes pulseSlow{0%,to{opacity:.6}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}
