/* Trial setup — макет «Попробовать бесплатно» */
body.trial-setup-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fc;
  color: #0f172a;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
  padding-top: 68px;
}

.trial-setup-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 3.5rem;
}

/* Hero */
.trial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.trial-hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.trial-hero-text .trial-hero-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
}

.trial-hero-art {
  justify-self: end;
  width: min(100%, 320px);
  aspect-ratio: 1;
  position: relative;
}

.trial-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(99, 102, 241, 0.22));
}

/* Section labels */
.trial-section-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
}

.trial-section {
  margin-bottom: 2rem;
}

/* Topic cards */
.trial-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.trial-topic-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}

.trial-topic-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.trial-topic-card:has(input:checked) {
  border-color: #c4b5fd;
  background: #f5f3ff;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.14);
}

.trial-topic-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trial-topic-icon {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 10px;
}

.trial-topic-icon i {
  display: block;
  font-size: 45px;
  line-height: 1;
}

.trial-topic-icon .trial-topic-icon-svg {
  width: 45px;
  height: 45px;
  display: block;
  flex-shrink: 0;
}

.trial-topic-card:has(input:checked) .trial-topic-icon {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.trial-topic-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trial-topic-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.trial-topic-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}

.trial-topic-card:has(input:checked) .trial-topic-title {
  color: #0f172a;
}

.trial-topic-card:has(input:checked) .trial-topic-desc {
  color: #64748b;
}

/* Presets grid */
.trial-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.trial-preset-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.trial-preset-card--wide {
  grid-column: 1 / -1;
}

.trial-preset-icon {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: #7c3aed;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(99, 102, 241, 0.08));
}

.trial-preset-icon .trial-preset-icon-svg {
  width: 45px;
  height: 45px;
  display: block;
  flex-shrink: 0;
}

.trial-preset-body {
  flex: 1;
  min-width: 0;
}

.trial-preset-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.trial-preset-hint {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.trial-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 100%;
}

.trial-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.trial-mode-tab:hover {
  border-color: #c4b5fd;
}

.trial-mode-tab:has(input:checked) {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.trial-mode-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trial-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  user-select: none;
}

.trial-check-row input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.trial-check-row input[type="checkbox"]:checked {
  border-color: #7c3aed;
  background: #7c3aed;
  box-shadow: inset 0 0 0 3px #fff;
}

.trial-lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.trial-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.trial-field select,
.trial-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: #0f172a;
}

.trial-field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.94a.75.75 0 111.08 1.04l-4.24 4.5a.75.75 0 01-1.08 0l-4.24-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 1rem;
}

.trial-field input[type="text"] {
  background: #fff;
}

.trial-field select:focus,
.trial-field input[type="text"]:focus,
.trial-ai-panel textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.trial-voice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.trial-voice-row .trial-field {
  flex: 1;
  min-width: min(100%, 200px);
}

.trial-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.trial-btn-preview:hover:not(:disabled) {
  border-color: #7c3aed;
  color: #7c3aed;
}

.trial-btn-preview:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Клонирование голоса — как в личном кабинете */
.trial-clone-body .trial-preset-title {
  margin-bottom: 0.75rem;
}

.trial-clone-tips {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  margin-bottom: 1rem;
  color: #64748b;
}

.trial-clone-tips strong {
  color: #0f172a;
}

.trial-clone-tips ul {
  margin: 0.45rem 0 0 1.25rem;
  padding: 0;
}

.trial-clone-existing-block {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.04);
}

.trial-clone-existing-block[hidden] {
  display: none !important;
}

.trial-clone-mode-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.trial-clone-mode-fieldset legend {
  padding: 0;
}

.trial-clone-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.5rem;
}

.trial-clone-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.trial-clone-mode-option input {
  accent-color: #7c3aed;
}

.trial-clone-existing-picker {
  margin-top: 0.85rem;
}

.trial-clone-existing-picker[hidden] {
  display: none !important;
}

.trial-clone-existing-empty {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

.trial-clone-existing-empty[hidden] {
  display: none !important;
}

.trial-clone-mode-option input:disabled + span {
  opacity: 0.45;
  cursor: not-allowed;
}

.trial-clone-existing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.trial-field--grow {
  flex: 1 1 12rem;
  min-width: 0;
}

.trial-voice-upload-record-row[hidden],
.trial-clone-name-field[hidden] {
  display: none !important;
}

.trial-voice-upload-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1rem;
  width: 100%;
}

.trial-voice-upload-col {
  min-width: 0;
}

.trial-voice-upload-col--drop {
  display: flex;
  flex-direction: column;
}

.trial-voice-clone-step-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.trial-upload-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 1.5rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #fafbff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}

.trial-upload-zone:hover,
.trial-upload-zone:focus-visible {
  border-color: #a78bfa;
  background: #f5f3ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.trial-upload-zone.is-dragover {
  border-color: #7c3aed;
  background: #ede9fe;
}

.trial-upload-zone.is-filled {
  border-style: solid;
  border-color: #c4b5fd;
}

.trial-upload-zone-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}

.trial-upload-zone-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.trial-upload-zone-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.trial-clone-record-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.trial-clone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.trial-clone-btn:hover:not(:disabled) {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #faf5ff;
}

.trial-clone-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.trial-clone-record-status {
  font-size: 0.85rem;
  color: #64748b;
}

.trial-voice-form-panel {
  padding: 0.85rem;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  background: #f8fafc;
}

.trial-clone-prompts-panel {
  margin-top: 0;
}

.trial-clone-prompts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.trial-clone-prompts-head-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.trial-clone-prompts-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #64748b;
}

.trial-clone-prompts-lang select {
  min-width: 11rem;
  max-width: min(100%, 16rem);
  padding: 0.35rem 1.75rem 0.35rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
  font-size: 0.82rem;
  color: #0f172a;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.94a.75.75 0 111.08 1.04l-4.24 4.5a.75.75 0 01-1.08 0l-4.24-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.9rem;
}

.trial-clone-btn--generate {
  margin-bottom: 0.55rem;
  border-color: #c4b5fd;
  color: #6d28d9;
  background: #faf5ff;
}

.trial-clone-btn--generate:hover:not(:disabled) {
  border-color: #7c3aed;
  color: #fff;
  background: #7c3aed;
}

.trial-clone-prompts-note {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.trial-clone-prompts-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #475569;
}

.trial-clone-prompts-list:empty {
  display: none;
}

.trial-clone-name-field {
  margin-top: 0;
  max-width: 420px;
}

.trial-status-text {
  font-size: 0.78rem;
  color: #64748b;
}

/* AI panel */
.trial-ai-panel {
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.trial-ai-panel .trial-preset-card {
  border: none;
  box-shadow: none;
  padding: 0;
}

.trial-ai-panel .trial-preset-card + .trial-preset-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}

.trial-context-wrap {
  position: relative;
}

.trial-ai-panel textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.65rem 1.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #0f172a;
  line-height: 1.5;
}

.trial-char-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  font-size: 0.72rem;
  color: #94a3b8;
  pointer-events: none;
}

/* Launch bar */
.trial-launch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 0.5rem;
}

.trial-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: min(100%, 280px);
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--primary-gradient);
  box-shadow: var(--vf-shadow-primary-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trial-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--vf-shadow-primary-lg);
}

.trial-launch-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #64748b;
  max-width: 22rem;
  line-height: 1.4;
}

.trial-launch-note i {
  color: #22c55e;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Training / guide */
.trial-training-toolbar {
  position: fixed;
  top: 5.25rem;
  right: 1rem;
  z-index: 2499;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trial-setup-page .training-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trial-setup-page .training-btn:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
}

.trial-setup-page .training-btn[hidden] {
  display: none !important;
}

.trial-setup-page .training-btn-close {
  display: none;
  color: #64748b;
}

body.guide-active .trial-setup-page .training-btn-close {
  display: inline-flex;
}

.guide-highlight-target.is-highlighted {
  z-index: 2202;
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.85), 0 0 0 9999px rgba(15, 23, 42, 0.35);
}

.topic-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.topic-guide-overlay[hidden],
.topic-guide-tooltip[hidden],
.training-entry-hint[hidden] {
  display: none !important;
}

.topic-guide-tooltip {
  position: fixed;
  z-index: 2203;
  min-width: 260px;
  max-width: min(92vw, 420px);
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.topic-guide-tooltip-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.topic-guide-tooltip-close:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.topic-guide-tooltip p {
  margin: 0 2rem 0.7rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7c3aed;
}

.topic-guide-tooltip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.topic-guide-btn-primary,
.topic-guide-btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.topic-guide-btn-primary {
  color: #fff;
  background: var(--primary-gradient);
}

.topic-guide-btn-secondary {
  color: #64748b;
  background: #f1f5f9;
}

.topic-guide-btn-secondary:hover {
  background: #e2e8f0;
}

.training-entry-hint {
  position: fixed;
  z-index: 2498;
  max-width: min(92vw, 300px);
  padding: 0.65rem 2.1rem 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.training-entry-hint-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.training-btn.training-btn--attention {
  border-color: #7c3aed;
  animation: trialTrainingPulse 2.4s ease-in-out infinite;
}

@keyframes trialTrainingPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.55); }
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  margin-right: 0.35rem;
  animation: trialPulseDot 1s infinite;
  vertical-align: middle;
}

@keyframes trialPulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topic-guide-tooltip.is-entering {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.topic-guide-tooltip.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

@media (max-width: 960px) {
  .trial-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trial-hero {
    grid-template-columns: 1fr;
  }
  .trial-hero-art {
    justify-self: center;
    max-width: 260px;
  }
}

@media (max-width: 960px) {
  .trial-voice-upload-record-row {
    grid-template-columns: 1fr;
  }

  .trial-upload-zone {
    min-height: 10rem;
  }
}

@media (max-width: 640px) {
  .trial-training-toolbar {
    top: 4.75rem;
    right: 0.65rem;
    max-width: calc(100vw - 1.3rem);
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .trial-setup-page .training-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .trial-presets-grid,
  .trial-lang-row {
    grid-template-columns: 1fr;
  }
  .trial-launch-bar {
    flex-direction: column;
    text-align: center;
  }
}
