/* GaMa Social: basic screens for phase 1. The full design comes in phase 2. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5b6372;
  --line: #dfe3ea;
  --brand: #1d4fe0;
  --brand-ink: #ffffff;
  --accent: #ff6b1a;
  --ok: #157a3c;
  --warn: #9a5b00;
  --bad: #b42318;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171b23;
    --text: #e8ebf1;
    --muted: #a3abb9;
    --line: #2a303c;
    --brand: #6c8dff;
    --brand-ink: #0b0e14;
    --ok: #5fd08a;
    --warn: #f0b45a;
    --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--brand); }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand { font-weight: 700; font-size: 1.15rem; }
.brand span { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
button, .btn {
  display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s ease;
}
button.secondary, .btn.secondary { background: transparent; color: var(--brand); }
button:hover, .btn:hover { opacity: 0.88; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.pill { font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.s-posted, .s-connected { color: var(--ok); }
.s-failed, .s-needs_reconnect { color: var(--bad); }
.s-pending, .s-queued, .s-publishing, .s-skipped, .s-cancelled { color: var(--warn); }
.notice { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); margin-bottom: 16px; }
.notice.bad { border-color: var(--bad); color: var(--bad); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
