/* Voice recorder module styles */
.voice-recorder-panel {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(calc(100vw - 104px), 420px);
  width: 100%;
  padding: 8px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(15,23,42,.88));
  border: 1px solid rgba(244,114,182,.16);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.voice-recorder-panel.show { display:flex; }
.voice-recorder-status {
  min-width: 0;
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.voice-recorder-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-recorder-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.2;
}
.voice-record-wave {
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:30px;
}
.voice-record-bar {
  width:4px;
  min-width:4px;
  border-radius:999px;
  background: linear-gradient(180deg, #fb7185, #ec4899);
  opacity:.72;
}
.voice-record-timer {
  font-size: 15px;
  font-weight: 800;
  min-width: 58px;
  text-align:right;
  white-space: nowrap;
  flex: 0 0 auto;
}
.voice-record-lock-hint {
  min-width: 138px;
  flex: 0 0 138px;
  display:flex;
  justify-content:flex-end;
}
.voice-record-swipe-track,
.voice-record-lock-pill {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  display:inline-flex;
  align-items:center;
  gap: 8px;
  box-shadow: none;
}
.voice-record-swipe-track {
  max-width: 100%;
}
.voice-record-swipe-arrow {
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}
.voice-record-swipe-text,
.voice-record-lock-pill {
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.voice-recorder-panel.is-cancel .voice-record-swipe-track {
  background: rgba(239,68,68,.16);
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}
.voice-recorder-panel.is-locked .voice-record-swipe-track { display:none; }
.voice-recorder-panel.is-locked .voice-record-lock-pill { display:inline-flex !important; }

@media (max-width: 720px) {
  .voice-recorder-panel {
    max-width: calc(100vw - 96px);
    gap: 8px;
    padding: 8px 10px;
  }
  .voice-record-lock-hint {
    min-width: 116px;
    flex-basis: 116px;
  }
  .voice-record-swipe-text,
  .voice-record-lock-pill,
  .voice-recorder-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .voice-recorder-panel {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .voice-record-lock-hint {
    min-width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .voice-record-timer {
    min-width: 48px;
  }
}
