:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2129;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #00b8b0;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --blue: #58a6ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  overflow: hidden;
}
h1, h2, h3 {
  font-weight: 600;
}
code, pre {
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.tab-bar {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  flex-shrink: 0;
}
.tab {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  border-bottom: 2px solid transparent;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.panel {
  flex: 1 1 auto;
  display: none;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.panel.active {
  display: flex;
  flex-direction: column;
}
.panel > iframe {
  border: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: block;
}
.header {
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.header strong { color: var(--accent); }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 11px;
  border: 1px solid var(--border);
}
.pill.ok { color: var(--green); border-color: #1f4024; }
.pill.err { color: var(--red); border-color: #4a1f24; }
