/* Shared dark shell for the G2K public + manager UI. No inline styles anywhere (CSP). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* A class-based display:flex would otherwise beat the UA [hidden] rule and leave
   hidden panels (typing indicator, composer, login card) visible. */
[hidden] { display: none !important; }
html, body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100%; }
:root {
  --line: #2b2b2b;
  --card: #121212;
  --soft: #9a9a9a;
  --accent: #0095f6;
  --ok: #31c45f;
  --warn: #e0a72c;
  --err: #f4564a;
  --radius: 12px;
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
input[type=checkbox] {
  background: none; border: 1px solid #555; border-radius: 4px;
  padding: 0; width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--accent);
}
button { cursor: pointer; }
button:hover { background: #222; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: #1ba0f8; }
button.danger { color: var(--err); border-color: #3a2320; }
input:focus, select:focus, textarea:focus { outline: 1px solid #3a3a3a; }
textarea { width: 100%; resize: vertical; }
label { display: block; font-size: 12px; color: var(--soft); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.row2 > * { flex: 1 1 180px; }
.muted { color: var(--soft); }
.err { color: var(--err); }
.okc { color: var(--ok); }
.warnc { color: var(--warn); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.card h3 { font-size: 14px; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--soft); font-weight: 500; }
pre.raw {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
