/* GTAClip dashboard — quiet control-room chrome, one red REC accent.
   4px spacing grid. One neutral ramp. No gradients, no glows, no emoji. */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #12151c;
  --line: #262b36;
  --text: #e8eaf0;
  --text-2: #9aa3b2;
  --text-3: #6b7280;
  --accent: #e5484d;      /* REC red — the one accent, used rarely */
  --accent-text: #ff8a8e;
  --ok: #3fb68b;
  --btn: #e8eaf0;         /* primary button: off-white, dark text */
  --btn-text: #0f1115;
  --radius-card: 12px;
  --radius-control: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--text); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-control);
}
.nav-link:hover { color: var(--text); background: #1e222b; }
.wrap { max-width: 960px; margin: 0 auto; padding: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.input-wide {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 12px;
}
.input-wide:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
select, input { font: inherit; }
select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--text);
}
.form-row {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: #2a2f3a;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover { filter: brightness(1.15); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn-danger:hover { background: rgba(229, 72, 77, 0.12); filter: none; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #232833;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot-red { background: var(--accent); }
.dot-green { background: var(--ok); }
.dot-amber { background: #d9a406; }
.list { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}
.row-main { min-width: 0; }
.row-title { font-weight: 600; word-break: break-all; }
.row-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.row-err { color: var(--accent-text); font-size: 13px; margin-top: 4px; }
.row-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card { width: 100%; max-width: 380px; }
.settings-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.settings-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  min-width: 240px;
}
.key-status { font-size: 13px; color: var(--text-2); }
.saved-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--ok);
  font-size: 14px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .wrap { padding: 16px; }
  .card { padding: 16px; }
  .row { flex-direction: column; }
  .row-actions { flex-wrap: wrap; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { width: 100%; }
  .topbar { padding: 12px 16px; }
}
