/**
 * 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:#172026;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body,#root{min-height:100vh;margin:0}button,input,select,textarea{font:inherit}.boot-screen,.login-screen{min-height:100vh;display:grid;place-items:center;background:#f6f7f9}.boot-screen{display:flex;gap:10px;color:#54606b}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-panel{width:min(420px,calc(100vw - 32px));display:grid;gap:18px;padding:28px;border:1px solid #d9e0e7;border-radius:8px;background:#fff;box-shadow:0 18px 48px #141e2814}.brand-row{display:flex;align-items:center;gap:10px}.brand-mark{width:32px;height:32px;flex:0 0 32px;border-radius:7px;background:#0f766e;color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px;letter-spacing:0}.brand-row strong,.brand-row span{display:block}.brand-row span{color:#6b7682;font-size:12px;margin-top:2px}label{display:grid;gap:8px;color:#40505d;font-size:13px;font-weight:600}input,select,textarea{width:100%;border:1px solid #d5dee6;border-radius:8px;padding:10px 12px;color:#172026;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1f}.form-error,.notice{border:1px solid #fecaca;background:#fff1f2;color:#be123c;border-radius:8px;padding:10px 12px}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);transition:grid-template-columns .2s ease}.app-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid #dfe5eb;background:#fff;padding:18px 14px;display:flex;flex-direction:column;gap:14px;overflow:hidden}.sidebar.collapsed{padding-inline:12px}.sidebar-brand{padding:4px 8px 12px;min-height:44px;justify-content:flex-start}.brand-copy{min-width:0}.brand-copy strong{line-height:1.1}.brand-copy span{line-height:1.25}.sidebar-brand .sidebar-close{margin-left:auto}.sidebar.collapsed .sidebar-brand{justify-content:center;padding-inline:0}.sidebar.collapsed .brand-copy,.sidebar.collapsed .nav-item span,.sidebar.collapsed .nav-group-title,.sidebar.collapsed .sidebar-user div,.sidebar.collapsed .sidebar-user-chevron,.sidebar.collapsed .sidebar-collapse-btn span{display:none}.nav-list{display:grid;gap:14px;align-content:start;overflow-y:auto;padding:2px}.nav-group{display:grid;gap:4px}.nav-group-title{padding:0 10px 5px;color:#94a3b8;font-size:11px;font-weight:800}.sidebar.collapsed .nav-list{gap:8px;padding-inline:0}.nav-item{width:100%;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;color:#475569;padding:10px 12px;cursor:pointer;text-align:left;min-height:40px;transition:background .15s ease,color .15s ease,border-color .15s ease}.sidebar.collapsed .nav-item{justify-content:center;padding-inline:0}.nav-item:hover,.nav-item.active{background:#edf7f5;color:#0f766e}.nav-item.active{font-weight:700}.sidebar-footer{margin-top:auto;display:grid;gap:10px;padding:12px 4px 0;border-top:1px solid #edf1f5}.sidebar.collapsed .sidebar-footer{place-items:center;padding-inline:0}.sidebar-account{position:relative;min-width:0}.sidebar-collapse-btn,.sidebar-user{width:100%;display:flex;align-items:center;gap:10px;min-width:0;border:0;border-radius:8px;padding:8px;color:#172026;background:#f8fafc;cursor:pointer}.sidebar-collapse-btn{justify-content:center;color:#475569;background:transparent}.sidebar-collapse-btn:hover,.sidebar-user:hover{color:#0f766e;background:#edf7f5}.sidebar.collapsed .sidebar-collapse-btn,.sidebar.collapsed .sidebar-user{width:40px;height:40px;justify-content:center;padding:0}.sidebar-user-chevron{margin-left:auto;color:#94a3b8;flex:0 0 auto}.sidebar-user strong,.sidebar-user span{display:block}.sidebar-user strong{font-size:13px}.sidebar-user span{margin-top:2px;color:#64748b;font-size:12px}.user-avatar{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:8px;background:#0f766e;color:#fff;font-weight:800}.sidebar-account-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:35;display:grid;gap:2px;border:1px solid #d9e0e7;border-radius:8px;padding:6px;background:#fff;box-shadow:0 18px 42px #0f172a29}.sidebar.collapsed .sidebar-account-menu{left:46px;right:auto;bottom:0;width:148px}.sidebar-account-menu button{width:100%;min-height:34px;border:0;border-radius:6px;padding:7px 9px;display:flex;align-items:center;gap:8px;color:#172026;background:transparent;cursor:pointer;text-align:left}.sidebar-account-menu button:hover{background:#f1f5f9}.sidebar-account-menu button.danger{color:#dc2626}.sidebar-account-menu button:disabled{color:#94a3b8;cursor:not-allowed;background:transparent}.main-shell{min-width:0;padding:24px;display:grid;align-content:start;gap:18px}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;gap:18px;align-items:center;min-width:0;margin:-24px -24px 0;padding:18px 24px;border-bottom:1px solid rgb(223 229 235 / .72);background:#f6f7f9e0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar-left{min-width:0;display:flex;gap:10px;align-items:center}.topbar h1{margin:0;font-size:24px;line-height:1.2}.topbar p{margin:6px 0 0;color:#64748b}.row-actions,.form-actions,.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.icon-btn{width:38px;height:38px;border:1px solid #d4dde5;border-radius:8px;background:#fff;color:#172026;display:inline-grid;place-items:center;cursor:pointer}.icon-btn:hover{border-color:#0f766e;color:#0f766e}.mobile-menu-trigger,.sidebar-close{display:none}.toolbar.end{justify-content:flex-end}.btn,.link{min-height:36px;border:1px solid #d4dde5;border-radius:8px;padding:8px 12px;background:#fff;color:#172026;display:inline-flex;gap:8px;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}.btn:hover,.link:hover{border-color:#0f766e;color:#0f766e}.btn.primary{background:#0f766e;border-color:#0f766e;color:#fff}.btn.ghost{background:transparent}.btn.compact{min-height:30px;padding:5px 9px;gap:5px}.btn.danger{border-color:#fecaca;color:#b91c1c}.btn.danger:hover{border-color:#dc2626;color:#dc2626}.link{min-height:0;border:0;padding:0;background:transparent;color:#0f766e}.link.danger{color:#dc2626}.action-menu{position:relative;display:inline-grid;gap:6px;justify-items:end}.action-menu-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:168px;display:grid;gap:2px;border:1px solid #d9e0e7;border-radius:8px;padding:6px;background:#fff;box-shadow:0 18px 42px #0f172a29}.action-menu-panel button{width:100%;min-height:34px;border:0;border-radius:6px;padding:7px 9px;background:transparent;color:#172026;cursor:pointer;text-align:left}.action-menu-panel button:hover{background:#f1f5f9}.action-menu-panel button.danger{color:#dc2626}.action-menu-panel button:disabled{cursor:not-allowed;color:#94a3b8;background:transparent}.page-stack{display:grid;gap:18px}.detail-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center}.detail-header h2{margin:0;font-size:22px}.detail-header p{margin:5px 0 0;color:#64748b}.detail-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.metric-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid.boss-metrics{grid-template-columns:repeat(6,minmax(150px,1fr))}.metric-card,.card{border:1px solid #dfe5eb;border-radius:8px;background:#fff}.metric-card{padding:16px;display:grid;gap:10px}.metric-card span{color:#64748b;font-size:13px}.metric-card strong{font-size:24px;line-height:1.1}.metric-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;color:#334155}.metric-card.success .metric-icon{background:#dcfce7;color:#15803d}.metric-card.warning .metric-icon{background:#fef3c7;color:#b45309}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-business-grid{align-items:stretch}.card{overflow:hidden}.card-header{padding:18px 18px 4px}.card-header h2{margin:0;font-size:17px}.card-header p{margin:6px 0 0;color:#64748b}.revenue-bars{min-height:260px;padding:18px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:end}.revenue-bar-item{min-width:0;display:grid;gap:8px;justify-items:center;color:#64748b;font-size:12px}.revenue-bar-item strong{max-width:100%;overflow:hidden;color:#172026;font-size:12px;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.revenue-bar-track{width:100%;height:150px;display:flex;align-items:end;border-radius:8px;background:#f1f5f9;overflow:hidden}.revenue-bar-fill{width:100%;min-height:0;border-radius:8px 8px 0 0;background:#0f766e}.plan-sales-list{padding:18px;display:grid;gap:14px}.plan-sales-item{display:grid;gap:8px}.plan-sales-item>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.plan-sales-item strong{font-size:14px}.plan-sales-item span{color:#64748b;font-size:12px}.plan-sales-meter{height:8px;border-radius:999px;background:#f1f5f9;overflow:hidden}.plan-sales-meter span{height:100%;display:block;border-radius:inherit;background:#0f766e}.empty-panel{min-height:180px;display:grid;place-items:center;color:#64748b}.table-wrap{width:100%;overflow-x:auto;overflow-y:visible}table{width:100%;border-collapse:collapse}.table-wrap table{table-layout:fixed;min-width:1280px}th,td{padding:13px 18px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap;vertical-align:middle}th:nth-child(1),td:nth-child(1){width:190px}th:nth-child(2),td:nth-child(2){width:150px}th:nth-child(3),td:nth-child(3){width:190px}th:nth-child(4),td:nth-child(4){width:92px}th:nth-child(5),td:nth-child(5){width:240px}th:nth-child(6),td:nth-child(6){width:150px}th:nth-child(7),td:nth-child(7),th:nth-child(8),td:nth-child(8){width:170px}th:nth-child(9),td:nth-child(9){width:150px}th{color:#64748b;font-size:12px;font-weight:700;background:#fbfcfd}.empty-cell{color:#64748b;text-align:center;padding:44px 18px}.cell-title{display:grid;gap:3px}.cell-title strong{font-size:13px}.cell-title span,.agent-stack span{color:#64748b;font-size:12px}.agent-stack{display:grid;gap:3px}.device-agent-cell,.agent-stack,.agent-stack span{min-width:0}.device-agent-cell{max-width:220px}.agent-stack span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge,.status-pill{display:inline-flex;gap:5px;align-items:center;border-radius:999px;border:1px solid #d7dee7;padding:3px 8px;color:#475569;background:#f8fafc;font-size:12px}.badge.success,.status-pill.success{border-color:#bbf7d0;color:#15803d;background:#f0fdf4}.badge.warning,.status-pill.warning{border-color:#fde68a;color:#a16207;background:#fefce8}.badge.danger,.status-pill.danger{border-color:#fecaca;color:#b91c1c;background:#fff1f2}.search-box{max-width:420px;flex:1;display:flex;gap:8px;align-items:center;border:1px solid #d5dee6;border-radius:8px;padding:0 10px;background:#fff}.search-box input{border:0;box-shadow:none;padding-inline:0}.search-clear{width:24px;height:24px;border:0;border-radius:999px;display:inline-grid;place-items:center;color:#64748b;background:transparent;cursor:pointer}.search-clear:hover{color:#0f766e;background:#eef6f5}.users-table table{min-width:980px}.users-table th:nth-child(1),.users-table td:nth-child(1){width:280px}.users-table th:nth-child(2),.users-table td:nth-child(2){width:110px}.users-table th:nth-child(3),.users-table td:nth-child(3){width:300px}.users-table th:nth-child(4),.users-table td:nth-child(4){width:170px}.users-table th:nth-child(5),.users-table td:nth-child(5){width:140px}.users-table .cell-title strong,.users-table .cell-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.users-table td:nth-child(3) strong{font-variant-numeric:tabular-nums}.plans-table table{min-width:1020px}.plans-table th:nth-child(1),.plans-table td:nth-child(1){width:280px}.plans-table th:nth-child(2),.plans-table td:nth-child(2){width:120px}.plans-table th:nth-child(3),.plans-table td:nth-child(3){width:190px}.plans-table th:nth-child(4),.plans-table td:nth-child(4){width:260px}.plans-table th:nth-child(5),.plans-table td:nth-child(5){width:110px}.plans-table th:nth-child(6),.plans-table td:nth-child(6){width:150px}.plans-table .cell-title strong,.plans-table .cell-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-policy-badges{display:flex;gap:6px;flex-wrap:wrap;min-width:0}.audit-table table{min-width:980px}.audit-table th:nth-child(1),.audit-table td:nth-child(1){width:260px}.audit-table th:nth-child(2),.audit-table td:nth-child(2){width:300px}.audit-table th:nth-child(3),.audit-table td:nth-child(3){width:160px}.audit-table th:nth-child(4),.audit-table td:nth-child(4){width:120px}.audit-table th:nth-child(5),.audit-table td:nth-child(5){width:190px}.audit-table .cell-title strong,.audit-table .cell-title span,.audit-table td:nth-child(3){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.segmented-filter{display:inline-flex;align-items:center;gap:2px;border:1px solid #d5dee6;border-radius:8px;padding:3px;background:#fff}.segmented-filter button{min-height:30px;border:0;border-radius:6px;padding:5px 10px;color:#475569;background:transparent;cursor:pointer}.segmented-filter button:hover,.segmented-filter button.active{color:#0f766e;background:#edf7f5}.segmented-filter button.active{font-weight:700}.orders-table table{min-width:1080px}.dashboard-orders-table table{min-width:820px}.dashboard-orders-table th:nth-child(1),.dashboard-orders-table td:nth-child(1){width:280px}.dashboard-orders-table th:nth-child(2),.dashboard-orders-table td:nth-child(2){width:170px}.dashboard-orders-table th:nth-child(3),.dashboard-orders-table td:nth-child(3){width:140px}.dashboard-orders-table th:nth-child(4),.dashboard-orders-table td:nth-child(4){width:220px}.dashboard-orders-table td:nth-child(3){font-variant-numeric:tabular-nums}.orders-table th:nth-child(1),.orders-table td:nth-child(1){width:230px}.orders-table th:nth-child(2),.orders-table td:nth-child(2){width:220px}.orders-table th:nth-child(3),.orders-table td:nth-child(3){width:150px}.orders-table th:nth-child(4),.orders-table td:nth-child(4){width:150px}.orders-table th:nth-child(5),.orders-table td:nth-child(5){width:190px}.orders-table th:nth-child(6),.orders-table td:nth-child(6){width:130px}.orders-table .cell-title strong,.orders-table .cell-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-table td:nth-child(1) strong,.orders-table td:nth-child(4) strong{font-variant-numeric:tabular-nums}.order-status-stack{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}.form-grid.compact{padding:0}.form-grid .full{grid-column:1 / -1}.form-actions.align-end{align-self:end}.form-hint{margin:0;color:#64748b;font-size:12px;line-height:1.5}.check-row{display:flex;align-items:center;gap:8px}.check-row input{width:auto}.empty-panel{min-height:180px;display:grid;place-items:center;align-content:center;gap:10px;padding:28px;color:#64748b;text-align:center}.empty-panel strong{color:#172026}.modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:grid;place-items:center;padding:18px}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#0f172a5c}.modal-panel{position:relative;width:min(480px,100%);max-height:calc(100vh - 36px);display:flex;flex-direction:column;border:1px solid #d9e0e7;border-radius:8px;background:#fff;box-shadow:0 24px 70px #0f172a47}.modal-panel form{min-height:0;display:flex;flex-direction:column}.plan-modal-panel{width:min(920px,100%)}.modal-header,.modal-body,.modal-actions{padding:18px}.modal-header{border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.modal-header h2{margin:0;font-size:18px}.modal-header p{margin:6px 0 0;color:#64748b}.modal-body{display:grid;gap:14px;overflow-y:auto}.modal-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #edf1f5;flex:0 0 auto}.plan-editor-body{background:#f8fafc}.plan-editor-section{display:grid;gap:14px;border:1px solid #e2e8f0;border-radius:8px;padding:16px;background:#fff}.plan-editor-section h3{margin:0;font-size:15px}.section-heading-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.inline-muted{display:inline-flex;gap:6px;align-items:center;color:#64748b;font-size:12px}.form-warning{margin:0;border:1px solid #fde68a;border-radius:8px;padding:9px 10px;color:#92400e;background:#fffbeb;font-size:12px;line-height:1.5}.plan-enabled-toggle{align-self:end;min-height:40px}.model-picker{display:grid;gap:10px}.model-picker-title{color:#40505d;font-size:13px;font-weight:700}.model-option-grid{display:flex;flex-wrap:wrap;gap:8px}.model-option{min-height:32px;display:inline-flex;align-items:center;gap:7px;border:1px solid #d5dee6;border-radius:8px;padding:6px 9px;background:#f8fafc;color:#172026;font-size:13px;font-weight:600}.model-option input{width:auto}.model-custom-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.selected-user-preview{border:1px solid #d9e0e7;border-radius:8px;padding:12px;background:#f8fafc}.info-list{display:grid;margin:0;padding:10px 18px 18px}.info-list div{display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5}.info-list div:last-child{border-bottom:0}.info-list dt{color:#64748b;font-size:13px}.info-list dd{min-width:0;margin:0;color:#172026;overflow-wrap:anywhere}.ops-panel{display:grid;gap:16px;padding:18px}.ops-actions{display:flex;gap:8px;flex-wrap:wrap}.diagnosis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.diagnosis-card{min-height:84px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid #d4dde5;border-radius:8px;padding:13px;background:#fff}.diagnosis-card.success{border-color:#bbf7d0;background:#f7fef9}.diagnosis-card.warning{border-color:#fde68a;background:#fffdf7}.diagnosis-card strong{display:block;font-size:13px}.diagnosis-card p{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.45}.ctl-list{display:grid;border:1px solid #edf1f5;border-radius:8px;overflow:hidden}.ctl-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;background:#fff;border-bottom:1px solid #edf1f5}.ctl-row:last-child{border-bottom:0}.xterm-console{display:grid;gap:12px;padding:18px}.xterm-console.fullscreen{position:fixed;top:12px;right:12px;bottom:12px;left:12px;z-index:50;border:1px solid #1f2937;border-radius:8px;background:#fff;box-shadow:0 24px 80px #0f172a59}.terminal-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.terminal-toolbar strong,.terminal-toolbar span{display:block}.terminal-toolbar span,.terminal-meta{color:#64748b;font-size:12px}.terminal-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.xterm-shell{width:100%;min-height:360px;height:min(56vh,560px);overflow:hidden;border:1px solid #111827;border-radius:8px;padding:8px;background:#0b1020}.xterm-console.fullscreen .xterm-shell{height:calc(100vh - 168px)}.xterm{height:100%}@media(max-width:1180px){.metric-grid,.metric-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col,.detail-grid{grid-template-columns:1fr}}@media(max-width:820px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.sidebar.mobile{position:fixed;inset:12px auto 12px 12px;z-index:61;width:min(320px,calc(100vw - 24px));height:auto;display:flex;border:1px solid #dfe5eb;border-radius:8px;box-shadow:0 24px 70px #0f172a47}.mobile-nav-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60}.mobile-nav-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#0f172a5c}.nav-list{grid-template-columns:1fr}.main-shell{padding:18px}.topbar{margin:-18px -18px 0;padding:14px 18px}.detail-header,.terminal-toolbar{align-items:flex-start;flex-direction:column}.topbar-left{align-items:flex-start}.mobile-menu-trigger,.sidebar-close{display:inline-grid}.detail-header{display:flex}.metric-grid,.metric-grid.compact,.form-grid,.diagnosis-grid,.info-list div{grid-template-columns:1fr}}
