:root {
  --ink: #17201d;
  --muted: #6e7974;
  --line: #d9dfda;
  --paper: #f5f6f1;
  --surface: #fff;
  --accent: #e1ff69;
  --good: #287552;
  --warn: #a3432b;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.5 var(--mono); }
.console { max-width: 1080px; margin: 0 auto; padding: 34px 28px 44px; }
.masthead, .state-line, .intro, .block-head, .service-list li { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(27px, 5vw, 44px); font-weight: 500; letter-spacing: -.08em; line-height: 1; }
h2 { margin-bottom: 0; font-size: 18px; font-weight: 500; letter-spacing: -.06em; }
.state-line { gap: 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.state-line strong { color: var(--ink); font-weight: 600; }
.status-dot, .service-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--good); }
.status-dot { box-shadow: 0 0 0 4px rgba(40, 117, 82, .12); }
.status-dot.is-warning { background: #cf8a2f; box-shadow: 0 0 0 4px rgba(207, 138, 47, .14); }
.status-dot.is-error, .service-dot.is-down { background: #c7543b; box-shadow: none; }
.intro { justify-content: space-between; gap: 30px; padding: 38px 0 31px; }
.headline { margin-bottom: 9px; font-size: clamp(22px, 4vw, 34px); letter-spacing: -.08em; line-height: 1; }
.subline { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 12px; }
button { padding: 11px 15px; color: var(--ink); background: var(--accent); border: 1px solid var(--ink); border-radius: 3px; font: 700 11px var(--mono); cursor: pointer; }
button:hover { background: #d2ef55; }
button:focus-visible { outline: 3px solid #77a7ff; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .55; }
#warnings { min-height: 0; }
.warning { margin: 0 0 14px; padding: 11px 13px; color: var(--warn); background: #fff4ee; border-left: 3px solid var(--warn); font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 28px; background: var(--line); border: 1px solid var(--line); }
.metric { min-width: 0; padding: 17px 16px 15px; background: var(--surface); }
.metric-focus { border-top: 3px solid var(--good); padding-top: 14px; }
.metric-label, .metric small, .block-note, th, .service-state, footer { color: var(--muted); font-size: 10px; }
.metric-label, th, .block-note { letter-spacing: .04em; text-transform: uppercase; }
.metric strong { display: block; margin: 14px 0 7px; font-size: clamp(24px, 4vw, 38px); font-weight: 500; letter-spacing: -.1em; line-height: 1; }
.metric small { display: block; line-height: 1.45; }
.report-block { min-width: 0; margin-bottom: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.block-head { justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.block-head .eyebrow { margin-bottom: 5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
td:first-child { color: var(--ink); font-weight: 600; }
td { color: #42504a; }
.empty-state { display: flex; align-items: center; gap: 12px; padding: 18px 8px 4px; color: var(--muted); font-size: 12px; }
.empty-state[hidden] { display: none; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); font-size: 13px; }
.empty-mark { display: grid !important; place-items: center; width: 28px; height: 28px; color: var(--good) !important; border: 1px solid var(--good); border-radius: 50%; font-size: 9px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split .report-block { margin-bottom: 0; }
.service-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-list li { gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #42504a; font-size: 12px; }
.service-list li:last-child { border-bottom: 0; }
.service-state { margin-left: auto; }
.logs { min-height: 96px; max-height: 180px; margin: 0; overflow: auto; color: #42504a; white-space: pre-wrap; font: 11px/1.8 var(--mono); }
footer { padding-top: 27px; text-align: center; }
footer span { padding: 0 7px; color: #a1aaa5; }
@media (max-width: 720px) {
  .console { padding: 24px 16px 32px; }
  .masthead, .intro { align-items: flex-start; flex-direction: column; }
  .state-line { white-space: normal; }
  .intro { gap: 18px; padding: 30px 0 25px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split .report-block { margin-bottom: 18px; }
}
