:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #14181d;
  --panel-strong: #1b2027;
  --line: #303842;
  --text: #f3f7fb;
  --muted: #aab4c0;
  --accent: #30d08f;
  --warn: #f2b84b;
  --bad: #f05d5e;
  --shadow: rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(48, 208, 143, 0.08), transparent 360px),
    var(--bg);
  color: var(--text);
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 2rem + 1vw, 3rem);
  line-height: 1.04;
}

h2 {
  font-size: 1rem;
}

.iconButton {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 32px var(--shadow);
}

.iconButton:disabled {
  cursor: wait;
  opacity: 0.6;
}

.statusGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.statusPanel,
.feed {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, black);
  box-shadow: 0 18px 48px var(--shadow);
}

.statusPanel {
  min-height: 230px;
  padding: 18px;
}

.statusPanel.wide {
  grid-column: 1 / -1;
}

.panelHeader,
.feedHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.state {
  min-width: 72px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

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

.stateOk {
  color: var(--accent);
}

.stateFail {
  color: var(--bad);
}

pre {
  overflow: auto;
  max-height: 360px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid #242b34;
  border-radius: 8px;
  background: var(--panel-strong);
  color: #d8e1ea;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed {
  margin-top: 14px;
  padding: 18px;
}

.feedHeader span,
.summary {
  color: var(--muted);
}

.summary {
  margin-top: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 720px);
    padding: 20px 0;
  }

  .topbar {
    min-height: 78px;
  }

  .statusGrid {
    grid-template-columns: 1fr;
  }
}

