/* Member Chat — bolt-on styles (Lee design, 2026-11-02).
   Uses the portal's theme variables with fallbacks so it follows the
   Classic/Polished themes and the club color like the compiled UI. */

.mc-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9992;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line, #d8d2c4);
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20, 16, 8, 0.28);
}
.mc-launcher:hover { filter: brightness(1.08); }
.mc-launcher[hidden] { display: none; }

/* Member Chat keeps the bottom-right corner. When the admins' Support
   Chat launcher is also on screen, Support stacks above this launcher
   instead (see the body.sc-stack rules in support-chat.css). */

.mc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d43a2f;
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.mc-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 9993;
  width: min(92vw, 380px);
  max-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--paper, #fbf8f1);
  color: var(--ink, #26231d);
  border: 1px solid var(--line, #d8d2c4);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 16, 8, 0.3);
  overflow: hidden;
  font-family: inherit;
}
.mc-panel[hidden] { display: none; }

.mc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
}
.mc-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-headbtn {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
}
.mc-headbtn[hidden] { display: none; }
.mc-back { font-size: 20px; padding: 2px 10px; }

.mc-body {
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}

.mc-status {
  padding: 8px 12px;
  font-size: 13px;
  background: var(--paper2, #f1ead9);
  border-top: 1px solid var(--line, #d8d2c4);
}
.mc-status[hidden] { display: none; }

.mc-empty { color: var(--muted, #7a7263); font-size: 14px; padding: 8px 2px; }
.mc-hint { color: var(--muted, #7a7263); font-size: 13px; line-height: 1.45; }
.mc-banner {
  background: #fdf0ec;
  border: 1px solid #e3b5ab;
  color: #7c2d1e;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.mc-newbtn,
.mc-startbtn {
  border: 0;
  border-radius: 10px;
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.mc-startbtn:disabled { opacity: 0.5; cursor: default; }

.mc-conv {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line, #d8d2c4);
  background: #fff;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  color: inherit;
}
.mc-conv:hover { background: var(--paper2, #f6f1e4); }
.mc-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.mc-convmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-convname { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-convsub { color: var(--muted, #7a7263); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-convtime { color: var(--muted, #7a7263); font-size: 11.5px; white-space: nowrap; }
.mc-pill {
  background: #d43a2f;
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-sizing: border-box;
}

.mc-picklist { display: flex; flex-direction: column; gap: 6px; }
.mc-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line, #d8d2c4);
  background: #fff;
  border-radius: 12px;
  padding: 7px 10px;
  cursor: pointer;
  color: inherit;
}
.mc-pick.mc-picked { border-color: var(--clubs, var(--club, #8c1d2f)); background: var(--paper2, #f6f1e4); }
.mc-pickname { flex: 1; font-size: 14px; font-weight: 600; }
.mc-pickbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line, #d8d2c4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clubs, var(--club, #8c1d2f));
  font-weight: 800;
}
.mc-picked .mc-pickbox { border-color: var(--clubs, var(--club, #8c1d2f)); }

.mc-threadactions { display: flex; gap: 14px; justify-content: flex-end; }
.mc-textbtn {
  border: 0;
  background: none;
  color: var(--clubs, var(--club, #8c1d2f));
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
}

.mc-msg { display: flex; flex-direction: column; max-width: 85%; }
.mc-msg.mc-mine { align-self: flex-end; align-items: flex-end; }
.mc-meta { font-size: 11px; color: var(--muted, #7a7263); margin: 0 2px 2px; }
.mc-bubble {
  background: #fff;
  border: 1px solid var(--line, #d8d2c4);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.mc-mine .mc-bubble {
  background: var(--clubs, var(--club, #8c1d2f));
  border-color: transparent;
  color: #fff;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}

.mc-composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line, #d8d2c4);
  background: var(--paper2, #f6f1e4);
}
.mc-composer[hidden] { display: none; }
.mc-input {
  flex: 1;
  border: 1px solid var(--line, #d8d2c4);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  resize: none;
  background: #fff;
  color: inherit;
}
.mc-send {
  border: 0;
  border-radius: 10px;
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}
.mc-send:disabled { opacity: 0.5; }

.mc-select,
.mc-note {
  width: 100%;
  border: 1px solid var(--line, #d8d2c4);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
}

.mc-modhead { font-weight: 800; font-size: 14px; margin-top: 6px; }
.mc-report {
  border: 1px solid var(--line, #d8d2c4);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.mc-reportline { font-weight: 700; font-size: 13.5px; }
.mc-reportmeta { color: var(--muted, #7a7263); font-size: 12px; margin-top: 2px; }
.mc-reportnote { font-size: 13px; margin-top: 4px; }
.mc-reportactions { display: flex; gap: 14px; margin-top: 6px; }
.mc-susp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line, #d8d2c4);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
}

.mc-modfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--line, #d8d2c4);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted, #7a7263);
}

.mc-profile-tab { cursor: pointer; }

.mc-module-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  font-size: 14px;
}
.mc-module-label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.mc-module-note { color: var(--muted, #7a7263); font-size: 12.5px; }

@media (max-width: 560px) {
  .mc-panel { right: 8px; left: 8px; width: auto; bottom: 72px; }
  .mc-launcher { right: 12px; bottom: 12px; }
}

/* Standalone Messages app pointer card (2026-11-08). */
.mc-phone {
  position: relative;
  background: #fff;
  border: 1px dashed var(--line, #d8d2c4);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.mc-phone-x {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: none;
  font-size: 17px;
  line-height: 1;
  color: #6f6a5c;
  cursor: pointer;
  padding: 2px 5px;
}
.mc-phone-title { font-weight: 700; margin-bottom: 3px; }
.mc-phone-body { font-size: 13px; line-height: 1.45; }
.mc-phone-steps { font-size: 12px; color: #6f6a5c; margin-top: 4px; }
.mc-phone-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--clubs, var(--club, #8c1d2f));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
}

/* Group rename (Lee, 2026-11-08) */
.mc-renamewrap { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; }
.mc-renamewrap .mc-textbtn { min-height: 40px; padding: 8px 2px; }
.mc-rename-input {
  flex: 1;
  min-width: 130px;
  min-height: 40px;
  border: 1px solid var(--line, #d8d2c4);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
}
.mc-rename-error { color: #a31621; font-size: 13px; margin-top: 6px; }
