#deep-mic-guide[hidden] {
  display: none;
}

#deep-mic-guide {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 21000;
}

.deep-mic-guide__backdrop {
  background: rgba(15, 23, 42, 0.78);
  inset: 0;
  position: absolute;
}

.deep-mic-guide__dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  box-sizing: border-box;
  max-height: calc(100vh - 36px);
  max-width: 820px;
  overflow: auto;
  padding: 30px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.deep-mic-guide__close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: flex;
  font-size: 25px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}

.deep-mic-guide__heading {
  align-items: center;
  display: flex;
  gap: 14px;
  padding-right: 42px;
}

.deep-mic-guide__blocked-icon {
  align-items: center;
  background: #fee2e2;
  border-radius: 50%;
  color: #dc2626;
  display: flex;
  flex: 0 0 52px;
  font-size: 23px;
  height: 52px;
  justify-content: center;
  position: relative;
  width: 52px;
}

.deep-mic-guide__blocked-icon::after {
  background: #dc2626;
  content: "";
  height: 3px;
  position: absolute;
  transform: rotate(-45deg);
  width: 34px;
}

.deep-mic-guide__heading h2 {
  color: #172033;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}

.deep-mic-guide__heading p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.deep-mic-browser {
  background: #e8edf4;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  margin-top: 22px;
  overflow: hidden;
}

.deep-mic-browser__toolbar {
  align-items: center;
  background: #d9e0e9;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.deep-mic-browser__dots {
  display: flex;
  gap: 6px;
}

.deep-mic-browser__dots span {
  background: #94a3b8;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.deep-mic-browser__address {
  align-items: center;
  background: #fff;
  border: 2px solid #ffc120;
  border-radius: 9999px;
  color: #334155;
  display: flex;
  flex: 1;
  font-size: 14px;
  gap: 10px;
  min-width: 0;
  padding: 8px 13px;
  position: relative;
}

.deep-mic-browser__site-control {
  align-items: center;
  background: #ffc120;
  border-radius: 50%;
  color: #1a1a1a;
  display: flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.deep-mic-browser__site-arrow {
  align-items: center;
  color: #dc2626;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  margin-left: -5px;
  white-space: nowrap;
}

.deep-mic-browser__site-arrow-graphic {
  animation: deep-mic-point-left 0.8s ease-in-out infinite;
  background: #dc2626;
  display: inline-block;
  height: 4px;
  position: relative;
  width: 44px;
}

.deep-mic-browser__site-arrow-graphic::before {
  border-bottom: 9px solid transparent;
  border-right: 13px solid #dc2626;
  border-top: 9px solid transparent;
  content: '';
  left: -2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.deep-mic-browser__site-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes deep-mic-point-left {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

.deep-mic-browser__body {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  padding: 22px;
}

.deep-mic-permission-card {
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 16px;
}

.deep-mic-permission-card__title {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 13px;
}

.deep-mic-permission-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.deep-mic-permission-row i {
  align-items: center;
  background: #f1f5f9;
  border-radius: 50%;
  color: #475569;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.deep-mic-permission-row span {
  color: #334155;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.deep-mic-permission-state {
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.deep-mic-permission-state--blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.deep-mic-permission-state--allow {
  background: #dcfce7;
  color: #15803d;
}

.deep-mic-browser__arrow {
  color: #f4b400;
  font-size: 26px;
  text-align: center;
}

.deep-mic-guide__steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.deep-mic-guide__step {
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 12px;
  color: #475569;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.4;
  padding: 12px;
}

.deep-mic-guide__step strong {
  color: #172033;
}

.deep-mic-guide__number {
  align-items: center;
  background: #ffc120;
  border-radius: 50%;
  color: #1a1a1a;
  display: flex;
  flex: 0 0 25px;
  font-size: 12px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.deep-mic-guide__status {
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 0;
  text-align: center;
}

.deep-mic-guide__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.deep-mic-guide__button {
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 20px;
}

.deep-mic-guide__button--primary {
  background: #ffc120;
  color: #1a1a1a;
}

.deep-mic-guide__button--secondary {
  background: #e2e8f0;
  color: #334155;
}

.deep-mic-guide__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 680px) {
  .deep-mic-guide__dialog {
    padding: 22px 16px;
  }

  .deep-mic-guide__heading h2 {
    font-size: 20px;
  }

  .deep-mic-browser__body {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .deep-mic-browser__arrow {
    transform: rotate(90deg);
  }

  .deep-mic-guide__steps {
    grid-template-columns: 1fr;
  }

  .deep-mic-browser__toolbar {
    padding: 10px;
  }

  .deep-mic-browser__dots {
    display: none;
  }

  .deep-mic-browser__address {
    font-size: 12px;
    gap: 6px;
    padding: 7px 9px;
  }

  .deep-mic-browser__site-arrow {
    margin-left: -2px;
  }

  .deep-mic-browser__site-arrow-graphic {
    width: 32px;
  }

  .deep-mic-guide__actions {
    flex-direction: column;
  }

  .deep-mic-guide__button {
    width: 100%;
  }
}
