:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f5f8;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

.topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #dce2ea;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; }
h2 { margin-bottom: 8px; }
h3 { margin-top: 24px; margin-bottom: 8px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #667085; }
.muted { color: #667085; }

.status-wrap { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #f79009; }
.status-dot.ok { background: #12b76a; }

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(430px, 1.2fr);
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 76px);
}

.card {
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(16, 24, 40, .05);
}

.crm-panel { padding: 22px; overflow: auto; }
.softphone-panel { min-height: 650px; overflow: hidden; display: flex; flex-direction: column; }
.panel-heading { padding: 18px 20px 6px; border-bottom: 1px solid #eef1f5; }

label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: #344054; }
input {
  width: 100%;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.phone-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #2454d6;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(.96); }
button.secondary { background: #eef2f7; color: #344054; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.info-box {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}
.info-box strong { display: block; margin-bottom: 6px; font-size: 13px; }
code { word-break: break-all; font-size: 12px; }

pre {
  min-height: 180px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 8px;
  background: #101828;
  color: #d0d5dd;
  font-size: 12px;
}

#genesysSoftphone { width: 100%; flex: 1; min-height: 600px; background: #fff; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; height: auto; }
  .softphone-panel { min-height: 720px; }
}
