/* AgentXIA Connect — estilos compartidos (sin CDN, dark-first). */
:root {
  --bg: #0b0f17; --panel: #141a24; --panel2: #1b2330; --border: #232c3b;
  --text: #e6edf6; --muted: #8a97a8; --brand: #4f8cff; --brand2: #6ad0ff;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --busy: #c084fc;
  --radius: 12px; --shadow: 0 6px 24px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 80% -10%, #16233b 0%, var(--bg) 60%);
  color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--brand2); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 0 12px var(--brand); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1 1 280px; }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 0 0 12px; color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; background: var(--panel2);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; }
button { cursor: pointer; border: 0; border-radius: 8px; padding: 11px 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), #3b6fe0); color: #fff; font-size: 14px; }
button.ghost { background: var(--panel2); border: 1px solid var(--border); color: var(--text); }
button.danger { background: linear-gradient(135deg, var(--bad), #d64545); }
button:disabled { opacity: .5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--panel2); border: 1px solid var(--border); }
.pill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.led.available { background: var(--ok); } .led.busy { background: var(--busy); }
.led.break, .led.lunch { background: var(--warn); } .led.offline { background: var(--muted); }
.grid { display: grid; gap: 12px; }
.kpi { text-align: center; padding: 16px; }
.kpi .n { font-size: 30px; font-weight: 800; } .kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 260px; }
.dialpad button { background: var(--panel2); border: 1px solid var(--border); color: var(--text); font-size: 18px; padding: 16px; }
.muted { color: var(--muted); } .mono { font-family: ui-monospace, monospace; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel2); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
