:root{--bg: #f2f3f5;--panel: #ffffff;--border: #e5e6eb;--border-soft: #f0f1f3;--text: #1d2129;--muted: #86909c;--muted2: #c9cdd4;--accent: #165dff;--accent-soft: #e8f3ff;--ok: #00b42a;--warn: #ff7d00;--bad: #f53f3f;--sidebar: #1d2939;--shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,Segoe UI,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}.app{display:flex;height:100%}.sidebar{width:208px;background:var(--sidebar);color:#c9cdd4;display:flex;flex-direction:column;flex-shrink:0}.sidebar h1{font-size:16px;color:#fff;padding:20px 22px;margin:0;font-weight:600;letter-spacing:.3px}.sidebar .brand-sub{font-size:11px;color:#6b7785;font-weight:400}.nav{flex:1;padding:6px 12px}.nav button{display:block;width:100%;text-align:left;background:none;border:none;color:#c9cdd4;padding:10px 14px;cursor:pointer;font-size:14px;border-radius:8px;margin-bottom:2px;transition:background .15s,color .15s}.nav button:hover{background:#ffffff0f;color:#fff}.nav button.active{background:var(--accent);color:#fff;font-weight:500}.sidebar .foot{padding:14px 22px;font-size:12px;color:#6b7785;border-top:1px solid rgba(255,255,255,.08)}.sidebar .foot a{color:#9aa4b2;cursor:pointer}.sidebar .foot a:hover{color:#fff}.main{flex:1;overflow:auto;padding:24px 28px}.page-title{font-size:20px;font-weight:600;margin:0 0 18px}.summary{display:flex;gap:16px;margin-bottom:20px;flex-wrap:wrap}.stat{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px 20px;min-width:140px;box-shadow:var(--shadow)}.stat .n{font-size:26px;font-weight:700;line-height:1.2}.stat .l{color:var(--muted);font-size:13px;margin-top:4px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px}.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:18px 20px;box-shadow:var(--shadow);transition:box-shadow .2s}.card:hover{box-shadow:0 2px 6px #0000000f,0 6px 18px #0000000f}.card h3{margin:0 0 6px;font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px}.card .sub{color:var(--muted);font-size:12px;margin-bottom:14px}.bar{height:6px;background:var(--border-soft);border-radius:4px;overflow:hidden;margin:5px 0}.bar>div{height:100%;background:var(--accent);border-radius:4px;transition:width .4s ease}.bar.warn>div{background:var(--warn)}.bar.bad>div{background:var(--bad)}.bar-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);align-items:baseline}.bar-row span:first-child{color:var(--text);font-weight:500}.info-row{display:flex;justify-content:space-between;font-size:13px;margin:7px 0}.info-row span:first-child{color:var(--text);font-weight:500}.info-row span:last-child{color:var(--muted)}.card-divider{border-top:1px solid var(--border-soft);margin:12px 0 10px}.chart-box{margin:4px 0 14px}.chart-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:2px}.chart-title{font-size:12px;color:var(--muted)}.chart-stats{display:flex;gap:16px;margin-top:6px;font-size:12px;color:var(--muted)}.chart-stats b{color:var(--text);font-weight:600;margin-left:2px}.chart-tabs{display:flex;gap:2px;margin:12px 0 2px;border-bottom:1px solid var(--border-soft)}.tab{background:none;border:none;padding:6px 12px;font-size:13px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s}.tab:hover{color:var(--text)}.tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:500}table{width:100%;border-collapse:separate;border-spacing:0;background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}th,td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--border-soft);font-size:13px}th{background:#fafbfc;color:var(--muted);font-weight:500;font-size:12px}tbody tr{transition:background .12s}tbody tr:hover{background:#fafbfc}tr:last-child td{border-bottom:none}.btn{border:1px solid var(--border);background:#fff;border-radius:6px;padding:5px 12px;cursor:pointer;font-size:13px;margin-right:6px;color:var(--text);transition:all .12s}.btn:hover{border-color:var(--accent);color:var(--accent)}.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.primary:hover{background:#0e4fe0;color:#fff}.btn.danger{color:var(--bad);border-color:#fbc4c4}.btn.danger:hover{background:#fff1f0;border-color:var(--bad)}.badge{font-size:12px;padding:2px 9px;border-radius:10px;font-weight:500}.badge.ok{background:#e8ffea;color:var(--ok)}.badge.bad{background:#ffece8;color:var(--bad)}.badge.warn{background:#fff7e8;color:var(--warn)}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.cell-image{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.cell-actions{white-space:nowrap}select,input{padding:7px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px;background:#fff;color:var(--text);outline:none;transition:border-color .12s}select:focus,input:focus{border-color:var(--accent)}.term,.logs{background:#0e1726;border-radius:10px;padding:12px;height:calc(100vh - 200px);border:1px solid var(--border)}.logs{color:#c9d1d9;font-family:Consolas,Cascadia Code,monospace;font-size:12px;overflow:auto;white-space:pre-wrap;line-height:1.5}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:14px;padding:24px;width:380px;box-shadow:0 12px 48px #0003}.modal h2{margin:0 0 14px;font-size:17px;font-weight:600}.modal input{width:100%;margin:8px 0 16px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.modal-actions .btn{margin-right:0}.stepper{display:flex;align-items:center;gap:8px;margin:6px 0 4px}.stepper input{width:90px;margin:0;text-align:center}.stepper .btn{margin-right:0;padding:5px 14px;font-size:16px;line-height:1}.err{color:var(--bad);font-size:13px;margin:8px 0}.field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.login-bg{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1d2939,#0e1726)}.login-card{background:#fff;border-radius:16px;padding:36px;width:340px;box-shadow:0 20px 60px #00000059}.login-brand{font-size:24px;font-weight:700}.login-sub{color:var(--muted);font-size:12px;margin-bottom:22px}.login-card input{width:100%;margin-bottom:12px;padding:10px 12px}.login-btn{width:100%;padding:10px;margin-top:4px}.login-alt{display:block;margin-top:16px;font-size:12px;color:var(--accent);cursor:pointer;text-align:center}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}/**
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js
* @license MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Originally forked from (with the author's permission):
*   Fabrice Bellard's javascript vt100 for jslinux:
*   http://bellard.org/jslinux/
*   Copyright (c) 2011 Fabrice Bellard
*   The original design remains. The terminal itself
*   has been extended to include xterm CSI codes, among
*   other features.
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
