:root{
  --bg1:#0a2a6c;
  --bg2:#0a423f;
  --card:#0b1b3a80;
  --border:#ffffff1f;
  --text:#eaf1ff;
  --muted:#b8c6e8;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  overflow:hidden;
}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(900px 700px at 20% 20%, #2b5cff55, transparent 55%),
    radial-gradient(900px 700px at 80% 30%, #19c37d33, transparent 55%),
    linear-gradient(120deg, var(--bg1), #0a235a 35%, #061634 65%, var(--bg2));
  filter:saturate(1.2);
}

.layout{
  position:relative;
  display:grid;
  grid-template-columns: 640px 420px;
  gap:22px;
  padding:40px;
  height:100%;
  align-items:center;
  justify-content:center;
}

.card, .sideCard{
  background: linear-gradient(180deg, #ffffff10, #ffffff05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card{ padding:20px; }
.cardHeader{
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px 10px 16px;
  border-bottom: 1px solid var(--border);
}

.logo{
  width:44px; height:44px; border-radius:12px;
  background:#fff; padding:6px;
}

.titleBlock h1{ margin:0; font-size:20px; }
.titleBlock p{ margin:4px 0 0; color:var(--muted); font-size:13px; }

.pill{
  margin-left:auto;
  padding:8px 12px;
  font-size:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#0b1330aa;
}
.pill.online{color:#7CFFB2}
.pill.ready{color:#7CFFB2}
.pill.offline{color:#ffd1d1}
.pill.incall{color:#ffe29a}
.pill.error{color:#ffb3b3}

.panel{
  margin:16px 0 10px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#06163455;
}

.panel h2{margin:0 0 4px; font-size:14px}
.muted{color:var(--muted)}
.small{font-size:12px}

.fieldLabel{display:block; margin:14px 4px 6px; font-size:12px; color:var(--muted)}
.field{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#030a1a66;
  color:var(--text);
  outline:none;
}
.field:focus{border-color:#7aa7ff66; box-shadow:0 0 0 3px #2b5cff22;}

.hint{margin:8px 4px 0; font-size:12px; color:var(--muted)}
.hint code{color:#eaf1ff}

.row{display:flex; gap:10px; align-items:center; margin-top:14px}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#0b1330aa;
  color:var(--text);
  cursor:pointer;
  font-weight:600;
  min-width:120px;
}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn.primary{background:#2b5cff55; border-color:#2b5cff66}
.btn.success{background:#19c37d44; border-color:#19c37d66}
.btn.danger{background:#ff4d4d33; border-color:#ff4d4d55}
.btn.ghost{background:#00000012}
.btn.sm{min-width:auto; padding:8px 10px; border-radius:12px}

.timer{
  margin-left:auto;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#030a1a66;
  font-weight:800;
  letter-spacing:1px;
}

.statusBar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#06163455;
}

.statusDot{
  width:10px; height:10px;
  border-radius:999px;
  background:#ff4d4d;
}
.statusDot.ok{background:#19c37d}
.statusDot.work{background:#ffe29a}
.statusDot.bad{background:#ff4d4d}

.rightText{margin-left:auto; color:var(--muted)}

.details{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px 12px;
  background:#06163455;
}

.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

.side{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.sideCard{
  padding:16px;
}

.sideTitle{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  border-bottom:1px solid var(--border);
  padding-bottom:12px;
  margin-bottom:12px;
}

.sideTitle h3{margin:0}
.sideTitle p{margin:6px 0 0; font-size:12px}

.presenceList{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.presRow{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#030a1a66;
}
.presDot{
  width:10px; height:10px; border-radius:999px;
  background:#999;
}
.presDot.online{background:#19c37d}
.presDot.offline{background:#ff4d4d}
.presEmail{font-weight:700}
.presState{margin-left:auto; color:var(--muted); font-size:12px}

@media (max-width:1100px){
  body{overflow:auto}
  .layout{grid-template-columns:1fr; padding:18px; height:auto}
}
