/**
 * 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}:root{color-scheme:dark;--page: #0d0d0d;--surface-1: #1a1a19;--surface-2: #242422;--text-primary: #f2f2ef;--text-secondary: #c3c2b7;--text-muted: #898781;--gridline: #2c2c2a;--axis: #3a3a37;--brand-primary: #3987e5;--status-good: #34b334;--status-warning: #fab219;--status-critical: #e05252;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--series-4: #c98500;--series-5: #d55181;--series-6: #008300;--series-7: #9085e9;--series-8: #e66767}*{box-sizing:border-box}html,body{margin:0}body{background:var(--page);color:var(--text-primary);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px}a{color:var(--brand-primary);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:22px;margin:0 0 4px}h2{font-size:17px;margin:0 0 12px}h3{font-size:15px;margin:0}.topbar{display:flex;align-items:center;gap:20px;padding:12px 20px;border-bottom:1px solid var(--gridline);background:var(--surface-1);flex-wrap:wrap}.brand{font-weight:700;font-size:16px;color:var(--text-primary)}.nav{display:flex;gap:4px;flex-wrap:wrap}.nav a{color:var(--text-secondary);padding:6px 10px;border-radius:6px}.nav a.active{color:var(--text-primary);background:var(--surface-2)}.nav a:hover{text-decoration:none;color:var(--text-primary)}.topbar .spacer{flex:1}.topbar .who{color:var(--text-muted);font-size:13px}.page{max-width:1180px;margin:0 auto;padding:24px 16px 64px}.page-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.page-head .spacer{flex:1}.card{background:var(--surface-1);border:1px solid var(--gridline);border-radius:12px;padding:18px;margin-bottom:16px}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.device-card{display:block;color:inherit;margin:0}.device-card:hover{border-color:var(--brand-primary);text-decoration:none}.muted{color:var(--text-muted);font-size:13px}.secondary-text{color:var(--text-secondary)}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}button,.button{background:var(--brand-primary);color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:14px;cursor:pointer;display:inline-block}button:disabled{opacity:.5;cursor:default}button.secondary,.button.secondary{background:transparent;color:var(--text-primary);border:1px solid var(--gridline)}button.danger{background:transparent;color:var(--status-critical);border:1px solid var(--gridline)}button.small,.button.small{padding:4px 10px;font-size:13px}.button:hover{text-decoration:none}input,select,textarea{border:1px solid var(--gridline);border-radius:6px;padding:7px 10px;font-size:14px;background:var(--surface-2);color:var(--text-primary);font-family:inherit}label.field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-secondary)}.form-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.segmented{display:inline-flex;border:1px solid var(--gridline);border-radius:8px;overflow:hidden}.segmented button{background:transparent;color:var(--text-secondary);border-radius:0;padding:6px 12px;border-right:1px solid var(--gridline)}.segmented button:last-child{border-right:none}.segmented button.on{background:var(--surface-2);color:var(--text-primary);font-weight:600}.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.status{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}.status .dot{width:8px;height:8px;border-radius:50%}.status.good{color:var(--status-good)}.status.good .dot{background:var(--status-good)}.status.off{color:var(--text-muted)}.status.off .dot{border:1.5px solid var(--text-muted)}.banner{padding:10px 14px;border-radius:8px;margin-bottom:16px;font-size:14px;border:1px solid}.banner.error{background:#e052521a;border-color:var(--status-critical);color:var(--status-critical)}.banner.info{background:#3987e514;border-color:var(--brand-primary);color:var(--text-primary)}table.list{width:100%;border-collapse:collapse}table.list th{text-align:left;font-weight:500;color:var(--text-muted);font-size:12px;padding:6px 8px;border-bottom:1px solid var(--gridline)}table.list td{padding:9px 8px;border-bottom:1px solid var(--gridline);vertical-align:middle}table.list tr:last-child td{border-bottom:none}.table-wrap{overflow-x:auto}.keybox{font-family:ui-monospace,Consolas,monospace;background:var(--page);border:1px solid var(--gridline);border-radius:8px;padding:10px 12px;word-break:break-all;font-size:13px}pre.snippet{background:var(--page);border:1px solid var(--gridline);border-radius:8px;padding:10px 12px;font-size:12px;overflow-x:auto}.node-title{font-size:17px;font-weight:600}.tiles{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 8px}.tile{background:var(--surface-2);border-radius:10px;padding:10px 14px;min-width:130px}.tile .label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary)}.tile .key{width:12px;height:2px;border-radius:1px}.tile .value{font-size:22px;font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums}.tile .age{font-size:12px;color:var(--text-muted)}.chart-wrap{position:relative}.chart-wrap.loading{opacity:.5;transition:opacity .15s}.chart-svg{width:100%;height:auto;display:block;touch-action:none}.legend{display:flex;gap:14px;flex-wrap:wrap;margin:4px 0 6px}.legend button{background:none;border:none;padding:2px 0;color:var(--text-secondary);display:inline-flex;align-items:center;gap:6px;font-size:13px}.legend button.hidden{opacity:.4}.legend .key{width:16px;height:2px;border-radius:1px}.tooltip{position:absolute;pointer-events:none;background:var(--surface-2);border:1px solid var(--gridline);border-radius:8px;padding:8px 10px;font-size:12px;min-width:150px;box-shadow:0 4px 14px #0006;z-index:2}.tooltip .time{color:var(--text-muted);margin-bottom:4px}.tooltip .trow{display:flex;align-items:center;gap:6px;line-height:1.6}.tooltip .trow .key{width:10px;height:2px;border-radius:1px}.tooltip .trow strong{font-variant-numeric:tabular-nums}.tooltip .trow .range{color:var(--text-muted)}.build-stamp{position:fixed;right:10px;bottom:8px;font-size:11px;color:var(--text-muted);opacity:.6;pointer-events:none}.login-wrap{max-width:360px;margin:12vh auto 0;padding:0 16px}.login-wrap .card{display:flex;flex-direction:column;gap:12px}
