.xp-phone-client {
  position: absolute;
  left: 4px;
  top: 30px;
  width: 592px;
  height: 411px;
  overflow: hidden;
  font: 12px Tahoma, SimSun, "Songti SC", sans-serif;
}

.xp-phone-menu {
  display: block;
  image-rendering: pixelated;
}

.xp-phone-body {
  display: flex;
  height: 389px;
}

.xp-phone-sidebar {
  position: relative;
  flex: 0 0 146px;
  width: 146px;
  background: linear-gradient(115deg, #83A9EB 0%, #729AE4 55%, #6590E2 100%);
}

.xp-phone-nav-panel {
  position: absolute;
  left: 10px;
  top: 11px;
  width: 130px;
  height: 156px;
  background: #B8CCF6;
  border-radius: 3px;
  overflow: hidden;
}

.xp-phone-nav-item {
  display: flex;
  align-items: center;
  height: 39px;
  padding-left: 12px;
  color: #1244C7;
}

.xp-phone-nav-item[data-xp-phone-selected="true"] {
  background: #E3ECFA;
  color: #0036D7;
  font-weight: bold;
}

.xp-phone-nav-icon {
  display: block;
  flex: 0 0 24px;
  image-rendering: auto;
}

.xp-phone-nav-label {
  padding-left: 6px;
  white-space: nowrap;
}

.xp-phone-brand {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 146px;
}

.xp-phone-brand-lockup {
  margin-left: 17px;
  image-rendering: auto;
}

.xp-window[data-xp-app="phone"] .xp-window-title {
  object-fit: contain;
  image-rendering: auto;
}

.xp-phone-page {
  position: relative;
  flex: 1 1 auto;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDFDFB 65%, #FAFAF7 100%);
}

.xp-phone-dial-heading {
  position: absolute;
  left: 22px;
  top: 20px;
  font-size: 15px;
  line-height: 18px;
  color: #000000;
}

.xp-phone-field {
  position: absolute;
  left: 22px;
  top: 42px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 226px;
  height: 36px;
  padding: 0 4px;
  border: 1px solid #CAD2DB;
  border-radius: 5px;
  background: linear-gradient(#F9FAFC, #E8EBEF);
  box-shadow: inset 0 0 0 1px #F8FAFC;
}

.xp-phone-field-box {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #DAE0E7;
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px #E9EDF1;
  background: #FEFEFE;
  font-size: 15px;
  line-height: 26px;
  color: #000000;
  overflow: hidden;
  white-space: nowrap;
}

.xp-phone-clear {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin: 0 5px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #515D6B;
  box-shadow: inset 1px 1px #80909F, inset -1px -1px #35414E;
  --xp-cursor-kind: link;
}

.xp-phone-clear::before {
  content: "×";
  display: block;
  color: #FFFFFF;
  font: 17px/11px Arial, sans-serif;
}

.xp-taskbar-window-icon[src="assets/phone/ref-flag.png"] {
  object-fit: contain;
  image-rendering: auto;
}

.xp-phone-haunt-modal {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  height: 600px;
  z-index: 115;
}

.xp-window.is-haunt-modal {
  z-index: 116 !important;
}

.xp-phone-haunt-link-hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.xp-phone-haunt-link:hover .xp-phone-haunt-link-hover {
  opacity: 1;
}

.xp-phone-clear:hover {
  background: #68798B;
}

.xp-phone-clear:active {
  background: #35414F;
  box-shadow: inset 1px 1px #202D3A, inset -1px -1px #8897A6;
}

.xp-phone-keypad {
  position: absolute;
  left: 22px;
  top: 89px;
  display: grid;
  grid-template-columns: 70px 72px 72px;
  grid-auto-rows: 45px;
  gap: 6px;
}

.xp-phone-key {
  --xp-phone-key-normal: url("../assets/phone/xp-key-normal.png");
  --xp-phone-key-hover: url("../assets/phone/xp-key-hover.png");
  --xp-phone-key-pressed: url("../assets/phone/xp-key-pressed.png");
  position: relative;
  width: 100%;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--xp-phone-key-normal) no-repeat;
  image-rendering: pixelated;
  font: inherit;
  --xp-cursor-kind: link;
}

.xp-phone-key:nth-child(3n + 2),
.xp-phone-key:nth-child(3n + 3) {
  --xp-phone-key-normal: url("../assets/phone/xp-key-wide-normal.png");
  --xp-phone-key-hover: url("../assets/phone/xp-key-wide-hover.png");
  --xp-phone-key-pressed: url("../assets/phone/xp-key-wide-pressed.png");
}

.xp-phone-key:hover {
  background-image: var(--xp-phone-key-hover);
}

.xp-phone-key:active {
  background-image: var(--xp-phone-key-pressed);
  box-shadow: inset 1px 1px #3C536B, inset 2px 2px #9DA8B0,
    inset -1px -1px #FFFFFF;
}

.xp-phone-key:active > *,
.xp-phone-action:active > *,
.xp-phone-call-button:active > *,
.xp-phone-clear:active::before {
  transform: translate(1px, 1px);
}

.xp-phone-key-digit {
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  font-size: 21px;
  line-height: 24px;
  font-weight: bold;
  text-align: center;
  color: #15232D;
}

.xp-phone-key[data-xp-phone-digit="*"] .xp-phone-key-digit,
.xp-phone-key[data-xp-phone-digit="#"] .xp-phone-key-digit {
  top: 8px;
  font-size: 26px;
  line-height: 30px;
}

.xp-phone-key[data-xp-phone-digit="*"] .xp-phone-key-digit {
  top: 12px;
  font-size: 32px;
}

.xp-phone-key-letters {
  position: absolute;
  left: 0;
  top: 26px;
  width: 100%;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  letter-spacing: -0.3px;
  color: #141C2C;
}

.xp-phone-call-button {
  position: absolute;
  left: 65px;
  top: 299px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 140px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: url("../assets/phone/ref-call-button.png") center / 100% 100% no-repeat;
  box-shadow: inset 1px 1px #2B7320, inset 2px 2px #8FD578,
    inset -1px -1px #1D5C12, inset -2px -2px #37852B;
  image-rendering: auto;
  font: bold 15px Tahoma, SimSun, "Songti SC", sans-serif;
  color: #FFFFFF;
  --xp-cursor-kind: link;
}

.xp-phone-call-icon {
  image-rendering: auto;
}

.xp-phone-call-button:hover {
  filter: brightness(1.06);
}

.xp-phone-call-button:active {
  filter: brightness(.94);
  box-shadow: inset 1px 1px #194B10, inset 2px 2px #2A6B1E,
    inset 3px 3px #39832B, inset -1px -1px #9ADA83;
}

.xp-phone-call-panel {
  position: absolute;
  left: 254px;
  top: 40px;
  box-sizing: border-box;
  width: 182px;
  height: 247px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: linear-gradient(#FFFFFF, #FDFDFC) padding-box,
    linear-gradient(#E1E4E7, #F0F1EF) border-box;
}

.xp-phone-avatar {
  width: 80px;
  height: 80px;
  margin: 34px auto 0;
  border-radius: 2px;
  background: url("../assets/phone/ref-avatar.png") center / cover no-repeat;
  image-rendering: auto;
}

.xp-phone-call-status,
.xp-phone-call-number,
.xp-phone-call-timer {
  position: absolute;
  left: 0;
  width: 180px;
  font-size: 15px;
  line-height: 15px;
  text-align: center;
  color: #000000;
}

.xp-phone-call-status {
  top: 131px;
}

.xp-phone-call-number {
  top: 154px;
}

.xp-phone-call-timer {
  top: 181px;
  color: #5B626F;
}

.xp-phone-action-row {
  position: absolute;
  left: 177px;
  top: 348px;
  display: none;
  gap: 7px;
}

.xp-phone-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 81px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: url("../assets/phone/xp-action-normal.png") no-repeat;
  image-rendering: pixelated;
  font: 12px Tahoma, SimSun, "Songti SC", sans-serif;
  color: #2B323F;
  --xp-cursor-kind: link;
}

.xp-phone-action:hover {
  background-image: url("../assets/phone/xp-action-hover.png");
}

.xp-phone-action:active {
  background-image: url("../assets/phone/xp-action-pressed.png");
  box-shadow: inset 1px 1px #3C536B, inset 2px 2px #9DA8B0,
    inset -1px -1px #FFFFFF;
}

.xp-phone-action-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: auto;
}

.xp-phone-client button:focus-visible {
  outline: 1px dotted #334B6A;
  outline-offset: -4px;
}

.xp-phone-quality {
  display: none;
}

.xp-phone-field.is-invalid {
  border-color: #C63325;
}

.xp-phone-clear:disabled {
  opacity: .5;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-dial-heading,
.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-field,
.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-button {
  display: none;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-panel {
  left: 23px;
  top: 11px;
  width: 402px;
  height: 83px;
  border: 0;
  border-bottom: 1px solid #CDD3DC;
  border-radius: 0;
  background: transparent;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  margin: 0;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-number,
.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-status,
.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-timer {
  left: 82px;
  width: 220px;
  text-align: left;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-number {
  top: 9px;
  font-size: 15px;
  line-height: 20px;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-status {
  top: 34px;
  font-size: 13px;
  line-height: 17px;
  color: #414951;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-call-timer {
  top: 54px;
  font-size: 14px;
  line-height: 18px;
  color: #37414A;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-quality {
  position: absolute;
  right: 0;
  top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 11px;
  line-height: 14px;
  color: #50565E;
}

.xp-phone-signal {
  display: flex;
  width: 32px;
  height: 24px;
}

.xp-phone-signal-bar {
  width: 8px;
  height: 24px;
  background: url("../assets/phone/ref-signal.png") 0 0 / 32px 24px no-repeat;
  image-rendering: auto;
  filter: grayscale(1);
}

.xp-phone-signal-bar:nth-child(2) { background-position-x: -8px; }
.xp-phone-signal-bar:nth-child(3) { background-position-x: -16px; }
.xp-phone-signal-bar:nth-child(4) { background-position-x: -24px; }

.xp-phone-signal-bar[data-xp-signal-active="true"] {
  filter: none;
}

.xp-phone-signal-bar:nth-child(4)[data-xp-signal-active="true"] {
  filter: sepia(1) saturate(6) hue-rotate(55deg) brightness(.75);
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-keypad {
  left: 23px;
  top: 115px;
  grid-template-columns: repeat(3, 70px);
  grid-auto-rows: 44px;
  gap: 8px;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-key {
  --xp-phone-key-normal: url("../assets/phone/xp-call-key-normal.png");
  --xp-phone-key-hover: url("../assets/phone/xp-call-key-hover.png");
  --xp-phone-key-pressed: url("../assets/phone/xp-call-key-pressed.png");
  height: 44px;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-page::after {
  content: "";
  position: absolute;
  left: 274px;
  top: 108px;
  width: 1px;
  height: 226px;
  background: #CDD3DC;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action-row {
  display: flex;
  flex-direction: column;
  left: 303px;
  top: 128px;
  gap: 8px;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action {
  width: 123px;
  height: 37px;
  font-size: 13px;
  gap: 12px;
  background-image: url("../assets/phone/xp-call-action-normal.png");
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action:hover {
  background-image: url("../assets/phone/xp-call-action-hover.png");
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action:active,
.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action[aria-pressed="true"] {
  background-image: url("../assets/phone/xp-call-action-pressed.png");
  box-shadow: inset 1px 1px #3C536B, inset 2px 2px #9DA8B0, inset -1px -1px #FFFFFF;
}

.xp-phone-action[aria-pressed="true"] > * {
  transform: translate(1px, 1px);
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action[data-xp-phone-action="end"] {
  height: 45px;
  margin-top: 7px;
  border-radius: 4px;
  background: url("../assets/phone/ref-end-button.png") center / 100% 100% no-repeat;
  image-rendering: auto;
  font-size: 14px;
  color: #FFFFFF;
}

.xp-phone-action[data-xp-phone-action="end"] .xp-phone-action-icon {
  width: 31px;
  height: 20px;
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action[data-xp-phone-action="end"]:hover {
  filter: brightness(1.06);
}

.xp-phone-client[data-xp-phone-state="connected"] .xp-phone-action[data-xp-phone-action="end"]:active {
  filter: brightness(.94);
  box-shadow: inset 1px 1px #7D120C, inset 2px 2px #A82015, inset -1px -1px #FF8F7C;
}

.xp-phone-dialog-face {
  image-rendering: pixelated;
}

.xp-phone-dialog-close {
  background-position: 0 0;
}

.xp-phone-dialog-close:hover {
  background-position: 0 -21px;
}

.xp-phone-dialog-close:active {
  background-position: 0 -42px;
}

.xp-phone-dialog.is-inactive .xp-phone-dialog-close,
.xp-phone-dialog.is-inactive .xp-phone-dialog-close:hover,
.xp-phone-dialog.is-inactive .xp-phone-dialog-close:active {
  background-position: 0 -63px;
}
