:root { --bg: #111418; --bg2: #171b21; --bg3: #1e242c; --border: #2a313b; --fg: #d0d7de; --muted: #7d8590; --accent: #e3a33b; --accent2: #58a6ff; --ok: #3fb950; --bad: #ff7b72; --s1: #3987e5; --s2: #c98500; --track: rgba(57, 135, 229, .18); --header-h: 44px; --footer-h: 28px; --rail-w: 220px; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { background: var(--bg); color: var(--fg); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overscroll-behavior: none; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; } .spacer { flex: 1; } .muted { color: var(--muted); } .center { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; } /* login */ .login { display: flex; flex-direction: column; gap: 10px; width: min(320px, 90vw); } .login-logo { width: 160px; height: 160px; align-self: center; border-radius: 50%; margin-bottom: 4px; } .login h1 { text-align: center; margin: 0 0 8px; font-weight: 600; color: var(--accent); letter-spacing: .5px; } .login input { padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--fg); font-size: 16px; } .login button, .primary { padding: 10px 12px; background: var(--accent); color: #111; border-radius: 6px; font-weight: 600; } .login button:disabled { opacity: .5; } .error { color: var(--bad); font-size: 13px; } /* layout */ .app { height: 100%; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); } .header { height: var(--header-h); display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--bg2); border-bottom: 1px solid var(--border); } .brand { font-weight: 700; color: var(--accent); letter-spacing: .5px; } .host { color: var(--muted); font-family: ui-monospace, monospace; font-size: 13px; } .stat { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .link { color: var(--muted); } .link:hover { color: var(--fg); } .icon-btn { padding: 2px 6px; color: var(--muted); border-radius: 4px; } .icon-btn:hover { color: var(--fg); background: var(--bg3); } .menu { display: none; font-size: 18px; } .body { flex: 1; display: flex; min-height: 0; position: relative; } .footer { height: var(--footer-h); display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--bg2); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; } /* rail */ .rail { width: var(--rail-w); background: var(--bg2); border-right: 1px solid var(--border); overflow-y: auto; padding: 6px 0; flex-shrink: 0; } .group-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-align: left; } .group-head:hover { background: var(--bg3); } .group.soon .group-head { color: var(--muted); cursor: default; } .group.soon .group-head:hover { background: none; } .chev { width: 10px; color: var(--muted); font-size: 11px; } .gicon { width: 18px; text-align: center; color: var(--accent2); font-family: ui-monospace, monospace; font-size: 12px; } .badge { margin-left: auto; font-size: 10px; text-transform: uppercase; border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; } .leaves { padding: 2px 0 6px; } .leaf { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 30px; cursor: pointer; width: 100%; text-align: left; } .leaf:hover { background: var(--bg3); } .leaf.active { background: var(--bg3); box-shadow: inset 3px 0 0 var(--accent); } .leaf.exited .lname { color: var(--muted); text-decoration: line-through; } .leaf.new { color: var(--accent2); } .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .leaf-actions { display: flex; gap: 2px; } .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; } .sdot.run { background: var(--ok); } /* main + terminal */ .main { flex: 1; min-width: 0; position: relative; background: #0d1117; } .term { position: absolute; inset: 0; padding: 6px 0 0 6px; } .term .xterm { height: 100%; } .xterm-viewport::-webkit-scrollbar { width: 8px; } .xterm-viewport::-webkit-scrollbar-thumb { background: var(--border); } /* key bar (touch devices / narrow screens) */ .keybar { display: none; gap: 4px; padding: 4px 6px; background: var(--bg2); border-top: 1px solid var(--border); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; } .keybar button { flex: 0 0 auto; padding: 8px 10px; min-width: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; font-family: ui-monospace, monospace; font-size: 13px; } .keybar button.on { background: var(--accent); color: #111; border-color: var(--accent); } @media (pointer: coarse), (max-width: 800px) { .keybar { display: flex; } } /* mobile: rail becomes a drawer */ .backdrop { display: none; } @media (max-width: 800px) { .menu { display: inline-block; } .host, .stat { display: none; } .rail { position: absolute; top: 0; bottom: 0; left: 0; z-index: 10; transform: translateX(-100%); transition: transform .15s ease; box-shadow: 4px 0 16px rgba(0,0,0,.5); } .drawer-open .rail { transform: none; } .drawer-open .backdrop { display: block; position: absolute; inset: 0; z-index: 9; background: rgba(0,0,0,.5); } .footer { font-size: 11px; } } /* dashboard */ .dash { position: absolute; inset: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); -webkit-overflow-scrolling: touch; } .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; } .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; } .tile, .card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-width: 0; } .tile .label, .card h2 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; } .tile .value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; } .tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; } .tile .spark { margin-top: 8px; } .card .empty { color: var(--muted); font-size: 13px; } .row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; min-width: 0; } .row .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row .k small { color: var(--muted); margin-left: 6px; } .num { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: 12px; white-space: nowrap; } .meter { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; } .meter .fill { height: 100%; background: var(--s1); border-radius: 3px; transition: width .3s; } .meter .fill.warn { background: var(--s2); } .meter .fill.bad { background: var(--bad); } .sub-card { padding: 8px 0; border-top: 1px solid var(--border); } .sub-card:first-of-type { border-top: 0; padding-top: 0; } .sub-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; } .sub-head .spacer { flex: 1; } .sub-head .model { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 4px; } .sw { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 5px; border-radius: 1px; } .spark { position: relative; width: 100%; height: 44px; touch-action: pan-y; } .spark svg { display: block; width: 100%; height: 100%; } .spark .tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 11px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; } .status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .rail .group-head.active { background: var(--bg3); box-shadow: inset 3px 0 0 var(--accent); } @media (max-width: 800px) { .dash { padding: 8px; gap: 8px; } .kpis, .cards { gap: 8px; } .cards { grid-template-columns: 1fr; } }