:root { --bg: #edf3f9; --bg-strong: #dbe7f4; --sidebar: #11263e; --sidebar-soft: #1b3b5d; --panel: #ffffff; --panel-soft: #f6f9fc; --panel-tint: #f0f5fb; --line: #d5e0ec; --line-strong: #bfd0e2; --text: #18324f; --muted: #617994; --accent: #2277d8; --accent-soft: #e5f0ff; --success: #1ca56a; --warning: #d98a1f; --danger: #d85f5f; --terminal: #081426; } * { box-sizing: border-box; } html, body { margin: 0; min-height: 100vh; font-family: "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(circle at top right, rgba(34, 119, 216, 0.08), transparent 28%), linear-gradient(180deg, #f9fbfe 0%, var(--bg) 100%); overflow-x: hidden; } code { font-family: Consolas, "IBM Plex Mono", monospace; font-size: 0.95em; } .sidebar-backdrop { position: fixed; inset: 0; background: rgba(7, 18, 32, 0.46); z-index: 20; } .layout { display: grid; grid-template-columns: 280px 1fr; width: 100%; max-width: 100%; height: 100vh; } .sidebar { display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: linear-gradient(180deg, rgba(120, 181, 255, 0.08), transparent 22%), linear-gradient(180deg, #132a43 0%, #102238 100%); color: #dce8f7; border-right: 1px solid rgba(255, 255, 255, 0.08); height: 100vh; overflow: visible; position: sticky; top: 0; z-index: 25; } .brand { display: flex; gap: 12px; align-items: center; padding: 6px 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .brand-mark { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(180deg, #59b4ff, #2b7ddd); position: relative; flex: 0 0 auto; } .brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, 0.92); border-bottom: 0; border-radius: 999px 999px 0 0; } .brand-mark::before { width: 12px; height: 7px; top: 4px; } .brand-mark::after { width: 7px; height: 4px; top: 7px; } .brand-copy { display: grid; gap: 4px; } .brand-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8fc3ff; font-weight: 700; } .brand-title { font-size: 20px; font-weight: 700; color: #fff; } .nav-title { padding: 0 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #86a9ce; } .nav { display: grid; gap: 6px; } .nav-group { position: relative; } .nav-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #dce8f7; text-align: left; font: inherit; cursor: pointer; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; } .nav-item:hover { background: rgba(255, 255, 255, 0.04); transform: translateX(2px); } .nav-item.active { background: linear-gradient(180deg, rgba(69, 147, 242, 0.28), rgba(49, 108, 184, 0.18)); border-color: rgba(144, 194, 255, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); } .nav-group.open > .nav-item { background: linear-gradient(180deg, rgba(69, 147, 242, 0.28), rgba(49, 108, 184, 0.18)); border-color: rgba(144, 194, 255, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); } .nav-item span { display: grid; gap: 4px; } .nav-item strong { font-size: 14px; font-weight: 700; color: #fff; } .nav-item small { font-size: 12px; color: #a7c3df; } .nav-pill { padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #dce8f7; font-size: 11px; white-space: nowrap; } .nav-arrow { min-width: 34px; text-align: center; } .nav-flyout { position: absolute; top: 0; left: calc(100% + 2px); min-width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 18px 40px rgba(12, 29, 51, 0.16); opacity: 0; visibility: hidden; transform: translateX(-8px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; z-index: 40; } .nav-flyout::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px; } .nav-group:hover > .nav-flyout, .nav-group.open > .nav-flyout { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; } .nav-group.suppress-hover > .nav-flyout { opacity: 0; visibility: hidden; transform: translateX(-8px); pointer-events: none; } .flyout-item { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; } .flyout-item:hover { background: var(--panel-soft); } .flyout-item.active { background: var(--accent-soft); color: var(--accent); } .main { display: grid; grid-template-rows: auto 1fr; width: 100%; min-width: 0; height: 100vh; overflow-y: auto; } .sidebar-toggle { display: none; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--panel-soft); color: var(--text); border-radius: 10px; padding: 8px 11px; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; } .topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; } .topbar-copy { display: grid; gap: 6px; min-width: 0; } .page-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; } .page-title { font-size: 28px; font-weight: 700; color: var(--text); } .topbar-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); } .lang-button { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; } .lang-button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(19, 36, 58, 0.08); } .chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); font-size: 12px; } .content { padding: 24px; min-width: 0; width: 100%; overflow-x: hidden; } .page-outlet { min-height: calc(100vh - 98px); } .page { display: none; gap: 18px; min-width: 0; } .page.active { display: grid; } .card, .hero-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.96); min-width: 0; } .card { padding: 20px; } .card h2, .hero-card h2 { margin: 0 0 10px; color: var(--text); } .card h2 { font-size: 18px; } .hero-card h2 { font-size: 28px; line-height: 1.2; } .card p, .hero-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; } .hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 18px; } .hero-card { padding: 24px; } .hero-card-accent { background: radial-gradient(circle at top right, rgba(48, 130, 238, 0.18), transparent 30%), linear-gradient(180deg, #fff 0%, #f8fbff 100%); } .hero-label { display: inline-block; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; } .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; } .hero-stat { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.84); } .hero-stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--text); } .hero-stat-label { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); } .status-list { display: grid; gap: 12px; } .status-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); } .status-row:last-child { border-bottom: 0; } .status-row span { color: var(--muted); } .status-row strong { color: var(--text); } .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; min-width: 0; } .split-wide { grid-template-columns: 1fr 1fr; } .channel-groups, .settings-grid { display: grid; gap: 14px; } .channel-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; } .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; } .group-card, .setting-box { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); } .group-title, .setting-box h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); font-weight: 700; } .group-meta, .setting-box p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; } .diagram-card { position: relative; display: grid; gap: 18px; align-items: center; justify-items: center; min-height: 320px; margin-top: 16px; padding: 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(236, 244, 252, 0.8), rgba(245, 249, 253, 0.96)), var(--panel-tint); border: 1px dashed var(--line-strong); } .diagram-node, .diagram-device { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; } .diagram-node-center { min-width: 220px; text-align: center; border-color: #f3b469; box-shadow: 0 0 0 10px rgba(243, 180, 105, 0.14); } .diagram-stack { display: grid; gap: 12px; width: 100%; max-width: 220px; } .diagram-line { background: linear-gradient(180deg, #84b8ff, #f1af62); } .diagram-line-horizontal { width: 160px; height: 2px; } .diagram-line-vertical { width: 2px; height: 28px; } .port-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; } .port-tile { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; min-width: 0; } .port-up { background: linear-gradient(180deg, #fff 0%, #f6fbf8 100%); } .port-warn { background: linear-gradient(180deg, #fff 0%, #fff9f1 100%); border-color: #edd2a7; } .port-off { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); opacity: 0.82; } .port-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; } .port-name { font-size: 15px; font-weight: 700; color: var(--text); } .port-state { font-size: 12px; color: var(--muted); } .info-list { display: grid; gap: 12px; margin-top: 16px; } .info-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; } .info-row:last-child { border-bottom: 0; padding-bottom: 0; } .info-key { color: var(--muted); } .info-value { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; min-width: 0; } .device-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; } .device-table th, .device-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; } .device-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; } .terminal-shell { min-height: 620px; border: 1px solid #9db6d2; border-radius: 18px; overflow: hidden; background: var(--terminal); box-shadow: 0 12px 28px rgba(17, 35, 60, 0.08); min-width: 0; } .terminal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid rgba(197, 214, 235, 0.14); background: linear-gradient(180deg, #10213a 0%, #0c1a2e 100%); } .terminal-title { color: #e1eeff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; } .terminal-note { color: #96b6d8; font-size: 12px; } #terminal { height: calc(100% - 53px); padding: 16px 14px 10px; } #terminal .xterm-viewport { scrollbar-width: none; -ms-overflow-style: none; } #terminal .xterm-viewport::-webkit-scrollbar { width: 0; height: 0; } .footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-top: 10px; } .status-live { color: var(--warning); } .status-ok { color: var(--success); } .status-bad { color: var(--danger); } @media (max-width: 1260px) { .hero-grid, .split, .split-wide { grid-template-columns: 1fr; } .port-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 920px) { .layout { display: block; height: auto; } .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 82vw); transform: translateX(-100%); transition: transform 180ms ease; z-index: 30; height: 100vh; overflow-y: auto; overflow-x: hidden; } body.sidebar-open .sidebar { transform: translateX(0); } body.sidebar-open { overflow: hidden; } .sidebar-toggle { display: inline-flex; } .main { height: auto; overflow-y: visible; } .topbar { padding: 16px 18px; } .topbar-meta { width: 100%; justify-content: flex-start; } .content { padding: 18px; } .hero-card, .card { padding: 18px; } .nav-flyout { position: static; min-width: 0; margin-top: 6px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; display: none; } .nav-group.open > .nav-flyout { display: block; } .flyout-item { color: #dce8f7; } .flyout-item:hover { background: rgba(255, 255, 255, 0.08); } .flyout-item.active { background: rgba(143, 195, 255, 0.18); color: #ffffff; } .hero-stats, .channel-groups, .settings-grid, .port-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-title { font-size: 24px; } .terminal-shell { min-height: 58vh; } } @media (max-width: 640px) { .topbar { gap: 12px; } .page-title { font-size: 21px; } .hero-card h2 { font-size: 24px; } .hero-stats, .channel-groups, .settings-grid, .port-grid { grid-template-columns: 1fr; } .card, .hero-card, .group-card, .setting-box, .port-tile { padding: 14px; } .device-table { display: block; overflow-x: auto; white-space: nowrap; } .terminal-shell { min-height: 52vh; } }