/* Command Center COMMS — CALL WINDOWS (night build 2026-09-18).
   Additive stylesheet for call.js.  David #4240 / #4243.
   Honesty is visual: greyed/busy = real busy feed; "disconnected" banner
   = real link state; minimized vs closed are visibly distinct. */

.call-viewport {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
  z-index: 900;
  align-items: flex-end;
}

.call-win {
  width: 300px;
  background: #16181f;
  border: 1px solid #2c3143;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  color: #dfe4ee;
  font-size: 13px;
  overflow: hidden;
  display: none;
}

.call-win.call-open { display: block; }

.call-win.call-minimized {
  display: block;
  width: 240px;
  border-color: #4a5270;
  opacity: .92;
}

.call-win.call-greyed .call-state {
  color: #8a93a8;
}

.call-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #1d2130, #232838);
  border-bottom: 1px solid #2c3143;
}

.call-face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #232838;
}

.call-id { flex: 1; min-width: 0; }

.call-name {
  font-weight: 650;
  font-size: 14px;
  color: #f2f5fb;
}

.call-state {
  font-size: 11.5px;
  color: #6fd69a;                    /* live = green */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-actions { display: flex; gap: 4px; }

.call-actions button {
  background: none;
  border: 1px solid #33405a;
  color: #aab6cc;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
}

.call-actions button:hover { background: #262c3f; color: #fff; }

.call-body {
  padding: 8px 10px;
}

.call-transcript {
  max-height: 132px;
  overflow-y: auto;
  background: #10131a;
  border: 1px solid #262c3f;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 44px;
}

.call-tx {
  display: flex;
  gap: 6px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.35;
}

.call-tx.user .call-who { color: #7fb2ff; }
.call-tx.agent .call-who { color: #6fd69a; }

.call-who { font-weight: 600; flex: 0 0 auto; }

.call-bubble {
  color: #dfe4ee;
  word-break: break-word;
}

.call-tune {
  margin-top: 6px;
  padding: 6px 8px;
  background: #10131a;
  border: 1px solid #262c3f;
  border-radius: 8px;
}

.call-tune-label { font-size: 10.5px; color: #8a93a8; }

.call-tune-active { color: #e8b86b; font-weight: 600; }

.call-tune-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-top: 4px;
}

.call-tune-row label {
  font-size: 10px;
  color: #8a93a8;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.call-tune-row input[type="range"] {
  width: 46px;
  height: 4px;
  accent-color: #7a5fd6;
}

.call-tune-row button {
  background: #232838;
  border: 1px solid #33405a;
  color: #c9d3e5;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

.call-tune-row button:hover { background: #2c3349; }

.call-tune-row button:disabled { opacity: .45; cursor: default; }

.call-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid #2c3143;
}

.call-mic {
  background: #3d2f63;
  border: none;
  color: #f2f5fb;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.call-mic:disabled { opacity: .4; cursor: default; }

.call-mic-state { font-size: 11px; color: #8a93a8; }

.call-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #1d2130;
  border: 1px solid #3a4462;
  color: #e8b86b;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12.5px;
  z-index: 950;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.call-toast.show { opacity: 1; }