:root{--bg-page: #f3f5fa;--bg-surface: #ffffff;--bg-muted: #f7f8fb;--border-subtle: #eef1f5;--border-default: #e5e7eb;--text-primary: #0f172a;--text-secondary: #475569;--text-muted: #6b7280;--accent: #2563eb;--accent-hover: #1d4ed8;--accent-soft: #eff6ff;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);--shadow-md: 0 4px 14px -8px rgba(15, 23, 42, .18);--shadow-lg: 0 18px 40px -22px rgba(15, 23, 42, .32);--tabs-height: 43px;color:var(--text-primary);background:var(--bg-page);font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body{max-width:100%;overflow-x:hidden}body{margin:0;background:var(--bg-page)}button,input,select,textarea{font:inherit}button{border:0;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 14px;font-size:14px;font-weight:600;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .1s ease}button:disabled{cursor:not-allowed;opacity:.65}input,select,textarea{width:100%;border:1px solid var(--border-default);border-radius:8px;color:var(--text-primary);background:var(--bg-surface);transition:border-color .15s ease,box-shadow .15s ease}input,select{height:36px;padding:0 10px}textarea{padding:10px;resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1f}h1,h2,h3,p{margin:0}h1{font-size:19px;letter-spacing:0}h2{font-size:18px}h3{font-size:15px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 0%,#1e293b,#0b1220 60%,#050816)}.login-panel{width:min(400px,100%);border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-surface);padding:32px;display:grid;gap:18px;box-shadow:0 30px 60px -30px #0f172a8c}.login-mark{width:56px;height:56px;border-radius:12px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px #2563eb2e}.captcha-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}.captcha-line strong{min-width:92px;padding:8px 10px;border-radius:8px;background:var(--bg-muted);color:var(--text-primary);text-align:center;font-family:Cascadia Code,Consolas,monospace;letter-spacing:1px}.captcha-image{width:126px;height:42px;border:1px solid var(--border-default);border-radius:8px;background:var(--accent-soft);object-fit:cover}.admin-shell{height:100vh;height:100dvh;min-height:100vh;display:grid;grid-template-columns:196px minmax(0,1fr);overflow:hidden;background:var(--bg-page)}.mobile-nav-toggle{display:none;position:fixed;top:10px;left:10px;z-index:35;width:44px;height:44px;padding:0;align-items:center;justify-content:center;background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-default);border-radius:10px;box-shadow:var(--shadow-sm)}.mobile-nav-toggle:hover{background:var(--bg-muted)}.mobile-nav-mask{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.admin-sidebar{position:fixed;top:0;left:0;bottom:0;width:196px;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;padding:18px 12px;background:linear-gradient(180deg,#0b1220,#111827 60%,#0f172a);color:#e5e7eb;display:grid;grid-template-rows:auto 1fr auto;gap:16px;overflow-y:auto;border-right:1px solid rgba(148,163,184,.08)}.brand{padding:6px 10px 16px;border-bottom:1px solid rgba(148,163,184,.12)}.brand h1{color:#fff;font-size:19px;font-weight:700;letter-spacing:.4px}.eyebrow{margin-bottom:4px;color:#93a4b8;font-size:11px;font-weight:800;text-transform:uppercase}.main-nav{display:grid;align-content:start;gap:4px}.main-nav button,.logout-btn{justify-content:flex-start;width:100%;height:38px;min-height:38px;padding:0 12px;background:transparent;color:#cbd5e1;font-weight:600;border-radius:8px}.main-nav button:hover,.logout-btn:hover{background:#94a3b81a;color:#f8fafc}.main-nav button.active{background:var(--accent);color:#fff;box-shadow:0 6px 16px -8px #2563eb99}.logout-btn{color:#94a3b8}.admin-main{grid-column:2;min-width:0;min-height:0;height:100vh;height:100dvh;display:grid;align-content:start;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.workspace-tabs{position:sticky;top:0;z-index:20;min-height:var(--tabs-height);padding:8px 24px 0;display:flex;align-items:flex-end;gap:6px;overflow-x:auto;background:#f3f5faeb;backdrop-filter:saturate(160%) blur(8px);-webkit-backdrop-filter:saturate(160%) blur(8px);border-bottom:1px solid var(--border-default);scrollbar-width:none;-ms-overflow-style:none}.workspace-tabs::-webkit-scrollbar{display:none}.workspace-tab{height:35px;min-width:96px;max-width:180px;padding:0 12px;border:1px solid var(--border-default);border-bottom:0;border-radius:8px 8px 0 0;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#e8ecf3;color:var(--text-secondary);font-size:13px;font-weight:700;transition:background-color .15s ease,color .15s ease}.workspace-tab:hover{background:#dde3ec;color:var(--text-primary)}.workspace-tab span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-tab.active{height:36px;margin-bottom:-1px;background:var(--bg-surface);color:var(--text-primary);border-color:var(--border-default);box-shadow:0 -2px 0 var(--accent) inset}.tab-close{flex:0 0 auto;color:#9ca3af}.workspace-tab:hover .tab-close,.tab-close:hover{color:#dc2626}.live-dot{width:7px;height:7px;border-radius:999px;background:#16a34a;box-shadow:0 0 0 3px #dcfce7}.admin-header{min-height:72px;padding:14px 24px;background:var(--bg-surface);border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;justify-content:space-between;gap:16px}.sticky-header-main .admin-header{position:sticky;top:var(--tabs-height);z-index:18;box-shadow:0 10px 24px -22px #0f172a73}.admin-header h2{font-size:19px;font-weight:700;color:var(--text-primary);letter-spacing:.2px}.admin-header p{color:var(--text-muted);margin-top:4px;font-size:13px;word-break:break-all}.header-actions{display:flex;align-items:center;gap:10px}.node-select{width:min(300px,34vw)}.user-badge{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;border:1px solid var(--border-default);border-radius:999px;background:var(--bg-muted);color:var(--text-secondary);font-size:13px;font-weight:600}.page-stack,.hosts-layout,.terminal-page,.message{margin:22px 24px 0}.terminal-page{min-width:0;max-width:calc(100vw - 324px);overflow-x:hidden}.page-stack{display:grid;gap:16px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metrics.embedded{margin:0 0 16px;grid-template-columns:repeat(4,minmax(0,1fr))}.metric{min-height:96px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);padding:16px 18px;display:grid;gap:6px;box-shadow:var(--shadow-sm);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.metric:hover{border-color:#d8dde6;box-shadow:var(--shadow-md);transform:translateY(-1px)}.metric svg,.resource-grid svg{color:var(--accent)}.metric span,.resource-grid span,.resource-grid small,.panel-title span{color:var(--text-muted);font-size:13px}.metric strong{font-size:22px;font-weight:700;color:var(--text-primary);letter-spacing:.2px}.panel{border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface);padding:20px;box-shadow:var(--shadow-sm)}.panel-title{min-height:36px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title h2{font-size:16px;font-weight:700;color:var(--text-primary);letter-spacing:.2px}.primary{background:var(--accent);color:#fff;box-shadow:0 4px 12px -6px #2563eb8c}.primary:hover{background:var(--accent-hover);box-shadow:0 6px 16px -6px #2563ebb3}.ghost{background:var(--bg-surface);color:var(--text-secondary);border:1px solid var(--border-default)}.ghost:hover{background:var(--bg-muted);color:var(--text-primary);border-color:#d0d6df}.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.danger:hover{background:#fee2e2}.compact{min-height:32px;padding:0 11px;font-size:13px}.inline{margin-top:0}.icon-btn{width:34px;min-height:34px;padding:0;border:1px solid var(--border-default);background:var(--bg-surface);color:var(--text-secondary)}.icon-btn:hover{background:var(--bg-muted);color:var(--text-primary)}.usage-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.line-chart-wrap{display:grid;gap:10px;overflow-x:auto;border:1px solid #eef0f3;border-radius:8px;padding:12px;background:#fff}.usage-chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-chart-head strong{color:#111827;font-size:20px}.usage-chart-title{color:#374151;font-size:14px;font-weight:800}.line-chart-wrap::-webkit-scrollbar{height:8px}.line-chart{width:100%;min-width:520px;height:320px}.grid-lines line{stroke:#e5e7eb;stroke-width:1}.axis-labels text,.time-labels text{fill:#6b7280;font-size:12px}.time-labels text{text-anchor:middle}.cpu-line,.memory-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.cpu-line{stroke:#2563eb}.memory-line{stroke:#059669}.cpu-dot{fill:#2563eb}.memory-dot{fill:#059669}.history-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.history-dot{opacity:.35;stroke:#fff;stroke-width:1}.chart-legend{display:flex;flex-wrap:wrap;gap:8px;color:#4b5563;font-size:13px;font-weight:700}.chart-filter{margin-bottom:14px;display:flex;flex-wrap:wrap;gap:8px}.chart-filter .active,.legend-item.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.legend-item{min-height:28px;padding:0 8px;border:1px solid #e5e7eb;background:#fff;color:#4b5563;font-size:13px;font-weight:800}.chart-legend span,.legend-item{display:inline-flex;align-items:center;gap:6px}.chart-legend i,.legend-item i{width:22px;height:3px;border-radius:999px;display:inline-block}.legend-cpu{background:#2563eb}.legend-memory{background:#059669}@media (max-width: 1100px){.usage-chart-grid{grid-template-columns:1fr}}.host-table{display:grid;border:1px solid var(--border-subtle);border-radius:10px;overflow:auto;background:var(--bg-surface);-webkit-overflow-scrolling:touch}.table-head,.table-row{display:grid;gap:12px;align-items:center;padding:12px 16px}.overview-table .table-head,.overview-table .table-row{grid-template-columns:1fr 1.2fr .7fr .9fr 1fr 1fr .9fr .9fr}.container-table .table-head,.container-table .table-row{grid-template-columns:minmax(170px,1fr) 96px minmax(190px,1.2fr) 100px 80px 170px minmax(250px,auto)}.log-table .table-head,.log-table .table-row{grid-template-columns:150px 80px 130px minmax(360px,1fr)}.user-table .table-head,.user-table .table-row{grid-template-columns:1fr 120px 110px 180px 170px}.table-head{min-width:920px;background:#f9fafb;color:#6b7280;font-size:13px;font-weight:700}.table-row{min-width:920px;min-height:52px;border-top:1px solid #eef0f3;background:#fff;color:#1f2937;text-align:left}.table-row.static{cursor:default}.table-row:hover:not(.static){background:#f9fafb}.table-row small{display:block;color:#6b7280;margin-top:3px}.table-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{display:inline-flex;align-items:center;gap:5px;width:fit-content;border-radius:999px;padding:4px 10px;background:#f3f4f6;color:#4b5563;font-size:12px;font-style:normal;font-weight:700;letter-spacing:.2px}.status:before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.85}.status.online,.status.running{background:#dcfce7;color:#15803d}.status.error,.status.dead,.status.exited{background:#fee2e2;color:#b91c1c}.status.paused{background:#fef3c7;color:#92400e}.hosts-layout{display:grid;gap:16px;align-items:start}.host-list{display:grid;gap:16px;padding-top:0}.host-toolbar{position:sticky;top:var(--tabs-height);z-index:15;margin:-18px -18px 4px;padding:14px 18px;background:#ffffffeb;backdrop-filter:saturate(160%) blur(8px);-webkit-backdrop-filter:saturate(160%) blur(8px);border-bottom:1px solid var(--border-subtle);border-radius:12px 12px 0 0;display:grid;grid-template-columns:minmax(0,auto) 1fr;gap:12px 16px;align-items:center}.host-toolbar-head{display:inline-flex;align-items:baseline;gap:10px;min-width:0}.host-toolbar-head h2{margin:0;font-size:17px;font-weight:700;color:#111827;letter-spacing:.2px}.host-count{color:#6b7280;font-size:12px;font-weight:600;padding:2px 10px;border-radius:999px;background:#f3f4f6}.host-toolbar-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}.host-search{position:relative;display:inline-flex;align-items:center;gap:8px;min-width:240px;flex:1 1 240px;max-width:360px;padding:0 10px;height:34px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#6b7280;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.host-search:focus-within{border-color:#93c5fd;background:#fff;box-shadow:0 0 0 3px #2563eb1f}.host-search svg{flex:0 0 auto}.host-search input{flex:1 1 auto;min-width:0;height:100%;border:none;outline:none;background:transparent;color:#111827;font-size:13px}.host-search input::placeholder{color:#9ca3af}.host-search-clear{flex:0 0 auto;width:22px;height:22px;min-height:22px;padding:0;border:none;border-radius:999px;background:#e5e7eb;color:#4b5563;display:inline-grid;place-items:center;cursor:pointer}.host-search-clear:hover{background:#d1d5db;color:#111827}.host-card-list{display:grid;gap:12px}.host-card{position:relative;border:1px solid #e5e7eb;border-radius:10px;padding:16px;display:grid;gap:14px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease}.host-card:hover{border-color:#bfdbfe;background:#fbfdff;box-shadow:0 6px 16px -10px #2563eb59;transform:translateY(-1px)}.host-card.active{border-color:#93c5fd;background:linear-gradient(180deg,#f5f9ff,#fff 60%);box-shadow:inset 3px 0 #2563eb,0 6px 18px -12px #2563eb73}.host-card-main{display:flex;align-items:center;justify-content:space-between;gap:14px}.host-card-title{min-width:0;display:inline-flex;align-items:center;gap:10px}.host-name-cell{min-width:0;display:inline-flex;align-items:center;gap:7px}.country-flag{flex:0 0 auto;font-style:normal;font-size:18px;line-height:1}.host-card-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.host-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.host-card-details{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 14px;padding-top:10px;border-top:1px solid #eef0f3}.host-card-details>div{min-width:0;display:flex;align-items:center;gap:7px}.host-card-details svg{color:#2563eb}.host-card-details span{flex:0 0 auto;color:#6b7280;font-size:12px;font-weight:800}.host-card-details strong{min-width:0;display:inline-flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;font-size:13px}.sort-control{display:inline-flex;align-items:center;height:34px;color:#6b7280}.sort-control select{height:34px;min-width:132px;padding:0 30px 0 12px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#111827;font-size:13px;cursor:pointer}.sort-control select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1f}.tabs{display:flex;flex-wrap:wrap;gap:8px}.tabs button{background:#fff;border:1px solid #e5e7eb;color:#4b5563}.tabs button.active{background:#2563eb;border-color:#2563eb;color:#fff}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.resource-grid>div{min-height:96px;border:1px solid #eef0f3;border-radius:8px;padding:14px;display:grid;gap:4px;background:#fbfdff}.resource-grid strong{font-size:16px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail-grid>div,.readonly-line{padding:12px;border:1px solid #eef0f3;border-radius:8px;background:#f9fafb;display:grid;gap:5px}.secret-line{grid-template-columns:minmax(0,1fr) auto;align-items:center}.secret-line span{grid-column:1 / -1}.secret-line strong{min-width:0}.secret-label{display:grid;gap:6px}.input-with-icon{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.detail-grid span,.readonly-line span{color:#6b7280;font-size:12px;font-weight:700}.detail-grid strong,.readonly-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.os-detail strong{display:inline-flex;align-items:center;gap:8px}.os-logo-img{width:20px;height:20px;flex:0 0 20px;display:inline-block;background:var(--os-logo-color, #111827);mask:var(--os-logo-src) center / contain no-repeat;-webkit-mask:var(--os-logo-src) center / contain no-repeat}label{display:grid;gap:7px;color:#4b5563;font-size:13px;font-weight:700}.span-2{grid-column:1 / -1}.path-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin-bottom:12px}.file-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:10px;margin-bottom:12px}.tool-form{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:8px}.chmod-form{grid-template-columns:minmax(0,1fr) 86px auto}.rename-form{grid-template-columns:minmax(0,1fr) auto}.file-manager-shell{display:grid;gap:12px}.file-pathbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto auto auto;gap:8px;align-items:center}.file-actionbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.new-file-form{display:grid;grid-template-columns:92px minmax(180px,260px) auto;gap:8px}.selected-filebar{border:1px solid #e5e7eb;border-radius:8px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px) 174px 82px 82px;gap:10px;align-items:end;background:#f9fafb}.selected-filebar>div{min-width:0;display:grid;gap:4px}.selected-filebar span{color:#6b7280;font-size:12px;font-weight:800}.selected-filebar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827}.selected-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.chmod-inline{grid-template-columns:76px 88px}.upload-control{min-height:36px;padding:0 13px;border:1px solid #d1d5db;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#374151;cursor:pointer;font-size:14px;font-weight:600;white-space:nowrap}.upload-control.compact{min-height:32px;padding:0 10px}.create-file-modal{grid-template-columns:140px minmax(0,1fr)}.upload-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.file-table{border:1px solid #eef0f3;border-radius:8px;overflow:hidden}.file-head{min-height:38px;padding:0 10px 0 38px;display:grid;grid-template-columns:minmax(0,1fr) 90px 118px;gap:10px;align-items:center;background:#f9fafb;color:#6b7280;font-size:12px;font-weight:800}.file-row{width:100%;min-height:42px;padding:0 10px;display:grid;grid-template-columns:18px minmax(0,1fr) 90px 118px;gap:10px;justify-items:start;background:#fff;border-top:1px solid #eef0f3;color:#1f2937;text-align:left}.file-row:first-child{border-top:0}.file-row:hover{background:#f9fafb}.file-row.active{background:#eff6ff;color:#1d4ed8}.file-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.file-row small{color:#6b7280;font-weight:600}.terminal-output{width:100%;min-height:468px;border:1px solid #d1d5db;border-radius:8px;background:#0f172a;color:#d1e7ff;font-family:Cascadia Code,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.55}.code-editor{width:100%;height:60vh;min-height:420px;border:1px solid var(--border-default);border-radius:10px;overflow:hidden;background:#282c34}.code-editor .cm-editor{height:100%;font-family:Cascadia Code,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.55;color:#abb2bf;background:#282c34}.code-editor .cm-editor.cm-focused{outline:none}.code-editor .cm-scroller{font-family:inherit}.code-editor .cm-content{caret-color:#fff}.code-editor .cm-gutters{border-right:1px solid rgba(148,163,184,.15)}.editor-toolbar{display:inline-flex;align-items:center;gap:10px}.editor-language{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:32px;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-muted);color:var(--text-secondary);font-size:12px;font-weight:600}.editor-language svg{color:var(--accent)}.editor-language select{height:28px;min-width:110px;padding:0 22px 0 4px;border:none;background:transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 4px center;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--text-primary);font-size:12px;font-weight:600;cursor:pointer}.editor-language select:focus{outline:none;box-shadow:none}.editor-status{margin-right:auto;color:var(--text-muted);font-size:12px;font-weight:600}.terminal-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.font-control{width:auto;grid-auto-flow:column;align-items:center;color:#4b5563}.font-control input{width:70px}.terminal-output{width:100%;min-width:0;max-width:100%;margin:14px 0 0;padding:12px 12px 24px;overflow:hidden;max-height:62vh;outline:none;cursor:text}.terminal-output:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #2563eb33}.terminal-output .xterm{width:100%;max-width:100%;height:100%;min-height:448px;padding-bottom:10px;box-sizing:border-box}.terminal-output .xterm-screen,.terminal-output .xterm-rows{max-width:100%}.terminal-output .xterm-viewport{border-radius:6px}.terminal-resource-grid{width:100%;min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.terminal-resource-card{min-width:0;min-height:58px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:7px;background:#f9fafb;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 7px;align-items:center}.terminal-resource-card svg{width:15px;height:15px;color:#2563eb}.terminal-resource-card span,.terminal-resource-card small{min-width:0;color:#6b7280;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.terminal-resource-card strong{grid-column:1 / -1;min-width:0;color:#111827;font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.terminal-resource-card.net-card strong{font-size:14px}.terminal-resource-card small{grid-column:1 / -1}.mini-progress{grid-column:1 / -1;height:4px;overflow:hidden;border-radius:999px;background:#e5e7eb}.mini-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#059669)}.process-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.process-grid>div{border:1px solid #eef0f3;border-radius:8px;overflow:hidden}.process-grid h3{padding:12px;background:#f9fafb;border-bottom:1px solid #eef0f3}.process-row{display:grid;grid-template-columns:70px minmax(0,1fr) 90px auto;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #f3f4f6}.process-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-row small{color:#6b7280;text-align:right}.row-actions{display:flex;flex-wrap:wrap;gap:6px}.pager{margin-top:14px;display:flex;align-items:center;justify-content:flex-end;gap:10px;color:var(--text-muted);font-size:13px}.compact-pager{justify-content:space-between}.notice{margin-bottom:12px;padding:11px 14px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#92400e;line-height:1.5;font-size:14px}.inline-message{margin:0 0 12px}.message{padding:11px 14px;border:1px solid #dbeafe;border-radius:10px;background:var(--accent-soft);color:#1e40af;line-height:1.5;font-size:14px}.error{margin-top:12px;padding:11px 14px;border-radius:10px;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;line-height:1.5}.empty{min-height:280px;display:grid;place-content:center;justify-items:center;gap:12px;text-align:center;color:var(--text-muted)}.empty svg{color:#cbd5e1}.small-empty{min-height:220px}.actions{display:flex;justify-content:flex-end;gap:8px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;padding:28px;background:#0f172a80;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center}.modal-panel{width:min(760px,100%);max-height:calc(100vh - 56px);overflow:auto;border-radius:14px;border:1px solid var(--border-subtle);background:var(--bg-surface);box-shadow:0 30px 80px -20px #0f172a73;padding:22px}.small-modal{width:min(560px,100%)}.editor-modal{width:min(1080px,100%)}.manager-modal{width:min(1180px,100%)}.modal-toolbar{margin-bottom:12px;padding-bottom:0;border-bottom:0}.modal-scroll-list{max-height:min(46vh,520px);overflow:auto}.modal-title{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #eef0f3;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.notify-form{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);gap:16px;align-items:start}.notify-column{min-width:0;display:grid;gap:14px}.main-column{align-content:start}.form-section{display:grid;gap:12px;align-content:start;border:1px solid #eef0f3;border-radius:8px;padding:14px;background:#fff}.form-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #eef0f3}.cleanup-title-actions{display:inline-flex;align-items:center;gap:10px}.channel-section{min-height:190px}.threshold-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cleanup-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}.cleanup-result-list{display:grid;gap:8px}.cleanup-result-row{min-width:0;padding:10px 12px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#1e40af;display:grid;grid-template-columns:minmax(120px,.4fr) minmax(0,1fr);gap:10px;align-items:center;font-size:13px}.cleanup-result-row.failed{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.cleanup-result-row strong,.cleanup-result-row span{min-width:0;overflow:hidden;text-overflow:ellipsis}.compact-title{padding-top:4px}.multi-select-wrap{position:relative;min-width:0}.multi-select-trigger{width:100%;min-height:46px;padding:9px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;display:grid;gap:3px;color:#111827;text-align:left}.multi-select-trigger span,.multi-select-trigger small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-select-trigger span{font-weight:800}.multi-select-trigger small{color:#6b7280;font-size:12px;font-weight:700}.multi-select-menu{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:320px;overflow:auto;padding:10px;border:1px solid #dbe2ea;border-radius:8px;background:#fff;box-shadow:0 18px 40px #0f172a24;display:grid;gap:8px}.multi-select-actions{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:8px;border-bottom:1px solid #eef0f3}.multi-select-option{min-width:0;min-height:46px;padding:9px;border:1px solid #eef0f3;border-radius:7px;background:#f9fafb;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 8px;align-items:center}.multi-select-option input{width:16px;height:16px}.multi-select-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;font-weight:800}.multi-select-option small{grid-column:2 / 4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7280;font-size:12px;font-weight:700}.span-2{grid-column:span 2}.check-line,.switch-line,.checkbox-row{display:inline-flex;align-items:center;gap:8px;min-height:36px;color:#374151;font-weight:700}.check-line input,.switch-line input,.checkbox-row input{width:16px;height:16px}.section-actions{display:flex;justify-content:flex-end;margin-top:auto}.hint{color:#6b7280;font-size:12px;line-height:1.6}.log-filter{display:grid;grid-template-columns:160px 220px;gap:12px;align-items:end;margin-bottom:14px}.log-hint{margin:-4px 0 12px}.readonly-line{margin-bottom:14px}.modal-actions{margin-top:14px;display:flex;justify-content:flex-end;gap:8px}.notify-actions{grid-column:1 / -1;margin-top:0}@media (max-width: 1280px){.metrics,.host-card-details{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-grid,.threshold-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 1020px){.admin-shell,.hosts-layout{grid-template-columns:1fr}.terminal-page{max-width:calc(100vw - 28px)}.notify-form{grid-template-columns:1fr}.mobile-nav-toggle{display:flex}.mobile-nav-mask{display:block;min-height:100vh;min-height:100dvh}.admin-sidebar{position:fixed;top:0;left:0;bottom:auto;z-index:26;width:min(80vw,280px);height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;max-height:100dvh;padding:18px 14px;background-color:#0f172a;background:linear-gradient(180deg,#0b1220,#111827 60%,#0f172a);grid-template-columns:1fr;grid-template-rows:auto 1fr auto;transform:translate(-100%);transition:transform .25s cubic-bezier(.4,0,.2,1);overflow-y:auto;overscroll-behavior:contain;box-shadow:none}.admin-sidebar.open{transform:translate(0);box-shadow:var(--shadow-lg)}.brand{padding:0 6px 14px;border-bottom:1px solid rgba(148,163,184,.12)}.brand h1{font-size:17px;white-space:nowrap}.main-nav{display:grid;align-content:start;gap:4px;overflow:visible}.main-nav button,.logout-btn{width:100%;height:44px;min-height:44px;padding:0 12px;justify-content:flex-start}.logout-btn{align-self:end}.admin-main{grid-column:1}.workspace-tabs{top:0;padding-left:16px;padding-right:16px}.sticky-header-main .admin-header{top:var(--tabs-height)}.file-tools{grid-template-columns:1fr}.file-pathbar,.file-actionbar,.selected-filebar{grid-template-columns:1fr 1fr}.file-pathbar input{grid-column:1 / -1}.file-actionbar{align-items:stretch;flex-direction:column}.new-file-form,.selected-form,.chmod-inline,.create-file-modal,.host-toolbar{grid-template-columns:1fr}.host-toolbar-actions{justify-content:flex-start}}@media (max-width: 760px){.login-shell{place-items:start center;padding:72px 16px 24px}.login-panel{width:100%;max-width:360px;padding:24px 18px;border-radius:12px}.captcha-line{grid-template-columns:1fr}.captcha-line .compact{width:100%}.captcha-image{width:100%;max-width:220px}.admin-header,.header-actions,.panel-title,.form-section-title,.cleanup-title-actions{align-items:stretch;flex-direction:column}.cleanup-title-actions button{width:100%}.workspace-tabs{min-height:44px;padding:6px 10px 0 64px}.workspace-tab{min-width:78px;min-height:38px;padding:0 10px;font-size:12px}.admin-header{min-height:0;padding:12px 14px;gap:10px}.sticky-header-main .admin-header{top:var(--tabs-height)}input,select,textarea{font-size:16px;min-height:40px}.admin-header h2{font-size:17px}.admin-header p{font-size:12px}.header-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.header-actions .user-badge{grid-column:1 / -1;justify-content:center}.header-actions>button{width:100%}.node-select{width:100%}.page-stack,.hosts-layout,.terminal-page,.message{margin:14px 10px 0}.terminal-page{max-width:calc(100vw - 28px)}.metrics,.metrics.embedded,.resource-grid,.terminal-resource-grid,.host-card-details,.detail-grid,.process-grid,.modal-form,.notify-form,.log-filter,.threshold-grid,.cleanup-type-grid{grid-template-columns:1fr}.metrics,.metrics.embedded{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:82px;padding:12px;border-radius:10px}.metric strong{font-size:18px}.metric span{font-size:12px}.panel{padding:14px;border-radius:10px}.panel-title{margin-bottom:14px;padding-bottom:12px;gap:8px}.usage-chart-grid{gap:10px}.line-chart-wrap{padding:10px}.line-chart{min-width:420px;height:260px}.usage-chart-head strong{font-size:16px}.table-head,.table-row{min-width:760px;padding:10px 12px;font-size:12px;min-height:56px}.table-head>span:first-child,.table-row>span:first-child{position:sticky;left:0;background:inherit;z-index:1;box-shadow:1px 0 0 var(--border-subtle);padding-right:8px}.table-head{background:#f9fafb}.table-row{background:#fff}.table-row:hover:not(.static){background:#f9fafb}.overview-table .table-head,.overview-table .table-row{grid-template-columns:minmax(150px,1.2fr) 1.2fr .7fr .9fr 1fr 1fr .9fr .9fr}.log-table .table-head,.log-table .table-row{min-width:680px;grid-template-columns:minmax(140px,1fr) 80px 130px minmax(280px,1.4fr)}.user-table .table-head,.user-table .table-row{min-width:640px;grid-template-columns:minmax(140px,1fr) 120px 110px 180px 170px}.container-table .table-head,.container-table .table-row{min-width:820px;grid-template-columns:minmax(150px,1fr) 96px minmax(190px,1.2fr) 100px 80px 170px minmax(220px,auto)}.host-card{padding:14px;border-radius:10px}.host-card-header{align-items:stretch;flex-direction:column}.host-actions{justify-content:stretch}.host-actions button{flex:1 1 120px}.terminal-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.terminal-toolbar .font-control{grid-column:1 / -1}.terminal-output{height:clamp(280px,50dvh,520px);min-height:280px}.terminal-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.terminal-resource-card{min-height:58px;padding:9px}.span-2{grid-column:span 1}.path-form,.tool-form,.chmod-form,.file-pathbar,.selected-filebar{grid-template-columns:1fr}.file-tools,.new-file-form,.file-pathbar,.selected-filebar{gap:8px}.file-head,.file-row{min-width:560px;grid-template-columns:18px minmax(0,1fr) 76px 92px}.file-head{grid-template-columns:minmax(0,1fr) 76px 92px}.modal-panel{width:100%;height:100dvh;max-height:100dvh;padding:14px;border-radius:0}.modal-title{gap:10px;align-items:start}.modal-title h2{font-size:17px}.modal-actions{position:sticky;bottom:0;align-items:stretch;flex-direction:column-reverse;padding-top:12px;background:var(--bg-surface);z-index:2}.modal-actions button{width:100%;min-height:44px}.editor-modal .modal-panel{padding:8px}.editor-modal .modal-actions{display:grid;grid-template-columns:1fr}.pager{align-items:stretch;flex-direction:column}.span-2{grid-column:auto}.modal-backdrop{padding:0;align-items:stretch}.host-toolbar-actions{flex-direction:column;align-items:stretch}.host-search{max-width:none}.sort-control select{width:100%}}@media (max-width: 420px){button{font-size:13px}.metrics,.metrics.embedded{grid-template-columns:1fr}.line-chart{min-width:360px}.terminal-resource-grid{grid-template-columns:1fr}.login-shell{padding-left:12px;padding-right:12px}.login-panel{padding:22px 14px}}@media (max-width: 380px){.brand h1{font-size:15px}.workspace-tab{padding:0 8px;min-width:64px}.metric{padding:10px;min-height:72px}.metric strong{font-size:16px}.panel{padding:12px}.page-stack,.hosts-layout,.terminal-page,.message{margin:12px 8px 0}.terminal-page{max-width:calc(100vw - 16px)}.mobile-nav-toggle{width:40px;height:40px;top:8px;left:8px}.workspace-tabs{padding-left:56px}}
