body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0b0c;
  color: #f2f2f2;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

h1 { margin: 8px 0 4px; font-size: 24px; }
.sub { opacity: 0.8; margin-bottom: 16px; }

.card {
  background: #141416;
  border: 1px solid #232327;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

label { display: block; margin: 8px 0 6px; opacity: 0.9; }

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a2a2f;
  background: #0f0f11;
  color: #fff;
  box-sizing: border-box;
}

/* ✅ FIX: disabled inputs stay dark (no white) */
input:disabled,
select:disabled,
textarea:disabled {
  background: #0f0f11;
  color: #fff;
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #2a2a2f;
  /* ChromeOS sometimes uses text-fill for disabled inputs */
  -webkit-text-fill-color: #fff;
}

/* keep placeholder subtle */
input::placeholder {
  opacity: 0.55;
}

.meta { margin: 6px 0 0; opacity: 0.65; font-size: 12px; }
#voiceMeta { display: none; }

.difficulty { display: flex; gap: 8px; margin: 12px 0; }

.diff {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid #2a2a2f;
  background: #0f0f11;
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.diff:active { transform: scale(0.99); }
.diff.active { border-color: #ffffff; }

#status { margin: 10px 0 8px; opacity: 0.85; }

/* Buttons */
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}
button:active { transform: scale(0.99); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

button.secondary {
  width: auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a2f;
  background: #0f0f11;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* === Controls row === */
.controlsRow {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
  margin-top: -2px;
}

.actionRow {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.actionBtn {
  flex: 1 1 0;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  background: #ffffff;
  color: #000;
  min-width: 200px;
}

.voiceBlock {
  width: 240px;
  flex: 0 0 240px;
  margin-left: 6px;
}

.voiceLabel {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.9;
  margin-bottom: 6px;
}

.voiceRow {
  display: flex;
  gap: 8px;
  align-items: center;
}

#voiceSelect {
  width: 96px;
  flex: 0 0 96px;
}

@media (max-width: 640px) {
  .controlsRow {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }
  .voiceBlock {
    width: 100%;
    flex: 1 1 auto;
    margin-left: 0;
  }
  #voiceSelect {
    width: 100%;
    flex: 1 1 auto;
  }
  .actionBtn { min-width: 0; }
}

/* Transcript */
.transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.bubble {
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
}

.bubble .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.bubble.prospect { background: #0f0f11; border: 1px solid #2a2a2f; }
.bubble.you { background: #1a1a1d; border: 1px solid #303035; }

.text { font-size: 15px; }
.text.muted { opacity: 0.55; font-style: italic; }

pre { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }

/* Paywall */
.hidden { display: none; }

.paywallGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.payOption {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2f;
  background: #0f0f11;
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.payOption:hover { border-color: #ffffff; }
.payOption:active { transform: scale(0.99); }

.payTitle { font-weight: 800; margin-bottom: 4px; }
.payPrice { opacity: 0.8; font-size: 13px; }

/* Transcript tools */
.transcriptTools {
  margin-top: 10px;
  border-top: 1px solid #2a2a2f;
  padding-top: 10px;
}

.transcriptEdit { width: 100%; resize: vertical; min-height: 70px; }

.toolRow { display: flex; gap: 8px; margin-top: 8px; }
.toolRow button { width: 100%; }

/* Soft entry animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fadeIn { animation: fadeInUp 220ms ease-out; }