:root{--font-sans: "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--color-bg: #f6f9fd;--color-surface: #ffffff;--color-surface-soft: #f8fbff;--color-text: #0f172a;--color-text-secondary: #334155;--color-muted: #64748b;--color-border: #dce7f5;--color-border-strong: #bfd8ff;--color-primary: #2563eb;--color-primary-hover: #1d4ed8;--color-cyan: #06b6d4;--color-success: #16a34a;--color-warning: #f59e0b;--color-danger: #ef4444;--gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);--gradient-soft: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--radius-sm: 10px;--radius-md: 12px;--radius-lg: 18px;--radius-xl: 24px;--radius-pill: 999px;--shadow-sm: 0 10px 30px rgba(15, 23, 42, .06);--shadow-md: 0 18px 48px rgba(15, 23, 42, .1);--shadow-popover: 0 24px 60px rgba(15, 23, 42, .14);color:var(--color-text);background:var(--color-bg);font-family:var(--font-sans);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button,.icon-link,.back-link{align-items:center;border:0;cursor:pointer;display:inline-flex;justify-content:center;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}.app-shell{background:linear-gradient(180deg,#f6f9fdf5,#f6f9fdfa),url(/assets/blueprint-grid-DUcpd8OU.png) center top / cover no-repeat;display:grid;grid-template-columns:276px minmax(0,1fr);min-height:100vh}.project-panel{background:#ffffffd6;border-right:1px solid var(--color-border);box-shadow:18px 0 50px #2563eb0d;display:flex;flex-direction:column;gap:var(--space-5);min-height:100vh;padding:22px 18px}.brand{align-items:center;display:flex;gap:var(--space-3)}.brand img{height:46px;width:46px}.brand strong,.brand small,.project-item strong,.project-item small{display:block}.brand strong{color:var(--color-text);font-size:28px;font-weight:800;letter-spacing:0;line-height:1}.brand small{color:var(--color-muted);font-size:12px;margin-top:5px}.sidebar-upload,.primary-action{background:var(--gradient-primary);border-radius:var(--radius-md);box-shadow:0 14px 30px #2563eb3d;color:#fff;font-weight:700;gap:9px;min-height:44px;padding:0 18px}.sidebar-upload img,.primary-action img,.asset-icon img,.metric-icon img,.file-type-icon img,.row-actions img,.empty-state img,.rail-card img{display:block;object-fit:contain}.sidebar-upload img{height:20px;width:20px}.project-section{display:grid;gap:var(--space-3)}.section-label{align-items:center;color:var(--color-text-secondary);display:flex;font-size:13px;font-weight:750;justify-content:space-between}.section-label button{background:transparent;border-radius:var(--radius-sm);color:var(--color-primary);height:28px;width:28px}.project-search,.project-form,.global-search{align-items:center;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);display:grid}.project-search,.global-search{color:var(--color-muted);gap:9px;grid-template-columns:auto 1fr;min-height:40px;padding:0 12px}.project-search input,.project-form input,.global-search input,.rail-card input{background:transparent;border:0;color:var(--color-text);min-width:0;outline:none}.project-search input::placeholder,.project-form input::placeholder,.global-search input::placeholder{color:#94a3b8}.project-form{grid-template-columns:1fr 42px;min-height:40px}.project-form input{padding:0 12px}.project-form button{background:#eef5ff;border-left:1px solid var(--color-border);border-radius:0 var(--radius-md) var(--radius-md) 0;color:var(--color-primary);height:40px}.project-list{display:flex;flex:1;flex-direction:column;gap:8px;overflow:auto}.project-item{align-items:center;background:transparent;border:1px solid transparent;border-radius:var(--radius-lg);color:var(--color-text-secondary);display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:58px;position:relative}.project-select{background:transparent;color:inherit;display:grid;gap:10px;grid-template-columns:auto minmax(0,1fr);justify-content:flex-start;min-height:58px;padding:10px 12px;text-align:left;width:100%}.project-select img{height:22px;width:22px}.project-item strong{color:var(--color-text);font-size:14px;font-weight:720;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-item small{color:var(--color-muted);font-size:12px;margin-top:3px}.project-item.active,.project-item:hover{background:#eef6ff;border-color:#d7e8ff}.project-item.active{box-shadow:inset 3px 0 0 var(--color-primary)}.project-menu-button{background:transparent;border-radius:var(--radius-sm);color:var(--color-muted);height:34px;margin-right:6px;width:34px}.project-menu-button:hover{background:#e3efff;color:var(--color-primary)}.project-actions{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-popover);display:grid;gap:4px;min-width:132px;padding:6px;position:absolute;right:8px;top:48px;z-index:8}.project-actions button{background:transparent;border-radius:var(--radius-sm);color:var(--color-text-secondary);justify-content:flex-start;min-height:34px;padding:0 10px}.project-actions .danger-action{color:var(--color-danger)}.project-actions button:hover{background:#eef5ff}.storage-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);color:var(--color-muted);display:grid;gap:8px;padding:14px}.storage-card span{color:var(--color-text-secondary);font-size:13px;font-weight:750}.storage-card em{color:#8a99ad;font-size:11px;font-style:normal;line-height:1.45}.storage-track,.task-progress{background:#e6eef8;border-radius:var(--radius-pill);height:7px;overflow:hidden}.storage-track i,.task-progress i{background:var(--gradient-primary);display:block;height:100%;width:36%}.workspace{padding:12px 24px 28px}.workspace-topbar{align-items:center;display:flex;gap:16px;justify-content:flex-end;margin-bottom:16px}.compact-topbar{margin-bottom:14px}.global-search{margin-left:auto;max-width:340px;min-width:260px}.topbar-actions{align-items:center;display:flex;gap:10px}.topbar-actions button,.ghost-icon,.table-tools button,.table-tools select,.rail-actions button,.row-actions button,.icon-link,.viewer-actions button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text-secondary);min-height:38px;padding:0 12px}.table-tools select{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:34px;min-width:116px}.topbar-actions button:not(.user-chip){padding:0;width:38px}.user-chip{color:var(--color-text);font-weight:700}.workspace-grid{display:grid;gap:22px;grid-template-columns:minmax(0,1fr) 326px}.workspace-main{min-width:0}.project-hero,.metric-grid,.upload-panel,.model-table-wrap,.empty-state,.rail-card{background:#ffffffeb;border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm)}.project-hero{background:linear-gradient(90deg,#fffffff5,#f0f7ffdb),url(/assets/blueprint-grid-DUcpd8OU.png) right center / auto 120% no-repeat;display:grid;grid-template-columns:minmax(0,1fr) 360px;margin-bottom:18px;min-height:238px;overflow:hidden;padding:26px}.compact-project-hero{align-items:center;grid-template-columns:minmax(0,1fr) 190px;margin-bottom:12px;min-height:118px;padding:16px 20px}.brand-line{align-items:center;color:var(--color-primary);display:flex;font-weight:800;gap:10px;margin-bottom:18px}.compact-project-hero .brand-line{font-size:13px;margin-bottom:8px}.brand-line img{height:28px;width:28px}.workspace-title-row{align-items:center;display:flex;gap:16px}.hero-search{align-items:center;background:#ffffffe0;border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-muted);display:grid;flex:0 1 260px;gap:8px;grid-template-columns:auto 1fr;min-height:34px;padding:0 11px}.hero-search input{background:transparent;border:0;color:var(--color-text);min-width:0;outline:none}.workspace-title-row h1{color:var(--color-text);font-size:34px;letter-spacing:0;line-height:1.15;margin:0}.compact-project-hero .workspace-title-row h1{font-size:27px}.project-hero p,.upload-panel p,.empty-state p,.rail-card p,.property-panel p{color:var(--color-muted);line-height:1.6;margin:10px 0 0}.compact-project-hero p{max-width:620px;margin-top:7px}.hero-meta{color:var(--color-muted);display:flex;flex-wrap:wrap;font-size:13px;gap:16px;margin-top:20px}.compact-hero-meta{gap:9px;margin-top:10px}.compact-hero-meta span:not(:first-child){background:#eef5ff;border-radius:999px;color:var(--color-text-secondary);padding:3px 9px}.hero-visual{position:relative}.compact-hero-visual{align-items:center;display:flex;justify-content:center}.hero-model-mark{display:block;height:124px;opacity:.94;width:186px}.wire-part{border:2px solid rgba(37,99,235,.25);border-radius:36px;height:150px;margin:28px auto 0;position:relative;transform:skewY(-12deg);width:260px}.compact-hero-visual .wire-part{height:94px;margin-top:6px;width:176px}.compact-hero-visual .wire-part span:nth-child(1){height:44px;left:24px;top:24px;width:44px}.compact-hero-visual .wire-part span:nth-child(2){height:54px;right:28px;top:14px;width:54px}.compact-hero-visual .wire-part span:nth-child(3){border-radius:16px;bottom:16px;height:26px;left:62px;width:54px}.wire-part span{border:2px solid rgba(37,99,235,.32);border-radius:999px;position:absolute}.wire-part span:nth-child(1){height:72px;left:34px;top:36px;width:72px}.wire-part span:nth-child(2){height:92px;right:44px;top:22px;width:92px}.wire-part span:nth-child(3){border-radius:22px;bottom:24px;height:42px;left:92px;width:82px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px;overflow:hidden}.metric-item{align-items:center;display:flex;gap:14px;min-height:108px;padding:18px 22px}.metric-item+.metric-item{border-left:1px solid #e6edf7}.metric-icon{align-items:center;background:#eef6ff;border-radius:var(--radius-md);display:inline-flex;height:44px;justify-content:center;width:44px}.metric-icon img{height:28px;width:28px}.metric-label{color:var(--color-muted);display:block;font-size:13px;margin-bottom:6px}.metric-item strong{color:var(--color-text);font-size:28px;line-height:1}.metric-item small{color:var(--color-muted);font-size:13px;font-weight:650;margin-left:8px}.upload-panel{align-items:center;display:flex;gap:18px;justify-content:space-between;margin-bottom:18px;padding:18px}.upload-content{align-items:center;color:var(--color-text-secondary);display:flex;flex:1;gap:18px;min-width:0}.asset-icon{align-items:center;background:#eef6ff;border-radius:var(--radius-lg);display:inline-flex;flex:0 0 auto;height:62px;justify-content:center;width:62px}.asset-icon img{height:38px;width:38px}.upload-panel h2,.empty-state h2,.property-panel h2{color:var(--color-text);font-size:20px;line-height:1.25;margin:0}.upload-phase{color:var(--color-success);display:block;font-weight:750;margin-top:8px}.upload-progress{background:#e6eef8;border-radius:var(--radius-pill);height:7px;margin-top:10px;overflow:hidden;width:min(360px,100%)}.upload-progress span{background:var(--gradient-primary);display:block;height:100%;transition:width .16s ease}.upload-percent{color:var(--color-muted);display:block;font-size:12px;margin-top:5px}.primary-action:disabled{cursor:not-allowed;opacity:.52}.model-table-wrap{overflow:hidden}.table-toolbar{align-items:center;border-bottom:1px solid #e6edf7;display:flex;gap:14px;justify-content:space-between;min-height:64px;padding:10px 18px}.segmented-tabs{background:#eef5ff;border-radius:var(--radius-md);display:flex;gap:4px;padding:4px}.segmented-tabs button{background:transparent;border-radius:var(--radius-sm);color:var(--color-muted);font-weight:760;min-height:34px;min-width:76px;padding:0 16px}.segmented-tabs button.active{background:var(--color-primary);box-shadow:0 12px 26px #2563eb3d;color:#fff}.table-tools{display:flex;flex-wrap:nowrap;gap:8px}.model-table{border-collapse:collapse;table-layout:fixed;width:100%}.model-table th,.model-table td{border-bottom:1px solid #e8eef7;padding:8px 16px;text-align:left;vertical-align:middle}.model-table th{background:#fbfdff;color:var(--color-muted);font-size:11px;font-weight:800}.model-table th:nth-child(1){width:33%}.model-table th:nth-child(2){width:9%}.model-table th:nth-child(3){width:12%}.model-table th:nth-child(4){width:9%}.model-table th:nth-child(5){width:16%}.model-table th:nth-child(6){width:21%}.file-cell{align-items:center;display:grid;gap:9px;grid-template-columns:auto minmax(0,1fr)}.file-cell strong,.file-cell small{display:block}.file-cell strong{color:var(--color-text);font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-cell small,.muted-cell{color:var(--color-muted);font-size:12px;margin-top:0;white-space:nowrap}.file-type-icon{align-items:center;background:#eef6ff;border-radius:8px;display:inline-flex;height:28px;justify-content:center;width:28px}.file-type-icon img{height:18px;width:18px}.format-chip,.status{align-items:center;border-radius:8px;display:inline-flex;font-size:11px;font-weight:800;gap:6px;line-height:1;min-height:22px;padding:0 8px;white-space:nowrap}.format-chip{background:#eef5ff;color:var(--color-primary)}.format-chip.dwg{background:#fff4df;color:#d97706}.format-chip.dxf{background:#e7f8f2;color:#0f9f8f}.format-chip.stp,.format-chip.step{background:#eef5ff;color:var(--color-primary)}.format-chip.ipt{background:#f3edff;color:#7c3aed}.status{background:#eef3f8;color:var(--color-text-secondary)}.status.success{background:#dcf8ea;color:#057a55}.status.inprogress,.status.pending{background:#fff1d7;color:#b45309}.status.failed,.status.timeout{background:#fee2e2;color:#b42318}.row-actions{align-items:center;display:flex;flex-wrap:nowrap;gap:14px;justify-content:flex-start;white-space:nowrap}.row-actions button,.icon-link{height:28px}.text-action{align-items:center;background:transparent!important;border:0!important;border-radius:6px;color:var(--color-primary)!important;display:inline-flex;font-size:12px;font-weight:750;gap:4px;justify-content:center;min-height:28px!important;padding:0!important;text-decoration:none}.text-action:hover{color:#1d4ed8!important}.text-action.disabled{color:#a7b4c8!important;cursor:not-allowed}.danger-text-action{color:var(--color-danger)!important}.danger-text-action:hover{color:#dc2626!important}.row-actions button:not(.action-label):not(.danger-action){padding:0;width:32px}.row-actions img{height:15px;width:15px}.row-actions .action-label{gap:6px;min-width:66px;padding:0 10px}.primary-link{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.icon-link.disabled{cursor:not-allowed;opacity:.42}.row-actions .danger-action{color:var(--color-danger);padding:0;width:32px}.row-actions .danger-action:hover{background:#fee2e2;border-color:#fecaca}.table-footer{align-items:center;color:var(--color-muted);display:flex;font-size:13px;justify-content:space-between;min-height:58px;padding:0 18px}.table-footer button{background:var(--color-primary);border-radius:var(--radius-sm);color:#fff;height:34px;width:34px}.empty-state{align-items:center;color:var(--color-muted);display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:230px;text-align:center}.empty-state img{height:48px;width:48px}.workspace-rail{display:grid;gap:16px;align-content:start}.rail-card{padding:18px}.rail-card-title{align-items:center;color:var(--color-text);display:flex;justify-content:space-between;margin-bottom:14px}.rail-card-title strong{font-size:16px}.project-card label{color:var(--color-muted);display:grid;font-size:12px;gap:8px}.rail-card input{border:1px solid var(--color-border);border-radius:var(--radius-md);min-height:40px;padding:0 12px}.rail-id{color:var(--color-muted);display:block;font-size:12px;margin:14px 0;overflow-wrap:anywhere}.rail-actions{display:grid;gap:10px;grid-template-columns:1fr 1fr}.rail-actions button{justify-content:center;font-weight:750}.danger-soft{background:#fff1f0!important;border-color:#ffd5d2!important;color:var(--color-danger)!important}.empty-rail{align-items:center;color:var(--color-muted);display:grid;font-size:13px;gap:10px;justify-items:center;padding:16px 0;text-align:center}.compact-empty{gap:8px;padding:10px 0}.compact-empty img{height:28px;width:28px}.empty-rail img{height:38px;width:38px}.task-list{display:grid;gap:14px}.task-item{display:grid;gap:6px}.task-item span{color:var(--color-primary);font-size:11px;font-weight:800}.task-item strong{color:var(--color-text);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-item small{color:var(--color-muted);font-size:12px}.warning-card,.download-card{align-items:flex-start;display:flex;gap:12px}.warning-card img,.download-card img{height:32px;width:32px}.warning-card strong,.download-card strong{color:var(--color-text);display:block}.error-banner,.viewer-error{background:#fff1f0;border:1px solid #fecaca;border-radius:var(--radius-md);color:#991b1b;margin-bottom:16px;padding:12px 14px}.loading{color:var(--color-muted);margin-bottom:16px}.viewer-shell{display:grid;grid-template-rows:58px minmax(0,1fr);height:100vh}.viewer-toolbar{align-items:center;background:#111827;color:#fff;display:grid;gap:16px;grid-template-columns:auto 1fr auto;padding:0 18px}.back-link{color:#e5edf6;gap:8px}.viewer-actions{display:flex;gap:8px}.viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:0}.viewer-canvas{background:#20252d;min-height:0;position:relative}.viewer-message{background:#fffffff0;border-radius:var(--radius-md);left:24px;padding:12px 14px;position:absolute;top:24px;z-index:2}.property-panel{background:var(--color-surface);border-left:1px solid #d9e1ea;overflow:auto;padding:18px}.property-panel dl{display:grid;gap:12px;margin:0}.property-panel dt{color:var(--color-muted);font-size:12px}.property-panel dd{margin:3px 0 0;overflow-wrap:anywhere}@media(max-width:1180px){.workspace-grid{grid-template-columns:1fr}.workspace-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:980px){.app-shell,.viewer-layout{grid-template-columns:1fr}.project-panel{min-height:auto}.project-hero{grid-template-columns:1fr}.workspace-title-row{align-items:flex-start;flex-direction:column}.hero-search{flex-basis:auto;width:min(100%,360px)}.hero-visual{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-rail{grid-template-columns:1fr}.upload-panel{align-items:stretch;flex-direction:column}.model-table-wrap{overflow-x:auto}.model-table{min-width:980px}.property-panel{border-left:0;border-top:1px solid #d9e1ea;max-height:35vh}}
