@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --blue: #075cff;
  --blue-dark: #0643b5;
  --ink: #0b1024;
  --muted: #68718a;
  --line: #e8edf6;
  --surface: #f6f8fc;
  --green: #18ba72;
  --red: #ff4545;
  --orange: #ffae47;
  --violet: #655cf6;
  --shadow: 0 8px 28px rgba(38, 60, 105, 0.09);
  font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(7, 92, 255, 0.25);
  outline-offset: 2px;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

.auth-shell,
.loading-shell {
  background:
    radial-gradient(circle at 50% 7%, rgba(7, 92, 255, .11), transparent 32%),
    #fff;
}

.auth-page {
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  margin: 0 auto;
  padding:
    calc(24px + env(safe-area-inset-top))
    clamp(18px, 5vw, 28px)
    calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.auth-brand {
  display: flex;
  align-items: center;
}

.auth-brand img {
  display: block;
  width: 142px;
  height: auto;
}

.auth-heading {
  margin-top: 28px;
}

.auth-heading h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.65px;
}

.auth-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  margin-top: 21px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  background: #f1f4f8;
}

.auth-tabs button {
  height: 37px;
  border-radius: 9px;
  color: #758097;
  font-size: 13px;
  font-weight: 650;
}

.auth-tabs button.is-active {
  color: #15213b;
  background: #fff;
  box-shadow: 0 3px 9px rgba(23,39,73,.08);
}

.auth-form {
  margin-top: 22px;
}

.auth-submit {
  width: 100%;
  min-height: 47px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(7,92,255,.22);
  font-size: 13px;
  font-weight: 750;
}

.auth-submit:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: .46;
}

.phone-verification {
  margin-bottom: 14px;
}

.phone-verification .field {
  margin-bottom: 8px;
}

.phone-input {
  height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
}

.phone-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 92, 255, .09);
}

.phone-input strong {
  height: 24px;
  padding: 4px 11px 0 13px;
  border-right: 1px solid #dfe5ef;
  color: #17233d;
  font-size: 14px;
}

.phone-input input {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.phone-input input[readonly] {
  color: #6f7990;
}

.otp-send,
.otp-primary {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ccdcff;
  border-radius: 11px;
  color: var(--blue);
  background: #f3f7ff;
  font-size: 12px;
  font-weight: 750;
}

.otp-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #dce6f8;
  border-radius: 14px;
  background: #f8faff;
}

.otp-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.otp-card > div:first-child strong {
  font-size: 13px;
}

.otp-card > div:first-child small {
  color: #7d89a0;
  font-size: 11px;
}

.otp-input {
  display: block;
  margin: 12px 0 10px;
}

.otp-input input {
  width: 100%;
  height: 46px;
  border: 1px solid #ced9ed;
  border-radius: 11px;
  text-align: center;
  letter-spacing: 7px;
  font-size: 18px;
  font-weight: 700;
}

.otp-primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.otp-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.otp-links button,
.phone-verified button {
  padding: 3px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.phone-verified {
  min-height: 48px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bfe8d3;
  border-radius: 12px;
  color: #118052;
  background: #effaf5;
}

.phone-verified > span {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.phone-verified strong {
  color: #176b4b;
  font-size: 13px;
}

.phone-verified small {
  color: #5e8c79;
  font-size: 11px;
}

.auth-message {
  min-height: 16px;
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
}

.auth-message.is-error {
  color: var(--red);
}

.auth-security {
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8791a4;
  font-size: 10px;
}

.loading-content {
  min-height: 100dvh;
  padding:
    calc(24px + env(safe-area-inset-top))
    22px
    calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.loading-logo {
  display: block;
  width: 150px;
  height: auto;
}

.spinner {
  width: 24px;
  height: 24px;
  margin: 10px;
  border: 3px solid #dce6fa;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content strong {
  margin-top: 5px;
  font-size: 16px;
}

.loading-content small {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.error-content > .icon {
  color: var(--red);
}

.error-content .auth-submit {
  max-width: 230px;
  margin-top: 10px;
}

.live-connection {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  color: #7b8599;
  background: #f2f4f7;
  font-size: 10px;
}

.live-connection i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca5b4;
}

.live-connection.is-online {
  color: #168455;
  background: #eaf8f1;
}

.live-connection.is-online i {
  background: var(--green);
}

#app {
  min-height: 100vh;
}

.phone-shell {
  position: relative;
  width: min(100%, 768px);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.screen {
  height: 100dvh;
  overflow-y: auto;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.screen--call {
  height: 100dvh;
  padding: 0;
}

.screen::-webkit-scrollbar {
  display: none;
}

.page {
  padding: 0 16px 22px;
  text-align: left;
}

.mobile-app-header {
  position: sticky;
  z-index: 12;
  top: 0;
  min-height: 57px;
  margin: 0 -16px;
  padding:
    calc(8px + env(safe-area-inset-top))
    16px
    8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 237, 246, .75);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.mobile-logo-button {
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
}

.mobile-logo-button img {
  display: block;
  width: 116px;
  height: auto;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.icon-button:hover {
  background: var(--surface);
}

.welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 18px 0 22px;
}

.welcome-row h1,
.mobile-page-heading h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.45px;
  text-align: left;
}

.welcome-row p,
.mobile-page-heading p {
  margin: 7px 0 0;
  color: #2f3b58;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.availability {
  height: 37px;
  margin-top: 2px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(36, 60, 105, 0.14);
  color: #27314a;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot--away {
  background: var(--orange);
}

.section-block {
  margin-top: 22px;
}

.section-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2,
.card-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}

.section-heading > button,
.card-heading > button {
  padding: 3px;
  color: var(--blue);
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 13px;
}

.metric-card {
  min-height: 139px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: #e9f1ff;
}

.metric-icon--red {
  color: var(--red);
  background: #fff0f0;
}

.metric-icon--violet {
  color: var(--violet);
  background: #f0efff;
}

.metric-card > strong {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.7px;
}

.metric-label {
  margin-top: 5px;
  color: #2d3851;
  font-size: 14px;
}

.metric-trend {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.trend {
  color: var(--green);
  font-weight: 700;
}

.trend--negative {
  color: var(--red);
}

.trend-context {
  color: #7b849b;
}

.online-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7b849b;
}

.online-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.legend {
  display: flex;
  gap: 11px;
  color: #66718a;
  font-size: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: #a9c3ff;
}

.legend-dot--blue {
  background: var(--blue);
}

.chart-wrap {
  margin-top: 12px;
}

.chart-wrap svg {
  width: 100%;
  overflow: visible;
}

.chart-grid path {
  stroke: #e9edf5;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-axis text {
  fill: #73809a;
  font-size: 11px;
}

.chart-area {
  fill: url("#none");
  fill: rgba(7, 92, 255, 0.07);
}

.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line--muted {
  stroke: #abc4ff;
  stroke-width: 1.5;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.quick-action {
  min-width: 0;
  height: 69px;
  padding: 9px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #eef1f7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(38, 60, 105, 0.07);
  color: #173169;
}

.quick-action span {
  color: #17213a;
  font-size: 11px;
  white-space: nowrap;
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 10px 13px calc(9px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  border-top: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.bottom-nav-item {
  min-width: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #65708a;
  font-size: 11px;
}

.bottom-nav-item.is-active {
  color: var(--blue);
}

.bottom-nav-item.is-active .icon {
  stroke-width: 2.5;
}

.bottom-nav-icon {
  min-height: 22px;
  display: grid;
  place-items: center;
}

.bottom-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-shell--member .screen:not(.screen--call) {
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.bottom-nav--member {
  right: 17px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 17px;
  height: 76px;
  padding: 8px 10px;
  align-items: center;
  overflow: visible;
  border: 1px solid rgba(218, 225, 238, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 18px 45px rgba(36, 57, 99, .15),
    0 3px 10px rgba(36, 57, 99, .07);
}

.bottom-nav--member .bottom-nav-item:not(.bottom-nav-dial) {
  height: 58px;
  border-radius: 17px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.bottom-nav--member .bottom-nav-item:not(.bottom-nav-dial):active {
  transform: scale(.96);
}

.bottom-nav--member .bottom-nav-item.is-active:not(.bottom-nav-dial) {
  background: #eef4ff;
}

.bottom-nav--member .bottom-nav-item.is-active:not(.bottom-nav-dial) .bottom-nav-icon {
  transform: translateY(-1px);
}

.bottom-nav--member .bottom-nav-label {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -.1px;
}

.bottom-nav--member .bottom-nav-dial {
  align-self: start;
  height: 81px;
  margin-top: -20px;
  gap: 5px;
  color: var(--blue-dark);
  font-weight: 700;
}

.bottom-nav--member .bottom-nav-dial .bottom-nav-icon {
  width: 56px;
  height: 56px;
  min-height: 56px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow:
    0 0 0 6px #f0f5ff,
    0 9px 20px rgba(7, 92, 255, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.bottom-nav--member .bottom-nav-dial:active .bottom-nav-icon {
  transform: scale(.94);
  box-shadow:
    0 0 0 5px #edf3ff,
    0 5px 12px rgba(7, 92, 255, .2);
}

.bottom-nav--member .bottom-nav-dial .icon {
  stroke-width: 2.15;
}

.bottom-nav--member-compact {
  right: 32px;
  left: 32px;
}

.mobile-page-heading {
  min-height: 48px;
  margin: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-page-heading > div {
  min-width: 0;
  flex: 1;
}

.mobile-page-heading h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-page-heading h1 > span {
  color: #7859f3;
}

.primary-icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(7, 92, 255, 0.25);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-box {
  height: 40px;
  padding: 0 13px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 20px;
  color: #8590a7;
  background: #f2f4f9;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #778198;
}

.filter-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.segmented {
  margin: 16px 0 8px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 18px;
  background: #f8f9fc;
}

.segmented button {
  height: 36px;
  border-radius: 16px;
  color: #3f4962;
  font-size: 13px;
}

.segmented button.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(7, 92, 255, 0.24);
}

.call-list {
  margin-top: 3px;
}

.call-row {
  width: 100%;
  min-height: 71px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  color: #2c3550;
  background: #eef1f7;
  font-size: 15px;
  font-weight: 700;
}

.avatar--large {
  width: 88px;
  height: 88px;
}

.avatar--blue { color: #095be9; background: #e6efff; }
.avatar--green { color: #19824f; background: #e5f7eb; }
.avatar--violet { color: #594ed7; background: #efedff; }
.avatar--orange { color: #a96112; background: #fff0db; }

.call-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.call-copy strong,
.team-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #6e7891;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction--inbound { color: #30ad70; }
.direction--outbound { color: #4d79ee; }
.direction--missed { color: var(--red); }

.call-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.call-meta time {
  color: #69758d;
  font-size: 12px;
}

.call-meta b {
  font-size: 12px;
  font-weight: 650;
}

.missed-copy {
  color: var(--red);
}

.empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8791a7;
}

.empty-state strong {
  color: #374158;
  font-size: 15px;
}

.empty-state span {
  font-size: 13px;
}

.phone-shell--call {
  background: #0646a4;
}

.active-call {
  position: relative;
  min-height: 100dvh;
  padding:
    calc(14px + env(safe-area-inset-top))
    22px
    calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 51%, transparent 0 110px, rgba(82, 159, 255, 0.13) 111px 112px, transparent 113px 145px, rgba(82, 159, 255, 0.11) 146px 147px, transparent 148px 182px, rgba(82, 159, 255, 0.08) 183px 184px, transparent 185px),
    radial-gradient(circle at 50% 34%, #0871df 0, #0757c5 35%, #073e98 72%, #062d79 100%);
}

.active-call::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.06), transparent 28%, transparent 70%, rgba(0,0,0,.09));
}

.call-top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.call-top-actions button {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  color: #fff;
}

.encrypted-label {
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 17px;
  color: #dceaff;
  background: rgba(255,255,255,.1);
  font-size: 11px;
}

.active-contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.active-avatar-ring {
  margin-top: 30px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.active-avatar-ring.is-ringing {
  animation: call-ring-pulse 1.45s ease-in-out infinite;
}

@keyframes call-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 0 rgba(255,255,255,.18); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 18px rgba(255,255,255,0); }
}

.active-contact h1 {
  margin: 17px 0 6px;
  font-size: 25px;
  letter-spacing: -0.55px;
}

.active-contact p {
  margin: 0;
  color: #d9eaff;
  font-size: 14px;
}

.live-pill {
  margin-top: 14px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  font-size: 13px;
}

.live-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31e884;
}

.live-pill.is-ringing i {
  background: #ffd66b;
  animation: status-blink 1s ease-in-out infinite;
}

@keyframes status-blink {
  50% { opacity: .35; }
}

.active-contact time {
  margin-top: 11px;
  font-size: 22px;
  font-weight: 650;
}

.call-controls {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 23px;
}

.call-controls--operational {
  max-width: 300px;
  grid-template-columns: repeat(3, 1fr);
}

.call-controls--operational .call-control:nth-child(4) {
  grid-column: 2;
}

.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.call-control > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.call-control.is-active > span {
  color: #084bb6;
  background: #fff;
  border-color: #fff;
}

.call-control.is-primary > span {
  color: #0758d7;
  background: #fff;
}

.call-control small {
  font-size: 13px;
}

.hangup-button {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  margin: auto auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff4a4a;
  box-shadow: 0 13px 30px rgba(40, 9, 26, 0.25);
  transform: rotate(135deg);
}

.hangup-button:disabled {
  opacity: .55;
}

.incoming-call {
  min-height: 100dvh;
  padding:
    calc(18px + env(safe-area-inset-top))
    17px
    calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 33%, rgba(35, 99, 241, 0.08), transparent 28%),
    linear-gradient(#fff, #f7faff);
}

.incoming-label {
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}

.incoming-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.building-pulse {
  width: 116px;
  height: 116px;
  margin-top: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 92, 255, 0.04);
  box-shadow: 0 0 0 15px rgba(7, 92, 255, .04), 0 0 0 31px rgba(7, 92, 255, .025);
}

.building-pulse span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #dce8ff;
}

.incoming-identity h1 {
  margin: 20px 0 7px;
  font-size: 22px;
  letter-spacing: -0.55px;
}

.incoming-identity p {
  margin: 0;
  color: #45516d;
  font-size: 14px;
}

.incoming-identity small {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #46516a;
  font-size: 12px;
}

.ringtone-enable {
  min-height: 39px;
  margin: 14px auto 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bfd1ff;
  border-radius: 999px;
  color: #075cff;
  background: #eef4ff;
  font-size: 11px;
  font-weight: 700;
}

.handoff-summary {
  margin-top: 22px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #dce7ff;
  border-radius: 16px;
  background: #f4f7ff;
}

.handoff-summary > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #e1eaff;
}

.handoff-summary strong {
  color: #172033;
  font-size: 12px;
}

.handoff-summary p {
  margin: 4px 0 0;
  color: #536078;
  font-size: 12px;
  line-height: 1.45;
}

.route-card {
  margin-top: 24px;
  padding: 13px 15px 4px;
  border: 1px solid #ebeff7;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-card h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
  font-size: 13px;
}

.route-option {
  width: 100%;
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.route-icon {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.route-option > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 5px;
}

.route-option strong {
  font-size: 13px;
}

.route-option small {
  color: #778198;
  font-size: 11px;
}

.radio {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1.5px solid #aeb7ca;
  border-radius: 50%;
}

.radio--selected {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.ai-greeting {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: rgba(247, 249, 255, .92);
  box-shadow: 0 5px 18px rgba(38, 60, 105, 0.06);
}

.sparkle-orb {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--violet);
  background: #edf0ff;
}

.ai-greeting > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 3px;
}

.ai-greeting strong {
  font-size: 13px;
}

.ai-greeting small {
  color: #7b859b;
  font-size: 11px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: typing 1.2s infinite ease-in-out;
}

.typing-dots b:nth-child(2) { animation-delay: .16s; }
.typing-dots b:nth-child(3) { animation-delay: .32s; }

@keyframes typing {
  0%, 70%, 100% { opacity: .25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.incoming-actions {
  margin-top: auto;
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
}

.incoming-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.incoming-actions button > span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.incoming-actions .decline {
  background: var(--red);
  transform: rotate(135deg);
}

.incoming-actions .accept {
  background: #20b36c;
}

.incoming-actions small {
  font-size: 13px;
}

.insight-card {
  margin-top: 13px;
  padding: 16px;
  border: 1px solid #eef1f6;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card-heading small {
  color: var(--blue);
  font-size: 11px;
}

.summary-copy {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-copy p {
  margin: 0;
  flex: 1;
  font-size: 12px;
  line-height: 1.75;
}

.summary-copy > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #704ff1;
  background: #f0edff;
}

.sentiment-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sentiment {
  display: grid;
  grid-template-columns: 27px auto;
  align-items: center;
  justify-content: center;
  column-gap: 7px;
}

.sentiment > span {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.sentiment strong {
  font-size: 16px;
}

.sentiment small {
  color: #7b8499;
  font-size: 10px;
}

.sentiment--positive > span { color: #159c59; background: #dff7e9; }
.sentiment--neutral > span { color: #d78317; background: #fff0d9; }
.sentiment--negative > span { color: #ec4545; background: #ffe3e3; }

.sentiment-bar {
  height: 7px;
  margin-top: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 5px;
}

.sentiment-bar i:nth-child(1) { width: 62%; background: #19b76c; }
.sentiment-bar i:nth-child(2) { width: 24%; background: #ffae36; }
.sentiment-bar i:nth-child(3) { width: 14%; background: #ff4545; }

.topic-list {
  margin-top: 13px;
  display: grid;
  gap: 13px;
}

.topic-row {
  display: grid;
  grid-template-columns: 17px minmax(112px, 1fr) 92px 28px;
  align-items: center;
  gap: 7px;
  color: #24304a;
}

.topic-row > span {
  font-size: 11px;
}

.topic-row > i {
  height: 4px;
  border-radius: 2px;
  background: #edf0f6;
}

.topic-row > i b {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: var(--blue);
}

.topic-row strong {
  font-size: 10px;
  text-align: right;
}

.quality-content {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-ring {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, white 76%, transparent 77% 99%),
    conic-gradient(#20b873 0 92%, #e8edf4 92%);
}

.score-ring strong {
  font-size: 23px;
  line-height: 1;
}

.score-ring small {
  margin-top: 3px;
  color: #758096;
  font-size: 10px;
}

.quality-chart {
  min-width: 0;
  flex: 1;
}

.quality-chart svg {
  width: 100%;
}

.quality-fill {
  fill: rgba(7, 92, 255, .08);
}

.quality-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
}

.weekdays {
  display: flex;
  justify-content: space-between;
  color: #778198;
  font-size: 10px;
}

.excellent {
  width: 78px;
  margin-top: 3px;
  text-align: center;
  color: #58647c;
  font-size: 10px;
}

.team-summary {
  margin: 12px 0 19px;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  background: linear-gradient(135deg, #075cff, #3b79f0);
  color: #fff;
  box-shadow: 0 10px 23px rgba(7, 92, 255, .2);
}

.team-summary > div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.team-summary > div + div {
  border-left: 1px solid rgba(255,255,255,.22);
}

.team-summary strong {
  font-size: 22px;
}

.team-summary span {
  color: #dce8ff;
  font-size: 11px;
}

.team-add-button {
  min-width: 74px;
  height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(7, 92, 255, .22);
  font-size: 12px;
  font-weight: 700;
}

.team-add-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.team-list {
  display: grid;
}

.team-row {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.team-row > div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.team-row small {
  color: #788299;
  font-size: 11px;
}

.member-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #69748a;
  font-size: 10px;
}

.member-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9b1c0;
}

.member-status--available i { background: var(--green); }
.member-status--on-call i { background: var(--blue); }
.member-status--away i { background: var(--orange); }
.member-status--disabled i { background: var(--red); }

.team-row--editable {
  padding: 0 2px;
  border-radius: 10px;
}

.team-row--editable:active {
  background: #f5f8fd;
}

.team-row--editable > .icon {
  color: #a3adbe;
}

.wide-secondary-button {
  width: 100%;
  height: 47px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe3f2;
  border-radius: 13px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.extension-card {
  margin-top: 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  background: #f1f5ff;
  color: var(--blue);
}

.extension-card > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
}

.extension-card > div {
  flex: 1;
  display: grid;
  gap: 2px;
}

.extension-card small {
  color: #6e7890;
  font-size: 11px;
}

.extension-card strong {
  color: var(--ink);
  font-size: 19px;
}

.extension-card button {
  padding: 10px;
}

.profile-card {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1f5ff, #f7f8ff);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1769ff, #655cf6);
  font-size: 15px;
  font-weight: 750;
}

.profile-card > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.profile-card strong {
  font-size: 15px;
}

.profile-card small {
  color: #6d7890;
  font-size: 11px;
}

.settings-group {
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 15px;
  background: #fff;
}

.settings-row {
  width: 100%;
  min-height: 62px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #edf3ff;
}

.settings-row > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.settings-row strong {
  font-size: 13px;
}

.settings-row small {
  max-width: 250px;
  overflow: hidden;
  color: #7a849a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-state {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f8;
  color: #62708b;
  font-size: 12px;
  font-weight: 700;
}

.settings-state.is-enabled {
  background: #e8f8ef;
  color: #0c9a54;
}

.approval-content {
  padding-inline: 34px;
  text-align: center;
}

.approval-content .approval-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 8px auto 4px;
  place-items: center;
  border-radius: 20px;
  background: #eaf1ff;
  color: var(--blue);
}

.approval-content small {
  max-width: 330px;
  line-height: 1.7;
}

.settings-row--danger > span,
.settings-row--danger strong {
  color: var(--red);
}

.app-version {
  margin-top: 24px;
  color: #9ba3b3;
  font-size: 11px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.page--workflow {
  padding-bottom: 28px;
}

.workflow-form {
  display: grid;
  gap: 14px;
}

.workflow-card {
  padding: 16px;
  border: 1px solid #e8edf6;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(28, 52, 99, .055);
}

.workflow-line-card {
  display: grid;
  gap: 13px;
  background: linear-gradient(135deg, #f7faff, #fff);
}

.workflow-section-heading {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.workflow-section-heading > span {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.workflow-section-heading h2 {
  margin: 1px 0 0;
  font-size: 15px;
  letter-spacing: -.2px;
}

.workflow-section-heading p {
  margin: 5px 0 0;
  color: #727d93;
  font-size: 11px;
  line-height: 1.5;
}

.workflow-field {
  margin-top: 13px;
  display: grid;
  gap: 7px;
}

.workflow-card > .workflow-section-heading + .workflow-field {
  margin-top: 0;
}

.workflow-field > span {
  color: #33405a;
  font-size: 11px;
  font-weight: 700;
}

.workflow-field input,
.workflow-field select,
.workflow-field textarea,
.dtmf-row input,
.dtmf-row select,
.business-hour-row input[type="time"] {
  width: 100%;
  border: 1px solid #dfe6f1;
  border-radius: 11px;
  color: #141c31;
  background: #fbfcfe;
  font-size: 12px;
}

.workflow-field input,
.workflow-field select {
  height: 43px;
  padding: 0 11px;
}

.workflow-field textarea {
  min-height: 72px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.workflow-field input:focus,
.workflow-field select:focus,
.workflow-field textarea:focus,
.dtmf-row input:focus,
.dtmf-row select:focus,
.business-hour-row input:focus {
  border-color: rgba(7, 92, 255, .65);
  outline: 3px solid rgba(7, 92, 255, .1);
}

.workflow-field > small,
.workflow-publish-note {
  margin: 0;
  color: #818ba0;
  font-size: 10px;
  line-height: 1.5;
}

.workflow-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.workflow-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7a8498;
  font-size: 10px;
  font-weight: 700;
}

.workflow-status > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8afbd;
}

.workflow-status > span.is-live {
  color: #128856;
}

.workflow-status > span.is-live i {
  background: var(--green);
}

.workflow-status small {
  color: #7d879a;
  font-size: 10px;
  text-align: right;
}

.workflow-notice {
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  color: #1e5abd;
  background: #edf4ff;
}

.workflow-notice--warning {
  color: #8d5b00;
  background: #fff8e7;
}

.workflow-notice strong {
  display: block;
  font-size: 11px;
}

.workflow-notice p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.workflow-mode-panel {
  margin-top: 12px;
  padding: 13px;
  border-radius: 13px;
  background: #f4f7fc;
}

.workflow-mode-panel .workflow-field:first-child {
  margin-top: 0;
}

.workflow-help {
  margin: 0;
  color: #65728a;
  font-size: 10px;
  line-height: 1.55;
}

.workflow-help--warning {
  margin-bottom: 12px;
  color: #9a6100;
}

.extension-prompt-upload {
  margin: 12px 0 9px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fff;
}

.extension-prompt-upload > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.extension-prompt-upload strong {
  font-size: 11px;
}

.extension-prompt-upload small {
  overflow: hidden;
  color: #758096;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-upload-button {
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.workflow-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workflow-remove-audio {
  grid-column: 2;
  justify-self: end;
  color: #65728a;
  font-size: 9px;
  font-weight: 650;
}

.dtmf-grid {
  margin-top: 11px;
  display: grid;
  gap: 8px;
}

.dtmf-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1.45fr) minmax(0, .85fr);
  align-items: center;
  gap: 7px;
}

.dtmf-row > span {
  width: 27px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #e8f0ff;
  font-size: 11px;
  font-weight: 750;
}

.dtmf-row input,
.dtmf-row select {
  height: 36px;
  min-width: 0;
  padding: 0 8px;
  font-size: 10px;
}

.business-hours-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.business-hour-row {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.business-hour-row > span {
  color: #8a93a4;
  font-size: 10px;
}

.business-hour-row input[type="time"] {
  height: 35px;
  min-width: 0;
  padding: 0 5px;
  font-size: 10px;
}

.day-toggle {
  position: relative;
}

.day-toggle input {
  position: absolute;
  opacity: 0;
}

.day-toggle span {
  width: 43px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe6f1;
  border-radius: 9px;
  color: #788297;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.day-toggle input:checked + span {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf3ff;
}

.destination-editor {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f5;
}

.destination-editor:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.destination-editor:first-of-type {
  padding-top: 0;
}

.destination-editor .workflow-field {
  margin-top: 0;
}

.destination-target {
  margin-top: 9px !important;
  padding-left: 12px;
  border-left: 2px solid #dce7fb;
}

.workflow-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.workflow-field-grid .workflow-field {
  margin-top: 0;
}

.number-suffix {
  position: relative;
}

.number-suffix input {
  padding-right: 55px;
}

.number-suffix small {
  position: absolute;
  top: 15px;
  right: 10px;
  color: #8a93a4;
  font-size: 10px;
}

.workflow-toggle {
  position: relative;
  min-height: 58px;
  padding: 12px 49px 12px 0;
  display: block;
  border-top: 1px solid #edf0f5;
}

.workflow-field-grid + .workflow-toggle {
  margin-top: 14px;
}

.workflow-toggle > span {
  display: grid;
  gap: 4px;
}

.workflow-toggle strong {
  font-size: 11px;
}

.workflow-toggle small {
  color: #7b8599;
  font-size: 10px;
  line-height: 1.45;
}

.workflow-toggle input {
  position: absolute;
  opacity: 0;
}

.workflow-toggle > i {
  position: absolute;
  top: 17px;
  right: 0;
  width: 39px;
  height: 23px;
  border-radius: 20px;
  background: #d6dce6;
  transition: .18s ease;
}

.workflow-toggle > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 33, 68, .18);
  content: "";
  transition: .18s ease;
}

.workflow-toggle input:checked + i {
  background: var(--blue);
}

.workflow-toggle input:checked + i::after {
  transform: translateX(16px);
}

.workflow-toggle.is-disabled {
  opacity: .58;
}

.workflow-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9px;
}

.workflow-actions button {
  min-height: 47px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
}

.workflow-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.workflow-secondary {
  border: 1px solid #dbe3ef;
  color: #40506d;
  background: #fff;
}

.workflow-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(7, 92, 255, .2);
}

.workflow-publish-note {
  text-align: center;
}

.workflow-loading {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: #66728a;
  font-size: 11px;
}

.sheet-backdrop {
  position: absolute;
  z-index: 40;
  inset: 0;
  background: rgba(8, 18, 40, .38);
  backdrop-filter: blur(2px);
}

.bottom-sheet {
  position: absolute;
  z-index: 41;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 88dvh;
  padding: 10px 19px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -12px 50px rgba(10, 24, 55, .18);
  animation: sheet-up .22s ease-out;
}

@keyframes sheet-up {
  from { transform: translateY(20px); opacity: 0; }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 3px;
  background: #dce1ea;
}

.sheet-title {
  margin-bottom: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sheet-title h2 {
  margin: 0;
  font-size: 20px;
}

.sheet-title p {
  margin: 5px 0 0;
  color: #747f95;
  font-size: 12px;
}

.sheet-title button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f7;
}

.field {
  margin-bottom: 14px;
  display: grid;
  gap: 7px;
}

.field span {
  color: #46516a;
  font-size: 12px;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fbfcfe;
  outline: 0;
  font-size: 14px;
}

.field textarea {
  width: 100%;
  min-height: 82px;
  padding: 11px 13px;
  resize: vertical;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fbfcfe;
  outline: 0;
  font-size: 13px;
  line-height: 1.5;
}

.field > small {
  color: #79849a;
  font-size: 10px;
  line-height: 1.5;
}

.field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fbfcfe;
  outline: 0;
  font-size: 13px;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 92, 255, .09);
}

.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 92, 255, .09);
}

.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 92, 255, .09);
}

.sheet-loader {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.call-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.call-detail-grid > div {
  padding: 12px;
  display: grid;
  gap: 5px;
  border-radius: 11px;
  background: #f5f7fb;
}

.call-detail-grid small {
  color: #7d879a;
  font-size: 10px;
}

.call-detail-grid strong {
  font-size: 12px;
}

.detail-section {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0;
  font-size: 13px;
}

.detail-section p {
  color: #59647a;
  font-size: 12px;
  line-height: 1.6;
}

.insight-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.insight-tags span {
  padding: 6px 9px;
  border-radius: 12px;
  color: #345b9d;
  background: #edf3ff;
  font-size: 10px;
}

.insight-tags small {
  color: #808a9d;
  font-size: 11px;
}

.outcome-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.outcome-row > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e6f8ef;
}

.outcome-row > div {
  display: grid;
  gap: 4px;
}

.outcome-row strong {
  font-size: 13px;
}

.outcome-row small {
  color: #788297;
  font-size: 10px;
}

.live-route-card {
  margin-top: 35px;
}

.handoff-summary + .live-route-card {
  margin-top: 12px;
}

.dialer-grid {
  width: min(100%, 286px);
  margin: 10px auto 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 25px;
}

.dialer-grid button {
  width: 70px;
  height: 70px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  color: #111827;
  background: #eef1f5;
}

.dialer-grid button:active {
  transform: scale(.94);
  background: #dfe5ed;
}

.dialer-grid button strong {
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
}

.dialer-grid button small {
  min-height: 10px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.sheet-primary {
  width: 100%;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(7, 92, 255, .2);
  font-size: 13px;
  font-weight: 750;
}

.sheet-primary:disabled {
  cursor: wait;
  opacity: .58;
  box-shadow: none;
}

.transfer-form {
  display: grid;
  gap: 14px;
}

.transfer-availability {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #e6eaf2;
  border-radius: 13px;
}

.transfer-availability > div {
  min-height: 59px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #edf0f5;
}

.transfer-availability > div:last-child {
  border-bottom: 0;
}

.transfer-availability > div > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.transfer-availability strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-availability small {
  color: #79849a;
  font-size: 10px;
}

.transfer-availability i {
  padding: 4px 7px;
  border-radius: 999px;
  color: #7b8494;
  background: #eef1f5;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.transfer-availability i.is-available {
  color: #0a8a54;
  background: #e4f8ed;
}

.transfer-availability > p {
  margin: 0;
  padding: 18px 13px;
  color: #758097;
  text-align: center;
  font-size: 11px;
}

.team-member-form {
  display: grid;
  gap: 16px;
}

.team-member-fields {
  display: grid;
}

.team-member-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.team-permission-list {
  display: grid;
  gap: 9px;
}

.team-permission-list .workflow-toggle {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e7ecf4;
  border-radius: 13px;
}

.team-limit-note {
  margin: -2px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #66728a;
  font-size: 11px;
  line-height: 1.5;
}

.team-limit-note .icon {
  margin-top: 1px;
  color: var(--blue);
}

.keypad-value {
  width: 100%;
  height: 48px;
  margin-bottom: 5px;
  border: 0;
  background: transparent;
  text-align: center;
  color: #111827;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: 1px;
  outline: none;
}

.phone-dialer-form {
  padding-bottom: 3px;
}

.dial-contact-results {
  min-height: 31px;
  margin: -2px 0 4px;
}

.dial-contact-open {
  min-height: 31px;
  margin: 0 auto;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 10px;
  font-weight: 700;
}

.dial-contact-match {
  width: 100%;
  min-height: 41px;
  padding: 5px 9px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
}

.dial-contact-match > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #edf3ff;
  font-size: 9px;
  font-weight: 750;
}

.dial-contact-match strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dial-contact-match small {
  color: #778298;
  font-size: 9px;
}

.dialer-bottom-row {
  width: min(100%, 286px);
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  justify-content: space-between;
  align-items: center;
}

.dial-call-button {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20b86b;
  box-shadow: 0 10px 24px rgba(32, 184, 107, .28);
}

.dial-delete-button {
  width: 52px;
  height: 52px;
  justify-self: center;
  display: grid;
  place-items: center;
  color: #5d687a;
}

.dialer-caller-id {
  margin-top: 5px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  background: #f6f8fb;
}

.dialer-caller-id span {
  color: #687386;
  font-size: 11px;
  font-weight: 650;
}

.dialer-caller-id select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1a2434;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
}

.in-call-keypad {
  padding-bottom: 8px;
}

.dtmf-display {
  min-height: 33px;
  margin: 0 0 4px;
  overflow: hidden;
  color: #172033;
  text-align: center;
  font-size: 22px;
  letter-spacing: 4px;
}

.keypad-done-button {
  width: 100%;
  height: 46px;
  border-radius: 13px;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 13px;
  font-weight: 750;
}

.call-settings-form {
  display: grid;
  gap: 11px;
}

.contact-sync-panel {
  display: grid;
  gap: 13px;
}

.contact-sync-summary {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  background: #f4f7fc;
}

.contact-sync-summary > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: #e5edff;
}

.contact-sync-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-sync-summary strong {
  font-size: 13px;
}

.contact-sync-summary small {
  color: #748097;
  font-size: 10px;
  line-height: 1.4;
}

.contact-sync-help {
  margin: -2px 1px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #6f7a90;
  font-size: 10px;
  line-height: 1.5;
}

.synced-contact-list {
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid #e7ebf2;
  border-radius: 13px;
}

.synced-contact-list button {
  width: 100%;
  min-height: 55px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
}

.synced-contact-list button:last-child {
  border-bottom: 0;
}

.synced-contact-list button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.synced-contact-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.synced-contact-list small {
  color: #788399;
  font-size: 10px;
}

.synced-contact-list > p {
  margin: 0;
  padding: 20px 13px;
  color: #788399;
  text-align: center;
  font-size: 10px;
}

.contact-clear-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.settings-help {
  margin: 4px 2px 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #697489;
  font-size: 11px;
  line-height: 1.5;
}

.settings-help .icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.recording-player audio {
  width: 100%;
  margin-top: 8px;
}

.transfer-list {
  display: grid;
}

.transfer-list button {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.transfer-list button > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 4px;
}

.transfer-list strong {
  font-size: 13px;
}

.transfer-list small {
  color: #748097;
  font-size: 11px;
}

.role-option {
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e3e8f1;
  border-radius: 13px;
  text-align: left;
}

.role-option.is-selected {
  border-color: #9bb9ff;
  background: #f1f5ff;
}

.role-option > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: #eaf1ff;
}

.role-option > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.role-option strong {
  font-size: 13px;
}

.role-option small {
  color: #748097;
  font-size: 11px;
}

.text-button {
  width: 100%;
  margin-top: 13px;
  color: var(--blue);
  font-size: 12px;
}

.sheet-message {
  min-height: 14px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
}

.sheet-message.is-error {
  color: var(--red);
}

.toast {
  position: absolute;
  z-index: 60;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 20px;
  padding: 12px 15px;
  border-radius: 12px;
  color: #fff;
  background: rgba(12, 20, 38, .94);
  box-shadow: 0 10px 30px rgba(4, 11, 26, .18);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .18s ease;
}

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

@media (min-width: 560px) {
  .phone-shell {
    min-height: 100dvh;
    height: 100dvh;
  }

  .screen,
  .active-call,
  .incoming-call {
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
  }

  .page {
    padding-right: 24px;
    padding-left: 24px;
  }

  .mobile-app-header {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-height: 760px) {
  .active-avatar-ring {
    margin-top: 15px;
  }

  .call-controls {
    margin-top: 24px;
    gap: 17px 20px;
  }

  .call-control > span {
    width: 56px;
    height: 56px;
  }

  .building-pulse {
    width: 100px;
    height: 100px;
    margin-top: 15px;
    box-shadow: 0 0 0 13px rgba(7, 92, 255, .04), 0 0 0 27px rgba(7, 92, 255, .025);
  }

  .route-card {
    margin-top: 20px;
  }

  .route-option {
    min-height: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
