:root {
  color-scheme: dark;
  --bg: #121417;
  --card: #1c2128;
  --line: #2c333d;
  --text: #e7ecf2;
  --muted: #9aa6b2;
  --ok: #3dd68c;
  --warn: #e6b450;
  --bad: #f07178;
  --unknown: #8b97a6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
header, main { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 28px 0 12px;
}
h1 { margin: 0; font-size: 28px; font-weight: 600; }
.eyebrow { margin: 0 0 4px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
#freshness { margin: 0; color: var(--muted); font-size: 13px; }
.env { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; background: #171b21; overflow: hidden; }
.env-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.env-head strong { font-size: 18px; }
.summary { color: var(--muted); font-size: 13px; }
.chevron {
  color: var(--muted);
  display: inline-block;
  transition: transform 0.45s ease;
}
.env.open .chevron { transform: rotate(90deg); }
.panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.env.open .panel-wrap { grid-template-rows: 1fr; }
.panel { overflow: hidden; min-height: 0; }
.panel-inner { padding: 0 16px 16px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font: inherit;
}
.card.selected { border-color: #d7deE8; }
.role { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.title { margin: 6px 0 4px; font-size: 22px; }
.detail { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--unknown); }
.tone-ok .dot { background: var(--ok); }
.tone-warn .dot { background: var(--warn); }
.tone-bad .dot { background: var(--bad); }
.logs { margin-top: 12px; }
.console {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0c0e12;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #171b21;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 5px; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.dots i:nth-child(1) { background: #f07178; }
.dots i:nth-child(2) { background: #e6b450; }
.dots i:nth-child(3) { background: #3dd68c; }
.console-bar strong { font-size: 12px; font-weight: 600; }
.console-body {
  max-height: 340px;
  overflow: auto;
  padding: 8px 0 10px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
}
.console-line {
  padding: 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-line.bad {
  color: #ffb4b4;
  background: rgba(240, 113, 120, 0.14);
}
.console-line.warn { color: #e6b450; }
.note { color: var(--warn); font-size: 13px; margin: 8px 12px 0; }
