/* Compose — the composer. The recorder card and the textarea swap in the same
 * slot; the two audiences stay pinned to the bottom of the screen.
 */

.ro-compose {
  background: var(--color-bg);
  padding: 66px 18px 14px;
  gap: 16px;
}

.ro-compose-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ro-compose-meta {
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.ro-compose-q {
  font-size: 24px;
  line-height: 1.18;
  text-wrap: pretty;
}

/* — Voice / Write it — */
.ro-compose-seg { align-self: flex-start; }
.ro-compose-seg .seg-opt {
  min-height: 40px;
  padding-inline: 20px;
}

/* — the recorder — */
.ro-compose-card {
  background: var(--color-surface);
  border-radius: 32px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ro-compose-time {
  font-size: 30px;
  line-height: 1;
  letter-spacing: .02em;
}

.ro-compose-rec {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--color-accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.ro-compose-rec:hover { background: var(--color-accent-600); }
.ro-compose-rec:active { background: var(--color-accent-700); }

/* Stop: the rounded square that replaces the mic mid-take. */
.ro-compose-stop {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--color-bg);
}

.ro-compose-hint {
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  text-align: center;
}

/* Only appears when the microphone could not be opened. */
.ro-compose-micnote {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-accent-700);
  text-align: center;
  max-width: 30ch;
}

/* — writing it instead. `textarea.` to outrank textarea.input's 90px floor. — */
textarea.ro-compose-text {
  min-height: 190px;
  border-radius: 26px;
  padding: 18px;
  font-size: 15px;
  line-height: 1.55;
  background: var(--color-surface);
}

/* — who hears it — */
.ro-compose-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ro-compose-last {
  font-size: 11.5px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
  text-align: center;
  padding-bottom: 2px;
}

.ro-compose-send {
  height: 52px;
  font-size: 15.5px;
}

.ro-compose-keep {
  height: 52px;
  font-size: 15px;
  gap: 9px;
  margin: 0;
}

.ro-compose-quiet {
  font-size: 11.5px;
  color: color-mix(in srgb, var(--color-text) 42%, transparent);
  text-align: center;
  line-height: 1.6;
}
