.tool-page {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 48px 0 72px;
}
.tool-hero {
  margin-bottom: 28px;
}
.tool-eyebrow {
  margin: 0 0 10px;
  color: var(--accent, #7c5cff);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tool-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.tool-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted, #a7adc2);
  font-size: 1.05rem;
}
.converter-card,
.tool-content {
  border: 1px solid var(--border, #2b3040);
  border-radius: 20px;
  background: var(--card, #171b27);
  padding: clamp(20px, 4vw, 36px);
}
.converter-card h2,
.tool-content h2 {
  margin-top: 0;
}
.drop-zone {
  display: grid;
  min-height: 270px;
  place-content: center;
  gap: 10px;
  padding: 28px;
  border: 2px dashed var(--border, #48516b);
  border-radius: 16px;
  color: var(--muted, #a7adc2);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent, #7c5cff);
  background: rgba(124, 92, 255, .08);
  transform: translateY(-2px);
}
.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.drop-zone-icon {
  color: var(--accent, #7c5cff);
  font-size: 3rem;
  line-height: 1;
}
.drop-zone strong {
  color: var(--text, #f6f7fb);
  font-size: 1.15rem;
}
.choose-file,
.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.choose-file,
.primary-button {
  border: 0;
  background: var(--accent, #7c5cff);
  color: #fff;
}
.secondary-button {
  border: 1px solid var(--border, #48516b);
  background: transparent;
  color: var(--text, #f6f7fb);
}
.drop-zone small {
  color: var(--muted, #a7adc2);
}
.file-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.file-details > div,
.preview-panel,
.settings-panel,
.progress-panel,
.result-panel {
  margin-top: 18px;
  border: 1px solid var(--border, #2b3040);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .02);
}
.detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted, #a7adc2);
  font-size: .78rem;
  text-transform: uppercase;
}
.file-details strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-panel audio {
  width: 100%;
  margin-top: 6px;
}
.settings-panel {
  display: grid;
  gap: 12px;
}
.settings-panel h2,
.preview-panel h2,
.result-panel h2 {
  margin-bottom: 0;
}
.settings-panel select {
  width: min(100%, 360px);
  min-height: 44px;
  border: 1px solid var(--border, #48516b);
  border-radius: 10px;
  background: var(--surface, #10131c);
  color: var(--text, #f6f7fb);
  padding: 0 12px;
  font: inherit;
}
.settings-panel .primary-button,
.result-panel .primary-button {
  width: fit-content;
}
.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #7c5cff);
  transition: width .2s ease;
}
.progress-panel p,
.result-panel p {
  margin-bottom: 0;
  color: var(--muted, #a7adc2);
}
.result-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.result-panel h2,
.result-panel p {
  width: 100%;
}
.error-message {
  margin: 18px 0 0;
  border: 1px solid rgba(255, 94, 94, .55);
  border-radius: 12px;
  background: rgba(255, 94, 94, .1);
  color: #ffb4b4;
  padding: 14px;
}
.tool-content {
  margin-top: 24px;
  line-height: 1.75;
}
.tool-content li + li {
  margin-top: 8px;
}
@media (max-width: 640px) {
  .tool-page {
    width: min(100% - 24px, 980px);
    padding-top: 28px;
  }
  .file-details {
    grid-template-columns: 1fr;
  }
}