:root {
  --bg: #07080c;
  --bg2: #0c0e14;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #10131b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #8b93a7;
  --brand: #2563eb;
  --brand2: #7c3aed;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(37, 99, 235, 0.20), transparent 60%),
    radial-gradient(760px 420px at 92% 4%, rgba(124, 58, 237, 0.16), transparent 62%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 22px 64px;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.brandbar .nm { font-weight: 600; letter-spacing: -0.2px; }
.brandbar .sub { color: var(--muted); font-size: 13px; margin-left: 2px; }

h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -1.4px;
  margin: 0 0 12px;
  font-weight: 650;
}

h1 .grad {
  background: linear-gradient(100deg, #7dd3fc, #a78bfa 60%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 34px;
  line-height: 1.55;
}

.field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  max-width: 420px;
}

input[type="text"] {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 15px;
  outline: none;
  transition: border-color .18s, background .18s;
}

input[type="text"]:focus {
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(37, 99, 235, 0.07);
}

.agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.card .top { display: flex; align-items: center; gap: 13px; }

.av {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 16px;
  border: 1px solid var(--line);
}

.card .nm { font-weight: 600; letter-spacing: -0.2px; }
.card .ttl { color: var(--muted); font-size: 13px; margin-top: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.online { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.dot.busy { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.dot.offline { background: #4b5563; }

.chan { display: flex; gap: 8px; flex-wrap: wrap; }
.chan span {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px;
}

.chan span.live {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.chan span.dim { opacity: .45; }

.acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.acts .btn { padding: 10px 8px; font-size: 12.5px; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  transition: filter .16s, transform .16s, opacity .16s;
}

a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.btn.ok { background: linear-gradient(135deg, #16a34a, #22c55e); }
.btn.bad { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.btn.wide { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }

.foot { margin-top: 40px; color: var(--muted); font-size: 12.5px; }
