:root{color-scheme:light;--background:#f8fafc;--surface:#fff;--foreground:#0f172a;--muted:#64748b;--muted-bg:#f1f5f9;--border:#e2e8f0;--border-strong:#cbd5e1;--primary:#18181b;--primary-fg:#fafafa;--ring:#94a3b8;--danger:#dc2626;--success:#059669;--warning:#d97706;--sidebar:#fff;--radius:10px;--shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.04);font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--background);color:var(--foreground);font-size:14px}button,input,select,textarea{font:inherit}input,select,textarea{font-weight:400}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}.muted{color:var(--muted)}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#e0e7ff 0,transparent 38%),var(--background)}.login-card{width:min(400px,100%);padding:38px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);text-align:center}.brand-mark{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 18px;border-radius:12px;background:#18181b;color:#fff;font-size:20px;font-weight:750;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}.brand-mark.small{width:34px;height:34px;margin:0;border-radius:9px;font-size:15px}.login-card h1{margin:0;font-size:24px;letter-spacing:-.03em}.login-card>p{margin:8px 0 26px;color:var(--muted)}.login-card label{text-align:left}
.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:16px 12px;border-right:1px solid var(--border);background:var(--sidebar);z-index:20}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:5px 8px 23px}.sidebar-brand strong,.sidebar-brand span{display:block}.sidebar-brand strong{font-size:14px}.sidebar-brand span{margin-top:1px;color:var(--muted);font-size:11px}.sidebar nav{display:flex;flex:1;flex-direction:column;gap:3px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:#475569;text-align:left;font-weight:520}.nav-item:hover{background:var(--muted-bg);color:var(--foreground)}.nav-item.active{background:#f1f5f9;color:#0f172a;font-weight:620}.nav-item svg{width:17px;height:17px}.nav-label{padding:24px 11px 8px;color:#94a3b8;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.nav-badge{margin-left:auto;min-width:20px;padding:1px 6px;border-radius:10px;background:#ede9fe;color:#6d28d9;text-align:center;font-size:10px}.sidebar-footer{border-top:1px solid var(--border);padding-top:12px}.connection-dot{display:flex;align-items:center;gap:8px;margin:4px 11px 10px;color:var(--muted);font-size:11px}.connection-dot i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px #d1fae5}
.workspace{min-width:0}.topbar{height:82px;display:flex;align-items:center;gap:14px;padding:0 32px;border-bottom:1px solid var(--border);background:rgba(248,250,252,.9);backdrop-filter:blur(12px);position:sticky;top:0;z-index:15}.topbar>div:nth-child(2){min-width:0}.breadcrumb{color:#94a3b8;font-size:11px}.breadcrumb span{padding:0 4px}.breadcrumb b{color:#64748b;font-weight:500}.topbar h1{margin:3px 0 0;font-size:20px;letter-spacing:-.02em}.top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.top-actions .muted{font-size:11px}.workspace main{max-width:1550px;margin:0 auto;padding:28px 32px 60px}.page{display:none}.page.active{display:block}.mobile-only{display:none}
.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;white-space:nowrap;font-weight:600;transition:background .15s,border .15s,transform .05s}.button{min-height:37px;padding:0 13px}.button:active,.icon-button:active{transform:translateY(1px)}.button svg{width:15px;height:15px}.button.primary{background:var(--primary);color:var(--primary-fg);border-color:var(--primary)}.button.primary:hover{background:#27272a}.button.secondary{background:var(--surface);border-color:var(--border-strong);color:var(--foreground)}.button.secondary:hover,.icon-button:hover{background:var(--muted-bg)}.button.ghost{padding:0 3px;background:transparent;color:#475569}.button.danger{border-color:#fecaca;background:#fff;color:var(--danger)}.button.wide{width:100%}.icon-button{width:36px;height:36px;padding:0;background:var(--surface);border-color:var(--border);color:#475569}.icon-button svg{width:16px;height:16px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{display:flex;align-items:center;gap:15px;padding:19px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px rgba(15,23,42,.025)}.stat-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:9px}.stat-icon svg{width:19px;height:19px}.stat-icon.violet{background:#f3e8ff;color:#7e22ce}.stat-icon.green{background:#d1fae5;color:#047857}.stat-icon.blue{background:#dbeafe;color:#1d4ed8}.stat-icon.amber{background:#fef3c7;color:#b45309}.stat-card span,.stat-card strong,.stat-card small{display:block}.stat-card span{color:#64748b;font-size:11px;font-weight:600}.stat-card strong{margin:1px 0;font-size:24px;line-height:1.25;letter-spacing:-.04em}.stat-card small{color:#94a3b8;font-size:10px}.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.span-2{grid-column:span 2}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 1px 2px rgba(15,23,42,.02)}.card-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 20px;border-bottom:1px solid var(--border)}.card-header h2,.section-lead h2,.integration-title h2{margin:0;font-size:14px;letter-spacing:-.01em}.card-header p,.section-lead p,.integration-title p{margin:4px 0 0;color:var(--muted);font-size:11px}.run-list{padding:6px 12px}.run-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) 110px 140px 28px;align-items:center;gap:12px;padding:13px 8px;border-bottom:1px solid #f1f5f9}.run-row:last-child{border-bottom:0}.run-name{min-width:0}.run-name button{max-width:100%;overflow:hidden;border:0;background:none;color:var(--foreground);padding:0;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.run-name small,.run-cell small{display:block;color:#94a3b8;margin-top:2px;font-size:10px}.run-cell{min-width:0;color:#475569;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-line{display:flex;align-items:center;gap:8px}.progress-track{height:5px;flex:1;min-width:55px;overflow:hidden;border-radius:9px;background:#e2e8f0}.progress-track i{display:block;height:100%;border-radius:inherit;background:#8b5cf6}.compact-list{padding:7px 12px}.compact-item{display:flex;align-items:center;gap:11px;padding:12px 7px;border-bottom:1px solid #f1f5f9}.compact-item:last-child{border-bottom:0}.machine-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#f1f5f9;color:#475569}.machine-avatar svg{width:16px}.compact-copy{min-width:0;flex:1}.compact-copy b,.compact-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-copy b{font-size:12px}.compact-copy span{margin-top:2px;color:var(--muted);font-size:10px}
.status{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:650}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.running,.status.ok,.status.completed,.status.connected,.status.sent{background:#ecfdf5;color:#047857}.status.failed,.status.error,.status.offline{background:#fef2f2;color:#b91c1c}.status.stalled,.status.stopping,.status.installing{background:#fffbeb;color:#b45309}.status.pending,.status.queued,.status.starting{background:#eff6ff;color:#1d4ed8}.status.stopped{background:#f1f5f9;color:#64748b}
.page-actions,.section-lead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.run-toolbar{display:flex;align-items:center;gap:10px}.segmented{display:inline-flex;padding:3px;border-radius:8px;background:#e9eef5}.segmented button{height:30px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#64748b;font-size:11px}.segmented button.active{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(15,23,42,.12);font-weight:600}.search{display:flex;align-items:center;gap:8px;width:260px;height:37px;padding:0 11px;border:1px solid var(--border);border-radius:7px;background:#fff}.search svg{width:15px;color:#94a3b8}.search input{width:100%;border:0;outline:0;background:transparent}.table-card{overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:13px 17px;border-bottom:1px solid var(--border);vertical-align:middle}th{background:#fbfcfe;color:#64748b;font-size:10px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}td{font-size:12px;color:#475569}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.row-link{border:0;background:none;padding:0;color:#0f172a;text-align:left;font-weight:610}.row-link:hover{text-decoration:underline}.more-button{width:29px;height:29px;border:0;border-radius:6px;background:transparent;color:#64748b}.more-button:hover{background:#eef2f7}.empty{padding:56px 20px;text-align:center;color:#94a3b8}.resource-grid,.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:15px}.resource-card,.template-card{padding:18px}.resource-card-header{display:flex;align-items:flex-start;gap:12px}.resource-card-header .machine-avatar{width:40px;height:40px}.resource-title{flex:1}.resource-title h3,.template-card h3{margin:0;font-size:14px}.resource-title p,.template-card p{margin:4px 0 0;color:var(--muted);font-size:11px}.resource-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.resource-meta div{padding:10px;border-radius:7px;background:#f8fafc}.resource-meta span,.resource-meta b{display:block}.resource-meta span{color:#94a3b8;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.resource-meta b{margin-top:4px;overflow:hidden;color:#475569;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.resource-actions{display:flex;gap:8px;padding-top:14px;border-top:1px solid var(--border)}.template-card{position:relative}.template-card-top{display:flex;align-items:center;gap:10px}.game-chip{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#eef2ff;color:#4338ca;font-weight:700}.template-card .status{margin:14px 0}.template-stats{display:flex;gap:7px;margin:14px 0}.template-stats span{padding:5px 8px;border-radius:6px;background:#f8fafc;color:#64748b;font-size:10px}.template-card footer{display:flex;justify-content:space-between;align-items:center;padding-top:13px;border-top:1px solid var(--border)}.template-card footer small{color:#94a3b8}.template-card footer div{display:flex;gap:5px}
.section-actions{display:flex;align-items:center;gap:8px}.advanced-settings{border:1px solid var(--border);border-radius:9px;background:#fbfcfe}.advanced-settings summary{padding:13px 15px;cursor:pointer;color:#334155;font-size:12px;font-weight:600}.advanced-settings summary span{margin-left:7px;color:#94a3b8;font-size:11px;font-weight:400}.advanced-settings[open] summary{border-bottom:1px solid var(--border)}.advanced-body{padding:0 15px 15px}.advanced-body>.check-row{margin-top:15px}.cheatsheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:11px}.cheatsheet-sections{display:flex;flex-direction:column;gap:13px}.cheat-card{padding:15px;border:1px solid var(--border);border-radius:9px}.cheat-card h3{margin:0;font-size:13px}.cheat-card p{margin:4px 0 11px;color:var(--muted);font-size:11px}.code-block.compact pre{min-height:0;padding:14px 78px 14px 16px}.settings-grid{display:grid;grid-template-columns:minmax(360px,1fr) minmax(340px,1fr);gap:18px}.settings-grid>.card{padding:20px}.integration-title{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--border)}.integration-title>div:nth-child(2){flex:1}.slack-logo{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:linear-gradient(135deg,#36c5f0 0 25%,#2eb67d 25% 50%,#ecb22e 50% 75%,#e01e5a 75%);color:#fff;font-size:19px;font-weight:800}.switch input{display:none}.switch span{position:relative;display:block;width:38px;height:22px;border-radius:99px;background:#cbd5e1;transition:.2s}.switch span:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #64748b;transition:.2s}.switch input:checked+span{background:#18181b}.switch input:checked+span:after{transform:translateX(16px)}.notification-list{max-height:500px;overflow:auto}.notification-item{padding:13px 0;border-bottom:1px solid var(--border)}.notification-item:last-child{border:0}.notification-item header{display:flex;align-items:center;justify-content:space-between}.notification-item p{margin:7px 0 0;color:#475569;font-size:11px;white-space:pre-line}.notification-item small{color:#94a3b8}.form-stack{display:flex;flex-direction:column;gap:14px;padding-top:18px}
label{display:block;color:#334155;font-size:12px;font-weight:600}label small{display:block;margin-top:5px;color:#94a3b8;font-size:11px;font-weight:400}.optional{color:#94a3b8;font-weight:400}input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--border-strong);border-radius:7px;background:#fff;color:#0f172a;font-size:13px;outline:0;transition:border .15s,box-shadow .15s}input,select{height:39px;padding:0 11px}textarea{padding:10px 11px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #e2e8f0}.field-row{display:flex;align-items:flex-start;gap:12px}.field-row>label{flex:1}.field-row>.grow-2{flex:2}.check-row{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer}.check-row input{width:15px;height:15px;margin:0;accent-color:#18181b}.check-row.compact{width:max-content;margin:0 0 8px}.form-actions{display:flex;justify-content:flex-end;gap:8px}.form-section{padding:18px 0;border-bottom:1px solid var(--border)}.form-section:first-of-type{padding-top:0}.form-section h3{margin:0 0 14px;font-size:12px}.nested-fields{margin-top:12px;padding:14px;border:1px solid var(--border);border-radius:8px;background:#f8fafc}.nested-fields .callout{margin-bottom:0}.scope-preview{margin-top:10px;padding:10px 12px;border-radius:7px;background:#f8fafc;color:#64748b;font-size:11px}.callout{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#1e40af;font-size:11px}.callout svg{flex:0 0 15px;width:15px}.callout.warning{border-color:#fde68a;background:#fffbeb;color:#92400e}.callout.danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:12px;background:transparent;box-shadow:0 24px 70px rgba(15,23,42,.28)}.dialog.large{width:min(840px,calc(100vw - 28px))}.dialog.xlarge{width:min(1100px,calc(100vw - 28px))}.dialog::backdrop{background:rgba(15,23,42,.48)}.dialog-shell{display:flex;max-height:calc(100vh - 28px);flex-direction:column;background:#fff;border-radius:12px;overflow:hidden}.dialog-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid var(--border)}.dialog-shell>header h2{margin:2px 0 3px;font-size:18px}.dialog-shell>header p{margin:0;color:var(--muted);font-size:12px}.dialog-kicker{color:#7c3aed;font-size:10px;font-weight:700;letter-spacing:.13em}.dialog-body{display:flex;flex-direction:column;gap:14px;padding:20px 22px;overflow:auto}.dialog-shell>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--border);background:#fbfcfd}.header-actions{display:flex;align-items:center;gap:7px}.stepper{display:flex;align-items:center;margin:-2px 0 4px;color:#94a3b8;font-size:10px}.stepper span{display:flex;align-items:center;gap:5px;white-space:nowrap}.stepper span:first-letter{display:grid}.stepper span.active{color:#6d28d9}.stepper i{height:1px;flex:1;margin:0 10px;background:var(--border)}.code-block{position:relative}.code-block pre{min-height:150px;margin:0;padding:18px 20px;border-radius:8px;background:#0f172a;color:#e2e8f0;white-space:pre-wrap;word-break:break-word;font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}.copy-button{position:absolute;top:9px;right:9px;display:flex;align-items:center;gap:5px;height:29px;border:1px solid #334155;border-radius:6px;background:#1e293b;color:#e2e8f0;font-size:10px}.copy-button svg{width:13px}.install-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.install-steps span{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:7px;color:#64748b;font-size:10px}.install-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f1f5f9;color:#475569}.metric-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.metric{padding:12px;border:1px solid var(--border);border-radius:8px;background:#fbfdff}.metric span,.metric strong{display:block}.metric span{color:#94a3b8;font-size:9px;text-transform:uppercase}.metric strong{margin-top:5px;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.tabs{display:flex;gap:3px;border-bottom:1px solid var(--border)}.tabs button{padding:9px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:#64748b;font-size:11px}.tabs button.active{border-bottom-color:#18181b;color:#18181b;font-weight:600}.terminal{min-height:320px;max-height:50vh;margin:0;padding:15px;border-radius:8px;background:#0b1120;color:#cbd5e1;overflow:auto;white-space:pre-wrap;word-break:break-word;font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.file-list{display:flex;flex-wrap:wrap;gap:8px}.toast{position:fixed;top:16px;left:50%;z-index:100;max-width:min(600px,90vw);padding:10px 14px;border:1px solid;border-radius:8px;box-shadow:var(--shadow);transform:translateX(-50%);font-size:11px}.toast.error{border-color:#fecaca;background:#fff1f2;color:#9f1239}.toast.success{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.dialog::backdrop{background:rgba(15,23,42,.42)}.dialog-shell>header p{font-size:13px}.dialog-kicker{font-size:11px}.dialog-body .callout{font-size:12px}.dialog .code-block pre{font-size:12px;line-height:1.65}.dialog .copy-button,.dialog .install-steps span{font-size:11px}.resource-actions{flex-wrap:wrap}.script-editor{min-height:210px;font:12px/1.65 Consolas,"Cascadia Mono",monospace}.remote-result-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:var(--muted);font-size:11px}.remote-output{min-height:130px;max-height:260px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.overview-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.settings-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;width:244px;transition:left .2s}.sidebar.open{left:0}.sidebar-overlay{position:fixed;inset:0;z-index:19;background:rgba(15,23,42,.45)}.mobile-only{display:inline-flex}.topbar{height:70px;padding:0 16px}.top-actions .muted{display:none}.workspace main{padding:18px 14px 45px}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:13px}.stat-icon{display:none}.stat-card strong{font-size:20px}.run-row{grid-template-columns:minmax(150px,1fr) 90px 25px}.run-row>:nth-child(2),.run-row>:nth-child(4){display:none}.page-actions,.section-lead{align-items:flex-start;flex-direction:column}.run-toolbar{width:100%}.run-toolbar .search{min-width:0;flex:1}.search{width:100%}.resource-grid,.template-grid{grid-template-columns:1fr}.field-row{flex-direction:column}.field-row>label{width:100%}.dialog{width:calc(100vw - 14px);max-height:calc(100vh - 14px)}.dialog-shell{max-height:calc(100vh - 14px)}.dialog-shell>header,.dialog-body,.dialog-shell>footer{padding-left:15px;padding-right:15px}.header-actions .button{display:none}.metric-grid{grid-template-columns:repeat(2,1fr)}.install-steps{grid-template-columns:1fr}.stepper b{display:none}.section-lead .button{align-self:stretch}.settings-grid{grid-template-columns:1fr}.table-wrap{max-width:calc(100vw - 30px)}}
@media(max-width:760px){.section-actions{width:100%;flex-direction:column}.section-actions .button{width:100%}.cheatsheet-toolbar{align-items:stretch;flex-direction:column}.cheatsheet-toolbar .button{width:100%}.code-block.compact pre{padding-right:16px;padding-top:52px}}
