/* ========================================
   VERBARA — HOME / FEED PAGE ONLY
   Load AFTER style.css on home.php
   ======================================== */

.timeline-page { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
@media (max-width: 480px) { .timeline-page { padding: 1rem 0.5rem 4rem; } }

/* ---------- Slim formatting toolbar ---------- */
.editor-toolbar-slim {
  display: flex;
   flex-wrap: wrap; 
  align-items: center;
  gap: 1px;
  margin-top: 6px;
  padding: 2px 4px;
  background: transparent;
  border-radius: 4px;
}

.slim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body,'Inter',sans-serif);
  color: var(--ink-soft);
  transition: all 0.12s;
}
.slim-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.editor-bold { font-weight: 700; }
.editor-italic { font-style: italic; font-family: Georgia,serif; }
.slim-clear {
  font-size: 11px;
  font-weight: 500;
  padding: 0 8px;
}

.slim-color {
  font-size: 14px;
  padding: 0 3px;
  line-height: 1;
}

.slim-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 4px;
  flex-shrink: 0;
}

.slim-icon {
  padding: 0 5px;
}
.slim-icon svg {
  display: block;
}
.slim-toggle {
  display: none;                /* hidden on desktop */
}

.toolbar-format-group {
  display: flex;
  align-items: center;
  gap: 1px;
}

@media (max-width: 480px) {
  /* … existing rules … */

  .slim-btn {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    padding: 0 3px;
  }

  .slim-color {
    font-size: 12px;     /* smaller dots */
  }

  .slim-clear {
    font-size: 10px;
  }

  .slim-sep {
    height: 12px;        /* smaller separators */
  }

  .editor-toolbar-slim {
    gap: 0;              /* tighter packing */
    padding: 2px 2px;
  }
  
    .slim-toggle {
    display: flex;              /* visible on mobile */
  }
  /* Hide formatting group by default */
  .toolbar-format-group {
    display: none;
  }
  /* When open, show the formatting group as a flex row that wraps */
  .toolbar-format-group.open {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    width: 100%;                /* force next line */
  }
  /* Adjust the slim toolbar itself for better wrapping */
  .editor-toolbar-slim {
    flex-wrap: wrap;
  }
  /* Make the toggle button a bit more obvious */
  .slim-toggle {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 2px;
  }
}

/* Composer container */
.composer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 18px 40px -28px rgba(74,18,110,0.35); }
.composer-top { display: flex; gap: 0.75rem; }
.composer-avatar { width: 42px; height: 42px; font-size: 1rem; }
.composer-top > div:last-child {
  position: relative;  /* ensures recording bar / preview position correctly */
}

/* Editor */
#editor { min-height: 44px; max-height: 300px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; line-height: 1.6; color: var(--ink); outline: none; background: var(--card); overflow-y: auto; word-wrap: break-word; cursor: text; }
#editor:empty::before { content: attr(data-placeholder); color: var(--ink-soft); pointer-events: none; display: block; }
#editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
#editor b, #editor strong { font-weight: 700; }
#editor i, #editor em { font-style: italic; }

.composer-actions { display: flex; justify-content: flex-end; margin-top: 0.85rem; }
.composer-post-btn { font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; padding: 0.55rem 1.4rem; border-radius: var(--radius-sm); border: none; background: var(--primary); color: #fff; cursor: pointer; transition: filter 0.15s; }
.composer-post-btn:hover { filter: brightness(1.05); }
.composer-post-btn:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

/* Post type selector */
.composer-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.type-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);      /* ← milder roundness, not full pill */
  border: 1px solid var(--line);       /* thin outline always visible */
  background: transparent;
  color: var(--ink-soft);              /* same ink tone as surrounding text */
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.type-btn:hover {
  background: var(--bg);               /* very light background on hover */
  color: var(--ink);                   /* slightly darker on hover */
}
.type-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.type-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 0.25rem;
  vertical-align: -3px;
}

@media (max-width: 480px) {
  /* Make each button a vertical column */
  .type-btn {
    flex-direction: column;   /* icon over text */
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.5rem;   /* tighter padding */
    font-size: 0.65rem;        /* slightly smaller label */
    gap: 2px;                  /* space between icon and text */
    min-width: 0;              /* allow shrinking */
    text-align: center;
  }

  /* Remove horizontal margin from the icon */
  .type-icon {
    margin-right: 0;
    width: 18px;
    height: 18px;
  }

  /* Reduce the overall row gap if needed */
  .composer-type-row {
    gap: 0.3rem;
  }
}

/* Media preview in composer */
.composer-preview { position: relative; margin-top: 0.85rem; }
.composer-preview img, .composer-preview video { max-width: 100%; max-height: 280px; border-radius: var(--radius-sm); display: block; }
.composer-preview-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.composer-preview-remove:hover { background: rgba(0,0,0,0.8); }

/* Post cards */
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.post-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem; }

.post-options { position: relative; margin-left: auto; }
.post-options-btn { background: none; border: none; cursor: pointer; color: var(--ink-soft); padding: 0.4rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.post-options-btn:hover { background: var(--primary-light); color: var(--primary); }
.post-options-btn svg { width: 18px; height: 18px; display: block; }
.post-options-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 28px -16px rgba(0,0,0,0.25); min-width: 170px; z-index: 20; overflow: hidden; }
.post-options-menu.open { display: block; }
.post-options-item { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; padding: 0.6rem 0.85rem; background: none; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: #B3261E; font-family: inherit; }
.post-options-item:hover { background: #FDECEA; }
.post-options-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.post-avatar { width: 42px; height: 42px; font-size: 1rem; text-decoration: none; }
.post-author-info a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.post-author-info a:hover { color: var(--primary); }
.post-meta { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

.post-body { font-size: 0.95rem; color: var(--ink); line-height: 1.6; margin: 0; word-wrap: break-word; }
.post-media { margin-top: 0.85rem; border-radius: var(--radius-sm); overflow: hidden; max-height: 500px; }
.post-media img, .post-media video { width: 100%; max-height: 500px; object-fit: contain; display: block; background: #000; }
.post-type-badge { font-size: 0.75rem; font-weight: 600; margin-bottom: 0.4rem; display: inline-block; background: var(--primary-light); color: var(--primary); padding: 0.15rem 0.65rem; border-radius: var(--radius-full); }

.post-stats { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.85rem; }

.post-card .post-actions { gap: 0.25rem; margin-top: 0.6rem; padding-top: 0.5rem; }
.post-card .post-action-btn { flex: 1; justify-content: center; gap: 0.45rem; padding: 0.55rem 0.5rem; }
.post-card .post-action-btn.helpful.liked { color: #B8860B; }
.post-card .post-action-btn.helpful.liked svg { fill: #F5A623; }

.post-card .post-comments { display: none; margin-top: 0.75rem; padding-top: 0.75rem; }
.post-card .post-comments.open { display: block; }
.post-card .comment-action-btn.helpful.liked { color: #B8860B; }
.post-card .comment-action-btn.helpful.liked svg { fill: #F5A623; }

.comment-input-wrap { margin-top: 0.5rem; }

/* Voice recording & playback */
.voice-recording-bar { display: none; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-full); }
.recording-dot { width: 10px; height: 10px; border-radius: 50%; background: #B3261E; flex-shrink: 0; animation: rec-pulse 1.2s infinite; }
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.recording-timer { font-size: 0.82rem; font-weight: 600; color: var(--ink); flex-shrink: 0; min-width: 34px; }
.recording-waveform { display: flex; align-items: center; gap: 3px; height: 22px; flex: 1; min-width: 0; }
.rec-bar { width: 3px; border-radius: 2px; background: #B3261E; flex-shrink: 0; height: calc(var(--h,0.3) * 100%); transition: height 0.1s ease; }
.recording-hint { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; color: var(--ink-soft); }
.lock-icon { width: 16px; height: 16px; transition: transform 0.1s ease; }
.hint-text { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.voice-recording-bar.canceling .recording-dot { background: var(--ink-soft); animation: none; }
.voice-recording-bar.canceling .rec-bar { background: var(--ink-soft); }
.voice-recording-bar.canceling .hint-text { color: #B3261E; }
.recording-controls { display: none; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.voice-recording-bar.locked .recording-hint { display: none; }
.voice-recording-bar.locked .recording-controls { display: flex; }
.recording-cancel-btn, .recording-stop-btn { width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.recording-cancel-btn { background: var(--line); color: var(--ink-soft); }
.recording-cancel-btn:hover { background: #FDECEA; color: #B3261E; }
.recording-cancel-btn svg { width: 15px; height: 15px; }
.recording-stop-btn { background: #B3261E; color: #fff; }
.recording-stop-btn:hover { background: #961F19; }
.recording-stop-btn svg { width: 13px; height: 13px; }
.comment-mic-btn { touch-action: none; user-select: none; }

.voice-preview-bar { display: none; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-full); }
.voice-preview-remove-btn { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--line); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.voice-preview-remove-btn:hover { background: #FDECEA; color: #B3261E; }
.voice-preview-remove-btn svg { width: 14px; height: 14px; }
.voice-preview-bar .comment-send-btn { flex-shrink: 0; }

.voice-bubble { display: flex; align-items: center; gap: 0.55rem; flex: 1; min-width: 0; }
.voice-play-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: filter 0.15s; }
.voice-play-btn:hover { filter: brightness(1.1); }
.voice-play-btn svg { width: 15px; height: 15px; }
.voice-bars { position: relative; flex: 1; height: 24px; min-width: 40px; }
.voice-bars-track, .voice-bars-progress { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.voice-bars-progress { pointer-events: none; }
.voice-bar { width: 3px; border-radius: 2px; height: calc(var(--h) * 100%); flex-shrink: 0; }
.voice-bars-track .voice-bar { background: var(--line); }
.voice-bars-progress .voice-bar { background: var(--primary); }
.voice-duration { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); flex-shrink: 0; min-width: 32px; text-align: right; }
.comment-bubble .voice-bubble { padding: 0.15rem 0; }

/* Filter bar */
.feed-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}
.feed-filter-select {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.2rem;
  cursor: pointer;
  outline: none;
}
.feed-filter-select:hover,
.feed-filter-select:focus {
  color: var(--primary);
}
.feed-filter-dot {
  color: var(--line);
  font-size: 0.85rem;
}

/* Voice reply CTA in comments */
.comment-voice-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  min-height: 92px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;

  background: linear-gradient(
    135deg,
    #faf6fd 0%,
    #f7effb 50%,
    #faf6fd 100%
  );

  border: 1px solid #eee2f5;
  border-radius: 2px;

  text-align: center;
  overflow: hidden;
}

.comment-voice-cta::before,
.comment-voice-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 105px;
  height: 32px;
  transform: translateY(-50%);

  opacity: 0.55;

  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      #c9a4df 3px,
      #c9a4df 4px,
      transparent 4px,
      transparent 7px
    );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
}
.comment-voice-cta::before {
  right: calc(50% + 105px);
}

.comment-voice-cta::after {
  left: calc(50% + 105px);
}
/* ---------- Record button ---------- */

.record-reply-btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-width: 146px;
  height: 38px;

  padding: 0 1.15rem;

  background: #ffffff;
  color: #6A1B9A;

  border: 1px solid #b77bd3;
  border-radius: 2px !important;

  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;

  cursor: pointer;

  box-shadow:
    0 3px 10px rgba(106, 27, 154, 0.12),
    0 1px 3px rgba(106, 27, 154, 0.08);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;

  touch-action: none;              /* was: manipulation */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.record-reply-btn:hover {
  background: #fdf9ff;
  border-color: #9d5fc0;

  box-shadow:
    0 5px 14px rgba(106, 27, 154, 0.16),
    0 1px 4px rgba(106, 27, 154, 0.08);

  transform: translateY(-1px);
}
.record-reply-btn:active {
  transform: translateY(0);
}

.record-reply-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.record-reply-btn.recording {
  background: #d32f2f;
  color: #ffffff;
  border-color: #d32f2f;

  box-shadow:
    0 4px 14px rgba(211, 47, 47, 0.25);
}

.record-reply-btn.recording:hover {
  background: #c62828;
  border-color: #c62828;
}

.comment-voice-cta::marker {
  display: none;
}

.comment-voice-cta .voice-helper-text {
  position: relative;
  z-index: 1;

  margin: 0;

  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 400;

  color: #766a80;
}


@keyframes record-btn-pulse {
  0%, 100% { box-shadow: 0 10px 22px -10px rgba(179,38,30,0.5), 0 0 0 4px #FDECEA; }
  50%      { box-shadow: 0 10px 22px -10px rgba(179,38,30,0.5), 0 0 0 8px #FDECEA; }
}


.type-instead-link {
  background: none;
  border: none;

  cursor: pointer;

  font-size: 0.78rem;
  font-weight: 500;

  color: #766a80;

  text-decoration: none;

  padding: 0.25rem 0.5rem;
  border-radius: 6px;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.type-instead-link:hover,
.type-instead-link:focus-visible {
  color: #6A1B9A;
  background: #f4eafa;
}

.comment-input-wrap.mode-type .comment-voice-cta{display:none;}
.comment-input-wrap.mode-voice .comment-input-row{display:none;}

.text-limit-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;

  padding: 1rem 0.75rem;

  background: #fef9f4;
  border: 1px solid #f3e5d2;
  border-radius: 10px;

  text-align: center;
}

.text-limit-text {
  margin: 0;

  font-size: 0.85rem;
  font-weight: 600;

  color: #b45309;
}

.limit-record-btn {
  background: #b45309;
  border-color: #b45309;

  color: #ffffff;
}
.limit-record-btn:hover {
  background: #92400e;
  border-color: #92400e;
}

.comment-input-wrap.mode-voice .comment-input-row {
  display: none;
}

.comment-input-wrap.mode-voice .comment-voice-cta {
  display: flex;
}

.comment-input-wrap.mode-type .comment-voice-cta {
  display: none;
}

.comment-input-wrap.mode-limited .text-limit-message {
  display: flex;
}

.comment-input-wrap.mode-limited .comment-input-row,
.comment-input-wrap.mode-limited .comment-voice-cta {
  display: none;
}



/* Teacher feedback */
.teacher-feedback-btn{ color:#1D6FA5 !important; }
.teacher-feedback-btn:hover{ background:#EAF3FB !important; color:#1D6FA5 !important; }

.comment-item[data-feedback-given="1"] .teacher-feedback-btn,
.comment-item[data-feedback-given="1"] .feedback-input-row{ display:none !important; }

.feedback-input-row{
  display:none; flex-direction:column; gap:0.5rem; margin-top:0.5rem;
  padding:0.6rem; background:#F5FAFD; border:1px solid #BFDFF2; border-radius:8px;
}
.feedback-input-row.open{ display:flex; }
.feedback-text-row{ display:flex; gap:0.5rem; }
.feedback-input{
  flex:1; font-size:0.82rem; padding:0.4rem 0.65rem;
  border:1px solid #BFDFF2; border-radius:8px; background:#fff;
}
.feedback-send-btn{
  font-size:0.78rem; font-weight:600; padding:0.4rem 0.85rem; border-radius:8px;
  border:none; background:#1D6FA5; color:#fff; cursor:pointer; flex-shrink:0;
}

.feedback-scores{ display:flex; flex-direction:column; gap:0.3rem; }
.score-row{ display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.score-label{ font-size:0.78rem; font-weight:600; color:var(--ink-soft); min-width:90px; }
.star-picker{ display:flex; gap:2px; }
.star-btn{ background:none; border:none; cursor:pointer; font-size:1.05rem; line-height:1; color:var(--line); padding:0 1px; }
.star-btn.filled{ color:#F5A623; }
.star-btn:hover{ color:#F5A623; }

.feedback-scores-display{ margin:0.3rem 0; display:flex; flex-direction:column; gap:0.2rem; }
.score-overall-row{ display:flex; align-items:center; gap:0.4rem; margin-bottom:0.15rem; }
.score-overall-label{ font-size:0.78rem; font-weight:700; color:#1D6FA5; }
.score-overall-num{ font-size:0.75rem; font-weight:600; color:var(--ink-soft); }
.score-display-row{ display:flex; align-items:center; gap:0.4rem; }
.score-display-label{ font-size:0.72rem; color:var(--ink-soft); min-width:80px; }
.static-star{ color:var(--line); font-size:0.85rem; }
.static-star.filled{ color:#F5A623; }

.teacher-feedback-list{ display:flex; flex-direction:column; gap:0.4rem; margin-top:0.4rem; }
.teacher-feedback-bubble{
  display:flex; align-items:flex-start; gap:0.5rem;
  background:#EAF3FB; border:1px solid #BFDFF2; border-radius:8px; padding:0.5rem 0.65rem;
}
.teacher-feedback-icon{ font-size:0.9rem; flex-shrink:0; line-height:1.4; }
.teacher-feedback-body{ flex:1; min-width:0; }
.teacher-feedback-author{ font-size:0.78rem; font-weight:700; color:#1D6FA5; text-decoration:none; }
.teacher-feedback-author:hover{ text-decoration:underline; }
.teacher-feedback-text{ font-size:0.83rem; color:var(--ink); margin:0.1rem 0 0; line-height:1.4; }
.teacher-feedback-remove{
  background:none; border:none; cursor:pointer; color:#1D6FA5; opacity:0.6;
  font-size:1rem; line-height:1; flex-shrink:0; padding:0 0.2rem;
}
.teacher-feedback-remove:hover{ opacity:1; }

/* Share menu */
.post-share-wrap{ flex:1; position:relative; }
.post-share-wrap .post-action-btn{ width:100%; }
.post-share-menu{
  display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%);
  background:var(--card); border:1px solid var(--line); border-radius:8px;
  box-shadow:0 12px 28px -16px rgba(0,0,0,0.25); min-width:170px; z-index:30; overflow:hidden;
}
.post-share-menu.open{ display:block; }
.post-share-item{
  display:flex; align-items:center; gap:0.5rem; width:100%; text-align:left;
  padding:0.6rem 0.85rem; background:none; border:none; cursor:pointer;
  font-size:0.85rem; font-weight:500; color:var(--ink); font-family:inherit;
}
.post-share-item:hover{ background:var(--primary-light); color:var(--primary); }
.post-share-item svg{ width:15px; height:15px; flex-shrink:0; }
.post-share-copied{ display:none; font-size:0.72rem; color:#1a7f37; font-weight:600; padding:0.4rem 0.85rem; }
.post-share-copied.show{ display:block; }

/* Optional media/mic buttons inside popup (unused but harmless) */
.toolbar-media-btn,
.toolbar-mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.toolbar-media-btn:hover,
.toolbar-mic-btn:hover {
  background: var(--primary-light);
  border-color: var(--line);
  color: var(--primary);
}

.post-voice { margin-top: 0.85rem; }

.comment-time {
  font-size: 0.75rem;
  color: #878a8c;
  margin-left: 6px;
}

.composer-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.composer-char-count {
  flex-shrink: 0;
  padding: 0 4px;
  margin-top: 6px; /* matches the toolbar's old top spacing */
  
  
}