:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --danger: #dc2626;
  --ok: #16a34a;
  --bg: #f1f5f9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 460px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; margin-bottom: 8px;
}
.brand { font-weight: 800; letter-spacing: .2px; background: linear-gradient(90deg, var(--indigo), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.dot.online { background: var(--ok); }
.dot.busy { background: #f59e0b; }
.link { background: none; border: none; color: var(--indigo); cursor: pointer; font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 6px 24px rgba(15,23,42,.06); }
h1 { margin: 0 0 4px; font-size: 22px; }
h2 { font-size: 15px; color: var(--muted); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.muted { color: var(--muted); margin-top: 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 14px; }
select, input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
button { cursor: pointer; border: none; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 600; }
button.primary { background: var(--indigo); color: #fff; width: 100%; margin-top: 18px; }
button.primary:hover { background: var(--indigo-dark); }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: #eef2ff; color: var(--indigo); }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; }
.status { text-align: center; color: var(--muted); font-size: 14px; padding: 6px 0 12px; }
.callpanel { border: 2px solid var(--indigo); border-radius: 14px; padding: 18px; margin-bottom: 8px; background: #f8faff; }
.calltitle { font-weight: 700; font-size: 16px; }
.callfrom { color: var(--muted); margin-top: 2px; }
.calltimer { color: var(--indigo); font-variant-numeric: tabular-nums; margin-top: 6px; font-weight: 600; }
.callbtns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.callbtns button { flex: 1; min-width: 120px; margin-top: 0; }
.transferRow { display: flex; gap: 8px; margin-top: 12px; }
.transferRow select { margin-top: 0; }
.transferRow button { margin-top: 0; white-space: nowrap; }
.dialer .dialrow { display: flex; gap: 8px; }
.dialer .dialrow select { margin-top: 0; }
.dialer .dialrow button { margin-top: 0; white-space: nowrap; }
[hidden] { display: none !important; }
