:root { color-scheme: dark; font-family: Inter, "Segoe UI", sans-serif; background:#071019; color:#e9f1f7; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 20% 0%,#17334a 0,#071019 38%); }
.auth-overlay { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:20px; background:rgba(3,9,14,.92); backdrop-filter:blur(12px); }
.auth-overlay.hidden { display:none; }
.auth-card { width:min(440px,100%); padding:26px; border:1px solid #294152; border-radius:16px; background:#0d1821; box-shadow:0 28px 80px rgba(0,0,0,.45); }
.auth-card label { display:block; margin:18px 0 7px; color:#a9bac7; }
.auth-card input { width:100%; padding:12px; margin-bottom:12px; border:1px solid #355469; border-radius:10px; background:#071019; color:#e9f1f7; }
header { display:flex; justify-content:space-between; align-items:center; padding:28px 34px 18px; border-bottom:1px solid #294152; }
h1 { margin:2px 0 0; font-size:28px; letter-spacing:.02em; }
.eyebrow { margin:0; color:#6fd3ff; font-size:12px; letter-spacing:.14em; text-transform:uppercase; }
.mode { padding:9px 14px; border-radius:999px; background:#293749; color:#b9c8d4; font-weight:700; }
.mode.shadow { color:#ffdf8a; background:#493d18; border:1px solid #8a7329; }
nav { display:flex; gap:8px; padding:14px 34px; position:sticky; top:0; background:rgba(7,16,25,.93); backdrop-filter:blur(12px); z-index:2; }
nav { overflow-x:auto; }
nav button { flex:0 0 auto; }
button { border:1px solid #294152; border-radius:10px; background:#101d28; color:#a9bac7; padding:9px 14px; cursor:pointer; }
button.active { color:#071019; background:#6fd3ff; border-color:#6fd3ff; font-weight:800; }
main { padding:8px 34px 40px; }
.tab { display:none; }.tab.active { display:block; }
.grid,.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.card { background:linear-gradient(160deg,#142430,#0d1821); border:1px solid #294152; border-radius:14px; padding:16px; box-shadow:0 12px 34px rgba(0,0,0,.22); }
.card h2,.card h3 { margin:0 0 10px; font-size:16px; }.metric { font-size:30px; font-weight:800; }.muted { color:#8fa3b2; }
.ok { color:#66e0ac; }.bad { color:#ff7d83; }.warn { color:#ffcf69; }
.table-wrap { overflow:auto; border:1px solid #294152; border-radius:14px; background:#0d1821; }
#nodes .table-wrap { max-height:calc(100vh - 285px); }
#nodes th { position:sticky; top:0; z-index:3; background:#0d1821; }
#nodes th:first-child,#nodes td:first-child { position:sticky; left:0; z-index:2; background:#0d1821; box-shadow:8px 0 14px rgba(0,0,0,.18); }
#nodes th:first-child { z-index:4; }
table { width:100%; border-collapse:collapse; } th,td { text-align:left; padding:12px 14px; border-bottom:1px solid #203541; white-space:nowrap; } th { color:#8fa3b2; font-size:12px; }
.toolbar { margin:4px 0 12px; color:#a9bac7; }
.filters { display:flex; gap:7px; overflow:auto; padding-top:10px; }
.filters button { flex:0 0 auto; padding:7px 10px; }
.chain { display:flex; gap:10px; align-items:stretch; overflow:auto; }.chain .card { min-width:200px; position:relative; }.chain .card:not(:last-child)::after { content:"→"; position:absolute; right:-17px; top:42%; color:#6fd3ff; z-index:1; }
.pill { display:inline-block; padding:4px 8px; border-radius:999px; background:#203541; font-size:12px; }
.attachment-panel { margin-top:16px; }
.upload-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:12px 0 18px; }
.gauge { min-width:92px; }
.gauge-track { height:7px; border-radius:999px; background:#203541; overflow:hidden; margin-top:5px; }
.gauge-fill { display:block; height:100%; background:#66e0ac; }
.gauge-fill.warn { background:#ffcf69; }.gauge-fill.bad { background:#ff7d83; }
.metric-small { font-size:12px; color:#a9bac7; }
button,input[type="file"] { font:inherit; }
.reply-grid { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:12px; }
.reply-grid label { display:flex; flex-direction:column; gap:6px; color:#a9bac7; }
.reply-wide { grid-column:1/-1; }
.reply-grid input,.reply-grid select,.reply-grid textarea { width:100%; border:1px solid #355469; border-radius:9px; background:#071019; color:#e9f1f7; padding:10px; font:inherit; }
.reply-grid textarea { resize:vertical; min-height:130px; }
.reply-grid fieldset { border:1px solid #355469; border-radius:9px; padding:10px 12px; }
.reply-grid fieldset label { display:inline-flex; flex-direction:row; align-items:center; margin:5px 14px 5px 0; }
button:disabled { cursor:not-allowed; opacity:.55; }
@media (max-width:700px){ header,nav,main{padding-left:16px;padding-right:16px}.chain{flex-direction:column}.chain .card::after{display:none} }
