/* call-people.css — standalone Calls people/profile panel.
   Native controls, 44px minimum targets, dialogs scroll under 360px. */

#calls-people {
  font: inherit;
  color: inherit;
  display: grid;
  gap: 0.5rem;
  max-width: 100%;
}

.call-people-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.call-people-btn,
.call-people-call-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  line-height: 1.25;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.call-people-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.call-people-status {
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 1.4em;
}

.call-people-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.call-people-banner[hidden] {
  display: none;
}

.call-people-incoming-text {
  flex: 1 1 12rem;
  font-size: 1rem;
  line-height: 1.4;
}

.call-people-incoming-actions {
  display: flex;
  gap: 0.5rem;
}

.call-people-avatar {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.call-people-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.call-people-avatar-img {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.avatar-0 {
  background: #2456a6;
  border-radius: 50%;
}

.avatar-1 {
  background: #0f7a5c;
  border-radius: 0.5rem;
}

.avatar-2 {
  background: #a44a12;
  border-radius: 50% 0.5rem 50% 0.5rem;
}

.avatar-3 {
  background: #6d2fa0;
  border-radius: 0.25rem;
}

.call-people-list {
  display: grid;
  gap: 0.5rem;
}

.call-people-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.call-people-name {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.call-people-empty {
  opacity: 0.75;
}

dialog.call-people-dialog {
  max-width: min(92vw, 26rem);
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  overflow: auto;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
  padding: 1rem;
}

dialog.call-people-dialog::backdrop {
  background: rgb(0 0 0 / 0.35);
}

.call-people-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.call-people-dialog label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.call-people-dialog input[type="text"] {
  width: 100%;
  min-height: 44px;
  font-size: 1rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

.call-people-avatar-field {
  border: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.call-people-avatar-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  cursor: pointer;
}

.call-people-avatar-option input[type="radio"] {
  width: 22px;
  height: 22px;
  flex: none;
}

.call-people-avatar-dot {
  width: 28px;
  height: 28px;
  flex: none;
}

.call-people-profile-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.call-people-error {
  min-height: 1.4em;
  margin-top: 0.5rem;
}

.call-people-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 360px) {
  .call-people-row {
    flex-wrap: wrap;
  }

  .call-people-call-btn {
    flex: 1 1 100%;
  }
}

.call-people-dialog { box-sizing: border-box; background: Canvas; color: CanvasText; }
.call-people-profile-preview { position: relative; width: 44px; height: 44px; }
.call-people-avatar-option.call-people-avatar-option { display: flex; background: transparent; border-radius: .5rem; }
.call-people-avatar-dot { object-fit: cover; border-radius: .5rem; }
.call-people-row { min-width: 0; flex-wrap: wrap; }
.call-people-name { min-width: 0; }
.call-people-btn:focus-visible, .call-people-call-btn:focus-visible, .call-people-dialog input:focus-visible { outline: 3px solid #498ee8; outline-offset: 3px; }
.call-people-message-btn{min-height:44px;min-width:44px;padding:.6rem .8rem;font:inherit;border:1px solid #d8dce1;border-radius:.5rem;background:#20242a;color:white}.call-people-message-btn:focus-visible{outline:3px solid #498ee8;outline-offset:3px}.call-people-row .call-people-name{flex-basis:calc(100% - 60px)}.call-people-row .call-people-message-btn{margin-left:56px}.call-people-row .call-people-call-btn{flex:initial}
.call-people-avatar-field{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.call-people-avatar-field legend{margin-bottom:8px}.call-people-avatar-option.call-people-avatar-option{min-width:0;min-height:68px;padding:6px;flex-direction:column;justify-content:center;position:relative;border:1px solid #d8dce1;gap:4px;text-align:center;font-size:11px;overflow-wrap:anywhere}.call-people-avatar-option input[type=radio]{position:absolute;top:4px;left:4px;width:16px;height:16px;margin:0}.call-people-avatar-option:has(input:checked){background:#eaf0fd;border-color:#607bab}.call-people-avatar-option .call-people-avatar-dot{width:34px;height:34px}.call-people-row .call-people-call-btn{order:3}.call-people-row .call-people-message-btn{order:2}
