/* System Status overlay — retro dialog matching the profile/auth windows. */

.status-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.status-overlay.hidden { display: none; }

.status-dialog {
  width: 440px;
  max-width: 92vw;
  max-height: 86vh;
  background: var(--bg-panel);
  border: 2px outset var(--border-raised-light);
  display: flex;
  flex-direction: column;
}

.status-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-outer);
  padding: 4px 8px;
  color: var(--text-cyan);
  font-weight: 700;
  letter-spacing: 1px;
}
.status-close {
  background: var(--bg-toolbar);
  border: 2px outset var(--border-raised-light);
  color: var(--text-bright);
  width: 22px;
  height: 20px;
  line-height: 1;
  cursor: pointer;
}
.status-close:active { border-style: inset; }

.status-body { padding: 12px; overflow-y: auto; }

.status-section { margin-bottom: 14px; }
.status-section h4 {
  color: var(--text-cyan);
  border-bottom: 1px solid var(--border-outer);
  padding-bottom: 3px;
  margin: 0 0 6px;
  letter-spacing: 1px;
  font-size: 12px;
}
.status-dim { color: var(--text-dim); font-size: 11px; }

/* ---- services health rows ---- */
.status-health { list-style: none; margin: 0; padding: 0; }
.health-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 3px 4px;
  font-size: 12px;
}
.health-row:nth-child(odd) { background: var(--bg-hover); }
.health-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.dot-ok { background: var(--text-green); }
.dot-degraded { background: var(--text-yellow); }
.dot-down { background: var(--text-red); }
.dot-checking { background: var(--text-cyan); }
.dot-na { background: var(--text-dim); opacity: 0.5; }
.health-name { color: var(--text-primary); }
.health-state { color: var(--text-dim); }
.dot-na ~ .health-state { font-style: italic; }
/* Tint the state label to match its dot for degraded/stale + down. */
.dot-degraded ~ .health-state { color: var(--text-yellow); }
.dot-down ~ .health-state { color: var(--text-red); }
/* Dim parenthetical hint (e.g. "ticked 4s ago") trailing the state. */
.health-suffix { color: var(--text-dim); font-style: italic; }

/* ---- scene corpus ---- */
.corpus-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.corpus-card {
  background: var(--bg-input);
  border: 1px inset var(--border-inner);
  padding: 6px 4px;
  text-align: center;
}
.corpus-num { color: var(--text-green); font-weight: 700; font-size: 13px; }
.corpus-cap { color: var(--text-dim); font-size: 10px; letter-spacing: 1px; }

.corpus-table { font-size: 12px; }
.corpus-row {
  display: grid;
  grid-template-columns: 64px 1fr 70px;
  gap: 8px;
  align-items: center;
  padding: 1px 4px;
}
.corpus-row:nth-child(odd) { background: var(--bg-hover); }
.corpus-sec { color: var(--text-cyan); }
.corpus-bar {
  height: 9px;
  background: var(--bg-input);
  border: 1px inset var(--border-inner);
  overflow: hidden;
}
.corpus-bar-fill { height: 100%; background: var(--text-green); display: block; }
.corpus-cnt { color: var(--text-primary); text-align: right; }
.corpus-foot { margin-top: 8px; }

/* ---- "REAL NFO — CLICK TO VIEW" banner on releases carrying scene art ---- */
/* Louder, clickable sibling to the tiny .nfo-star: a scene-green call-to-action
   badge rendered inline in the release-name cell. Click is caught by the
   delegated files-list handler (matches [data-nfo-release]) and opens the NFO
   viewer for that release. */
.nfo-banner {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-green);
  background: rgba(68, 204, 102, 0.10);
  border: 1px solid var(--text-green);
  border-radius: 2px;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
  transition: background 0.1s ease, color 0.1s ease;
}
.nfo-banner:hover,
.nfo-banner:focus {
  color: var(--bg-panel, #16161e);
  background: var(--text-green);
  outline: none;
}
.nfo-banner:active {
  background: var(--text-yellow);
  border-color: var(--text-yellow);
}
