
.bbcode-quote{
  position:relative;
  border-left:none;
  border:1px solid rgba(37,99,235,.45);
  background:rgba(59,130,246,.14);
  padding:8px 10px;
  margin:7px 0;
  border-radius:0;
  box-shadow:0 6px 16px rgba(37,99,235,.10);
}

.bbcode-quote:before{
  content:"";
  position:absolute;
  left:16px;
  top:-7px;
  border:7px solid transparent;
  border-bottom-color:rgba(37,99,235,.45);
}

.bbcode-quote:after{
  content:"";
  position:absolute;
  left:17px;
  top:-6px;
  border:6px solid transparent;
  border-bottom-color:rgba(59,130,246,.14);
}

.bbcode-quote-head{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:800;
  opacity:.96;
  margin-bottom:4px;
}

.bbcode-quote-head:before{
  content:"❝";
  font-size:14px;
  line-height:1;
  opacity:.9;
}

.bbcode-quote-head .user-link,
.bbcode-quote-head .cmx-quote-user{
  font-weight:900 !important;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}

.bbcode-quote-head .cmx-quote-said{
  opacity:.92;
  font-weight:800;
}

.bbcode-quote-head .cmx-quote-jump,
.cmx-quote-media-fallback .cmx-quote-media-jump{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  color:#1d4ed8;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(37,99,235,.22);
  border-radius:0;
  padding:4px 8px;
}
.bbcode-quote-head .cmx-quote-jump:hover,
.cmx-quote-media-fallback .cmx-quote-media-jump:hover{ text-decoration:none; box-shadow:0 4px 12px rgba(37,99,235,.12); }
.bbcode-quote-head:has(.cmx-quote-jump){ cursor:pointer; }
.cmx-quote-media-fallback--jump{margin:6px 0 !important;}


.cmx-selectquote-bubble{
  position:absolute;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:0;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(15,23,42,.94);
  box-shadow:0 14px 32px rgba(2,6,23,.35);
  backdrop-filter:blur(8px);
}
.cmx-selectquote-bubble .cmx-sq-btn{
  appearance:none;
  border:0;
  color:#fff;
  background:transparent;
  font:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1;
  padding:6px 8px;
  border-radius:0;
  cursor:pointer;
  white-space:nowrap;
}
.cmx-selectquote-bubble .cmx-sq-btn:hover{ background:rgba(255,255,255,.12); }
.cmx-selectquote-bubble .cmx-sq-btn-quote{ background:rgba(59,130,246,.22); }
.cmx-selectquote-bubble .cmx-sq-btn-reply{ background:rgba(16,185,129,.18); }

.bbcode-quote.cmx-quote-collapsible{ position:relative; }
.bbcode-quote .cmx-quote-fold-body{ position:relative; }
.bbcode-quote.cmx-quote-collapsible.is-collapsed .cmx-quote-fold-body{
  max-height:140px;
  overflow:hidden;
}
.bbcode-quote.cmx-quote-collapsible.is-collapsed .cmx-quote-fold-body:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:52px;
  background:linear-gradient(180deg, rgba(59,130,246,0), rgba(59,130,246,.22) 70%);
  pointer-events:none;
}
.bbcode-quote .cmx-quote-toggle{
  margin-top:6px;
  border:1px solid rgba(37,99,235,.25);
  background:#fff;
  color:#1d4ed8;
  border-radius:0;
  padding:5px 8px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.bbcode-quote .cmx-quote-toggle:hover{ box-shadow:0 6px 14px rgba(37,99,235,.14); }
.bbcode-quote .cmx-qt-less{ display:none; }
.bbcode-quote.is-expanded .cmx-qt-less{ display:inline; }
.bbcode-quote.is-expanded .cmx-qt-more{ display:none; }


.bbcode-quote{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
  font-style:normal !important;
  color:var(--cmx-text, var(--text-color, var(--fg, #111827))) !important;
}
.bbcode-quote .bbcode-quote-head,
.bbcode-quote .bbcode-quote-head *{
  font-style:normal !important;
}


/* v479: quoted media uses a clear full-width jump button instead of showing media URL */
.cmx-quote-media-fallback--wide{
  max-width:min(100%,520px);
  margin:8px 0 !important;
}
.cmx-quote-media-fallback--wide .cmx-quote-media-jump{
  width:100%;
  min-height:40px;
  justify-content:center;
  box-sizing:border-box;
  border-radius:0;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(241,245,249,.92));
  border:1px solid rgba(37,99,235,.25);
  color:#1d4ed8;
  font-size:12px;
}
.cmx-quote-media-fallback--wide .cmx-quote-media-jump:before{content:"↗";font-size:12px;line-height:1;}
