/* =============================================================
   ec_cards.css
   Drop in:  static/css/ec_cards.css
   Add to base.html after the styles.css link:
   <link rel="stylesheet" href="{% static 'css/ec_cards.css' %}">
   ============================================================= */


/* ── EC-CARD ─────────────────────────────────────────────────
   Overrides styles.css  .event-card { height: 400px }
   Cards use height:100% so all cards in a row stretch equally.
   The col wrapper must be d-flex (already set in event_card.html).
   ─────────────────────────────────────────────────────────── */

.ec-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;      /* fill the d-flex col → equal height per row */
  min-height: 350px;
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
body.dark-mode .ec-card {
  background: rgba(18,18,18,0.92);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.55);
}
.ec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.ec-card--present { border-top: 3px solid #22c55e !important; }
.ec-card--future  { border-top: 3px solid #3b82f6 !important; }
.ec-card--past    { border-top: 3px solid #9ca3af !important; opacity: 0.84; }
.ec-card--rental  { border-top: 3px solid #f59e0b !important; }


/* ── Image ──────────────────────────────────────────────────── */

.ec-card__img-wrap {
  position: relative;
  width: 100%;
  height: 148px;
  overflow: hidden;
  background: #f0f2f5;
  flex-shrink: 0;
}
@media (max-width: 576px) { .ec-card__img-wrap { height: 124px; } }

.ec-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.ec-card:hover .ec-card__img { transform: scale(1.06); }

.ec-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #cbd5e1;
}


/* ── Badges ─────────────────────────────────────────────────── */

.ec-img-badge {
  position: absolute;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; line-height: 1.4;
}
.ec-img-badge--live {
  top: 8px; left: 8px;
  background: #22c55e; color: #fff;
  display: flex; align-items: center; gap: 5px;
}
.ec-live-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: ecLivePulse 1.3s ease-in-out infinite;
}
@keyframes ecLivePulse {
  0%,100% { opacity:1; transform:scale(1);   }
  50%     { opacity:.3; transform:scale(.6); }
}
.ec-img-badge--rental   { top: 8px; right: 8px; background: #f59e0b; color: #fff; }
.ec-img-badge--comments {
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.52); color: #fde68a;
  backdrop-filter: blur(4px);
}


/* ── Timeline strip ─────────────────────────────────────────── */
/*
   ALWAYS rendered (even when no load-in/out) so every card
   has the exact same fixed-height section → no misalignment.
   Fixed height guaranteed by min-height on .ec-timeline.
*/

.ec-timeline {
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 6px 10px 5px;
  flex-shrink: 0;
  min-height: 52px;             /* ← fixed height: same on all cards */
  display: flex;
  align-items: center;
}
body.dark-mode .ec-timeline {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.ec-timeline__track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.ec-timeline__track::-webkit-scrollbar { display: none; }

.ec-tl-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; flex-shrink: 0;
}

/* Dot — shared base */
.ec-tl-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.67rem; border: 2px solid;
  flex-shrink: 0; padding: 0; cursor: default;
}
.ec-tl-dot--clickable {
  cursor: pointer;
  transition: transform 0.14s, filter 0.14s;
}
.ec-tl-dot--clickable:hover  { transform: scale(1.22); filter: brightness(0.86); }
.ec-tl-dot--clickable:focus-visible {
  outline: 2px solid var(--msp-blue, #2daae1);
  outline-offset: 2px;
}

/* Colours */
.ec-tl-dot--in   { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.ec-tl-dot--show { background: #fef3c7; border-color: #f59e0b; color: #d97706; }
.ec-tl-dot--end  { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.ec-tl-dot--out  { background: #fdf4ff; border-color: #a855f7; color: #9333ea; }

body.dark-mode .ec-tl-dot--in   { background: rgba(59,130,246,0.17); }
body.dark-mode .ec-tl-dot--show { background: rgba(245,158,11,0.17); }
body.dark-mode .ec-tl-dot--end  { background: rgba(34,197,94,0.17);  }
body.dark-mode .ec-tl-dot--out  { background: rgba(168,85,247,0.17); }

/* Pulse ring on interactive dots */
.ec-tl-dot--in.ec-tl-dot--clickable  { animation: ecPulseIn  2.8s ease-in-out infinite; }
.ec-tl-dot--out.ec-tl-dot--clickable { animation: ecPulseOut 2.8s ease-in-out infinite 0.9s; }
@keyframes ecPulseIn {
  0%,100% { box-shadow: 0 0 0 0   rgba(59,130,246,.4); }
  55%     { box-shadow: 0 0 0 5px rgba(59,130,246,0);  }
}
@keyframes ecPulseOut {
  0%,100% { box-shadow: 0 0 0 0   rgba(168,85,247,.4); }
  55%     { box-shadow: 0 0 0 5px rgba(168,85,247,0);  }
}

/* Labels below dots */
.ec-tl-label {
  display: flex; flex-direction: column;
  align-items: center; line-height: 1.1;
}
.ec-tl-time {
  font-size: 0.62rem; font-weight: 700;
  color: #374151; text-align: center;
}
body.dark-mode .ec-tl-time { color: #e2e8f0; }
.ec-tl-name {
  font-size: 0.54rem; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Connecting lines — vertically centred on the 26px dots */
.ec-tl-line {
  flex: 1; height: 2px; min-width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.09), rgba(0,0,0,.02));
  margin: 0 3px;
  align-self: flex-start;
  margin-top: 12px;             /* (26px ÷ 2) - (2px ÷ 2) = 12px */
}
body.dark-mode .ec-tl-line {
  background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
}


/* ── Card body ──────────────────────────────────────────────── */

.ec-card__body {
  padding: 11px 13px;
  display: flex; flex-direction: column;
  gap: 6px; flex: 1;
}

.ec-card__title {
  font-size: 0.92rem; font-weight: 700;
  margin: 0; line-height: 1.3; color: #0f172a;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.dark-mode .ec-card__title { color: #f1f5f9; }

/* Client row */
.ec-card__client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px 10px;
  align-self: center;
  max-width: 100%;
  overflow: hidden;
}
body.dark-mode .ec-card__client {
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
}
.ec-card__client i { font-size: 0.85rem; color: #94a3b8; flex-shrink: 0; }
.ec-card__client-logo {
  width: 18px; height: 18px;
  object-fit: contain; border-radius: 3px; flex-shrink: 0;
}
.ec-card__client-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ec-card__venue {
  font-size: 0.74rem; color: #64748b;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap; overflow: hidden; min-height: 18px;
}
.ec-card__venue-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
}
.ec-card__city {
  display: flex; align-items: center; gap: 2px;
  white-space: nowrap; flex-shrink: 0; font-size: 0.71rem;
}

.ec-card__date {
  font-size: 0.76rem; font-weight: 600; color: #1d4ed8;
  display: flex; align-items: center; gap: 5px;
}
body.dark-mode .ec-card__date { color: #93c5fd; }


/* ── Main CTA ───────────────────────────────────────────────── */

.ec-card__open-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%; padding: 8px 0; margin-top: 2px;
  border-radius: 9px;
  background: var(--msp-blue, #2daae1);
  color: #fff !important; text-decoration: none !important;
  font-size: 0.83rem; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.13s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(45,170,225,.26);
}
.ec-card__open-btn:hover {
  background: var(--msp-dark-blue, #1c6b92);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(45,170,225,.36);
}


/* ── Secondary action row ───────────────────────────────────── */

.ec-actions {
  display: flex; align-items: center;
  gap: 5px; flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}
body.dark-mode .ec-actions { border-top-color: rgba(255,255,255,.07); }

.ec-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .12s, border-color .15s;
  position: relative; flex-shrink: 0;
}
.ec-btn:hover { transform: translateY(-2px); }

.ec-btn--pdf       { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.ec-btn--checklist { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.ec-btn--vehicles  { background: #faf5ff; color: #9333ea; border-color: #e9d5ff; }
.ec-btn--crew      { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }

.ec-btn--pdf:hover       { background: #ef4444; color: #fff; border-color: #ef4444; }
.ec-btn--checklist:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.ec-btn--vehicles:hover  { background: #9333ea; color: #fff; border-color: #9333ea; }
.ec-btn--crew:hover      { background: #ea580c; color: #fff; border-color: #ea580c; }

body.dark-mode .ec-btn--pdf       { background:rgba(239,68,68,.12);  border-color:rgba(239,68,68,.25);  }
body.dark-mode .ec-btn--checklist { background:rgba(22,163,74,.12);  border-color:rgba(22,163,74,.25);  }
body.dark-mode .ec-btn--vehicles  { background:rgba(147,51,234,.12); border-color:rgba(147,51,234,.25); }
body.dark-mode .ec-btn--crew      { background:rgba(234,88,12,.12);  border-color:rgba(234,88,12,.25);  }

.ec-count {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444; color: #fff;
  font-size: 0.52rem; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
  border: 1.5px solid #fff;
}
body.dark-mode .ec-count { border-color: rgba(18,18,18,.9); }


/* ── Dropdowns ──────────────────────────────────────────────── */

.ec-drop { position: relative; }
.ec-drop__menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.09); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.13);
  min-width: 170px; max-width: 215px;
  z-index: 400; overflow: hidden;
}
.ec-drop__menu.is-open {
  display: block;
  animation: ecDropUp .16s ease;
}
@keyframes ecDropUp {
  from { opacity:0; transform:translateX(-50%) translateY(7px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0);   }
}
body.dark-mode .ec-drop__menu { background:#1c1c2e; border-color:rgba(255,255,255,.09); }
.ec-drop__menu--wide { min-width: 195px; }

.ec-drop__hdr {
  font-size: .63rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #94a3b8;
  padding: 8px 12px 4px; border-bottom: 1px solid rgba(0,0,0,.06);
}
body.dark-mode .ec-drop__hdr { border-bottom-color: rgba(255,255,255,.06); }
.ec-drop__item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; transition: background .12s;
}
.ec-drop__item:hover { background: rgba(0,0,0,.03); }
body.dark-mode .ec-drop__item:hover { background: rgba(255,255,255,.04); }

.ec-veh-img  { width:40px; height:28px; object-fit:cover; border-radius:5px; flex-shrink:0; }
.ec-veh-icon {
  width:40px; height:28px; background:#f1f5f9; border-radius:5px;
  display:flex; align-items:center; justify-content:center;
  color:#94a3b8; flex-shrink:0;
}
.ec-veh-info { display:flex; flex-direction:column; gap:1px; overflow:hidden; }
.ec-veh-name { font-size:.78rem; font-weight:600; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.dark-mode .ec-veh-name { color:#f1f5f9; }
.ec-veh-plate { font-size:.65rem; color:#94a3b8; font-family:monospace; letter-spacing:.06em; }

.ec-crew-grid { display:flex; flex-wrap:wrap; gap:8px; padding:8px 12px; }
.ec-crew-member { display:flex; flex-direction:column; align-items:center; gap:2px; }
.ec-crew-img { width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid #e2e8f0; }
.ec-crew-placeholder {
  width:34px; height:34px; border-radius:50%;
  background: linear-gradient(135deg, var(--msp-blue,#2daae1), var(--msp-purple,#951b81));
  color:#fff; font-size:.67rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; border:2px solid #e2e8f0;
}
.ec-crew-name {
  font-size:.54rem; color:#64748b; max-width:38px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center;
}


/* ── Schedule modals ────────────────────────────────────────── */

.ec-modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

/* Modal header — clones the card gradient exactly so it looks native */
.ec-mhdr {
  padding: 18px 22px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
/* Subtle dot-pattern overlay matching the card headers */
.ec-mhdr::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* Exact gradient from lc-header */
.ec-mhdr--in  { background: linear-gradient(135deg, #1e3a8a 0%, #3b6cf8 60%, #60a5fa 100%); }
/* Exact gradient from lo-header */
.ec-mhdr--out { background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #34d399 100%); }

.ec-mhdr__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Icon box — matches lc-header-icon / lo-header-icon */
.ec-mhdr__icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.18);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.ec-mhdr__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ec-mhdr__sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Status badge — matches lc-status-badge / lo-status-badge */
.ec-mhdr__badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

/* Close button — glass style matching the card header aesthetic */
.ec-mhdr__close {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  line-height: 1;
}
.ec-mhdr__close:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.06);
}

/* Modal body — no padding, card fills it edge to edge */
.ec-modal-body { padding: 0; }

/* Strip col wrapper so card fills full modal width */
.ec-modal-body > div[class*="col"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide the card's own lc-header / lo-header inside the modal —
   the ec-mhdr above already shows that information */
.ec-modal-body .lc-header,
.ec-modal-body .lo-header { display: none !important; }

/* Let the card body fill the modal without card-level rounding/shadow */
.ec-modal-body .lc-card,
.ec-modal-body .lo-card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;  /* disable hover lift inside modal */
}


/* =============================================================
   UNIFORM COMMENT CARDS (ucc-)
   ============================================================= */

.ucc-card {
  display:flex !important; flex-direction:column !important;
  height:210px !important; overflow:hidden; border-radius:12px !important;
}
.ucc-header {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:9px 12px 7px; border-bottom:1px solid rgba(0,0,0,.06); flex-shrink:0;
}
body.dark-mode .ucc-header { border-bottom-color:rgba(255,255,255,.06); }
.ucc-subject {
  font-size:.75rem; font-weight:700; color:inherit; text-decoration:none;
  display:flex; align-items:center; gap:5px;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis; flex:1;
  transition:color .15s;
}
.ucc-subject:hover { color:var(--msp-blue,#2daae1); }
.ucc-subject-meta { color:#94a3b8; font-weight:400; font-size:.66rem; flex-shrink:0; }
.ucc-user { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.ucc-avatar { width:28px !important; height:28px !important; border-radius:50% !important; object-fit:cover !important; flex-shrink:0 !important; }
.ucc-avatar--placeholder {
  background:linear-gradient(135deg, var(--msp-blue,#2daae1), var(--msp-purple,#951b81));
  color:#fff; font-size:.61rem; font-weight:700;
  display:flex !important; align-items:center; justify-content:center;
}
.ucc-username { font-size:.71rem; font-weight:600; white-space:nowrap; }
.ucc-body { flex:1; display:flex; align-items:flex-start; gap:8px; padding:7px 12px; overflow:hidden; }
.ucc-thumb, .ucc-comment-img { width:44px; height:44px; object-fit:cover; border-radius:7px; flex-shrink:0; }
.ucc-text {
  font-size:.77rem; line-height:1.46; margin:0; color:#334155;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
body.dark-mode .ucc-text { color:#cbd5e1; }
.ucc-footer {
  display:flex; justify-content:space-between; align-items:center;
  padding:5px 12px 8px; font-size:.68rem; color:#94a3b8;
  border-top:1px solid rgba(0,0,0,.05); flex-shrink:0;
}
body.dark-mode .ucc-footer { border-top-color:rgba(255,255,255,.05); }
.ucc-likes { color:var(--msp-red,#e61873); font-weight:600; }


/* ── Home page nav tiles ────────────────────────────────────── */

.home-nav { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.home-nav__btn {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; width:86px; height:76px; border-radius:14px;
  text-decoration:none !important; font-size:.7rem; font-weight:700;
  border:2px solid; box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:transform .2s, box-shadow .2s;
}
.home-nav__btn i { font-size:1.45rem; line-height:1; }
.home-nav__btn:hover { transform:translateY(-3px); box-shadow:0 7px 18px rgba(0,0,0,.13); }
.home-nav__btn--events    { background:#fef3c7; color:#92400e !important; border-color:#fcd34d; }
.home-nav__btn--new       { background:#fee2e2; color:#991b1b !important; border-color:#fca5a5; }
.home-nav__btn--warehouse { background:#dbeafe; color:#1e3a8a !important; border-color:#93c5fd; }
.home-nav__btn--garage    { background:#dcfce7; color:#14532d !important; border-color:#86efac; }
.home-nav__btn--events:hover    { background:#fcd34d; }
.home-nav__btn--new:hover       { background:#fca5a5; }
.home-nav__btn--warehouse:hover { background:#93c5fd; }
.home-nav__btn--garage:hover    { background:#86efac; }
body.dark-mode .home-nav__btn--events    { background:rgba(245,158,11,.17); color:#fcd34d !important; border-color:rgba(245,158,11,.35); }
body.dark-mode .home-nav__btn--new       { background:rgba(220,38,38,.17);  color:#fca5a5 !important; border-color:rgba(239,68,68,.35);  }
body.dark-mode .home-nav__btn--warehouse { background:rgba(37,99,235,.17);  color:#93c5fd !important; border-color:rgba(59,130,246,.35); }
body.dark-mode .home-nav__btn--garage    { background:rgba(22,163,74,.17);  color:#86efac !important; border-color:rgba(34,197,94,.35);  }


/* ── Mobile comment tabs ────────────────────────────────────── */

.comments-tabs {
  display:flex; border-bottom:2px solid rgba(0,0,0,.08);
  margin-bottom:14px; overflow-x:auto; scrollbar-width:none;
}
.comments-tabs::-webkit-scrollbar { display:none; }
body.dark-mode .comments-tabs { border-bottom-color:rgba(255,255,255,.08); }
.comments-tab {
  flex:1; min-width:86px; padding:8px 10px;
  border:none; background:none; font-size:.78rem; font-weight:600; color:#64748b;
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px;
  transition:color .15s, border-color .15s; white-space:nowrap;
  display:flex; align-items:center; justify-content:center; gap:5px;
}
.comments-tab:hover { color:#374151; }
body.dark-mode .comments-tab:hover { color:#d1d5db; }
.comments-tab.active { color:var(--msp-blue,#2daae1); border-bottom-color:var(--msp-blue,#2daae1); }
.comments-tab-panel  { display:none; }
.comments-tab-panel.active { display:block; }
.comments-col-title {
  display:block; font-size:.86rem; font-weight:700;
  margin-bottom:.7rem; color:inherit; text-decoration:none; transition:color .15s;
}
.comments-col-title:hover { color:var(--msp-blue,#2daae1); }