/* Voice note as a voice-message bubble (public/js/voice-bubble.js).
   Fixed width by design: fills its row (the 2-minute size) for every note;
   only the bars (from the recording's loudness) and the time vary. */
.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 150px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 14px 6px 6px;
  background: #eef3f9;
  border-radius: 22px;
}
.voice-bubble__play {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f3350;           /* journal navy */
  color: #fff;
  cursor: pointer;
}
.voice-bubble__play svg { width: 14px; height: 14px; fill: currentColor; }
.voice-bubble__play:hover { background: #2b4468; }
.voice-bubble__play:focus-visible,
.voice-bubble__wave:focus-visible { outline: 2px solid #c8952f; outline-offset: 2px; }
.voice-bubble__wave {
  flex: 1;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  border-radius: 4px;
}
.voice-bubble__wave b {
  flex: 1;
  min-width: 2px;
  max-width: 3px;
  border-radius: 2px;
  background: #cbd5e1;
}
.voice-bubble__wave b.on { background: #c8952f; }   /* played part: journal gold */
.voice-bubble__time {
  flex: none;
  font: 500 .78rem ui-monospace, 'JetBrains Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  min-width: 3.4ch;
  text-align: right;
}

/* A reviewer comment's attachments wherever the comment is shown
   (partials/_comment_attachments.blade.php). */
.comment-attachments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 4px;
}
.comment-attachments__voice { display: flex; width: 100%; max-width: 420px; }
.comment-attachments__img {
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: zoom-in;
}
