.bottom-nav {
  grid-template-columns: repeat(3, 1fr);
  padding-right: 14px;
  padding-left: 14px;
}

.menu-avatar-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #edf1f7;
  color: #35435b;
  cursor: pointer;
}
.hamburger-icon { display: grid; gap: 4px; width: 19px; }
.hamburger-icon i { display: block; width: 100%; height: 2px; border-radius: 99px; background: currentColor; }

.menu-avatar-button:focus-visible {
  outline: 3px solid rgb(49 91 234 / 20%);
  outline-offset: 2px;
}

.header-account-id {
  margin: 0;
  color: #4f5c73;
  font-size: .8rem;
  font-weight: 750;
}

.menu-backdrop {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgb(12 21 38 / 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: absolute;
  z-index: 9;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(84%, 348px);
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 18px 0 46px rgb(16 29 52 / 24%);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 220ms cubic-bezier(.2,.75,.25,1), visibility 220ms;
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.side-menu-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.menu-brand {
  width: 40px;
  height: 40px;
  margin: 0;
  border-color: #7d98ed;
  border-radius: 13px 13px 13px 4px;
  background: #315bea;
  font-size: 1.2rem;
}

.side-menu-top > strong {
  font-size: 1rem;
  letter-spacing: .01em;
}

.menu-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #f1f4f8;
  color: #59657a;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.menu-account {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #172640, #233b65);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-account:hover { box-shadow: 0 10px 24px rgb(18 35 64 / 20%); transform: translateY(-1px); }
.menu-account:active { transform: scale(.985); }
.menu-account:focus-visible { outline: 3px solid rgb(49 91 234 / 28%); outline-offset: 3px; }

.menu-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 14px;
  background: rgb(255 255 255 / 10%);
  font-weight: 900;
}

.menu-account div {
  flex: 1;
  min-width: 0;
}

.menu-account strong,
.menu-account small {
  display: block;
}
.menu-account-chevron { color: #aebbd2; font-size: 1.35rem; line-height: 1; }

.menu-account strong {
  font-size: .93rem;
}

.menu-account small {
  margin-top: 5px;
  overflow: hidden;
  color: #bdc9df;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-options {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.menu-options > button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #15213a;
  text-align: left;
  cursor: pointer;
}

.menu-options > button:hover,
.menu-options > button:focus-visible {
  outline: none;
  background: #f2f5fa;
}

.menu-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #e9efff;
  color: #315bea;
}

.menu-option-icon svg,
.logout-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-options strong,
.menu-options small {
  display: block;
}

.menu-options strong {
  font-size: .88rem;
}

.menu-options small {
  margin-top: 4px;
  color: #727e93;
  font-size: .72rem;
}

.menu-options i {
  color: #9aa3b2;
  font-size: 1.45rem;
  font-style: normal;
}

.side-menu-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.logout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: #fff0f2;
  color: #b33d4c;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
}

.side-menu-footer > small {
  color: #9aa3b2;
  text-align: center;
  font-size: .7rem;
}

.incoming-icon {
  background: #e8f8f1;
  color: #13835f;
}

.phone-incoming-icon {
  background: #fff0e4;
  color: #cf6c20;
}

.contact-detail-panel {
  min-height: calc(100vh - 150px);
  padding: 18px 22px 34px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f7f9fd, #fff 48%);
}

.contact-detail-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.contact-detail-header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #edf1f7;
  color: #263650;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.contact-detail-header strong { font-size: .88rem; }
.contact-detail-hero { display: flex; align-items: center; flex-direction: column; margin-top: 30px; text-align: center; }
.contact-detail-avatar { display: grid; place-items: center; width: 98px; height: 98px; border-radius: 34px; background: linear-gradient(145deg, #6f91ff, #315bea); box-shadow: 0 16px 36px rgb(49 91 234 / 25%); color: #fff; font-size: 2rem; font-weight: 900; }
.contact-detail-hero h2 { margin: 18px 0 0; font-size: 1.55rem; letter-spacing: -.025em; }
.contact-detail-hero p { margin: 7px 0 0; color: #68758b; font-size: .83rem; font-weight: 700; }
.contact-presence { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 6px 10px; border-radius: 99px; background: #eaf8f2; color: #13835f; font-size: .7rem; font-weight: 850; }
.contact-presence i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.contact-presence.away { background: #fff6e7; color: #bd7312; }
.contact-presence.offline { background: #eef1f5; color: #7d8798; }
.contact-presence.unknown { background: #edf2ff; color: #526ea8; }
.contact-avatar.external { background: #e9efff; color: #315bea; }

.contact-primary-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 30px; }
.contact-primary-actions button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-width: 0; min-height: 100px; padding: 10px 6px; border: 1px solid #e1e7f0; border-radius: 19px; background: #fff; color: #182640; text-align: center; cursor: pointer; box-shadow: 0 8px 20px rgb(30 50 82 / 7%); }
.contact-primary-actions button > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #e9efff; color: #315bea; }
.contact-primary-actions button:nth-child(2) > span { background: #e8f8f1; color: #13835f; }
.contact-primary-actions button:nth-child(3) > span { background: #fff0e3; color: #c56527; }
.contact-primary-actions svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-primary-actions strong { font-size: .78rem; }
.contact-primary-actions small { max-width: 92px; color: #7a8598; font-size: .58rem; line-height: 1.25; }
.contact-primary-actions button:disabled { cursor: not-allowed; opacity: .45; }

.contact-information { display: grid; margin: 20px 0 0; border: 1px solid #e3e8f0; border-radius: 20px; background: #fff; overflow: hidden; }
.contact-information div { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border-bottom: 1px solid #edf0f5; }
.contact-information div:last-child { border-bottom: 0; }
.contact-information dt { color: #748095; font-size: .76rem; }
.contact-information dd { margin: 0; color: #25334c; font-size: .8rem; font-weight: 800; }
.copy-contact-id { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 15px; background: #edf2ff; color: #315bea; cursor: pointer; font-size: .8rem; font-weight: 850; }
.copy-contact-id svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edit-external-contact { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 9px; border: 1px solid #dfe4ec; border-radius: 15px; background: #fff; color: #536078; cursor: pointer; font-size: .76rem; font-weight: 820; }
.edit-external-contact svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-call-alert { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 45px; margin-top: 9px; border: 0; border-radius: 14px; background: #fff4e8; color: #b76025; cursor: pointer; font-size: .75rem; font-weight: 850; }
.send-call-alert svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-call-alert { justify-content: flex-start; gap: 11px; min-height: 58px; margin-top: 14px; padding: 8px 12px; border: 1px solid #f1dac6; border-radius: 18px; background: linear-gradient(135deg,#fff8f1,#fff1e4); box-shadow: 0 6px 18px rgb(171 96 38 / 8%); text-align: left; }
.send-call-alert-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; background: #e7792f; color: #fff; box-shadow: 0 6px 13px rgb(210 104 37 / 22%); }
.send-call-alert-copy { flex: 1; min-width: 0; }.send-call-alert-copy strong,.send-call-alert-copy small { display: block; }.send-call-alert-copy strong { color: #8e451d; font-size: .8rem; }.send-call-alert-copy small { margin-top: 3px; color: #a36d4a; font-size: .65rem; font-weight: 650; }
.send-call-alert > i { color: #c78151; font-size: 1.5rem; font-style: normal; font-weight: 500; }
.contact-row-with-alert { gap: 7px; padding: 7px 8px 7px 7px; cursor: default; }.contact-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 5px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }.contact-row-main .contact-copy { flex: 1; }
.contact-alert-shortcut { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #f1d8c2; border-radius: 13px; background: #fff5eb; color: #c56527; cursor: pointer; }.contact-alert-shortcut svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.contact-alert-shortcut:active { transform: scale(.94); background: #ffe8d4; }

.contact-add-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #315bea;
  color: #fff;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.add-contact-panel {
  min-height: calc(100vh - 150px);
  padding: 18px 22px 34px;
  overflow-y: auto;
  background: #fff;
}

.add-contact-heading { display: flex; align-items: center; flex-direction: column; margin-top: 26px; text-align: center; }
.add-contact-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: #e9efff; color: #315bea; }
.add-contact-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.add-contact-heading h2 { margin: 16px 0 0; font-size: 1.35rem; letter-spacing: -.02em; }
.add-contact-heading p { max-width: 280px; margin: 7px 0 0; color: #707c91; font-size: .78rem; line-height: 1.45; }

.add-contact-form { display: grid; margin-top: 26px; }
.add-contact-form label { margin: 14px 0 7px; color: #33415a; font-size: .76rem; font-weight: 820; }
.add-contact-form label:first-child { margin-top: 0; }
.add-contact-form label span { color: #8993a5; font-weight: 650; }
.add-contact-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #dce3ed; border-radius: 14px; outline: none; background: #f8fafd; color: #15213a; font-size: .88rem; }
.add-contact-form input:focus { border-color: #315bea; box-shadow: 0 0 0 3px rgb(49 91 234 / 11%); background: #fff; }
.add-contact-form > small { margin: 6px 2px 0; color: #8792a4; font-size: .68rem; }
.add-contact-form .form-message { min-height: 20px; margin: 10px 2px 2px; color: #c84756; font-size: .72rem; }
.add-contact-form .primary-button { margin-top: 4px; }
.external-privacy-note { display: flex; align-items: flex-start; gap: 9px; margin: 20px 4px 0; color: #7a8598; font-size: .69rem; line-height: 1.45; }
.external-privacy-note svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: #315bea; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edit-contact-heading .add-contact-icon { background: #eeeaff; color: #7256d4; }
.delete-external-contact { width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 13px; background: transparent; color: #d64c5a; cursor: pointer; font-size: .74rem; font-weight: 820; }
.delete-external-contact.confirming { background: #ffeaec; }

.menu-option-icon.alert-demo-icon { background: #fff1e6; color: #c76a2c; }
.recents-summary { margin: -8px 0 16px; color: #778398; font-size: .74rem; line-height: 1.45; }

.call-alert-screen { position: absolute; z-index: 45; inset: 0; display: grid; align-items: end; padding: 18px; background: rgb(18 28 46 / 48%); backdrop-filter: blur(7px); }
.call-alert-card { width: 100%; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 26px 70px rgb(16 27 47 / 30%); }
.call-alert-top { display: flex; align-items: center; gap: 9px; color: #9d5826; font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.call-alert-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff0e3; color: #c56729; }.call-alert-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-alert-person { padding: 20px 0 15px; text-align: center; }.call-alert-person > span { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 11px; border-radius: 23px; background: linear-gradient(145deg,#315bea,#254acb); color: #fff; font-size: 1.45rem; font-weight: 900; box-shadow: 0 11px 23px rgb(49 91 234 / 20%); }.call-alert-person h2 { margin: 0; color: #172033; font-size: 1.3rem; }.call-alert-person p { margin: 5px 0 0; color: #707c90; font-size: .76rem; font-weight: 750; }
.call-alert-message { padding: 13px 14px; border-radius: 15px; background: #f5f7fa; text-align: center; }.call-alert-message strong { color: #253047; font-size: .82rem; }.call-alert-message p { margin: 5px 0 0; color: #6f7b8f; font-size: .7rem; line-height: 1.45; }
.call-alert-normal { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 11px 0 14px; color: #788496; font-size: .65rem; }.call-alert-normal i { width: 7px; height: 7px; border-radius: 50%; background: #d99037; }
.call-alert-primary { display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 11px; width: 100%; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 17px; background: linear-gradient(145deg,#315bea,#254acb); color: #fff; cursor: pointer; text-align: left; }.call-alert-primary svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.call-alert-primary strong,.call-alert-primary small { display: block; }.call-alert-primary strong { font-size: .8rem; }.call-alert-primary small { margin-top: 3px; color: #dce5ff; font-size: .65rem; }
.call-alert-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }.call-alert-secondary button { min-height: 43px; border: 1px solid #e0e5ed; border-radius: 13px; background: #fff; color: #536078; cursor: pointer; font-size: .73rem; font-weight: 800; }.call-alert-secondary button:last-child { color: #c84c59; }
.send-alert-confirm { position: absolute; z-index: 46; inset: 0; display: grid; place-items: center; padding: 22px; background: rgb(18 28 46 / 48%); backdrop-filter: blur(7px); }
.send-alert-confirm-card { width: 100%; padding: 23px 20px 18px; border-radius: 26px; background: #fff; box-shadow: 0 26px 70px rgb(16 27 47 / 30%); text-align: center; }
.send-alert-confirm-bell { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 19px; background: linear-gradient(145deg,#f08a43,#c95f22); color: #fff; box-shadow: 0 10px 23px rgb(207 100 36 / 25%); }.send-alert-confirm-bell svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-alert-confirm-kicker { margin: 0 0 5px; color: #b55d27; font-size: .65rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }.send-alert-confirm-card h2 { margin: 0; color: #192339; font-size: 1.25rem; }.send-alert-confirm-copy { margin: 9px auto 16px; max-width: 270px; color: #758095; font-size: .72rem; line-height: 1.5; }
.send-alert-recipient { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #e9edf3; border-radius: 16px; background: #f8f9fb; text-align: left; }.send-alert-recipient > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; background: #e9efff; color: #315bea; font-weight: 900; }.send-alert-recipient div { min-width: 0; }.send-alert-recipient strong,.send-alert-recipient small { display: block; }.send-alert-recipient strong { color: #253047; font-size: .82rem; }.send-alert-recipient small { margin-top: 4px; color: #748096; font-size: .68rem; }
.send-alert-confirm-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 11px 0 15px; color: #7c8798; font-size: .63rem; }.send-alert-confirm-note i { width: 7px; height: 7px; border-radius: 50%; background: #df8b39; }
.send-alert-confirm-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }.send-alert-confirm-actions button { min-height: 46px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fff; color: #5e697c; cursor: pointer; font-size: .74rem; font-weight: 850; }.send-alert-confirm-actions button:last-child { border-color: transparent; background: linear-gradient(145deg,#e87c35,#c85d22); color: #fff; box-shadow: 0 7px 17px rgb(202 94 33 / 22%); }
.hardware-ptt-status { min-width: 68px; text-align: center; }.hardware-ptt-status.detected { background: #e7f7ef; color: #147655; }.hardware-ptt-status.active { background: #e9efff; color: #315bea; }

.contact-section-label { margin: 20px 2px 8px; color: #788398; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.recovery-screen {
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #f5f8ff, #fff 48%);
}

.recovery-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.recovery-header button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 13px; background: #e9eef7; color: #263650; cursor: pointer; font-size: 2rem; line-height: 1; }
.recovery-header strong { font-size: .88rem; }
#recoveryRequest { display: flex; align-items: center; flex-direction: column; margin-top: clamp(52px, 11vh, 100px); text-align: center; }
.recovery-symbol { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 27px; background: linear-gradient(145deg, #315bea, #2446bd); box-shadow: 0 16px 36px rgb(49 91 234 / 26%); color: #fff; }
.recovery-symbol svg { width: 39px; height: 39px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.recovery-screen h1 { margin: 24px 0 0; color: #15213a; font-size: 1.65rem; letter-spacing: -.035em; }
.recovery-copy { max-width: 320px; margin: 10px 0 0; color: #707c91; font-size: .86rem; line-height: 1.5; }
.recovery-form { display: grid; width: 100%; margin-top: 34px; text-align: left; }
.recovery-form label { margin: 0 0 7px; color: #4b5871; font-size: .8rem; font-weight: 800; }
.recovery-form input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #d7deea; border-radius: 14px; outline: none; background: #f8fafe; color: #15213a; font-size: .95rem; font-weight: 700; text-align: center; }
.recovery-form input:focus { border-color: #7892ec; box-shadow: 0 0 0 4px rgb(49 91 234 / 8%); background: #fff; }
.recovery-form .form-message { margin: 7px 0 5px; }
.recovery-success { display: flex; align-items: center; flex-direction: column; margin: auto 0; text-align: center; }
.recovery-success > span { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 29px; background: #e8f8f1; color: #17a673; }
.recovery-success svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recovery-success p { max-width: 300px; margin: 12px 0 0; color: #707c91; font-size: .85rem; line-height: 1.5; }
.recovery-success > strong { margin-top: 12px; color: #315bea; font-size: 1rem; }
.recovery-success .primary-button { width: 100%; margin-top: 34px; }
.recovery-secure { margin-top: auto; }

.incoming-call {
  position: absolute;
  z-index: 12;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgb(66 104 213 / 42%), transparent 31%),
    linear-gradient(165deg, #142846, #081322 68%);
  color: #fff;
}

.incoming-stage,
.active-call-stage {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: max(48px, 8vh) 28px max(42px, env(safe-area-inset-bottom));
  text-align: center;
}

.incoming-kicker {
  margin: 0;
  color: #b9c8e4;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.caller-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin-top: clamp(38px, 7vh, 64px);
}

.caller-avatar,
.active-avatar {
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, #6f91ff, #315bea);
  box-shadow: 0 18px 42px rgb(21 42 91 / 35%);
  color: #fff;
  font-weight: 900;
}

.caller-avatar {
  position: relative;
  z-index: 2;
  width: 106px;
  height: 106px;
  border: 2px solid rgb(255 255 255 / 14%);
  border-radius: 38px;
  font-size: 2.1rem;
}

.caller-ring {
  position: absolute;
  border: 1px solid rgb(126 157 255 / 38%);
  border-radius: 50%;
  animation: caller-pulse 1.8s ease-out infinite;
}

.ring-one { inset: 9px; }
.ring-two { inset: -8px; animation-delay: .55s; }

.incoming-stage h2 {
  margin: 23px 0 0;
  font-size: 1.8rem;
  letter-spacing: -.035em;
}

.incoming-id {
  margin: 7px 0 0;
  color: #bdc9df;
  font-size: .86rem;
  font-weight: 700;
}

.company-badge {
  margin-top: 13px;
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid rgb(255 255 255 / 9%);
  background: rgb(255 255 255 / 8%);
  color: #d9e3f5;
  font-size: .7rem;
  font-weight: 800;
}

.incoming-message {
  margin: auto 0 28px;
  color: #c6d2e6;
  font-size: .9rem;
}

.incoming-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: min(100%, 280px);
}

.call-control {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #e0e8f5;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 800;
}

.call-control > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 22px;
  color: #fff;
}

.call-control svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reject-call > span { background: #e65261; box-shadow: 0 10px 24px rgb(220 79 95 / 28%); }
.accept-call > span { background: #17a673; box-shadow: 0 10px 24px rgb(23 166 115 / 28%); }

.active-call-stage {
  padding-top: max(20px, env(safe-area-inset-top));
  background: linear-gradient(170deg, #14233e 0 53%, #f7f9fc 53.2%);
}

.active-call-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.active-call-top button {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 1.45rem;
}

.active-call-top span { color: #cad5e8; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.active-call-top strong { justify-self: end; font-size: .78rem; font-variant-numeric: tabular-nums; }

.active-person { margin-top: 48px; }
.active-avatar { width: 88px; height: 88px; margin: 0 auto; font-size: 1.8rem; }
.active-person h2 { margin: 18px 0 0; font-size: 1.6rem; }
.active-person p { margin: 7px 0 0; color: #bdc9df; font-size: .78rem; }

.remote-speaking {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: auto;
  color: #173557;
}

.remote-speaking strong { margin-top: 12px; font-size: .95rem; }
.remote-speaking small { margin-top: 4px; color: #758196; font-size: .72rem; }

.audio-bars { display: flex; align-items: center; gap: 4px; height: 32px; }
.audio-bars i { width: 4px; border-radius: 3px; background: #17a673; animation: audio-bar .8s ease-in-out infinite alternate; }
.audio-bars i:nth-child(1) { height: 12px; }
.audio-bars i:nth-child(2) { height: 27px; animation-delay: .15s; }
.audio-bars i:nth-child(3) { height: 19px; animation-delay: .3s; }
.audio-bars i:nth-child(4) { height: 25px; animation-delay: .45s; }

.reply-ptt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-height: 104px;
  margin-top: 35px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, #3f6bf6, #2348bf);
  box-shadow: 0 11px 28px rgb(49 91 234 / 27%);
  color: #fff;
  cursor: pointer;
  touch-action: none;
}

.reply-ptt.talking { background: linear-gradient(145deg, #28bd87, #10845d); transform: scale(.985); }
.reply-ptt svg { position: relative; z-index: 1; width: 38px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; }
.reply-ptt > span:last-child { position: relative; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; }
.reply-ptt strong { font-size: .96rem; }
.reply-ptt small { margin-top: 5px; color: rgb(255 255 255 / 76%); font-size: .72rem; }

.communication-screen {
  position: absolute;
  z-index: 11;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) 26px max(28px, env(safe-area-inset-bottom));
  overflow: hidden auto;
  background:
    radial-gradient(circle at 50% 24%, rgb(66 104 213 / 38%), transparent 29%),
    linear-gradient(165deg, #142846, #081322 72%);
  color: #fff;
}

.communication-screen[data-mode="ptt"] {
  background:
    radial-gradient(circle at 50% 23%, rgb(49 91 234 / 10%), transparent 29%),
    linear-gradient(180deg, #fff, #f5f7fb);
  color: #15213a;
}

.communication-screen[data-mode="ptt"] .communication-top button {
  background: #edf1f7;
  color: #263650;
}

.communication-screen[data-mode="ptt"] .communication-top span { color: #657188; }
.communication-screen[data-mode="ptt"] .communication-person p { color: #657188; }
.communication-screen[data-mode="ptt"] .communication-company { border-color: #dfe5ef; background: #edf2ff; color: #315bea; }
.communication-screen[data-mode="ptt"] .end-communication { color: #c84756; }
.communication-screen[data-mode="phone"] .communication-person { margin-top: clamp(42px, 9vh, 76px); }
.communication-screen[data-mode="phone"] .communication-avatar { width: 106px; height: 106px; border-radius: 50%; background: linear-gradient(145deg, #557ee8, #254dac); }
.communication-screen[data-mode="phone"] .communication-person h2 { font-size: 1.75rem; }

.communication-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.communication-top button {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.communication-top span {
  color: #cad5e8;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.communication-top strong {
  justify-self: end;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.communication-trailing {
  display: grid;
  justify-self: end;
}

.communication-top .top-speaker {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid #dce3ef;
  background: #eef2f8;
  color: #637087;
  font-size: 1rem;
}

.communication-top .top-speaker.active {
  border-color: #315bea;
  background: #315bea;
  color: #fff;
}

.communication-screen[data-mode="ptt"] .communication-top .top-speaker.active {
  border-color: #315bea;
  background: #315bea;
  color: #fff;
}

.top-speaker svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-person {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: clamp(36px, 8vh, 70px);
  text-align: center;
}

.communication-avatar {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid rgb(255 255 255 / 13%);
  border-radius: 34px;
  background: linear-gradient(145deg, #6f91ff, #315bea);
  box-shadow: 0 18px 42px rgb(21 42 91 / 35%);
  font-size: 2rem;
  font-weight: 900;
}

.communication-person h2 { margin: 18px 0 0; font-size: 1.65rem; letter-spacing: -.025em; }
.communication-person p { margin: 7px 0 0; color: #bdc9df; font-size: .82rem; font-weight: 700; }
.communication-company { margin-top: 12px; padding: 6px 10px; border-radius: 99px; background: rgb(255 255 255 / 10%); color: #d9e3f5; font-size: .7rem; font-weight: 800; }

.outgoing-ptt-stage,
.phone-call-stage {
  display: flex;
  align-items: center;
  flex: 1;
  flex-direction: column;
  padding-top: 34px;
}

.outgoing-ptt { min-height: 112px; margin-top: auto; border: 1px solid rgb(255 255 255 / 15%); box-shadow: 0 18px 40px rgb(16 48 139 / 40%); }
.outgoing-ptt.requesting { opacity: .82; }
.outgoing-ptt.remote-receiving { background: linear-gradient(145deg, #19956d, #0d654b); }

.end-communication {
  min-height: 46px;
  margin-top: 15px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #ff8793;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 850;
}

.phone-call-stage { padding-top: 30px; }
.phone-call-status { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 5px 9px; min-width: 148px; padding: 10px 18px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 18px; background: rgb(255 255 255 / 7%); color: #eff4fc; font-size: .9rem; }
.phone-call-status i { width: 9px; height: 9px; border-radius: 50%; background: #f0a93a; box-shadow: 0 0 0 6px rgb(240 169 58 / 13%); }
.phone-call-status.connected i { background: #17a673; box-shadow: 0 0 0 6px rgb(23 166 115 / 13%); }
.phone-call-status span { grid-column: 1 / -1; color: #9eacc2; font-size: .75rem; font-variant-numeric: tabular-nums; }

.phone-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: min(100%, 330px);
  margin-top: auto;
}

.phone-controls button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #d5dfef;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}

.phone-controls button > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 9%);
  color: #fff;
}

.phone-controls button.active > span { background: #315bea; color: #fff; }
.phone-controls svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.control-keypad { grid-template-columns: repeat(3, 4px); gap: 4px; align-content: center; justify-content: center; }
.control-keypad i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.incall-keypad {
  width: min(100%, 310px);
  margin-top: auto;
}

.incall-keypad output {
  display: block;
  min-height: 30px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.incall-key-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 58px;
  height: 52px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 18px;
  background: rgb(255 255 255 / 9%);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 650;
}

.incall-key-grid button:active { background: rgb(255 255 255 / 18%); transform: scale(.96); }
.incall-key-grid small { margin-top: 1px; color: #9eacc2; font-size: .48rem; font-weight: 800; letter-spacing: .12em; }

.close-incall-keypad {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aebbd0;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.hang-up {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-top: 32px;
  border: 0;
  border-radius: 24px;
  background: #e65261;
  box-shadow: 0 12px 28px rgb(220 79 95 / 30%);
  color: #fff;
  cursor: pointer;
}

.hang-up svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prototype-call-note { margin-top: 18px; color: #8998b0; font-size: .69rem; text-align: center; }

@keyframes caller-pulse { from { opacity: .9; transform: scale(.78); } to { opacity: 0; transform: scale(1.1); } }
@keyframes audio-bar { to { height: 7px; opacity: .55; } }

.device-setup-panel { padding: 0 22px 28px; overflow-y: auto; }
.device-setup-panel .contact-detail-header { margin: 0 -4px; }
.device-setup-heading { padding: 18px 6px 20px; text-align: center; }
.device-setup-heading h2 { margin: 5px 0 7px; color: #172033; font-size: 1.55rem; }
.device-setup-heading p:last-child { max-width: 320px; margin: 0 auto; color: #68758b; font-size: .85rem; line-height: 1.5; }
.device-setup-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 15px; border-radius: 22px; background: linear-gradient(145deg,#e9f0ff,#f4f7ff); color: #315bea; box-shadow: 0 10px 24px rgb(49 91 234 / 14%); }
.device-setup-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-readiness { padding: 16px; border: 1px solid #e4e9f1; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgb(26 40 68 / 6%); }
.device-readiness > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.device-readiness strong { color: #172033; font-size: .9rem; }
.device-readiness span { color: #758197; font-size: .72rem; }
.device-progress { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #edf0f5; }
.device-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#315bea,#5b7df2); transition: width .25s ease; }
.device-check-list { display: grid; gap: 11px; margin-top: 14px; }
.device-check-card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 92px; padding: 14px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; transition: border-color .2s ease,background .2s ease; }
.device-check-card.ready { border-color: #bfe6d4; background: #f8fffb; }
.device-check-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; }
.device-check-icon.mic { background: #fff0ed; color: #ee725d; }
.device-check-icon.notices { background: #fff6dd; color: #d99416; }
.device-check-icon.background { background: #ede9ff; color: #7658d8; }
.device-check-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-check-copy strong { color: #1d2739; font-size: .88rem; }
.device-check-copy p { margin: 3px 0; color: #6f7b90; font-size: .74rem; line-height: 1.35; }
.device-check-copy small { color: #bd6b20; font-size: .68rem; font-weight: 750; }
.device-check-card.ready .device-check-copy small { color: #16875b; }
.device-check-card button { min-height: 36px; padding: 0 11px; border: 0; border-radius: 11px; background: #edf1ff; color: #315bea; cursor: pointer; font-size: .71rem; font-weight: 800; }
.device-check-card.ready button { background: #e7f7ef; color: #16875b; }
.device-mobile-note { margin: 14px 8px 0; color: #7a8699; font-size: .7rem; line-height: 1.45; text-align: center; }
.device-finish { width: 100%; margin-top: 17px; }
.profile-panel { padding: 0 22px 30px; overflow-y: auto; }
.profile-panel .contact-detail-header { margin: 0 -4px; }
.profile-hero { padding: 20px 0 22px; text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 13px; border: 6px solid #eef2ff; border-radius: 28px; background: linear-gradient(145deg,#315bea,#2448c9); box-shadow: 0 13px 26px rgb(49 91 234 / 22%); color: #fff; font-size: 1.9rem; font-weight: 850; }
.profile-hero h2 { margin: 0; color: #172033; font-size: 1.45rem; }
.profile-hero p { margin: 5px 0 12px; color: #657187; font-size: .86rem; font-weight: 700; letter-spacing: .03em; }
.profile-copy { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid #dce3f3; border-radius: 12px; background: #fff; color: #315bea; cursor: pointer; font-size: .75rem; font-weight: 800; }
.profile-copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-id-parts { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; margin: 0; padding: 16px 10px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgb(26 40 68 / 5%); }
.profile-id-parts div { min-width: 0; text-align: center; }
.profile-id-parts dt { color: #7b879a; font-size: .66rem; font-weight: 750; }
.profile-id-parts dd { margin: 4px 0 0; overflow: hidden; color: #1c2739; font-size: .92rem; font-weight: 850; text-overflow: ellipsis; }
.profile-id-parts > i { color: #aab4c4; font-size: .72rem; font-style: normal; }
.availability-section { margin-top: 22px; }
.availability-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 3px 11px; }
.availability-heading h3 { margin: 3px 0 0; color: #172033; font-size: 1rem; }
.availability-badge { padding: 6px 9px; border-radius: 99px; background: #e7f7ef; color: #16875b; font-size: .66rem; font-weight: 850; }
.availability-badge.busy { background: #fff4dd; color: #b8720a; }
.availability-badge.dnd { background: #ffeaec; color: #d54a59; }
.availability-options { display: grid; gap: 8px; }
.availability-options button { display: grid; grid-template-columns: 12px minmax(0,1fr) 24px; align-items: center; gap: 11px; width: 100%; min-height: 64px; padding: 10px 13px; border: 1px solid #e5e9f0; border-radius: 16px; background: #fff; color: #202a3c; cursor: pointer; text-align: left; }
.availability-options button[aria-checked="true"] { border-color: #bfcdfd; background: #f7f9ff; box-shadow: inset 0 0 0 1px #dfe6ff; }
.availability-options button span { display: flex; flex-direction: column; gap: 3px; }
.availability-options strong { font-size: .82rem; }
.availability-options small { color: #748096; font-size: .7rem; }
.availability-options svg { display: none; width: 22px; height: 22px; fill: none; stroke: #315bea; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.availability-options button[aria-checked="true"] svg { display: block; }
.availability-dot { width: 10px; height: 10px; border-radius: 50%; }
.availability-dot.available { background: #28aa76; }
.availability-dot.busy { background: #e6a22b; }
.availability-dot.dnd { background: #e65766; }
.profile-note { margin: 16px 8px 0; color: #7b8799; font-size: .7rem; line-height: 1.45; text-align: center; }

.security-panel { padding: 0 22px 30px; overflow-y: auto; }
.security-panel .contact-detail-header { margin: 0 -4px; }
.security-heading { padding: 20px 8px 18px; text-align: center; }
.security-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 13px; border-radius: 21px; background: #eaf0ff; color: #315bea; }
.security-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-heading h2 { margin: 0 0 6px; color: #172033; font-size: 1.4rem; }
.security-heading p { max-width: 320px; margin: 0 auto; color: #6d798d; font-size: .8rem; line-height: 1.5; }
.security-form { padding: 18px; border: 1px solid #e4e9f1; border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgb(26 40 68 / 5%); }
.security-form h3 { margin: 0 0 15px; color: #1b2639; font-size: .96rem; }
.security-form label { display: block; margin: 12px 0 6px; color: #465268; font-size: .73rem; font-weight: 800; }
.security-form input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #dce2ec; border-radius: 12px; background: #f9fafc; color: #172033; font: inherit; outline: 0; }
.security-form input:focus { border-color: #315bea; box-shadow: 0 0 0 3px rgb(49 91 234 / 10%); }
.security-form > small { display: block; margin-top: 5px; color: #818c9d; font-size: .66rem; }
.security-form .form-message { min-height: 18px; margin: 9px 0 5px; font-size: .7rem; }
.security-form .primary-button { width: 100%; }
.active-sessions { margin-top: 22px; }
.sessions-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 3px 10px; }
.sessions-heading h3 { margin: 3px 0 0; color: #172033; font-size: 1rem; }
.sessions-heading > span { color: #768297; font-size: .68rem; font-weight: 750; }
.session-card { display: grid; grid-template-columns: 44px minmax(0,1fr) 10px; align-items: center; gap: 12px; min-height: 72px; padding: 13px; border: 1px solid #e4e9f1; border-radius: 16px; background: #fff; }
.session-device { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #edf1ff; color: #315bea; }
.session-device svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.session-card strong,.session-card small { display: block; }
.session-card strong { color: #202a3c; font-size: .82rem; }
.session-card small { margin-top: 4px; color: #778398; font-size: .68rem; }
.session-card > i { width: 9px; height: 9px; border-radius: 50%; background: #27a977; box-shadow: 0 0 0 4px #e8f7f0; }
.secondary-security-button { width: 100%; min-height: 43px; margin-top: 10px; border: 1px solid #dce3ee; border-radius: 13px; background: #fff; color: #536078; cursor: pointer; font-size: .74rem; font-weight: 800; }
.security-note { margin: 14px 8px 0; color: #7d899b; font-size: .68rem; line-height: 1.45; text-align: center; }

.diagnostics-panel { padding: 0 22px 30px; overflow-y: auto; }
.diagnostics-panel .contact-detail-header { margin: 0 -4px; }
.diagnostics-heading { padding: 20px 8px 18px; text-align: center; }
.diagnostics-heading h2 { margin: 5px 0 6px; color: #172033; font-size: 1.4rem; }
.diagnostics-heading p:last-child { max-width: 315px; margin: 0 auto; color: #6e7a8e; font-size: .8rem; line-height: 1.48; }
.diagnostics-signal { display: flex; align-items: end; justify-content: center; gap: 4px; width: 62px; height: 62px; margin: 0 auto 13px; padding-bottom: 17px; border-radius: 21px; background: #e9f8f1; color: #199366; }
.diagnostics-signal i { width: 5px; border-radius: 4px; background: currentColor; }
.diagnostics-signal i:nth-child(1) { height: 7px; }.diagnostics-signal i:nth-child(2) { height: 12px; }.diagnostics-signal i:nth-child(3) { height: 17px; }.diagnostics-signal i:nth-child(4) { height: 22px; }
.diagnostics-summary { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; min-height: 76px; padding: 13px; border: 1px solid #dfe5ef; border-radius: 18px; background: #fff; }
.diagnostics-summary.ready { border-color: #bfe7d4; background: #f6fdf9; }.diagnostics-summary.warning { border-color: #f0d59f; background: #fffbf2; }.diagnostics-summary.error { border-color: #f1c3c8; background: #fff7f8; }
.diagnostics-summary-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #edf1ff; color: #315bea; }
.diagnostics-summary.ready .diagnostics-summary-icon { background: #e5f7ee; color: #16875b; }.diagnostics-summary.warning .diagnostics-summary-icon { background: #fff1d4; color: #bc780f; }.diagnostics-summary.error .diagnostics-summary-icon { background: #ffe8eb; color: #d84e5c; }
.diagnostics-summary-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagnostics-summary strong,.diagnostics-summary small { display: block; }.diagnostics-summary strong { color: #1d2739; font-size: .84rem; }.diagnostics-summary small { margin-top: 4px; color: #748095; font-size: .68rem; line-height: 1.35; }
.diagnostics-list { display: grid; gap: 8px; margin-top: 13px; }
.diagnostic-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 10px; align-items: center; gap: 11px; min-height: 66px; padding: 11px 13px; border: 1px solid #e4e9f0; border-radius: 15px; background: #fff; }
.diagnostic-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #f0f3f8; color: #69768b; }
.diagnostic-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagnostic-row strong,.diagnostic-row small { display: block; }.diagnostic-row strong { color: #202a3c; font-size: .8rem; }.diagnostic-row small { margin-top: 4px; color: #7a8699; font-size: .68rem; }
.diagnostic-row > i { width: 9px; height: 9px; border-radius: 50%; background: #c5ccd6; }
.diagnostic-row.checking > i { background: #7590ed; animation: diagnostic-pulse .7s infinite alternate; }.diagnostic-row.ready > i { background: #27aa77; box-shadow: 0 0 0 4px #e7f7ef; }.diagnostic-row.warning > i { background: #e1a030; box-shadow: 0 0 0 4px #fff3dd; }.diagnostic-row.error > i { background: #e25463; box-shadow: 0 0 0 4px #ffeaec; }
.diagnostics-run { width: 100%; margin-top: 16px; }.diagnostics-run:disabled { opacity: .65; cursor: wait; }
.diagnostics-permissions { width: 100%; min-height: 42px; margin-top: 8px; border: 0; border-radius: 13px; background: transparent; color: #315bea; cursor: pointer; font-size: .74rem; font-weight: 800; }
.diagnostics-note { margin: 8px 8px 0; color: #7d899b; font-size: .68rem; line-height: 1.45; text-align: center; }
@keyframes diagnostic-pulse { to { opacity: .35; transform: scale(.72); } }

.help-panel { padding: 0 22px 30px; overflow-y: auto; }
.help-panel .contact-detail-header { margin: 0 -4px; }
.help-heading { padding: 20px 8px 21px; text-align: center; }
.help-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 13px; border-radius: 21px; background: #eeeaff; color: #7256d4; }
.help-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-heading h2 { margin: 0 0 6px; color: #172033; font-size: 1.36rem; }
.help-heading p { max-width: 310px; margin: 0 auto; color: #6e7a8e; font-size: .8rem; line-height: 1.48; }
.quick-guide > h3,.help-questions > h3 { margin: 4px 2px 10px; color: #172033; font-size: 1rem; }
.quick-guide-grid { display: grid; gap: 8px; }
.quick-guide-grid article { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; min-height: 59px; padding: 10px 13px; border: 1px solid #e5e9f0; border-radius: 15px; background: #fff; }
.quick-guide-grid article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #edf1ff; color: #315bea; font-size: .76rem; font-weight: 900; }
.quick-guide-grid strong,.quick-guide-grid small { display: block; }.quick-guide-grid strong { color: #202a3c; font-size: .79rem; }.quick-guide-grid small { margin-top: 3px; color: #788498; font-size: .68rem; }
.help-questions { margin-top: 22px; }
.help-questions details { border-bottom: 1px solid #e5e9f0; }
.help-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: #253044; cursor: pointer; font-size: .78rem; font-weight: 800; list-style: none; }
.help-questions summary::-webkit-details-marker { display: none; }
.help-questions summary span { color: #63718a; font-size: 1.1rem; font-weight: 500; transition: transform .2s ease; }
.help-questions details[open] summary span { transform: rotate(45deg); }
.help-questions details p { margin: -2px 20px 14px 0; color: #6f7b8f; font-size: .72rem; line-height: 1.52; }
.support-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-top: 22px; padding: 15px; border: 1px solid #dce3f2; border-radius: 18px; background: linear-gradient(145deg,#f8faff,#f1f5ff); }
.support-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: #315bea; box-shadow: 0 6px 16px rgb(49 91 234 / 10%); }
.support-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-card strong { color: #1d2739; font-size: .82rem; }.support-card p { margin: 4px 0 0; color: #6e7a8e; font-size: .69rem; line-height: 1.42; }
.support-card button { grid-column: 1 / -1; min-height: 42px; border: 0; border-radius: 12px; background: #315bea; color: #fff; cursor: pointer; font-size: .73rem; font-weight: 800; }
.help-version { margin: 16px 0 0; color: #8b95a5; font-size: .66rem; text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.privacy-panel { padding: 0 22px 30px; overflow-y: auto; }
.privacy-panel .contact-detail-header { margin: 0 -4px; }
.privacy-heading { padding: 20px 8px 19px; text-align: center; }
.privacy-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 13px; border-radius: 21px; background: #edf1f7; color: #53627a; }
.privacy-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-heading h2 { margin: 0 0 6px; color: #172033; font-size: 1.35rem; }
.privacy-heading p { max-width: 320px; margin: 0 auto; color: #6e7a8e; font-size: .78rem; line-height: 1.5; }
.privacy-option-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 13px; border: 1px solid #e4e9f0; border-radius: 17px; background: #fff; }
.privacy-option-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #eef1f6; color: #59667b; }
.privacy-option-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-option-card > span:nth-child(2) strong,.privacy-option-card > span:nth-child(2) small { display: block; }.privacy-option-card > span:nth-child(2) strong { color: #202a3c; font-size: .8rem; }.privacy-option-card > span:nth-child(2) small { margin-top: 4px; color: #768297; font-size: .68rem; line-height: 1.35; }
.blocked-section { margin-top: 22px; }
.blocked-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 3px 10px; }
.blocked-heading h3 { margin: 3px 0 0; color: #172033; font-size: 1rem; }.blocked-heading > span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #eef1f6; color: #5e6b80; font-size: .69rem; font-weight: 850; }
.block-id-form { padding: 14px; border: 1px solid #e4e9f0; border-radius: 16px; background: #fff; }
.block-id-form > label { display: block; margin-bottom: 6px; color: #465268; font-size: .7rem; font-weight: 800; }.block-id-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.block-id-form input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #dce2ec; border-radius: 11px; background: #fafbfd; color: #172033; font: inherit; outline: 0; }.block-id-form input:focus { border-color: #315bea; box-shadow: 0 0 0 3px rgb(49 91 234 / 10%); }
.block-id-form button { min-height: 42px; padding: 0 13px; border: 0; border-radius: 11px; background: #25334a; color: #fff; cursor: pointer; font-size: .7rem; font-weight: 800; }.block-id-form .form-message { min-height: 17px; margin: 6px 1px -2px; font-size: .68rem; }
.blocked-list { display: grid; gap: 8px; margin-top: 10px; }
.blocked-empty { padding: 22px 16px; border: 1px dashed #d8dee8; border-radius: 15px; color: #7c8799; font-size: .72rem; line-height: 1.45; text-align: center; }
.blocked-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border: 1px solid #e4e9f0; border-radius: 15px; background: #fff; }
.blocked-item > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #ffeaec; color: #d74d5b; font-size: .86rem; font-weight: 900; }.blocked-item strong,.blocked-item small { display: block; }.blocked-item strong { color: #263145; font-size: .77rem; }.blocked-item small { margin-top: 3px; color: #7a8699; font-size: .66rem; }.blocked-item button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 10px; background: #f1f3f7; color: #59667b; cursor: pointer; font-size: .67rem; font-weight: 800; }
.privacy-note { margin: 14px 8px 0; color: #7c8799; font-size: .68rem; line-height: 1.45; text-align: center; }

.contacts-view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 14px; background: #edf0f5; }
.contacts-view-switch button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #6c788c; cursor: pointer; font-size: .75rem; font-weight: 800; }
.contacts-view-switch button.active { background: #fff; color: #26344c; box-shadow: 0 3px 10px rgb(31 45 72 / 9%); }
.group-row { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 11px 12px; border: 0; border-bottom: 1px solid #e8ebf1; background: transparent; color: #202a3c; cursor: pointer; text-align: left; }
.group-row-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: #e9efff; color: #315bea; }
.group-row-avatar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.group-row strong,.group-row small { display: block; }.group-row strong { font-size: .84rem; }.group-row small { margin-top: 4px; color: #778398; font-size: .68rem; }.group-row > i { color: #8792a4; font-size: 1.15rem; font-style: normal; }
.group-detail-panel { padding: 0 22px 28px; overflow-y: auto; }
.group-detail-panel .contact-detail-header { margin: 0 -4px; }
.group-detail-hero { padding: 22px 0 19px; text-align: center; }
.group-detail-avatar { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 13px; border: 6px solid #eef2ff; border-radius: 27px; background: linear-gradient(145deg,#315bea,#254acb); color: #fff; box-shadow: 0 12px 25px rgb(49 91 234 / 20%); }
.group-detail-avatar svg { width: 39px; height: 39px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.group-detail-hero h2 { margin: 0; color: #172033; font-size: 1.4rem; }.group-detail-hero p { margin: 5px 0 9px; color: #6e7a8e; font-size: .78rem; font-weight: 750; }
.group-company-badge { display: inline-flex; padding: 6px 9px; border-radius: 99px; background: #e8f7f0; color: #17865c; font-size: .65rem; font-weight: 850; }
.group-members-summary { display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 12px 14px; border: 1px solid #e4e9f0; border-radius: 16px; background: #fff; }
.group-members-summary strong,.group-members-summary small { display: block; }.group-members-summary strong { color: #202a3c; font-size: .8rem; }.group-members-summary small { margin-top: 4px; color: #17865c; font-size: .68rem; }
.group-members-summary > span { display: flex; flex-direction: row-reverse; padding-left: 10px; }.group-members-summary > span i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -7px; border: 2px solid #fff; border-radius: 11px; background: #e9efff; color: #315bea; font-size: .64rem; font-style: normal; font-weight: 850; }
.group-member-list { margin-top: 12px; border-top: 1px solid #e7eaf0; }
.group-member-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid #e7eaf0; }
.group-member-row > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #f0f3f8; color: #536078; font-size: .72rem; font-weight: 850; }.group-member-row strong,.group-member-row small { display: block; }.group-member-row strong { color: #263145; font-size: .77rem; }.group-member-row small { margin-top: 3px; color: #7d899b; font-size: .66rem; }.group-member-row > i { width: 8px; height: 8px; border-radius: 50%; background: #27aa77; }.group-member-row > i.off { background: #c4cbd5; }
.group-admin-note { margin: 13px 8px 15px; color: #7b8799; font-size: .68rem; line-height: 1.4; text-align: center; }
.group-ptt-button { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 16px; border: 0; border-radius: 18px; background: linear-gradient(145deg,#315bea,#244acb); color: #fff; cursor: pointer; box-shadow: 0 12px 26px rgb(49 91 234 / 24%); text-align: left; }
.group-ptt-button svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.group-ptt-button strong,.group-ptt-button small { display: block; }.group-ptt-button strong { font-size: .82rem; }.group-ptt-button small { margin-top: 3px; color: #dbe4ff; font-size: .67rem; }

.recent-detail-panel { padding: 0 22px 28px; overflow-y: auto; }
.recent-detail-panel .contact-detail-header { margin: 0 -4px; }
.recent-detail-hero { padding: 24px 0 20px; text-align: center; }
.recent-detail-avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 13px; border: 6px solid #eef2ff; border-radius: 26px; background: linear-gradient(145deg,#315bea,#254acb); color: #fff; font-size: 1.6rem; font-weight: 900; box-shadow: 0 12px 25px rgb(49 91 234 / 20%); }
.recent-detail-hero h2 { margin: 0; color: #172033; font-size: 1.4rem; }.recent-detail-hero p { margin: 5px 0 9px; color: #6d798e; font-size: .78rem; font-weight: 750; }
.recent-detail-badge { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: #e7f7ef; color: #16875b; font-size: .66rem; font-weight: 850; }.recent-detail-badge.missed { background: #ffeaec; color: #d84d5b; }.recent-detail-badge.outgoing { background: #edf1ff; color: #315bea; }.recent-detail-badge.group { background: #eeeaff; color: #7256d4; }
.recent-detail-information { display: grid; grid-template-columns: 1fr 1fr; margin: 0; overflow: hidden; border: 1px solid #e4e9f0; border-radius: 18px; background: #fff; }
.recent-detail-information div { min-width: 0; min-height: 68px; padding: 13px 14px; border-bottom: 1px solid #e8ebf0; }.recent-detail-information div:nth-child(odd) { border-right: 1px solid #e8ebf0; }.recent-detail-information div:nth-last-child(-n+2) { border-bottom: 0; }
.recent-detail-information dt { color: #7a8699; font-size: .65rem; font-weight: 750; }.recent-detail-information dd { margin: 5px 0 0; overflow: hidden; color: #243044; font-size: .76rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.recent-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.recent-detail-actions button { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; column-gap: 9px; min-height: 66px; padding: 10px 12px; border: 1px solid #e1e6ef; border-radius: 16px; background: #fff; color: #253044; cursor: pointer; text-align: left; }.recent-detail-actions button:disabled { opacity: .45; cursor: not-allowed; }
.recent-detail-actions button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #edf1ff; color: #315bea; }.recent-detail-actions button:nth-child(2) > span { background: #e7f7ef; color: #16875b; }
.recent-detail-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.recent-detail-actions strong { align-self: end; font-size: .76rem; }.recent-detail-actions small { align-self: start; overflow: hidden; color: #7a8699; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.delete-recent { width: 100%; min-height: 43px; margin-top: 12px; border: 0; border-radius: 13px; background: transparent; color: #d64d5a; cursor: pointer; font-size: .73rem; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .menu-backdrop,
  .side-menu,
  .caller-ring,
  .audio-bars i {
    transition-duration: .01ms;
    animation-duration: .01ms;
  }
}

/* Escritorio: conserva la experiencia móvil debajo de 900 px y aprovecha
   ventanas amplias sin deformar ni recortar los controles. */
@media (min-width: 1024px) {
  body { height: 100vh; padding: 22px; overflow: hidden; }
  .app-shell {
    width: min(1180px, calc(100vw - 44px));
    height: calc(100vh - 44px);
    min-height: 620px;
    max-height: 940px;
    border: 1px solid #dbe2ec;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgb(54 70 99 / 22%);
  }
  .screen { min-height: 100%; height: 100%; }

  .auth-screen {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(440px, 1.1fr);
    grid-template-rows: 1fr auto;
    padding: 0;
    background: #fff;
  }
  .brand-block {
    grid-row: 1 / 3;
    margin: 0;
    padding: clamp(54px, 7vw, 92px);
    background:
      radial-gradient(circle at 25% 22%, rgb(91 125 242 / 34%), transparent 34%),
      linear-gradient(150deg, #17233b, #0e192c 72%);
  }
  .brand-block h1 { max-width: 430px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.04; }
  .brand-name { margin-bottom: clamp(80px, 16vh, 150px); }
  .login-copy { max-width: 370px; font-size: 1.02rem; }
  .login-form { align-self: center; width: min(420px, calc(100% - 72px)); margin: 30px auto 10px; }
  .auth-screen > .secure-note { grid-column: 2; margin: 0 0 28px; }

  .recovery-screen { padding: 28px clamp(70px, 12vw, 180px) 34px; }
  #recoveryRequest,.recovery-success { width: min(520px, 100%); margin-right: auto; margin-left: auto; }

  .dialer-screen { position: relative; padding: 0 0 0 94px; overflow: hidden; }
  .app-header { min-height: 78px; padding: 15px 34px; }
  .bottom-nav {
    position: absolute;
    inset: 0 auto 0 0;
    width: 94px;
    min-height: 0;
    padding: 18px 10px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 92px);
    align-content: center;
    border-top: 0;
    border-right: 1px solid #e0e5ed;
    border-radius: 0;
    background: #f7f9fc;
  }
  .bottom-nav button { gap: 8px; border-radius: 17px; font-size: .72rem; }
  .bottom-nav button:hover { background: #edf2ff; color: #315bea; }
  .bottom-nav button.active { background: #e7edff; }
  .bottom-nav svg { width: 27px; height: 27px; }

  .panel {
    width: min(920px, 100%);
    height: calc(100% - 78px);
    min-height: 0;
    margin: 0 auto;
    padding: 30px 40px 28px;
    overflow-y: auto;
  }
  .dialer-panel {
    display: grid;
    grid-template-columns: minmax(320px, .88fr) minmax(390px, 1.12fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 8px 56px;
    align-items: start;
    overflow: hidden;
  }
  .dialer-panel .destination { grid-column: 1; grid-row: 1; }
  .dialer-panel .call-state { grid-column: 1; grid-row: 2; }
  .dialer-panel .dial-pad { grid-column: 1; grid-row: 3; align-self: center; }
  .dialer-panel .send-call-alert { grid-column: 1; grid-row: 4; }
  .dialer-panel .ptt-area { grid-column: 2; grid-row: 1 / 5; align-self: stretch; margin: 0; }
  .dialer-panel .ptt { height: 100%; min-height: 430px; border-radius: 30px; }
  .dialer-panel .ptt-halo { inset: 8px; border-radius: 22px; }
  .dialer-panel .ptt-content { flex-direction: column; gap: 22px; text-align: center; }
  .dialer-panel .ptt svg { width: 68px; }
  .dialer-panel .ptt-copy { align-items: center; text-align: center; }
  .dialer-panel .ptt-copy strong { font-size: 1.3rem; }
  .dialer-panel .ptt-copy small { font-size: .83rem; }
  .number-row input { font-size: 2.25rem; }
  .dial-pad { grid-template-columns: repeat(3, 82px); gap: 12px 24px; }
  .dial-pad button { width: 82px; height: 66px; }

  .list-panel,.contact-detail-panel,.add-contact-panel,
  .settings-panel,.device-setup-panel,.profile-panel,.security-panel,
  .diagnostics-panel,.help-panel,.privacy-panel,.group-detail-panel,
  .recent-detail-panel {
    min-height: 0;
    height: calc(100% - 78px);
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 28px 42px 34px;
    overflow-y: auto;
  }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-section-label,.privacy-note,.empty-state { grid-column: 1 / -1; }
  .settings-panel { width: min(900px, 100%); }
  .settings-group { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-group-title { grid-column: 1 / -1; }
  .setting-row:nth-of-type(even) { border-left: 1px solid #edf0f5; }
  .quick-guide-grid,.availability-options,.device-check-list,.diagnostics-list,.blocked-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-primary-actions { gap: 14px; }
  .contact-primary-actions button { min-height: 118px; }

  .side-menu { min-height: 100%; width: 370px; }
  .menu-backdrop,.incoming-call,.call-alert-screen,.send-alert-confirm,.communication-screen { position: absolute; }
  .call-alert-card,.send-alert-confirm-card { width: min(470px, 100%); margin: auto; }
  .call-alert-screen { place-items: center; }

  .incoming-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 80px;
    min-height: 100%;
    padding: 52px clamp(70px, 10vw, 130px);
  }
  .incoming-kicker { grid-column: 1 / -1; }
  .caller-visual { grid-column: 1; grid-row: 2 / 6; align-self: center; margin: 0; }
  .incoming-stage h2,.incoming-id,.company-badge,.incoming-message,.incoming-actions { grid-column: 2; }
  .incoming-stage h2 { align-self: end; margin-top: 40px; font-size: 2.2rem; }
  .incoming-message { align-self: end; margin: 0 0 26px; }
  .incoming-actions { justify-self: center; align-self: start; }

  .communication-screen {
    display: grid;
    grid-template-columns: minmax(280px,.82fr) minmax(390px,1.18fr);
    grid-template-rows: auto 1fr;
    gap: 24px 72px;
    min-height: 100%;
    height: 100%;
    padding: 34px clamp(58px, 8vw, 96px) 38px;
    overflow: hidden;
  }
  .communication-top { grid-column: 1 / -1; }
  .communication-person { grid-column: 1; grid-row: 2; align-self: center; margin: 0; }
  .communication-avatar { width: 126px; height: 126px; border-radius: 40px; font-size: 2.6rem; }
  .communication-person h2 { font-size: 2rem; }
  .outgoing-ptt-stage,.phone-call-stage { grid-column: 2; grid-row: 2; width: 100%; min-height: 0; padding: 0; }
  .outgoing-ptt { min-height: 300px; margin: auto 0 0; border-radius: 30px; }
  .outgoing-ptt svg { width: 56px; }
  .outgoing-ptt strong { font-size: 1.2rem; }
  .phone-controls { width: min(100%,390px); }
  .incall-keypad { width: min(100%,360px); }
}

@media (min-width: 1024px) and (max-height: 720px) {
  body { padding: 10px; }
  .app-shell { width: min(1180px,calc(100vw - 20px)); height: calc(100vh - 20px); min-height: 560px; }
  .dialer-panel { padding-top: 18px; padding-bottom: 18px; }
  .dialer-panel .ptt { min-height: 340px; }
  .dial-pad button { height: 54px; }
  .incoming-stage { padding-top: 30px; padding-bottom: 30px; }
  .communication-screen { padding-top: 22px; padding-bottom: 22px; }
  .outgoing-ptt { min-height: 220px; }
}
