/* Estilos comunes del panel de operador y la página del invitado */
[hidden] { display: none !important; }
@font-face {
  font-family: Caveat;
  src: url("/fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #f6f4f9;
  --surface: #ffffff;
  --surface-2: #f0edf5;
  --line: #e2dcea;
  --text: #1f1a28;
  --muted: #6f6680;
  --accent: #6c3ce0;
  --accent-ink: #ffffff;
  --accent-soft: #efe8fd;
  --ok: #16865a;
  --ok-soft: #e3f5ec;
  --warn: #a76200;
  --warn-soft: #fff3df;
  --danger: #c6283d;
  --danger-soft: #fde7ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 20, 50, .06), 0 4px 16px rgba(30, 20, 50, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121b;
    --surface: #1e1a26;
    --surface-2: #26212f;
    --line: #353042;
    --text: #f1edf7;
    --muted: #a49cb3;
    --accent: #9b78ff;
    --accent-ink: #160c2c;
    --accent-soft: #2c2340;
    --ok: #4fd39a;
    --ok-soft: #173327;
    --warn: #ffb547;
    --warn-soft: #3a2b12;
    --danger: #ff7085;
    --danger-soft: #3d1a22;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
button, .btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.danger { color: var(--danger); }
.small { padding: 5px 10px; font-size: 13px; }
input, select, textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); font-size: 14px; }
label.check small { display: block; color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.error { color: var(--danger); font-size: 14px; margin: 0; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px;
  font-weight: 600; z-index: 100; box-shadow: var(--shadow);
}
