:root {
  --bg: #080a0c;
  --surface: #111418;
  --surface-alt: #161b21;
  --border: #252c35;
  --text: #e6ebf0;
  --muted: #8b96a3;
  --accent: #d92b2b;
  --ok: #2ecc71;
  --warn: #f0a500;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(8, 10, 12, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  transform: skewX(-12deg);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 3px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(1.08) saturate(0.75) brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,12,0.2) 0%, rgba(8,10,12,0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--mono);
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  max-width: 680px;
  font-size: 0.98rem;
}

.container {
  max-width: 1040px;
  margin: 28px auto;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
}

.card h2 {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #1d232b;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.metric-row:last-child {
  border-bottom: none;
}

.ok { color: var(--ok); }
.warn { color: var(--warn); }

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #b92222;
}

.btn.ghost {
  background: var(--surface-alt);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--muted);
}

.console {
  background: #050709;
  border: 1px solid #1f262f;
  padding: 14px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #b7c4d1;
  overflow-x: auto;
  min-height: 110px;
  white-space: pre-wrap;
}

.log-list {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.log-list li {
  padding: 8px 0;
  border-bottom: 1px solid #1b2128;
  color: #c5ced8;
}

.log-list li:last-child {
  border-bottom: none;
}

.ts {
  color: var(--muted);
  margin-right: 10px;
}

.tag {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  padding: 1px 6px;
  margin-right: 10px;
  background: #1b222b;
  color: #9bb1c9;
  border-radius: 2px;
  font-size: 0.74rem;
}

.tag.warn {
  background: rgba(240, 165, 0, 0.14);
  color: var(--warn);
}

.footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}
