:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8fa;
  color: #1f2329;
}

@font-face {
  font-family: "DM Sans 9pt";
  src: url("/assets/fonts/dm-sans-9pt.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

:root[data-embed="true"],
:root[data-embed="true"] body {
  background: transparent;
}

button,
input {
  font: inherit;
}

.softphone-canvas {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(#eef1f5 1px, transparent 1px),
    linear-gradient(90deg, #eef1f5 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
}

:root[data-embed="true"] .softphone-canvas {
  overflow: visible;
  background: transparent;
}

.softphone-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 56px);
  overflow: visible;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(28, 36, 48, 0.18);
}

:root[data-embed="true"] .softphone-widget {
  right: 12px;
  bottom: 12px;
  max-height: calc(100vh - 24px);
}

.softphone-widget.is-dragging {
  user-select: none;
  box-shadow: 0 24px 70px rgba(28, 36, 48, 0.24);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e8ef;
  background: #ffffff;
  cursor: grab;
}

.widget-header:active {
  cursor: grabbing;
}

.widget-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.header-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9aa3af;
}

.header-status-dot[data-state="registered"] {
  background: #1c9a60;
}

.header-status-dot[data-state="calling"],
.header-status-dot[data-state="incoming"] {
  background: #e0a318;
  animation: pulse 1s ease-in-out infinite;
}

.header-status-dot[data-state="talking"] {
  background: #2c75d2;
  animation: pulse 1.4s ease-in-out infinite;
}

.widget-subtitle {
  margin-top: 3px;
  color: #707985;
  font-size: 12px;
}

.header-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #ffffff;
  color: #596474;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.icon-button img {
  width: 18px;
  height: 18px;
  opacity: 0.82;
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

#enableNotifications img {
  filter: grayscale(1) brightness(0.35);
}

#enableNotifications:not(.is-active) img {
  opacity: 0.58;
}

.notification-icon {
  width: 18px;
  height: 18px;
  background: #4b5563;
  mask: url("/assets/icons8-alarm-100.png") center / contain no-repeat;
  -webkit-mask: url("/assets/icons8-alarm-100.png") center / contain no-repeat;
}

.icon-button:hover {
  background: #f4f6f8;
}

.icon-button.is-active {
  border-color: #1f2329;
}

.icon-button.is-active img {
  opacity: 1;
}

.icon-button.is-active .notification-icon {
  background: #1f2329;
}

#enableNotifications:not(.is-active)::after {
  content: "×";
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #d43d47;
  font-size: 13px;
  font-weight: 760;
  line-height: 11px;
}

.collapse-button img {
  opacity: 0.72;
  filter: none;
}

.settings-button img {
  opacity: 0.72;
  filter: none;
}

.settings-button.is-active {
  border-color: #2f7dd1;
  background: #eaf2ff;
}

.settings-dropdown {
  position: absolute;
  top: 66px;
  left: 10px;
  right: 10px;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
  z-index: 20;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(28, 36, 48, 0.18);
}

.settings-dropdown[hidden] {
  display: none;
}

.softphone-widget.is-minimized .settings-dropdown {
  display: none;
}

.softphone-widget[data-test-mode="false"] .test-setting {
  display: none;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  color: #1f2329;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.settings-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #eef1f5;
  color: #1f2329;
  font-size: 13px;
  font-weight: 680;
}

.settings-field select:not(.native-device-select) {
  width: 100%;
  height: 34px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1f2329;
  font: inherit;
}

.native-device-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.device-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.device-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  padding: 0 10px 0 12px;
  background: #ffffff;
  color: #1f2329;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
  text-align: left;
}

.device-select-button:hover {
  border-color: #bfc7d4;
  background: #fbfcff;
}

.device-select-button:focus-visible,
.device-select-button[aria-expanded="true"] {
  border-color: #1f2329;
  box-shadow: 0 0 0 3px rgba(31, 35, 41, 0.08);
}

.device-select-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-select-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #687281;
  border-bottom: 1.5px solid #687281;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.device-select-button[aria-expanded="true"] .device-select-chevron {
  transform: translateY(2px) rotate(225deg);
}

.device-select-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 154px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 25, 38, 0.14);
}

.device-select-options[hidden] {
  display: none;
}

.device-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  background: transparent;
  color: #1f2329;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

.device-select-option:hover {
  background: #f2f5f9;
}

.device-select-option.is-selected {
  background: #eaf2ff;
  color: #0f5fb8;
}

.device-select-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.toggle-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9dee7;
  cursor: pointer;
  transition: background 160ms ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.24);
  transition: transform 160ms ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgb(0, 113, 255);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.softphone-widget.is-minimized .collapse-button img {
  transform: rotate(180deg);
}

.widget-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.softphone-widget.is-minimized .widget-body {
  display: none;
}

.call-state {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f0f3f7;
  color: #4b5563;
  font-size: 13px;
  font-weight: 720;
}

.call-state-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9aa3af;
}

.call-state[data-state="registered"] {
  background: #e9f8f1;
  color: #187348;
}

.call-state[data-state="registered"] .call-state-dot {
  background: #1c9a60;
}

.call-state[data-state="calling"],
.call-state[data-state="incoming"] {
  background: #fff4da;
  color: #805400;
}

.call-state[data-state="calling"] .call-state-dot,
.call-state[data-state="incoming"] .call-state-dot {
  background: #e0a318;
  animation: pulse 1s ease-in-out infinite;
}

.call-state[data-state="talking"] {
  background: #eaf2ff;
  color: #1f5da8;
}

.call-state[data-state="talking"] .call-state-dot {
  background: #2c75d2;
  animation: pulse 1.4s ease-in-out infinite;
}

.contact-hint {
  min-height: 30px;
  border-radius: 6px;
  padding: 7px 9px;
  background: #f6f8fb;
  color: #596474;
  font-size: 12px;
  line-height: 1.35;
}

.call-display {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

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

.call-display[data-mode="incoming"] {
  border-color: #f0c15a;
  background: #fff8e9;
}

.call-display-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.88;
}

.call-display[data-mode="incoming"] .call-display-icon,
.call-display[data-mode="calling"] .call-display-icon {
  animation: ring 900ms ease-in-out infinite;
}

.call-display[data-mode="calling"] {
  border-color: #d9dee7;
  background: #f7f9fc;
}

.call-display[data-mode="talking"] {
  border-color: #cfe0f7;
  background: #f4f8ff;
}

.call-display-main {
  min-width: 0;
}

.call-display-status {
  color: #687281;
  font-size: 12px;
  font-weight: 720;
}

.call-display-number {
  overflow: hidden;
  color: #1f2329;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-timer {
  min-width: 44px;
  color: #1f2329;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.call-stack {
  display: grid;
  gap: 6px;
}

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

.call-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 7px 9px;
  background: #ffffff;
  color: #1f2329;
  text-align: left;
}

.call-line.is-selected {
  border-color: #1f2329;
}

.call-line[data-phase="incoming"] {
  border-color: #f0c15a;
  background: #fff8e9;
}

.call-line-main {
  min-width: 0;
}

.call-line-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-line-meta {
  margin-top: 2px;
  color: #687281;
  font-size: 11px;
  font-weight: 620;
}

.call-line-badge {
  min-width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9aa3af;
}

.call-line[data-phase="incoming"] .call-line-badge,
.call-line[data-phase="calling"] .call-line-badge,
.call-line[data-phase="answering"] .call-line-badge {
  background: #e0a318;
  animation: pulse 1s ease-in-out infinite;
}

.call-line[data-phase="talking"] .call-line-badge {
  background: #2c75d2;
}

.call-line[data-held="true"] .call-line-badge {
  background: #687281;
}

.identity-panel,
.caller-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.identity-panel.is-auth-invalid {
  border-color: #df3b47;
  background: #fff8f9;
}

.identity-panel.is-auth-invalid input {
  border-color: #df3b47;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(223, 59, 71, 0.1);
}

.identity-panel.is-auth-shaking {
  animation: auth-shake 240ms ease-in-out;
}

@keyframes auth-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.identity-panel.is-saved label {
  display: none;
}

.identity-panel.is-compact label,
.identity-panel.is-compact .button-row {
  display: none;
}

.account-header-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.82;
}

.account-header-button.is-connected {
  border-color: #1c9a60;
  background: #e9f8f1;
}

.account-header-button.is-connected img {
  opacity: 1;
}

.accordion-panel {
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}

.accordion-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  color: #687281;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

.accordion-panel summary::-webkit-details-marker {
  display: none;
}

.accordion-panel summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #687281;
  border-bottom: 1.5px solid #687281;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.accordion-panel[open] summary::after {
  transform: rotate(225deg);
}

.summary-state {
  margin-left: auto;
  color: #1f2329;
  font-weight: 760;
}

label {
  display: grid;
  gap: 5px;
  color: #687281;
  font-size: 12px;
  font-weight: 620;
}

input {
  width: 100%;
  height: 38px;
  border: 1px solid #d4dae4;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1f2329;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: #2f7dd1;
  box-shadow: 0 0 0 3px rgba(47, 125, 209, 0.14);
}

.password-input-wrap,
.dial-input-wrap,
.dial-main-slot {
  position: relative;
  display: block;
}

.dial-input-wrap.is-call-hidden {
  display: none;
  pointer-events: none;
}

.dial-top-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  align-items: stretch;
}

.password-input-wrap input {
  padding-right: 38px;
}

.dial-input {
  height: 44px;
  padding-right: 38px;
  font-family: "DM Sans 9pt", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0;
}

.dial-input::placeholder {
  font-family: "DM Sans 9pt", Inter, ui-sans-serif, system-ui, sans-serif;
}

.clear-number-button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #ffffff;
  color: #596474;
  font-size: 16px;
  font-weight: 720;
  line-height: 18px;
  transform: translateY(-50%);
}

.clear-number-button[hidden] {
  display: none;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596474;
  transform: translateY(-50%);
}

.password-toggle-button:hover:not(:disabled) {
  background: #f4f6f8;
  filter: none;
}

.button-row,
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

button {
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #2f7dd1;
  color: #ffffff;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(0.97);
}

button:disabled {
  background: #c7ced8;
  color: #ffffff;
  cursor: not-allowed;
}

.danger,
.hangup-button {
  background: #d43d47;
}

.call-button {
  background: #1c9a60;
}

.call-button,
.hangup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.secondary-actions button {
  border: 1px solid #d9dee7;
  background: #ffffff;
  color: #4b5563;
}

.control-icon-button {
  display: grid;
  place-items: center;
}

.control-icon-button.is-active {
  border-color: #1f2329;
}

.control-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.call-actions-button {
  font-size: 24px;
  line-height: 1;
}

.call-actions-plus {
  display: block;
  margin-top: -2px;
  color: #1f2329;
  font-size: 26px;
  font-weight: 520;
}

.call-actions-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 36, 48, 0.14);
}

.call-action-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d9dee7;
  background: #ffffff;
  color: #1f2329;
}

.call-action-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.softphone-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: #4b5563;
}

.icon-phone-call::before,
.icon-phone-answer::before,
.icon-phone-ring::before,
.icon-phone-decline::before,
.icon-phone-down::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 12px;
  height: 8px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: rotate(-35deg);
}

.icon-phone-down::before {
  transform: rotate(145deg);
}

.icon-phone-call::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-phone-answer::after,
.icon-phone-ring::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  opacity: 0.42;
}

.icon-phone-answer::after {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.icon-phone-decline::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%);
}

.icon-phone-down::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-mic::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.icon-mic::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 10px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px;
  border-radius: 0 0 999px 999px;
}

.control-icon-button.is-muted .icon-mic {
  color: #d43d47;
}

.control-icon-button.is-muted .icon-mic::after {
  box-shadow: 7px -8px 0 -6px #d43d47;
}

.control-icon-button.is-muted .icon-mic span,
.control-icon-button.is-muted .icon-mic::before {
  transform: none;
}

.control-icon-button.is-muted .icon-mic {
  background: linear-gradient(45deg, transparent 45%, #d43d47 45%, #d43d47 55%, transparent 55%);
}

.icon-hold::before,
.icon-hold::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}

.icon-hold::before {
  left: 3px;
}

.icon-hold::after {
  right: 3px;
}

.icon-transfer::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 13px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  transform: rotate(-28deg);
}

.icon-transfer::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.control-icon-button.is-held .softphone-icon {
  color: #1f2329;
}

.transfer-panel {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.transfer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f5;
  color: #1f2329;
  font-size: 13px;
}

.transfer-close-button {
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #ffffff;
  color: #596474;
  font-size: 16px;
  line-height: 20px;
}

.transfer-search-wrap {
  padding: 8px 8px 0;
}

.transfer-search {
  width: 100%;
  height: 34px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1f2329;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.transfer-list {
  display: grid;
  gap: 6px;
  max-height: 142px;
  overflow: auto;
  overflow-x: hidden;
  padding: 8px;
}

.transfer-target {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2329;
  text-align: left;
}

.transfer-target:hover:not(:disabled) {
  background: #f6f8fb;
}

.transfer-target:disabled {
  color: #8b95a3;
}

.transfer-target-main {
  display: grid;
  gap: 2px;
}

.transfer-target-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 720;
}

.transfer-target-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-target-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa5b1;
  flex: 0 0 auto;
}

.transfer-target-dot[data-state="online"] {
  background: #18a058;
}

.transfer-target-dot[data-state="busy"] {
  background: #e3a11a;
}

.transfer-target-dot[data-state="offline"] {
  background: #9aa5b1;
}

.transfer-target-meta {
  color: #596474;
  font-size: 11px;
  font-weight: 600;
}

.transfer-target-mode {
  color: #596474;
  font-size: 11px;
  font-weight: 720;
}

.transfer-empty {
  padding: 12px;
  color: #596474;
  font-size: 12px;
}

.transfer-status {
  margin: 8px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 9px 10px;
  background: #f6f8fb;
  color: #1f2329;
  font-size: 12px;
  font-weight: 680;
}

.transfer-consult-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px 8px;
}

.transfer-confirm-button,
.transfer-cancel-button {
  min-height: 34px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.transfer-confirm-button {
  background: #17a05e;
}

.transfer-cancel-button {
  background: #d43d47;
}

.outcome-modal {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
}

.outcome-card {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(28, 36, 48, 0.2);
}

.outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #1f2329;
  font-size: 13px;
}

.outcome-call-info {
  margin-bottom: 10px;
  color: #687281;
  font-size: 12px;
  font-weight: 640;
}

.outcome-select-wrap {
  position: relative;
}

.outcome-select-button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  height: 38px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #1f2329;
  text-align: left;
}

.outcome-select-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #687281;
  border-bottom: 1.5px solid #687281;
  transform: rotate(45deg);
}

.outcome-options {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 2;
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 36, 48, 0.16);
}

.outcome-option {
  display: block;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  background: #ffffff;
  color: #1f2329;
  text-align: left;
}

.outcome-option:hover,
.outcome-option.is-selected {
  background: #edf5ff;
  color: #1f5da8;
}

.outcome-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.icon-eye::before {
  content: "";
  position: absolute;
  inset: 4px 1px;
  border: 2px solid currentColor;
  border-radius: 999px 55%;
  transform: rotate(45deg);
}

.icon-eye::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.password-toggle-button.is-visible .icon-eye {
  color: #1f2329;
}

.keypad-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #ffffff;
  color: #4b5563;
}

.keypad-toggle.is-active {
  border-color: #1f2329;
  background: #f4f6f8;
}

.keypad-toggle .softphone-icon {
  color: #4b5563;
}

.keypad-toggle.is-active .softphone-icon {
  color: #1f2329;
}

.icon-keypad {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 3px;
  width: 18px;
  height: 18px;
}

.icon-keypad::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    7px 0 0 currentColor,
    14px 0 0 currentColor,
    0 7px 0 currentColor,
    7px 7px 0 currentColor,
    14px 7px 0 currentColor,
    0 14px 0 currentColor,
    7px 14px 0 currentColor,
    14px 14px 0 currentColor;
}

button.is-busy {
  position: relative;
  overflow: hidden;
  background: #e0a318;
}

button.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-100%);
  animation: sweep 1.2s linear infinite;
}

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.keypad-panel.is-collapsed .dialpad {
  display: none;
}

.dial-key {
  height: 42px;
  border: 1px solid #d9dee7;
  background: #ffffff;
  color: #1f2329;
  font-size: 18px;
  font-weight: 760;
}

.dial-key:hover {
  background: #f4f6f8;
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #687281;
  font-size: 12px;
}

.connector-panel {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.connector-row strong {
  color: #1f2329;
  font-size: 12px;
}

.event-log {
  min-height: 74px;
  max-height: 92px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 8px;
  margin: 0 10px 10px;
  background: #fbfcfe;
  color: #687281;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  transform: translateY(12px);
  border-radius: 6px;
  padding: 12px 14px;
  background: #1f2329;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 25, 38, 0.22);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-12deg);
  }

  75% {
    transform: rotate(12deg);
  }
}

@media (max-width: 520px) {
  .softphone-widget {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }
}
