/* ============================================================
   MASTER VORTEX — Community panel (community.js companion styles)
   Palette matches styles.css: panel #070d18, edge #16283f,
   green #1ee308, red #ff3b47. Community accent: brand green.
   ============================================================ */

#commBtn { position: relative; }
.mvc-badge {
  position: absolute; top: -5px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #1ee308; color: #06130a;
  font-size: 10.5px; font-weight:400; line-height: 17px; text-align: center;
  display: none; pointer-events: none;
}
.mvc-badge.on { display: block; }

.mvc-panel {
  position: fixed; top: 52px; right: 12px; bottom: 44px; z-index: 60;
  width: 432px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column;
  background: var(--panel, #070d18);
  border: 1px solid var(--edge, #16283f); border-radius: 10px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .6);
  color: #dfe9f5; font-size: 13px; overflow: hidden;
}
.mvc-panel.hidden { display: none; }

.mvc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-bottom: 1px solid var(--edge, #16283f);
  background: var(--panel, #070d18);
}
.mvc-title { font-weight:400; letter-spacing: 1.2px; color: #1ee308; font-size: 13px; }
.mvc-me { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.mvc-name {
  background: transparent; border: none; color: #a9bed6; cursor: pointer;
  font-size: 12.5px; font-weight:400; font-family: inherit; padding: 2px 4px;
  max-width: 180px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mvc-name:hover { color: #fff; text-decoration: underline; }
.mvc-owner {
  font-size: 9.5px; font-weight:400; letter-spacing: .8px;
  background: rgba(30, 227, 8, .16); color: #1ee308;
  padding: 2px 6px; border-radius: 7px; flex: 0 0 auto;
}
.mvc-head .mvc-x {
  background: transparent; border: none; color: #8fa8c4;
  font-size: 17px; cursor: pointer; line-height: 1; padding: 2px 4px; flex: 0 0 auto;
}
.mvc-head .mvc-x:hover { color: #fff; }

.mvc-nameedit {
  display: flex; gap: 8px; padding: 6px 12px;
  border-bottom: 1px solid var(--edge, #16283f); background: #0a1524;
}
.mvc-nameedit.hidden { display: none; }
.mvc-nameedit input {
  flex: 1 1 auto; min-width: 200px; padding: 7px 8px;
  background: #070d18; color: #e8f2ff; border: 1.5px solid #1c3350;
  border-radius: 8px; font-size: 12.5px; font-family: inherit;
}
.mvc-nameedit button {
  background: transparent; color: #1ee308; border: 1.5px solid rgba(30, 227, 8, .55);
  border-radius: 8px; font-size: 12px; font-weight:400; letter-spacing: .6px;
  padding: 0 12px; cursor: pointer; font-family: inherit; flex: 0 0 auto;
}

.mvc-channels {
  display: flex; gap: 5px; padding: 6px 12px 0; flex-wrap: wrap;
}
.mvc-chan {
  background: #0a1524; color: #a9bed6; border: 1px solid #1c3350;
  border-radius: 14px; font-size: 12px; font-weight:400;
  padding: 4px 10px; cursor: pointer; font-family: inherit;
}
.mvc-chan:hover { color: #fff; border-color: #2c4a73; }
.mvc-chan.active { background: rgba(30, 227, 8, .14); color: #1ee308; border-color: rgba(30, 227, 8, .5); }

.mvc-pinned {
  margin: 6px 12px 0; padding: 6px 9px;
  background: rgba(30, 227, 8, .07); border: 1px solid rgba(30, 227, 8, .25);
  border-radius: 8px; color: #a9bed6; font-size: 12px; line-height: 1.45;
}
.mvc-pinned.hidden { display: none; }

.mvc-stream {
  flex: 1 1 auto; overflow-y: auto; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.mvc-empty { color: #5f7694; font-size: 12.5px; padding: 8px 0; }

.mvc-item { padding: 6px 0; border-bottom: 1px solid #0d1828; }
.mvc-item .mvc-line { display: flex; align-items: center; gap: 7px; }
.mvc-author { font-weight:400; color: #e8f2ff; font-size: 12.5px; }
.mvc-author.owner { color: #1ee308; }
.mvc-when { color: #5f7694; font-size: 11px; }
.mvc-del {
  margin-left: auto; background: transparent; border: none; color: #5f7694;
  font-size: 12px; cursor: pointer; padding: 0 2px; line-height: 1;
}
.mvc-del:hover { color: #ff3b47; }
.mvc-text { color: #dfe9f5; font-size: 13px; line-height: 1.5; word-break: break-word; padding-top: 1px; }
.mvc-item.deleted .mvc-tomb { color: #5f7694; font-style: italic; font-size: 12.5px; }
.mvc-link { color: #57b6ff; text-decoration: none; word-break: break-all; }
.mvc-link:hover { text-decoration: underline; }
.mvc-chip {
  background: rgba(87, 182, 255, .13); color: #57b6ff; border: 1px solid rgba(87, 182, 255, .4);
  border-radius: 6px; font-size: 12px; font-weight:400; font-family: inherit;
  padding: 0 5px; cursor: pointer; line-height: 1.5;
}
.mvc-chip:hover { background: rgba(87, 182, 255, .25); color: #fff; }

.mvc-msg { min-height: 15px; font-size: 12px; color: #8fa8c4; padding: 2px 12px 0; }
.mvc-msg.err { color: #ff3b47; }

.mvc-composer {
  display: flex; gap: 8px; padding: 10px 14px 12px;
  border-top: 1px solid var(--edge, #16283f);
}
.mvc-composer input {
  flex: 1 1 auto; min-width: 0; padding: 9px 10px;
  background: #0a1524; color: #e8f2ff; border: 1.5px solid #1c3350;
  border-radius: 8px; font-size: 13px; font-family: inherit;
}
.mvc-composer input::placeholder { color: #5f7694; }
.mvc-composer input:disabled { opacity: .55; }
.mvc-composer button {
  background: transparent; color: #1ee308; border: 1.5px solid rgba(30, 227, 8, .55);
  border-radius: 8px; font-size: 12.5px; font-weight:400; letter-spacing: .8px;
  padding: 0 16px; cursor: pointer; font-family: inherit;
}
.mvc-composer button:hover { background: rgba(30, 227, 8, .12); }
.mvc-composer button:disabled { opacity: .5; cursor: default; }

/* --- voice dictation mic (community.js creates the button only where
   the browser provides speech recognition) --- */
.mvc-composer .mvc-mic {
  flex: 0 0 auto; padding: 0 11px;
  background: #0a1524; color: #a9bed6; border: 1.5px solid #1c3350;
  font-size: 15px; line-height: 1; letter-spacing: 0;
}
.mvc-composer .mvc-mic:hover { background: rgba(30, 227, 8, .12); color: #fff; }
.mvc-composer .mvc-mic.listening {
  background: rgba(255, 59, 71, .18); color: #fff; border-color: #ff3b47;
  animation: mvc-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mvc-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, .45); }
  50% { box-shadow: 0 0 0 6px rgba(255, 59, 71, 0); }
}

@media (max-width: 900px) {
  .mvc-panel { top: 56px; right: 8px; left: 8px; bottom: 40px; width: auto; }
}

/* --- creator communities (Phase 1 + 1B, 2026-11-01) --- */
.mvc-managebtn {
  background: transparent; color: #57b6ff; border: 1.5px solid rgba(87, 182, 255, .5);
  border-radius: 8px; font-size: 11px; font-weight: 400; letter-spacing: .6px;
  padding: 3px 9px; cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.mvc-managebtn.hidden { display: none; }
.mvc-managebtn:hover { background: rgba(87, 182, 255, .12); }

.mvc-spaces { display: flex; gap: 5px; padding: 6px 12px 0; flex-wrap: wrap; }
.mvc-space {
  background: #0a1524; color: #dfe9f5; border: 1px solid #1c3350;
  border-radius: 8px; font-size: 12px; font-weight: 400;
  padding: 5px 9px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px;
}
.mvc-space:hover { border-color: #2c4a73; }
.mvc-space.active { background: rgba(87, 182, 255, .13); border-color: rgba(87, 182, 255, .55); color: #fff; }
.mvc-spacetag {
  font-size: 9px; letter-spacing: .8px; padding: 2px 5px; border-radius: 6px;
  background: rgba(30, 227, 8, .16); color: #1ee308;
}
.mvc-spacetag.creator { background: rgba(87, 182, 255, .18); color: #57b6ff; }

/* Invite-code join box removed by CEO order (Nov 4, 2026): no joining
   from inside the panel — paying subscribers are auto-enrolled. */

.mvc-creator {
  font-size: 9.5px; font-weight: 400; letter-spacing: .8px;
  background: rgba(87, 182, 255, .18); color: #57b6ff;
  padding: 2px 6px; border-radius: 7px; flex: 0 0 auto;
}
.mvc-pinbtn {
  background: transparent; border: none; cursor: pointer; font-size: 11px;
  padding: 0 2px; line-height: 1; opacity: .35; filter: grayscale(1);
}
.mvc-pinbtn:hover { opacity: .8; }
.mvc-pinbtn.on { opacity: 1; filter: none; }

/* --- Discord-style replies (2026-11-04): the ↩ sits on every
   message at rest (never hover-only, so touch/iPad can tap it),
   brightening on hover/focus; the quote block rides above a
   reply's text; the reply bar pins above the composer. --- */
.mvc-replybtn {
  background: transparent; border: none; cursor: pointer; font-size: 13px;
  color: #8fa8c4; padding: 2px 4px; line-height: 1; opacity: .65;
  min-width: 24px; min-height: 20px;
}
.mvc-replybtn:hover, .mvc-replybtn:focus-visible { opacity: 1; color: #1ee308; }
.mvc-quote {
  display: flex; align-items: baseline; gap: 6px; margin-top: 3px;
  padding: 3px 8px; border-left: 3px solid #1c3350; border-radius: 0 6px 6px 0;
  background: rgba(87, 182, 255, .06); font-size: 11.5px; line-height: 1.4;
  max-width: 100%;
}
.mvc-quote-arrow { color: #5f7694; flex: 0 0 auto; }
.mvc-quote-author { color: #a9bed6; font-weight: 600; flex: 0 0 auto; }
.mvc-quote-text {
  color: #5f7694; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0;
}
.mvc-replybar {
  display: flex; align-items: center; gap: 7px; margin: 8px 14px 0;
  padding: 6px 9px; border: 1px solid #1c3350; border-left: 3px solid #1ee308;
  border-radius: 8px; background: #0a1524; font-size: 12px; color: #a9bed6;
}
.mvc-replybar.hidden { display: none; }
.mvc-replybar-label { flex: 0 0 auto; }
.mvc-replybar-text {
  color: #5f7694; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; flex: 1 1 auto;
}
.mvc-replybar-x {
  margin-left: auto; flex: 0 0 auto; background: transparent; border: none;
  color: #5f7694; font-size: 12px; cursor: pointer; padding: 2px 4px; line-height: 1;
}
.mvc-replybar-x:hover { color: #ff3b47; }
.mvc-pins {
  margin: 6px 12px 0; padding: 6px 9px;
  background: rgba(87, 182, 255, .07); border: 1px solid rgba(87, 182, 255, .3);
  border-radius: 8px; color: #a9bed6; font-size: 12px; line-height: 1.45;
}
.mvc-pins.hidden { display: none; }

/* Issues & Fixes — status badge, fix note, owner controls */
.mvc-issue { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.mvc-statusbadge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .8px;
  padding: 2px 7px; border-radius: 7px; flex: 0 0 auto;
}
.mvc-statusbadge.open { background: rgba(255, 176, 32, .16); color: #ffb020; border: 1px solid rgba(255, 176, 32, .45); }
.mvc-statusbadge.fixed { background: rgba(30, 227, 8, .13); color: #1ee308; border: 1px solid rgba(30, 227, 8, .45); }
.mvc-fixnote { font-size: 12px; color: #9fe89a; }
.mvc-issuectl { margin-top: 5px; }
.mvc-statusbtn {
  background: transparent; color: #57b6ff; border: 1px solid rgba(87, 182, 255, .45);
  border-radius: 7px; font-size: 11px; letter-spacing: .4px;
  padding: 3px 9px; cursor: pointer; font-family: inherit;
}
.mvc-statusbtn:hover { color: #fff; border-color: #57b6ff; }
.mvc-statusbtn.go { color: #1ee308; border-color: rgba(30, 227, 8, .5); font-weight: 700; }
.mvc-fixform { display: flex; gap: 6px; margin-top: 6px; }
.mvc-fixform.hidden { display: none; }
.mvc-fixform input {
  flex: 1 1 auto; min-width: 0; background: #0a1524; color: #e6eef7;
  border: 1px solid #2c4a73; border-radius: 7px; font-size: 12px;
  padding: 5px 8px; font-family: inherit;
}

.mvc-livebox.hidden { display: none; }
.mvc-livebox { padding: 6px 12px 0; }
.mvc-livebox .mvl-banner { margin: 0; }
.mvc-livebox .mvl-stage { margin-top: 8px; }

.mvc-manage {
  border-top: 1px solid var(--edge, #16283f); background: #0a1524;
  max-height: 46%; overflow-y: auto; padding: 6px 14px 12px;
}
.mvc-manage.hidden { display: none; }
.mvc-msec { padding: 8px 0 2px; border-bottom: 1px solid #0d1828; }
.mvc-msec:last-child { border-bottom: none; }
.mvc-mtitle { font-size: 11px; letter-spacing: 1px; color: #57b6ff; padding-bottom: 6px; }
.mvc-mrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; font-size: 12.5px; color: #dfe9f5; }
.mvc-mrow input[type="text"], .mvc-mrow input[type="email"], .mvc-mrow input[type="number"] {
  flex: 1 1 auto; min-width: 0; padding: 7px 8px;
  background: #070d18; color: #e8f2ff; border: 1.5px solid #1c3350;
  border-radius: 8px; font-size: 12.5px; font-family: inherit;
}
.mvc-mrow input.mvc-num { flex: 0 0 70px; }
.mvc-mrow select {
  background: #070d18; color: #e8f2ff; border: 1.5px solid #1c3350;
  border-radius: 8px; font-size: 12.5px; font-family: inherit; padding: 6px;
}
.mvc-mrow label { display: inline-flex; align-items: center; gap: 6px; color: #a9bed6; font-size: 12px; }
.mvc-mname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-mbtn {
  background: transparent; color: #1ee308; border: 1.5px solid rgba(30, 227, 8, .55);
  border-radius: 8px; font-size: 11.5px; font-weight: 400; letter-spacing: .5px;
  padding: 5px 10px; cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.mvc-mbtn:hover { background: rgba(30, 227, 8, .12); }
.mvc-mbtn.danger { color: #ff3b47; border-color: rgba(255, 59, 71, .55); }
.mvc-mbtn.danger:hover { background: rgba(255, 59, 71, .12); }
.mvc-mbtn:disabled { opacity: .5; cursor: default; }
.mvc-mnote { color: #5f7694; font-size: 11.5px; line-height: 1.45; }
.mvc-mrow.hidden { display: none; }

/* --- photo/video attachments (Nov 2): + button, preview chip,
   inline media, lightbox --- */
.mvc-composer .mvc-attachbtn {
  flex: 0 0 auto; padding: 0 12px;
  background: #0a1524; color: #a9bed6; border: 1.5px solid #1c3350;
  font-size: 17px; line-height: 1; letter-spacing: 0;
}
.mvc-composer .mvc-attachbtn:hover { background: rgba(30, 227, 8, .12); color: #fff; }
.mvc-attachbar { padding: 8px 14px 0; }
.mvc-attachbar.hidden { display: none; }
.mvc-attachchip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  background: #0a1524; border: 1.5px solid #1c3350; border-radius: 8px;
  padding: 5px 8px 5px 5px;
}
.mvc-attachthumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.mvc-attachthumb.video {
  display: inline-flex; align-items: center; justify-content: center;
  background: #12233c; font-size: 19px;
}
.mvc-attachname {
  font-size: 12.5px; color: #dbe9fb; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 220px;
}
.mvc-attachsize { font-size: 11.5px; color: #8fa8c4; flex: 0 0 auto; }
.mvc-attachx {
  flex: 0 0 auto; background: transparent; border: none; color: #8fa8c4;
  font-size: 13px; cursor: pointer; padding: 2px 4px; font-family: inherit;
}
.mvc-attachx:hover { color: #fff; }
.mvc-media-img {
  display: block; max-width: min(420px, 100%); max-height: 300px;
  border-radius: 8px; margin-top: 6px; cursor: zoom-in; border: 1px solid #16283f;
}
.mvc-media-video {
  display: block; width: 100%; max-width: 420px; max-height: 320px;
  border-radius: 8px; margin-top: 6px; background: #000;
}
.mvc-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(2, 6, 12, .93);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.mvc-lightbox.hidden { display: none; }
.mvc-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
@media (max-width: 900px) {
  .mvc-attachname { max-width: 130px; }
}
/* --- emoji reactions (community.js renders the row under every
   message: chips toggle my reaction, the smiley button opens the
   picker; the picker floats above the row) --- */
.mvc-reactions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: 5px; position: relative;
}
.mvc-rchip {
  background: #12233c; border: 1px solid #1c3350; color: #dbe9fb;
  border-radius: 999px; padding: 1px 8px; font-size: 12.5px;
  line-height: 1.6; cursor: pointer; font-family: inherit;
}
.mvc-rchip:hover { border-color: rgba(30, 227, 8, .55); color: #fff; }
.mvc-rchip.mine {
  background: rgba(30, 227, 8, .14); border-color: rgba(30, 227, 8, .65);
  color: #fff;
}
.mvc-rcount { font-size: 11.5px; }
.mvc-reactbtn {
  background: transparent; border: 1px solid transparent; color: #dbe9fb;
  border-radius: 999px; padding: 1px 7px; font-size: 12.5px; line-height: 1.6;
  cursor: pointer; font-family: inherit; opacity: .55;
}
.mvc-reactbtn:hover { opacity: 1; background: #12233c; border-color: #1c3350; }
.mvc-reactplus { color: #1ee308; font-weight: 700; margin-left: 1px; }
.mvc-picker {
  position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30;
  display: flex; gap: 2px; padding: 4px;
  background: #0a1524; border: 1px solid #1c3350; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.mvc-pick {
  background: transparent; border: none; border-radius: 7px;
  font-size: 17px; line-height: 1.25; padding: 3px 5px; cursor: pointer;
}
.mvc-pick:hover { background: rgba(30, 227, 8, .12); }

/* --- Full emoji picker (2026-11-04): the 😊+ button opens a
   scrollable categorized box with the entire Unicode emoji set.
   It anchors above the reaction row like the quick picker did,
   but takes a panel-sized box of its own; the grid scrolls, the
   head (title + ✕) stays put. Touch: plain buttons, big enough
   to tap; the stream/panel tap-away and Escape close it. --- */
.mvc-picker-full {
  display: block; width: min(348px, 88vw); max-height: 330px;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 0 6px 6px;
}
.mvc-picker-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  padding: 7px 2px 5px; background: #0a1524;
}
.mvc-picker-title { color: #a9bed6; font-size: 11.5px; letter-spacing: .4px; }
.mvc-picker-x {
  margin-left: auto; background: transparent; border: none; color: #5f7694;
  font-size: 12px; cursor: pointer; padding: 2px 5px; line-height: 1;
}
.mvc-picker-x:hover { color: #ff3b47; }
.mvc-picker-cat {
  color: #5f7694; font-size: 10.5px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; padding: 7px 2px 3px;
}
.mvc-picker-grid { display: flex; flex-wrap: wrap; gap: 1px; }
.mvc-picker-full .mvc-pick {
  font-size: 19px; padding: 4px; min-width: 34px; min-height: 34px;
}
