/* Temporary native-mobile shell dedicated to call-recording import. */
.mayak-call-recorder-only {
  display: none;
}

body.is-native-call-recorder.is-app-open {
  overflow: hidden !important;
}

body.is-native-call-recorder.is-app-open .mayak-call-recorder-only {
  position: fixed;
  z-index: 30000;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0, rgba(59, 108, 244, .2), transparent 42%),
    #f2f5fb;
  color: #17213f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.mayak-call-recorder-card {
  box-sizing: border-box;
  width: min(100%, 440px);
  display: grid;
  gap: 16px;
  padding: 24px 18px;
  border: 1px solid #dfe5f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(29, 48, 97, .14);
}

.mayak-call-recorder-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17213f;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.mayak-call-recorder-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #5637ef, #172b88);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.mayak-call-recorder-copy {
  display: grid;
  gap: 7px;
}

.mayak-call-recorder-copy h1,
.mayak-call-recorder-copy p {
  margin: 0;
}

.mayak-call-recorder-copy h1 {
  font-size: clamp(24px, 8vw, 34px);
  line-height: 1.05;
}

.mayak-call-recorder-copy p {
  color: #6d7894;
  font-size: 14px;
  line-height: 1.45;
}

.mayak-call-recorder-status {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid #cbd9fb;
  border-radius: 15px;
  background: #f0f5ff;
}

.mayak-call-recorder-status strong {
  color: #2859df;
  font-size: 15px;
}

.mayak-call-recorder-status span {
  color: #52617f;
  font-size: 12px;
  line-height: 1.4;
}

.mayak-call-recorder-status[data-tone="success"] {
  border-color: #9bd9bf;
  background: #edf9f4;
}

.mayak-call-recorder-status[data-tone="success"] strong {
  color: #087b57;
}

.mayak-call-recorder-status[data-tone="error"] {
  border-color: #f0b4bc;
  background: #fff1f3;
}

.mayak-call-recorder-status[data-tone="error"] strong {
  color: #b52d42;
}

.mayak-call-recorder-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #4f5d79;
  font-size: 12px;
  line-height: 1.4;
}

.mayak-call-recorder-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #3567f1;
}

.mayak-call-recorder-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mayak-call-recorder-actions button {
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ccd6e9;
  border-radius: 12px;
  background: #fff;
  color: #30405f;
  font: 800 12px/1.25 Inter, "Segoe UI", Arial, sans-serif;
}

.mayak-call-recorder-actions button.is-primary {
  grid-column: 1 / -1;
  border-color: #3567f1;
  background: #3567f1;
  color: #fff;
}

.mayak-call-recorder-actions button:disabled {
  opacity: .48;
}

.mayak-call-recorder-note {
  margin: 0;
  color: #7a859d;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .mayak-call-recorder-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .mayak-call-recorder-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .mayak-call-recorder-actions button.is-primary {
    grid-column: 1;
  }
}
