/* dictation-launch-modal: промежуточная модалка выбора упражнения */
#dictation-launch-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100300;
}

#dictation-launch-modal.show {
  display: flex;
}

.dictation-launch-modal-content {
  max-width: 420px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #222;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dictation-launch-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px 20px;
}

.dictation-launch-modal-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.dictation-launch-modal-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.dictation-launch-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.dictation-launch-modal-close:hover {
  background-color: #f0f0f0;
  color: #555;
}

.dictation-launch-modal-close-icon {
  width: 22px;
  height: 22px;
}

.dictation-launch-modal-body {
  padding: 0 12px 12px 12px;
  max-height: 50vh;
  overflow-y: auto;
}

/* Пункт списка упражнений */
.dictation-launch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
}

.dictation-launch-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dictation-launch-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #666;
}

.dictation-launch-item-label {
  flex: 1;
  min-width: 0;
}

.dictation-launch-item-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #4f46e5;
}

.dictation-launch-item-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
