/* Shared look for the Producer, clicker, login and watch pages */
:root {
  --bg: #0e1116; --surface: #171b22; --surface-2: #12161c; --raised: #232933; --line: #2a303b;
  --text: #f2f4f7; --muted: #c3cad5; --dim: #9aa3b2;
  --accent: #e0a83a; --accent-ink: #0e1116; --red: #e5322d; --red-deep: #c9221e; --green: #2fbf71; --amber: #f0a830;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.4; }
a { color: var(--accent); }
a:hover { color: #f0c46a; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font-weight: 700; text-decoration: none; }
.btn:hover { border-color: #3a4250; color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { background: transparent; border-color: #5a2a29; color: #ff8a85; }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; }
.field textarea { min-height: 80px; resize: vertical; }
.field .help { color: var(--dim); font-size: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 15px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--dim); font-size: 13px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--raised); font-size: 14px; font-weight: 600; }
.pill.live { background: var(--red-deep); font-weight: 800; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5a6270; flex: none; display: inline-block; }
.dot.on, .dot.live { background: var(--green); }
.dot.warn, .dot.connecting, .dot.retrying, .dot.starting { background: var(--amber); }
.dot.err, .dot.error { background: var(--red); }
.pill.live .dot { background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 10px;
  background: #2a303b; color: var(--text); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
.toast.err { background: var(--red-deep); }
