/**
 * 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{--bg: #f6f8fb;--surface: #ffffff;--surface-2: #f3f5f9;--border: #e3e8ef;--border-strong: #cdd5e0;--text: #101828;--text-2: #344054;--text-3: #475467;--muted: #5b6779;--faint: #98a2b3;--accent: #2563eb;--accent-hover: #1d4ed8;--accent-text: #1d5fd1;--accent-soft: #e8f0fe;--accent-soft-2: #dce8fd;--accent-border: #a9c4f5;--green: #12b76a;--green-text: #067647;--green-soft: #e7f8ee;--green-border: #abefc6;--red: #e5484d;--red-text: #b42318;--red-soft: #fdecec;--red-border: #f4b4b4;--amber-text: #b54708;--amber-soft: #fef0c7;--gray-dot: #98a2b3;--olt-bg: rgba(37, 99, 235, .1);--olt-text: #1d5fd1;--switch-bg: rgba(247, 144, 9, .14);--switch-text: #b54708;--radius: 12px;--radius-sm: 8px;--font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--shadow: 0 1px 2px rgba(16, 24, 40, .04)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.45;color-scheme:light;-webkit-font-smoothing:antialiased}a{color:var(--accent-text)}a:hover{color:#1849a9}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}.mono{font-family:var(--mono)}.muted{color:var(--muted)}.small{font-size:12.5px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app{min-height:100vh;display:flex;flex-direction:column}.header{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;min-height:40px;text-decoration:none;color:var(--text)}.brand:hover{color:var(--text)}.brand-mark{width:32px;height:32px;border-radius:8px;background:var(--accent-soft);color:var(--accent-text);display:flex;align-items:center;justify-content:center}.brand-name{font-size:16px;font-weight:700;letter-spacing:-.01em}.org-switch{display:flex;align-items:center;gap:8px}.org-switch label{font-size:12px;color:var(--muted)}.search{flex:1 1 240px;min-width:0;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--muted)}.search input{flex:1;min-width:0;border:0;outline:none;background:transparent;color:var(--text);font-size:13.5px}.chip{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:500;white-space:nowrap}.chip-green{background:var(--green-soft);color:var(--green-text)}.chip-gray{background:var(--surface-2);color:var(--text-3)}.chip-red{background:var(--red-soft);color:var(--red-text)}.user-menu{position:relative}.avatar-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--border-strong);background:var(--surface-2);font-size:12.5px;font-weight:600;cursor:pointer}.menu{position:absolute;right:0;top:44px;min-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #1018281f;padding:6px;display:flex;flex-direction:column;z-index:30}.menu-head{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:4px}.menu-head b{display:block;font-weight:600}.menu a,.menu button{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:6px;border:0;background:transparent;text-decoration:none;color:var(--text-2);cursor:pointer;text-align:left}.menu a:hover,.menu button:hover{background:var(--surface-2);color:var(--text)}.app-body{flex:1 0 auto;display:flex;flex-wrap:wrap;align-items:stretch}.sidebar{flex:1 1 272px;max-width:100%;padding:20px 14px 28px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;gap:28px}.main{flex:999 1 560px;min-width:0;padding:24px 32px 48px;display:flex;flex-direction:column;gap:20px}@media(max-width:860px){.sidebar{border-right:0;border-bottom:1px solid var(--border)}.main{padding:20px 16px 40px}.header{padding:10px 16px}}.nav{display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;border-radius:var(--radius-sm);text-decoration:none;font-weight:500;color:var(--text-3)}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a.active{background:var(--accent-soft);color:var(--text)}.nav .count{margin-left:auto;font-size:11.5px;font-weight:600;padding:0 7px;border-radius:999px;background:var(--accent-soft-2);color:var(--accent-text)}.live-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 12px}.eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.tree{display:flex;flex-direction:column;gap:4px}.tree-org{display:flex;flex-direction:column;gap:2px}.tree-org-btn{width:100%;display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border:0;background:transparent;border-radius:6px;font-size:13.5px;font-weight:700;cursor:pointer;text-align:left}.tree-org-btn:hover{background:var(--surface-2)}.tree-org-btn .name,.tree-branch-link .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-count{font-size:12px;font-weight:600;white-space:nowrap}.tree-branches{display:flex;flex-direction:column;gap:2px;margin-left:16px;padding-left:4px;border-left:1px solid var(--border)}.tree-branch-row{display:flex;align-items:center;border-radius:6px}.tree-branch-row:hover{background:var(--surface-2)}.tree-branch-row.active{background:var(--accent-soft)}.tree-toggle{width:26px;height:34px;flex:none;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.tree-toggle:hover{color:var(--text)}.tree-branch-link{flex:1;min-width:0;display:flex;align-items:center;gap:7px;min-height:34px;padding-right:10px;text-decoration:none;color:var(--text);font-size:13.5px;font-weight:600}.tree-branch-link:hover{color:var(--text)}.tree-devices{display:flex;flex-direction:column;gap:2px;margin-left:12px;padding-left:6px;border-left:1px solid var(--border)}.tree-device{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 10px;border-radius:6px;text-decoration:none;color:var(--text)}.tree-device:hover{background:var(--surface-2);color:var(--text)}.tree-device.offline{background:#e5484d0f}.tree-device.selected{background:var(--accent-soft)}.tree-device .info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.tree-device .info span:first-child{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-device .ip{font-family:var(--mono);font-size:11.5px;color:var(--muted)}.tree-device .meta{font-size:11.5px;font-weight:500;color:var(--muted);white-space:nowrap}.tree-device.offline .meta{color:var(--red-text)}.tree-empty{padding:4px 12px;font-size:12.5px;color:var(--muted)}.legend{display:flex;gap:16px;padding:0 12px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.dot{width:10px;height:10px;flex:none;border-radius:50%;display:inline-block}.dot-online{background:var(--green)}.dot-offline{border:2px solid var(--red)}.dot-unknown{border:2px dashed var(--gray-dot)}.dot-sm{width:8px;height:8px}.pill{display:inline-flex;align-items:center;gap:7px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.pill-online{background:var(--green-soft);color:var(--green-text)}.pill-offline{background:var(--red-soft);color:var(--red-text)}.pill-unknown{background:var(--surface-2);color:var(--text-3)}.badge{display:inline-block;padding:2px 8px;border-radius:6px;font-size:11.5px;font-weight:600;white-space:nowrap}.badge-olt{background:var(--olt-bg);color:var(--olt-text)}.badge-switch{background:var(--switch-bg);color:var(--switch-text)}.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}.page-head .titles{display:flex;flex-direction:column;gap:6px;min-width:0}.page-title{font-size:26px;font-weight:600;letter-spacing:-.015em;line-height:1.2}.title-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:10px}.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.breadcrumb a{color:var(--muted);text-decoration:none}.breadcrumb a:hover,.breadcrumb .current{color:var(--text)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-pad{padding:18px 20px}.card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.section-title{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.count-badge{padding:1px 8px;border-radius:999px;background:var(--surface-2);color:var(--text-2);font-size:12px;font-weight:600}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px}.col-wide{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:20px}.col-narrow{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:16px}.tile{padding:18px 20px;display:flex;flex-direction:column;gap:4px}.tile .label{font-size:12.5px;font-weight:500;color:var(--muted)}.tile .value{font-size:34px;font-weight:600;letter-spacing:-.02em;line-height:1.15}.tile .sub{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value.green{color:var(--green)}.value.red{color:var(--red)}.branch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px}.branch-card{display:flex;flex-direction:column;gap:14px;padding:18px 20px;text-decoration:none;color:var(--text);transition:border-color .15s}.branch-card:hover{border-color:var(--accent-border);color:var(--text)}.branch-card .top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--surface-2)}.bar .on{background:var(--green)}.bar .off{background:var(--red)}.branch-card .foot{display:flex;align-items:center;gap:16px;font-size:12.5px;color:var(--muted)}.branch-card .foot b{color:var(--text);font-weight:600}.branch-card .open{margin-left:auto;color:var(--accent-text);font-weight:500}.down-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;background:#fff5f5;border:1px solid #f7d4d4;text-decoration:none;color:var(--text)}.down-item:hover{color:var(--text);border-color:var(--red-border)}.down-item .since{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}.down-item .since b{font-size:12.5px;color:var(--red-text)}.event{display:flex;gap:12px;padding:10px 0;border-top:1px solid #eef1f5}.event:first-child{border-top:0}.event .time{width:44px;flex:none;padding-top:1px;font-family:var(--mono);font-size:12px;color:var(--muted)}.event .ev-dot{margin-top:6px}.empty{padding:40px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--muted)}.empty h2{color:var(--text);font-size:18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font-size:14px;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}.btn:hover{background:var(--surface-2);color:var(--text)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}.btn-soft{background:var(--accent-soft);border-color:var(--accent-border);color:#1d4ed8;font-weight:600}.btn-soft:hover{background:var(--accent-soft-2);color:#1d4ed8}.btn-danger{color:var(--red-text);border-color:var(--red-border);font-weight:600}.btn-danger:hover{background:var(--red-soft);color:var(--red-text)}.btn-ghost{border-color:transparent;background:transparent;color:var(--text-2)}.btn-sm{height:32px;padding:0 12px;font-size:13px;border-radius:7px}.btn-icon{width:32px;height:32px;padding:0;border-radius:7px}.btn-dashed{border-style:dashed;background:transparent;color:var(--text-2)}.form-card{padding:20px;display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px 20px}.form-grid.tight{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label,.field .label{font-size:13px;font-weight:500;color:var(--text-2)}.field .optional{font-weight:400;color:var(--muted)}.field .help{font-size:12px;color:var(--muted)}.input,.select{width:100%;height:40px;padding:0 12px;background:var(--surface);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:14px;outline:none}.select{padding:0 10px}.input:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb26}.input.mono{font-family:var(--mono)}.select-sm{height:36px;font-size:13.5px;background:var(--surface-2)}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.form-actions .spacer{flex:1}.alert{padding:12px 14px;border-radius:10px;font-size:13.5px}.alert-error{background:var(--red-soft);color:var(--red-text);border:1px solid var(--red-border)}.alert-ok{background:#ecfdf3;color:var(--green-text);border:1px solid var(--green-border)}.alert-info{background:var(--accent-soft);color:#1d4ed8;border:1px solid var(--accent-border)}.seg{display:inline-flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:10px}.seg button{height:32px;min-width:56px;padding:0 12px;border-radius:7px;border:0;background:transparent;color:var(--muted);font-size:13.5px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.seg button[aria-pressed=true]{background:var(--accent-soft-2);color:var(--text)}.seg .n{padding:0 7px;border-radius:999px;background:var(--surface-2);color:var(--text-2);font-size:11.5px;font-weight:600}.seg.mono button{font-family:var(--mono);font-size:13px}.type-cards{display:flex;flex-wrap:wrap;gap:10px}.type-card{flex:1 1 200px;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border-radius:10px;border:1.5px solid var(--border-strong);background:var(--surface);text-align:left;cursor:pointer}.type-card[aria-pressed=true]{border-color:var(--accent);background:#eef4ff}.type-card .icon{width:34px;height:34px;flex:none;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:.04em}.type-card .t{display:flex;flex-direction:column;gap:1px}.type-card .t b{font-weight:600}.type-card .t span{font-size:12px;color:var(--muted)}.kv{display:grid;grid-template-columns:110px 1fr;gap:4px 12px;font-family:var(--mono);font-size:12.5px}.kv span:nth-child(odd){color:var(--muted)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13.5px}.table th{text-align:left;padding:10px 12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap}.table td{padding:12px;border-bottom:1px solid #eef1f5;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table th:first-child,.table td:first-child{padding-left:20px}.table th:last-child,.table td:last-child{padding-right:20px}.table .num,.table .right{text-align:right}.table tbody tr.clickable{cursor:pointer}.table tbody tr.clickable:hover td{background:#fafbfd}.table tbody tr.selected td{background:#eef4ff}.table tbody tr.offline td{background:#e5484d0a}.table .row-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}.cell-stack{display:flex;flex-direction:column;line-height:1.3}.cell-stack .sub{font-size:12px;color:var(--muted)}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.toolbar .search{flex:0 1 300px;height:40px}.snmp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}.snmp-cell{display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:var(--surface);border:1px solid #eef1f5;border-radius:10px;min-width:0}.snmp-cell .k{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.snmp-cell .k b{font-weight:600}.snmp-cell .k .mono{font-size:11px}.snmp-cell .v{font-size:14px;overflow-wrap:anywhere}.org-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px 18px;text-align:left;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);cursor:pointer;width:100%}.org-card:hover{border-color:var(--accent-border)}.org-card[aria-pressed=true]{border-color:var(--accent);background:#eef4ff}.org-card .top{display:flex;align-items:center;gap:12px}.org-avatar{width:36px;height:36px;flex:none;border-radius:8px;background:var(--accent-soft-2);color:var(--accent-text);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.org-avatar.lg{width:48px;height:48px;border-radius:10px;font-size:16px}.org-card .stats{display:flex;gap:14px;font-size:12.5px;color:var(--muted)}.org-card .stats b{color:var(--text);font-weight:600}.org-card .stats .state{margin-left:auto;font-weight:600}.session-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.session-tab{display:flex;align-items:center;gap:2px;height:40px;padding:0 4px 0 12px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border)}.session-tab.active{background:var(--accent-soft);border-color:var(--accent-border)}.session-tab .tab-main{display:flex;align-items:center;gap:8px;height:36px;padding:0 4px;border:0;background:transparent;font-size:13.5px;font-weight:500;color:var(--text-3);cursor:pointer}.session-tab.active .tab-main{color:var(--text);font-weight:600}.session-tab .tab-close{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:transparent;color:var(--text-3);cursor:pointer}.session-tab .tab-close:hover{background:#1018280f}.device-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:14px 18px}.device-bar .who{flex:1 1 340px;min-width:0;display:flex;align-items:center;gap:12px}.device-icon{width:40px;height:40px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--olt-bg);color:var(--olt-text)}.device-icon.switch{background:var(--switch-bg);color:var(--switch-text)}.terminal-card{display:flex;flex-direction:column;background:#0b1220;border:1px solid #1f2a3d;border-radius:var(--radius);overflow:hidden}.terminal-top{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;background:#111a2b;border-bottom:1px solid #1f2a3d;font-family:var(--mono);font-size:12px;color:#8a97ab}.terminal-top .right{margin-left:auto}.terminal-host{height:540px;padding:10px 4px 10px 12px}.terminal-top .target{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.term-tools{display:flex;align-items:center;gap:4px}.term-btn{height:26px;min-width:30px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2a3a52;border-radius:6px;background:#0b1220;color:#c9d4e3;font-family:var(--font);font-size:12px;font-weight:600;cursor:pointer}.term-btn:hover:not(:disabled){background:#1a2638;color:#fff}.term-btn-wide{min-width:58px;margin-right:6px;font-family:var(--mono);font-weight:500}.term-btn:disabled{opacity:.4;cursor:not-allowed}.term-size{min-width:36px;text-align:center;font-size:11.5px;color:#8a97ab}.terminal-resize{height:14px;flex:none;display:flex;align-items:center;justify-content:center;background:#111a2b;border-top:1px solid #1f2a3d;cursor:ns-resize;touch-action:none}.terminal-resize:before{content:"";width:48px;height:4px;border-radius:2px;background:#3a4a63}.terminal-resize:hover:before,.terminal-resize:focus-visible:before{background:#7fa6e8}.terminal-resize:focus-visible{outline:2px solid #7fa6e8;outline-offset:-2px}.terminal-card:fullscreen{border-radius:0;border:0}.terminal-card:fullscreen .terminal-host{flex:1 1 auto;height:auto;min-height:0}.terminal-foot{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 14px;border-top:1px solid #1f2a3d;font-size:12px;color:#8a97ab}.terminal-foot .right{margin-left:auto}.quick-cmd{width:100%;height:36px;padding:0 12px;text-align:left;border-radius:7px;border:1px solid var(--border);background:var(--bg);font-family:var(--mono);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.quick-cmd:hover:not(:disabled){border-color:var(--accent-border);background:var(--accent-soft)}.quick-cmd:disabled{cursor:not-allowed;color:var(--faint)}.dl{margin:0;display:flex;flex-direction:column;gap:10px;font-size:13px}.dl div{display:flex;justify-content:space-between;gap:12px}.dl dt{color:var(--muted)}.dl dd{margin:0;text-align:right}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.login-card{width:100%;max-width:400px;padding:32px 28px;display:flex;flex-direction:column;gap:20px}.login-card .brand{justify-content:center}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--border)}.tabs a{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;margin-bottom:-1px;border-bottom:2px solid transparent;text-decoration:none;color:var(--muted);font-weight:500}.tabs a:hover{color:var(--text)}.tabs a.active{color:var(--text);border-bottom-color:var(--accent);font-weight:600}.pill-h-ok{background:var(--green-soft);color:var(--green-text)}.pill-h-warning{background:var(--amber-soft);color:var(--amber-text)}.pill-h-critical{background:var(--red-soft);color:var(--red-text)}.pill-h-offline{background:var(--surface-2);color:var(--text-3)}.dot-h-ok{background:var(--green);display:inline-block;border-radius:50%}.dot-h-warning{background:#f79009;display:inline-block;border-radius:50%}.dot-h-critical{background:var(--red);display:inline-block;border-radius:50%}.dot-h-offline{border:2px solid var(--gray-dot);display:inline-block;border-radius:50%}.rx-ok{color:var(--text)}.rx-warning{color:var(--amber-text);font-weight:600}.rx-critical{color:var(--red-text);font-weight:600}.rx-offline{color:var(--faint)}.tile .unit{font-size:14px;font-weight:500;color:var(--muted);margin-left:4px}.port-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.port-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px;text-align:left;cursor:pointer;background:var(--surface);border:1.5px solid var(--border);border-radius:10px}.port-card:hover{border-color:var(--accent-border)}.port-card[aria-pressed=true]{border-color:var(--accent);background:#eef4ff}.port-card .top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.port-card .fsp{font-family:var(--mono);font-size:13px;font-weight:600}.port-card .meta{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--muted)}.stackbar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--surface-2)}.stackbar .ok{background:var(--green)}.stackbar .warning{background:#f79009}.stackbar .critical{background:var(--red)}.stackbar .offline{background:#c4ccd8}.ont-table td{padding-top:9px;padding-bottom:9px;white-space:nowrap}.ont-table th,.ont-table td{padding-left:8px;padding-right:8px}.ont-table.dense th,.ont-table.dense td{padding-left:6px;padding-right:6px}.ont-table th:first-child,.ont-table td:first-child{padding-left:16px}.ont-table th:last-child,.ont-table td:last-child{padding-right:16px}.ont-table th{font-size:11px;letter-spacing:.04em}.ont-table td.num,.ont-table th.num{text-align:right}.ont-table td.num{font-family:var(--mono);font-size:12.5px;font-variant-numeric:tabular-nums}.th-sort{padding:0;border:0;background:none;cursor:pointer;display:inline-flex;gap:4px;align-items:center;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;white-space:nowrap}.th-sort:hover{color:var(--text)}.legend-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 20px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.legend-row .spacer{flex:1}.legend-row .dot{margin-right:4px;vertical-align:middle}.mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.mini-stats>div{display:flex;flex-direction:column;gap:2px;padding:12px 20px;border-right:1px solid #eef1f5}.mini-stats>div:last-child{border-right:0}.mini-stats .label{font-size:12px;color:var(--muted);font-weight:500}.mini-stats b{font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.2}.mini-stats .sub{font-size:11.5px;color:var(--muted)}.chk{width:16px;height:16px;margin:0;flex:none;accent-color:var(--accent);cursor:pointer}.chk:disabled{cursor:default;opacity:.75}.switch{-moz-appearance:none;appearance:none;-webkit-appearance:none;position:relative;flex:none;margin:2px 0 0;width:38px;height:22px;border-radius:999px;background:var(--border-strong);cursor:pointer;transition:background .15s}.switch:before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #10182840;transition:transform .15s}.switch:checked{background:var(--accent)}.switch:checked:before{transform:translate(16px)}.switch:disabled{cursor:default;opacity:.6}.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}.role-card,.perm-row{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;cursor:pointer;background:var(--surface)}.role-card input{margin:3px 0 0;accent-color:var(--accent)}.role-card.on{border-color:var(--accent-border);background:var(--accent-soft)}.role-text{display:flex;flex-direction:column;gap:3px;min-width:0}.role-text b{display:inline-flex;align-items:center;gap:6px;font-size:14px}.role-text .help{font-size:12.5px;color:var(--muted);line-height:1.4}.perm-row{align-items:center}.acc-box{border:1px solid var(--border);border-radius:10px;overflow:hidden}.acc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border-bottom:1px solid var(--border);background:var(--surface-2)}.acc-tools .search{background:var(--surface)}.acc-tree{max-height:460px;overflow:auto}.acc-row{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 14px;border-bottom:1px solid var(--border)}.acc-row:last-child{border-bottom:0}.acc-row label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;cursor:pointer}.acc-row label svg{color:var(--text-3);flex:none}.acc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acc-row-org{background:#fafbfd;font-weight:600}.acc-row-branch{padding-left:14px}.acc-row-dev{padding-left:74px;min-height:38px;font-size:13.5px}.acc-chev{display:inline-grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-3);cursor:pointer;flex:none}.acc-chev:hover:not(:disabled){background:var(--surface-2)}.acc-chev:disabled{visibility:hidden}.acc-meta{font-size:12px;color:var(--muted);white-space:nowrap}.acc-meta.on{color:var(--accent-text);font-weight:500}.acc-total{color:var(--text);font-size:15px}.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chip{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:6px;background:var(--surface-2);color:var(--text-2);font-size:12.5px;white-space:nowrap}.chip svg{color:var(--text-3)}.role-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600}.role-admin{background:#f4ebff;color:#6941c6}.role-operator{background:var(--accent-soft);color:var(--accent-text)}.role-viewer{background:var(--surface-2);color:var(--text-3)}.pill svg{flex:none}
