/* Rocket – sdílené styly (admin, divák, vysílač) */
:root {
  --bg: #f4f6fa; --panel: #ffffff; --panel-2: #f0f3f8; --fg: #141a26; --muted: #5d6678; --line: #dde2ec;
  --accent: #ff5a1f; --accent-ink: #fff; --accent-soft: #fff0e9;
  --ok: #138a4b; --ok-soft: #e6f6ed; --warn: #b26a00; --warn-soft: #fff4dd; --bad: #c62828; --bad-soft: #fdecec;
  --navy: #101828; --gl-red: #ff0a3c;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --panel: #131b2c; --panel-2: #1a2438; --fg: #e8ecf4; --muted: #9aa4b8; --line: #263149;
    --accent-soft: #3a2116; --ok: #3ccf7f; --ok-soft: #12301f; --warn: #f0b443; --warn-soft: #33270f; --bad: #ff6b6b; --bad-soft: #3a1717;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --panel: #131b2c; --panel-2: #1a2438; --fg: #e8ecf4; --muted: #9aa4b8; --line: #263149;
  --accent-soft: #3a2116; --ok: #3ccf7f; --ok-soft: #12301f; --warn: #f0b443; --warn-soft: #33270f; --bad: #ff6b6b; --bad-soft: #3a1717;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

button, .btn {
  font: inherit; font-weight: 600; border-radius: 9px; border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  min-height: 38px; transition: background .15s, border-color .15s;
}
button:hover, .btn:hover { border-color: var(--muted); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.05); }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.ghost { background: transparent; }
button.sm, .btn.sm { padding: 4px 10px; min-height: 30px; font-size: .86rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

input, select, textarea {
  font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; width: 100%; min-height: 38px;
}
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill.live { background: var(--bad); color: #fff; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill.live .dot { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 16px 28px; color: var(--muted); font-size: .82rem; }
.footer img { height: 26px; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); }
