:root {
  --iv-wp-bg: #0b1220;
  --iv-wp-surface: rgba(15, 23, 42, 0.92);
  --iv-wp-surface-2: rgba(17, 24, 39, 0.96);
  --iv-wp-border: rgba(255, 255, 255, 0.10);
  --iv-wp-border-2: rgba(255, 255, 255, 0.14);
  --iv-wp-text: #e5e7eb;
  --iv-wp-muted: #a1a1aa;
  --iv-wp-accent: #0ea5e9;
  --iv-wp-success: #22c55e;
  --iv-wp-danger: #ef4444;
  --iv-wp-warning: #f59e0b;
  --iv-wp-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --iv-wp-radius: 22px;
  --iv-wp-radius-sm: 14px;
  --iv-wp-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --iv-safe-top: 0px;
  --iv-safe-right: 0px;
  --iv-safe-bottom: 0px;
  --iv-safe-left: 0px;
  /* Floating widget stack (used by chat/support + announcements). */
  --ivy-wp-launcher-size: var(--ivy-dock-fab, 58px);
  --ivy-wp-offset: calc(var(--ivy-wp-launcher-size, 58px) + var(--ivy-dock-gap, 12px));
}

@supports (padding: env(safe-area-inset-bottom)) {
  :root {
    --iv-safe-top: env(safe-area-inset-top);
    --iv-safe-right: env(safe-area-inset-right);
    --iv-safe-bottom: env(safe-area-inset-bottom);
    --iv-safe-left: env(safe-area-inset-left);
  }
}

#sipClient.iv-wp,
.iv-wp__view {
  overscroll-behavior: contain;
}

#sipClient.iv-wp,
#sipClient.iv-wp *,
#sipClient.iv-wp *::before,
#sipClient.iv-wp *::after {
  box-sizing: border-box;
}

html.iv-wp-body-locked,
body.iv-wp-body-locked {
  height: 100%;
  overflow: hidden !important;
}

body.iv-wp-body-locked {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

#phonebar.iv-wp-launcher {
  position: fixed;
  right: calc(var(--ivy-dock-right, 18px) + var(--iv-safe-right));
  bottom: calc(var(--ivy-dock-bottom, 18px) + var(--iv-safe-bottom));
  z-index: 100000;
}

.iv-wp-launcher__btn {
  width: var(--ivy-wp-launcher-size, 58px);
  height: var(--ivy-wp-launcher-size, 58px);
  border-radius: var(--ivy-dock-fab-radius, 18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(34, 197, 94, 0.75));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.iv-wp-launcher__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.iv-wp-launcher__btn:active {
  transform: translateY(0);
}

.iv-wp-launcher__btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

#sipClient.iv-wp {
  position: fixed;
  right: calc(var(--ivy-dock-right, 18px) + var(--iv-safe-right));
  bottom: calc(var(--ivy-dock-bottom, 18px) + var(--iv-safe-bottom));
  width: 372px;
  height: 612px;
  display: none;
  z-index: 100001;
  font-family: var(--iv-wp-font);
  color: var(--iv-wp-text);
  background: var(--iv-wp-surface);
  border: 1px solid var(--iv-wp-border);
  border-radius: var(--iv-wp-radius);
  box-shadow: var(--iv-wp-shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#sipClient.iv-wp.iv-wp--open {
  display: block;
  animation: ivWpPop 180ms ease;
}

@keyframes ivWpPop {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#sipClient.iv-wp.iv-wp--fullscreen {
  --iv-wp-surface: #0b1220;
  --iv-wp-surface-2: #0b1220;
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.iv-wp__chrome {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 42%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 48%),
    var(--iv-wp-surface-2);
}

.iv-wp__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: calc(14px + var(--iv-safe-top)) 14px 12px;
  border-bottom: 1px solid var(--iv-wp-border);
}

.iv-wp__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.iv-wp__logo {
  font-weight: 900;
  letter-spacing: -0.4px;
  font-size: 16px;
  line-height: 18px;
  white-space: nowrap;
}

.iv-wp__tag {
  font-size: 12px;
  line-height: 14px;
  color: var(--iv-wp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.iv-wp__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--iv-wp-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  min-width: 0;
}

.iv-wp__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.iv-wp__dot.is-online {
  background: var(--iv-wp-success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.iv-wp__dot.is-warning {
  background: var(--iv-wp-warning);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.iv-wp__presenceDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
  vertical-align: middle;
}

.iv-wp__presenceDot.is-online {
  background: var(--iv-wp-success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.iv-wp__statusText {
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-wp__headerActions {
  display: inline-flex;
  gap: 8px;
}

.iv-wp__devices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}

.iv-wp__device {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.iv-wp__device svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.92);
}

.iv-wp__device::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 18px;
  bottom: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transform: scaleX(var(--iv-wp-level, 0));
  transform-origin: left;
  opacity: 0.9;
  transition: transform 120ms linear;
}

.iv-wp__device::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.iv-wp__device.is-active::after {
  background: var(--iv-wp-success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}

.iv-wp__device.is-muted::after {
  background: var(--iv-wp-warning);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.24);
}

.iv-wp__device.is-blocked::after {
  background: var(--iv-wp-danger);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.24);
}

.iv-wp__device.is-idle {
  opacity: 0.6;
}

.iv-wp__iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}

.iv-wp__iconBtn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.iv-wp__iconBtn.is-active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.32);
}

.iv-wp__iconBtn:active {
  transform: scale(0.98);
}

.iv-wp__iconBtn svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.92);
}

.iv-wp__iconBtn--lg {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.iv-wp__iconBtn--lg svg {
  width: 20px;
  height: 20px;
}

.iv-wp__content {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.iv-wp__view {
  height: 100%;
  overflow: auto;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.iv-wp__view--hidden {
  display: none;
}

.iv-wp__display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--iv-wp-border);
  border-radius: var(--iv-wp-radius-sm);
  background: rgba(0, 0, 0, 0.18);
}

.iv-wp__dialInput {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--iv-wp-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.iv-wp__dialInput::placeholder {
  color: rgba(229, 231, 235, 0.45);
  font-weight: 600;
  letter-spacing: 0;
}

.iv-wp__callIconBtn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.7));
  color: #ffffff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.18);
}

.iv-wp__callIconBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.iv-wp__callIconBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(16, 185, 129, 0.22);
}

.iv-wp__callIconBtn:active {
  transform: translateY(0);
}

.iv-wp__callIconBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.iv-wp__subLabel {
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--iv-wp-muted);
  min-height: 16px;
}

.iv-wp__actionsRow {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.iv-wp__primaryBtn {
  flex: 1 1 auto;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(14, 165, 233, 0.65));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.iv-wp__primaryBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.22);
}

.iv-wp__primaryBtn:disabled,
.iv-wp__secondaryBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.iv-wp__primaryBtn:disabled:hover,
.iv-wp__secondaryBtn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.iv-wp__secondaryBtn.is-muted {
  opacity: 0.55;
  cursor: not-allowed;
}

.iv-wp__leadBadges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.iv-wp__leadBadge {
  font-size: 10px;
  line-height: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 231, 235, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.iv-wp__primaryBtn:active {
  transform: translateY(0);
}

.iv-wp__secondaryBtn {
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--iv-wp-text);
  font-weight: 700;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
}

.iv-wp__secondaryBtn.is-active {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.16);
}

.iv-wp__secondaryBtn--sm {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.iv-wp__keypad {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.iv-wp__key {
  border-radius: 18px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--iv-wp-text);
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
  user-select: none;
}

.iv-wp__key span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(229, 231, 235, 0.55);
  font-weight: 700;
}

.iv-wp__key:hover {
  background: rgba(255, 255, 255, 0.10);
}

.iv-wp__key:active {
  transform: scale(0.98);
}

.iv-wp__tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 10px 10px calc(12px + var(--iv-safe-bottom));
  border-top: 1px solid var(--iv-wp-border);
  background: rgba(0, 0, 0, 0.25);
}

.iv-wp__tab {
  border: 0;
  background: transparent;
  color: rgba(229, 231, 235, 0.70);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 14px;
  transition: background 160ms ease, color 160ms ease;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.iv-wp__tabIcon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.iv-wp__tab--iconOnly {
  padding: 10px 6px;
}

.iv-wp__tab.is-active {
  background: rgba(14, 165, 233, 0.18);
  color: #ffffff;
}

.iv-wp__listHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.iv-wp__listHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iv-wp__listHeader h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.iv-wp__subTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.iv-wp__subTab {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--iv-wp-border);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 231, 235, 0.78);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.iv-wp__subTab:active {
  transform: scale(0.98);
}

.iv-wp__subTab.is-active {
  background: rgba(14, 165, 233, 0.18);
  color: #ffffff;
  border-color: rgba(14, 165, 233, 0.38);
}

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

.iv-wp__listItem {
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv-wp__listItem.is-selected {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.14);
}

.iv-wp__check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: rgba(14, 165, 233, 0.95);
}

.iv-wp__leadFinderList {
  margin-top: 14px;
}

.iv-wp__leadSuggestions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iv-wp__listItem--lead {
  align-items: flex-start;
}

.iv-wp__leadBody {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iv-wp__leadTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.iv-wp__leadActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.iv-wp__leadActions .iv-wp__pillBtn {
  padding: 7px 10px;
}

.iv-wp__leadDetails {
  display: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  padding-top: 8px;
}

.iv-wp__listItem--lead.is-expanded .iv-wp__leadDetails,
.iv-wp__listItem--lead.is-purchased .iv-wp__leadDetails {
  display: block;
}

.iv-wp__leadKv {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 11px;
  line-height: 1.3;
}

.iv-wp__leadK {
  color: rgba(229, 231, 235, 0.65);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.iv-wp__leadV {
  color: rgba(229, 231, 235, 0.92);
  word-break: break-word;
}

.iv-wp__historyBadge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.iv-wp__historyBadge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.iv-wp__historyBadge.is-in {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
  color: rgba(187, 247, 208, 0.95);
}

.iv-wp__historyBadge.is-out {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.35);
  color: rgba(186, 230, 253, 0.95);
}

.iv-wp__historyBadge.is-out.is-failed,
.iv-wp__historyBadge.is-in.is-missed {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(254, 202, 202, 0.95);
}

.iv-wp__coach {
  position: absolute;
  left: 14px;
  top: 14px;
  width: min(320px, calc(100% - 28px));
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--iv-wp-border-2);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 12px;
  display: none;
  z-index: 100200;
}

.iv-wp__coach.is-open {
  display: block;
  animation: ivWpPop 180ms ease;
}

.iv-wp__coachTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.iv-wp__coachTitle {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.iv-wp__coachStep {
  font-size: 11px;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.7);
  flex: 0 0 auto;
}

.iv-wp__coachBody {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(229, 231, 235, 0.78);
  line-height: 1.45;
}

.iv-wp__coachActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.iv-wp__coachActions .iv-wp__secondaryBtn,
.iv-wp__coachActions .iv-wp__primaryBtn {
  padding: 9px 12px;
  border-radius: 14px;
}

.iv-wp__coach-highlight {
  position: relative;
  z-index: 100199;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.65), 0 0 0 6px rgba(14, 165, 233, 0.18);
  border-radius: inherit;
}

.iv-wp__listMeta {
  flex: 1 1 auto;
  min-width: 0;
}

.iv-wp__listMeta.is-clickable {
  cursor: pointer;
}

.iv-wp__listMeta.is-clickable:hover .iv-wp__listTitle {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
}

.iv-wp__listTitle {
  font-weight: 900;
  font-size: 13px;
  margin: 0;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-wp__listSub {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(229, 231, 235, 0.65);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-wp__pillBtn {
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iv-wp__pillBtn.is-disabled,
.iv-wp__pillBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iv-wp__pillBtn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.iv-wp__pillBtn.iv-wp__pillBtn--danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
}

.iv-wp__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--iv-wp-border);
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--iv-wp-text);
  outline: none;
  font-weight: 700;
}

.iv-wp__textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--iv-wp-border);
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--iv-wp-text);
  outline: none;
  font-weight: 700;
}

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

.iv-wp__settingsCard {
  border: 1px solid var(--iv-wp-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 14px;
}

.iv-wp__settingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.iv-wp__settingsTitle {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.iv-wp__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iv-wp__fieldLabel {
  font-size: 11px;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.78);
}

.iv-wp__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(229, 231, 235, 0.62);
}

.iv-wp__dangerText {
  color: rgba(239, 68, 68, 0.95);
  font-weight: 900;
}

.iv-wp__smsPolicyRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.iv-wp__smsPolicyActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.iv-wp__testRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iv-wp__testMeta {
  flex: 1 1 auto;
  min-width: 0;
}

.iv-wp__testTitle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.iv-wp__meter {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.iv-wp__meterFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.85), rgba(14, 165, 233, 0.85));
  border-radius: inherit;
  transition: width 80ms linear;
}

.iv-wp__testConfirm {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.iv-wp__testConfirmText {
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.75);
}

.iv-wp__range {
  width: 100%;
  accent-color: var(--iv-wp-accent);
}

.iv-wp__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.iv-wp__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iv-wp__toggleUi {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--iv-wp-border);
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  flex: 0 0 auto;
  transition: background 160ms ease, border-color 160ms ease;
}

.iv-wp__toggleUi::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.iv-wp__toggle input:checked + .iv-wp__toggleUi {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.45);
}

.iv-wp__toggle input:checked + .iv-wp__toggleUi::after {
  transform: translate(20px, -50%);
}

.iv-wp__toggleText {
  font-size: 12px;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.9);
  line-height: 1.2;
}

.iv-wp__overlay {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.62);
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--iv-safe-top)) calc(16px + var(--iv-safe-right)) calc(16px + var(--iv-safe-bottom)) calc(16px + var(--iv-safe-left));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.iv-wp__overlay.is-open {
  display: flex;
}

.iv-wp__overlayCard {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--iv-wp-border-2);
  border-radius: 22px;
  box-shadow: var(--iv-wp-shadow);
  padding: 16px;
  max-height: 100%;
  overflow: auto;
}

.iv-wp__callState {
  font-size: 12px;
  color: rgba(229, 231, 235, 0.75);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.iv-wp__callNumber {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.iv-wp__callTimer {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.72);
}

.iv-wp__callControls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.iv-wp__controlBtn {
  border: 1px solid var(--iv-wp-border);
  border-radius: 16px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.iv-wp__controlBtn.is-active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.32);
}

.iv-wp__controlBtn.is-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
}

.iv-wp__hangupRow {
  margin-top: 14px;
}

.iv-wp__hangupBtn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.iv-wp__toast {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 64px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid var(--iv-wp-border);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  display: none;
}

.iv-wp__toast.is-open {
  display: block;
  animation: ivWpToast 160ms ease;
}

@keyframes ivWpToast {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.iv-wp__media {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  .iv-wp__header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .iv-wp__brand {
    flex: 1 1 auto;
  }

  .iv-wp__status {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .iv-wp__headerActions {
    order: 2;
    margin-left: auto;
  }

  #sipClient.iv-wp {
    --iv-wp-surface: #0b1220;
    --iv-wp-surface-2: #0b1220;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #wpFullscreenBtn {
    display: none;
  }

  .iv-wp__devices {
    gap: 6px;
  }

  .iv-wp__device {
    width: 32px;
    height: 32px;
  }

  /* Call screen: use full-height sheet so nothing is clipped on small viewports. */
  #wpCallOverlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  #wpCallOverlay .iv-wp__overlayCard {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: calc(16px + var(--iv-safe-top)) calc(16px + var(--iv-safe-right)) calc(16px + var(--iv-safe-bottom)) calc(16px + var(--iv-safe-left));
  }

}

@media (max-height: 700px) {
  #wpCallOverlay .iv-wp__overlayCard {
    padding: calc(12px + var(--iv-safe-top)) calc(12px + var(--iv-safe-right)) calc(12px + var(--iv-safe-bottom)) calc(12px + var(--iv-safe-left));
  }

  .iv-wp__callNumber {
    font-size: 18px;
  }

  .iv-wp__callControls {
    gap: 8px;
    margin-top: 12px;
  }

  .iv-wp__controlBtn {
    padding: 9px 8px;
  }
}
