:root{--primary:#5657e8;--primary-dark:#4546c7;--primary-soft:#eeefff;--blue:#1686c9;--cyan:#18a4a7;--success:#1f9d62;--warning:#d98b16;--danger:#df4b4b;--bg:#f3f5f8;--surface:#fff;--surface-soft:#f8f9fb;--text:#182132;--muted:#687385;--border:#dfe4eb;--border-strong:#cbd2dd;--sidebar:#101725;--shadow:0 10px 28px rgba(24,33,50,.07);--shadow-high:0 18px 44px rgba(24,33,50,.12);--radius:8px;--sidebar-width:252px}*{box-sizing:border-box}html{font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:var(--bg)}body{margin:0;min-height:100vh;background:var(--bg);letter-spacing:0}button,input,select,textarea{font:inherit;letter-spacing:0}button,a{touch-action:manipulation}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:linear-gradient(180deg,var(--sidebar),#111a2a);color:#d4d9e2;padding:22px 16px 16px;display:flex;flex-direction:column;z-index:30;border-right:1px solid rgba(255,255,255,.05)}.sidebar:after{content:"";position:absolute;left:16px;right:16px;top:86px;height:1px;background:rgba(255,255,255,.07)}.brand-block{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 8px}.brand-block strong{display:block;color:#fff;font-size:18px;font-weight:750}.brand-block small{display:block;margin-top:2px;font-size:9px;color:#7f8ba0;text-transform:uppercase;letter-spacing:.12em}.brand-mark{width:36px;height:36px;position:relative;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.025)}.brand-mark:after{content:"";position:absolute;inset:7px;border:1px solid rgba(129,140,248,.2);border-radius:50%}.brand-mark span{position:absolute;width:5px;height:5px;background:#8c91ff;border-radius:50%;z-index:1;box-shadow:0 0 8px currentColor}.brand-mark span:nth-child(1){left:8px;top:8px}.brand-mark span:nth-child(2){right:7px;top:12px;background:#36b7d8}.brand-mark span:nth-child(3){left:14px;bottom:7px;background:#48ce91}.main-nav{display:grid;gap:5px;margin-top:40px}.main-nav:before{content:"工作空间";padding:0 12px 8px;font-size:9px;color:#647086;font-weight:700;letter-spacing:.1em}.nav-link{height:44px;padding:0 12px;display:flex;align-items:center;gap:12px;color:#939daf;text-decoration:none;border-radius:7px;font-size:13px;font-weight:540;transition:background .16s,color .16s,transform .16s}.nav-link:hover{color:#fff;background:rgba(255,255,255,.055);transform:translateX(2px)}.nav-link.active{background:linear-gradient(90deg,#5657e8,#6268ec);color:#fff;box-shadow:0 8px 20px rgba(63,66,190,.26)}.nav-link.active .icon{stroke-width:2.1}.sidebar-user{margin-top:auto;padding:15px 8px 0;border-top:1px solid rgba(255,255,255,.09);display:grid;grid-template-columns:38px minmax(0,1fr) 32px;gap:9px;align-items:center}.sidebar-user img,.avatar-fallback{width:38px;height:38px;border-radius:50%;object-fit:cover}.avatar-fallback{display:grid;place-items:center;background:#29354a;color:#fff;font-size:12px;font-weight:700;border:1px solid rgba(255,255,255,.08)}.sidebar-user-copy{min-width:0}.sidebar-user-copy strong,.sidebar-user-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-copy strong{font-size:12px;color:#fff}.sidebar-user-copy small{font-size:9px;color:#7f8ba0;margin-top:3px}.sidebar-user form{margin:0}
.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;cursor:pointer;transition:.16s}.icon-button:hover{background:var(--primary-soft);color:var(--primary)}.sidebar .icon-button:hover{background:rgba(255,255,255,.08);color:#fff}.app-shell{margin-left:var(--sidebar-width);min-height:100vh}.topbar{height:78px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.page-heading h1{margin:4px 0 0;font-size:20px;line-height:1.2;font-weight:720}.breadcrumbs{font-size:10px;color:#97a0ae;display:flex;gap:7px;align-items:center}.breadcrumbs a{color:var(--primary);text-decoration:none;font-weight:650}.topbar-actions{display:flex;align-items:center;gap:9px}.global-search{width:244px;height:40px;border:1px solid var(--border);border-radius:7px;display:flex;align-items:center;gap:8px;padding:0 11px;color:#98a2b2;background:#f7f8fa;transition:.16s}.global-search:focus-within{background:#fff;border-color:#9da0f7;box-shadow:0 0 0 3px rgba(86,87,232,.08)}.global-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}.topbar .icon-button{position:relative;border-color:var(--border);color:var(--muted);background:#fff}.notification-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--danger);right:7px;top:7px;border:1px solid #fff}.topbar-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;text-decoration:none;color:#fff;background:#182132;font-size:11px;font-weight:750;box-shadow:0 0 0 3px #edf0f5}.mobile-menu{display:none}.page-content{padding:26px 32px 48px;max-width:1640px;margin:0 auto}.eyebrow{font-size:10px;line-height:1;font-weight:750;letter-spacing:.12em;color:var(--primary);text-transform:uppercase}
.button{height:40px;padding:0 16px;border:1px solid transparent;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:650;font-size:12px;cursor:pointer;white-space:nowrap;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--primary);color:#fff;box-shadow:0 6px 14px rgba(86,87,232,.18)}.button-primary:hover{background:var(--primary-dark);box-shadow:0 8px 18px rgba(86,87,232,.25)}.button-secondary{background:#fff;color:var(--text);border-color:var(--border)}.button-secondary:hover{border-color:#aaaef3;color:var(--primary)}.button-danger{background:#fff;color:var(--danger);border-color:#f1bebe}.button-danger:hover{background:#fff5f5}.button-block{width:100%}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 2px 8px rgba(24,33,50,.025)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.panel-heading h2{margin:0;font-size:14px;font-weight:720}.panel-heading p{margin:5px 0 0;font-size:11px;color:var(--muted)}.panel-heading>a{font-size:11px;color:var(--primary);text-decoration:none;font-weight:650}.field{display:grid;gap:7px}.field>span{font-size:11px;font-weight:650;color:#465166}.field em{font-style:normal;color:#98a2b2;font-weight:400}.field input,.field select,.field textarea,select{width:100%;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);padding:0 12px;outline:none;transition:.16s}.field input,.field select,select{height:41px}.field textarea{padding-top:10px;resize:vertical;line-height:1.55}.field input:hover,.field select:hover,.field textarea:hover,select:hover{border-color:var(--border-strong)}.field input:focus,.field select:focus,.field textarea:focus,select:focus{border-color:#9296ed;box-shadow:0 0 0 3px rgba(86,87,232,.09)}.form-stack{display:grid;gap:16px}.form-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkbox-row,.toggle-control{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.checkbox-row input{accent-color:var(--primary)}
.flash-stack{position:fixed;right:24px;top:90px;display:grid;gap:8px;z-index:100;width:min(360px,calc(100vw - 32px))}.flash{padding:12px 12px 12px 15px;border-radius:7px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;font-size:12px}.flash-success{border-left:3px solid var(--success)}.flash-error{border-left:3px solid var(--danger)}.flash-warning{border-left:3px solid var(--warning)}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:110;display:grid;gap:8px}.toast{min-width:260px;max-width:380px;padding:12px 15px;border-radius:7px;color:#fff;background:#182132;box-shadow:var(--shadow-high);font-size:12px;animation:toast-in .2s ease}.toast.success{background:#14794c}.toast.error{background:#b93737}@keyframes toast-in{from{transform:translateY(8px);opacity:0}}dialog{border:0;border-radius:8px;padding:0;box-shadow:0 24px 70px rgba(17,24,39,.24);color:var(--text)}dialog::backdrop{background:rgba(17,24,39,.5);backdrop-filter:blur(3px)}.confirm-dialog form,.edit-dialog form{padding:26px;width:min(420px,calc(100vw - 32px));display:grid;gap:16px}.confirm-dialog h2,.edit-dialog h2{margin:0;font-size:18px}.confirm-dialog p{margin:0;color:var(--muted);line-height:1.6;font-size:12px}.dialog-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#fee2e2;color:var(--danger);font-weight:800}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}
.empty-state{min-height:240px;padding:40px 20px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted)}.empty-state.compact{min-height:130px}.empty-state h3{margin:12px 0 6px;color:var(--text);font-size:15px}.empty-state p{margin:0 0 18px;max-width:420px;font-size:12px;line-height:1.6}.empty-icon{width:44px;height:44px;color:#8d92e8;fill:none;stroke:currentColor;stroke-width:1.3}.spinner{width:18px;height:18px;border:2px solid #d8dafb;border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.status-badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:4px;font-size:10px;font-weight:750;white-space:nowrap}.status-pending{color:#926100;background:#fff5d1}.status-preprocessing,.status-colmap{color:#176597;background:#e6f4fb}.status-training{color:#474bc0;background:#ececff}.status-completed{color:#147649;background:#e5f7ee}.status-failed{color:#b03732;background:#feeceb}.status-cancelled{color:#596273;background:#edf0f3}.progress-track{display:block;height:6px;border-radius:6px;background:#e9edf2;overflow:hidden}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#777bf0);border-radius:inherit}.error-state{min-height:70vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.error-state>strong{font-size:72px;color:#c7c9f9;line-height:1}.error-state h2{font-size:24px;margin:18px 0 7px}.error-state p{color:var(--muted);margin:0 0 22px}.sidebar-scrim{display:none}.back-link{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:11px;text-decoration:none}.back-link:hover{color:var(--primary)}
@media(max-width:980px){.sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.sidebar-scrim.open{display:block;position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:29}.app-shell{margin-left:0}.mobile-menu{display:inline-grid}.global-search{width:190px}.page-content{padding:24px}.topbar{padding:0 24px}}@media(max-width:640px){.topbar{height:66px;padding:0 16px}.breadcrumbs,.global-search,.topbar-actions>.icon-button{display:none}.page-content{padding:18px 14px 36px}.page-heading h1{font-size:18px}.form-grid-two{grid-template-columns:1fr}.flash-stack{top:76px;right:16px}.button{min-height:40px}.dialog-actions{flex-direction:column-reverse}.dialog-actions .button{width:100%}}
