:root {
  --bg: #020503;
  --panel: rgba(3, 14, 8, 0.88);
  --panel2: rgba(5, 24, 13, 0.92);
  --green: #31ff6a;
  --green2: #00c853;
  --muted: #7bbf8e;
  --line: rgba(49, 255, 106, 0.25);
  --danger: #ff5f6d;
  --warn: #ffd166;
  --text: #d9ffe4;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Consolas, "Courier New", monospace; }
body { min-height: 100vh; }
a { color: inherit; }
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .35; }
.matrix-faint { opacity: .08 !important; pointer-events: none; }
.login-body { overflow: hidden; }
.login-shell { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-panel { width: min(760px, 94vw); padding: 44px; border: 1px solid var(--line); background: rgba(0, 8, 3, .91); box-shadow: 0 0 45px rgba(49,255,106,.12), inset 0 0 35px rgba(49,255,106,.04); text-align: center; backdrop-filter: blur(8px); }
.login-panel h1 { margin: 8px 0 6px; font-size: clamp(54px, 10vw, 96px); letter-spacing: .16em; color: var(--green); text-shadow: 0 0 18px rgba(49,255,106,.65); }
.login-panel h2 { font-size: 18px; font-weight: 500; line-height: 1.55; color: #bafbc9; }
.login-copy { color: var(--muted); margin: 24px 0 28px; }
.eyebrow { color: var(--green2); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.entra-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--green); background: rgba(49,255,106,.08); color: var(--green); text-decoration: none; padding: 13px 18px; cursor: pointer; font-family: inherit; font-size: 13px; letter-spacing: .06em; }
.entra-button:hover, .ghost-button:hover { background: rgba(49,255,106,.18); box-shadow: 0 0 22px rgba(49,255,106,.16); }
.entra-mark { font-size: 20px; }
.tech-stack { margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(49,255,106,.16); text-align: center; }
.tech-stack-title { font-size: 9px; color: #31ff6a; letter-spacing: .18em; margin-bottom: 8px; }
.tech-stack-copy { max-width: 780px; margin: 0 auto; font-size: 10px; line-height: 1.7; color: #81aa8c; letter-spacing: .055em; }
.tech-stack-note { margin-top: 7px; font-size: 9px; line-height: 1.5; color: #567761; letter-spacing: .035em; }
.credits { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; background: rgba(0, 8, 3, .93); border-top: 1px solid var(--line); color: #78a987; font-size: 10px; }
.credits strong { color: var(--green); font-weight: 500; }
.app-shell { position: relative; z-index: 1; max-width: 1680px; margin: 0 auto; padding: 24px 24px 90px; }
.topbar { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.brand { margin: 3px 0 4px; color: var(--green); font-size: 42px; letter-spacing: .13em; text-shadow: 0 0 12px rgba(49,255,106,.45); }
.project-title { max-width: 1000px; color: #a8d9b5; font-size: 12px; line-height: 1.45; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.freshness { color: var(--muted); font-size: 10px; margin-right: 8px; }
.hero-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; }
.metric-card, .panel, .worker-card, .stat-card { border: 1px solid var(--line); background: var(--panel); box-shadow: inset 0 0 24px rgba(49,255,106,.025); }
.metric-card { padding: 18px; min-height: 126px; }
.metric-card span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.metric-card strong { display: block; color: var(--green); font-size: 32px; margin: 10px 0 3px; }
.metric-card small { color: #578766; font-size: 10px; }
.section-block { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 10px; }
h2 { margin: 3px 0 0; font-size: 19px; font-weight: 500; letter-spacing: .02em; }
.legend { color: #72907b; font-size: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 10px; }
.dot.healthy { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.degraded { background: var(--warn); }
.dot.offline { background: var(--danger); }
.worker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.worker-card { padding: 18px; }
.worker-head { display: flex; justify-content: space-between; gap: 8px; }
.worker-name { color: #d5fadd; font-size: 16px; }
.health-pill { font-size: 9px; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 7px; }
.health-pill.healthy { color: var(--green); }
.health-pill.degraded { color: var(--warn); }
.health-pill.offline { color: var(--danger); }
.progress-track { height: 8px; border: 1px solid var(--line); margin: 16px 0 8px; background: #001b0a; }
.progress-fill { height: 100%; background: var(--green2); box-shadow: 0 0 12px rgba(49,255,106,.4); }
.worker-stage { color: var(--green); font-size: 11px; min-height: 28px; overflow-wrap: anywhere; }
.worker-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-top: 14px; font-size: 10px; }
.worker-meta label { color: #5d906b; }
.worker-meta div { color: #b8e5c3; overflow-wrap: anywhere; }
.worker-error { margin-top: 12px; color: #ff8b95; font-size: 9px; max-height: 42px; overflow: hidden; }
.split-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; }
.panel { padding: 16px; min-height: 260px; }
.panel-title { color: var(--muted); font-size: 10px; letter-spacing: .1em; margin-bottom: 15px; }
.chart { height: 220px; display: flex; align-items: end; gap: 5px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 8px 0 10px; overflow: hidden; }
.chart-day { flex: 1; min-width: 7px; display: flex; gap: 1px; align-items: end; height: 100%; position: relative; }
.chart-bar { flex: 1; min-width: 2px; background: var(--green2); opacity: .82; }
.chart-bar.vetting { opacity: .5; }
.chart-bar.compiling { opacity: .28; }
.chart-day:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #001508; border: 1px solid var(--line); padding: 6px; white-space: nowrap; font-size: 9px; z-index: 5; }
.queue-bars { display: grid; gap: 16px; }
.queue-row { display: grid; gap: 6px; }
.queue-row-head { display: flex; justify-content: space-between; color: #a9d8b5; font-size: 10px; }
.queue-track { height: 16px; background: #00190a; border: 1px solid var(--line); display: flex; }
.queue-seg.waiting { background: rgba(255,209,102,.65); }
.queue-seg.active { background: rgba(49,255,106,.8); }
.queue-seg.review { background: rgba(99,178,255,.58); }
.queue-seg.failed { background: rgba(255,95,109,.7); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { padding: 16px; }
.stat-card h3 { margin: 0 0 13px; color: var(--green); font-size: 14px; }
.stat-lines { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 12px; font-size: 10px; }
.stat-lines span:nth-child(odd) { color: #70937a; }
.stat-lines span:nth-child(even) { color: #d4f5dc; text-align: right; }
.review-list { display: grid; gap: 8px; }
.review-item { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(49,255,106,.14); padding: 7px 0; font-size: 10px; }
.review-item span:first-child { color: #a7ceb1; }
.review-item strong { color: var(--warn); font-weight: 500; }
.runtime-note { color: #9fcaaa; font-size: 11px; line-height: 1.6; }
.runtime-note strong { color: var(--green); }
.table-wrap { border: 1px solid var(--line); overflow: auto; max-height: 500px; background: rgba(0,9,4,.82); }
table { border-collapse: collapse; width: 100%; font-size: 10px; }
th { position: sticky; top: 0; background: #021207; color: var(--green); text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid rgba(49,255,106,.08); color: #a9cdb2; vertical-align: top; }
tr:hover td { background: rgba(49,255,106,.035); }
.status-chip { display: inline-block; border: 1px solid rgba(49,255,106,.28); padding: 2px 5px; color: #c5f3d0; }
.error-banner { border: 1px solid rgba(255,95,109,.4); background: rgba(50,0,6,.45); color: #ff8d97; padding: 10px; font-size: 10px; margin-bottom: 12px; }
.hidden { display: none; }
.dashboard-credit { position: static; margin-top: 28px; }
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: repeat(3, 1fr); }
  .worker-grid, .stats-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { padding: 14px 12px 80px; }
  .topbar { flex-direction: column; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .credits { flex-direction: column; }
  .login-panel { padding: 28px 20px; }
}

.live-pipeline-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.live-pipeline-card { border:1px solid var(--line); background:var(--panel); padding:15px; }
.live-pipeline-card h3 { margin:0 0 10px; color:var(--green); font-size:13px; }
.live-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-col-title { color:#5d906b; font-size:9px; letter-spacing:.08em; margin-bottom:6px; }
.live-item { padding:6px 0; border-bottom:1px dashed rgba(49,255,106,.12); font-size:9px; color:#b7dbc0; overflow-wrap:anywhere; }
.live-item strong { display:block; color:#d9ffe4; font-weight:500; margin-bottom:2px; }
@media (max-width:1200px){ .live-pipeline-grid{grid-template-columns:1fr;} }

.auth-notice { font-size: 10px; letter-spacing: .08em; opacity: .72; max-width: 300px; text-align: right; }
.hidden-on-empty:empty { display:none; }

/* V1.0.6: stronger Matrix backdrop while retaining dashboard legibility. */
.matrix-faint { opacity: .20 !important; }
.login-panel { background: rgba(0, 8, 3, .84); }
.login-hint { margin: 10px auto 0; max-width: 650px; color: #7bbf8e; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
