/* ==========================================================================
   Misc pages: FAQ, support / donate, custom payment, photo stream,
   instructional videos, rule book + voting, terms / privacy, network toast.
   Tokens from styles/modern.css. Prefix: ms-
   ========================================================================== */

/* ---------- Page shell ---------- */
.ms-page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  min-width: 0;
}
.ms-page--wide { max-width: 1180px; }
.ms-page--narrow { max-width: 680px; }

/* ---------- Hero ---------- */
.ms-hero {
  position: relative;
  margin: 8px 0 18px;
  padding: 28px 28px 26px;
  border-radius: var(--bc-r-lg, 22px);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(3, 195, 227, 0.13), transparent 70%),
    radial-gradient(520px 260px at 100% 0%, rgba(122, 58, 168, 0.12), transparent 70%),
    var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line);
  overflow: hidden;
}
.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-accent, #5b4bd1);
}
.ms-hero-title {
  margin: 0 0 8px !important;
  font-size: clamp(24px, 3.4vw, 32px) !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  color: var(--bc-ink, #0b0b10);
  text-wrap: balance;
}
.ms-hero-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bc-ink-2, #3a3a44);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--bc-ease, ease), filter 0.15s var(--bc-ease, ease), background-color 0.15s var(--bc-ease, ease);
  -webkit-tap-highlight-color: transparent;
}
.ms-btn:active { transform: scale(0.98); }
.ms-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.ms-btn--primary { color: var(--bc-on-ink) !important; background: var(--bc-ink, #0b0b10); }
.ms-btn--primary:hover { filter: brightness(1.3); }
.ms-btn--soft { color: var(--bc-ink, #0b0b10) !important; background: var(--bc-surface-2, #f6f6f8); box-shadow: inset 0 0 0 1px var(--bc-line-strong); }
.ms-btn--soft:hover { background: var(--bc-surface-3, #eeeef2); }
.ms-btn--brand { color: #fff !important; background: var(--bc-brand-grad); box-shadow: 0 10px 24px -12px rgba(91, 75, 209, 0.7); }
.ms-btn--brand:hover { filter: brightness(1.06) saturate(1.05); }
.ms-btn--block { width: 100%; }
.ms-btn--sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.ms-btn--danger { color: var(--bc-red, #e11d48) !important; background: rgba(225, 29, 72, 0.07); }
.ms-btn--danger:hover { background: rgba(225, 29, 72, 0.12); }

/* ---------- Search field ---------- */
.ms-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0 0;
  max-width: 560px;
}
.ms-search > i {
  position: absolute;
  left: 16px;
  font-size: 15px;
  color: var(--bc-faint, #9a9aa5);
  pointer-events: none;
}
.ms-search input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 46px 0 44px;
  border: 1px solid rgba(15, 15, 25, 0.12);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--bc-ink, #0b0b10);
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-1);
  transition: border-color 0.15s var(--bc-ease, ease), box-shadow 0.15s var(--bc-ease, ease);
  -webkit-appearance: none;
  appearance: none;
}
.ms-search input::-webkit-search-cancel-button { display: none; }
.ms-search input:focus { outline: none; border-color: var(--bc-accent, #5b4bd1); box-shadow: var(--bc-ring); }
.ms-search-clear {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--bc-muted, #6b6b76);
  background: transparent;
  cursor: pointer;
}
.ms-search-clear:hover { background: var(--bc-surface-2, #f6f6f8); color: var(--bc-ink); }
.ms-search-clear[hidden] { display: none; }

/* ---------- Chip nav ---------- */
.ms-chips {
  position: sticky;
  top: 60px;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0 -16px 10px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--bc-bg, #f4f4f6) 70%, rgba(244, 244, 246, 0));
}
.ms-chips::-webkit-scrollbar { display: none; }
.ms-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bc-ink-2, #3a3a44) !important;
  background: var(--bc-surface, #fff);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong);
  text-decoration: none !important;
  transition: background-color 0.15s var(--bc-ease, ease), color 0.15s var(--bc-ease, ease);
}
.ms-chip i { font-size: 12px; color: var(--bc-faint, #9a9aa5); }
.ms-chip:hover { background: var(--bc-surface-2, #f6f6f8); }
.ms-chip.is-active { color: var(--bc-on-ink) !important; background: var(--bc-ink, #0b0b10); box-shadow: none; }
.ms-chip.is-active i { color: rgba(255, 255, 255, 0.7); }
.ms-chip:focus-visible { outline: none; box-shadow: var(--bc-ring); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.ms-faq-status { min-height: 0; margin: 0 2px 6px; font-size: 13px; color: var(--bc-muted, #6b6b76); }
.ms-faq-status:empty { display: none; }
.ms-faq-section {
  margin: 0 0 16px;
  padding: 20px 20px 10px;
  border-radius: var(--bc-r-lg, 22px);
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-1), 0 0 0 1px var(--bc-line);
  scroll-margin-top: 118px;
}
.ms-faq-section[hidden] { display: none; }
.ms-faq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}
.ms-faq-section-title i {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--bc-accent, #5b4bd1);
  background: rgba(91, 75, 209, 0.09);
}
.ms-faq-list { display: flex; flex-direction: column; }
.ms-faq-item { border-radius: 12px; scroll-margin-top: 118px; }
.ms-faq-item[hidden] { display: none; }
.ms-faq-item + .ms-faq-item { box-shadow: 0 -1px 0 0 var(--bc-line); }
.ms-faq-q {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 40px 14px 8px;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.4;
  color: var(--bc-ink, #0b0b10);
  transition: background-color 0.2s var(--bc-ease, ease);
  -webkit-tap-highlight-color: transparent;
}
.ms-faq-q::-webkit-details-marker { display: none; }
.ms-faq-q::marker { content: ""; }
.ms-faq-q a[name] { position: absolute; top: -110px; }
.ms-faq-q::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--bc-faint, #9a9aa5);
  border-bottom: 2px solid var(--bc-faint, #9a9aa5);
  transform: rotate(45deg);
  transition: transform 0.25s var(--bc-ease, ease), top 0.25s var(--bc-ease, ease);
}
.ms-faq-item[open] > .ms-faq-q::after { transform: rotate(-135deg); top: 24px; }
.ms-faq-q:hover { background: rgba(91, 75, 209, 0.045); }
.ms-faq-q:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.ms-faq-item[open] > .ms-faq-q { color: var(--bc-accent, #5b4bd1); }
.ms-faq-a {
  padding: 0 8px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--bc-ink-2, #3a3a44);
  overflow-wrap: anywhere;
}
.ms-faq-item[open] > .ms-faq-a { animation: ms-faq-in 0.28s var(--bc-ease, ease); }
@keyframes ms-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ms-faq-a ul { margin: 8px 0; padding-left: 20px; }
.ms-faq-a li { margin: 3px 0; }
.ms-faq-a a { color: var(--bc-accent, #5b4bd1) !important; font-weight: 550; }
.ms-faq-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 4px 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.ms-faq-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-faq.is-searching .ms-faq-video { display: none; }
.ms-faq-tablewrap { margin: 8px 0 0; overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--bc-line); }
.ms-faq-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.ms-faq-table th { padding: 10px 12px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bc-muted); background: var(--bc-surface-2, #f6f6f8); }
.ms-faq-table td { padding: 10px 12px; vertical-align: top; border-top: 1px solid var(--bc-line); }
.ms-faq-table td:first-child { font-weight: 600; color: var(--bc-ink); width: 40%; }
.ms-faq-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.ms-faq-compare-col { padding: 14px 16px; border-radius: 14px; background: var(--bc-surface-2, #f6f6f8); font-size: 13.5px; }
.ms-faq-compare-col.is-ours { background: rgba(91, 75, 209, 0.06); box-shadow: inset 0 0 0 1px rgba(91, 75, 209, 0.18); }
.ms-faq-compare-col h5 { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.05em; color: var(--bc-ink); }
.ms-faq-stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bc-surface-2, #f6f6f8); }
.ms-faq-stat-num { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.ms-faq-stat-label { font-size: 13px; line-height: 1.4; color: var(--bc-muted); }
.ms-faq-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px; margin: 10px 0 0 !important; padding: 0 !important; list-style: none; }
.ms-faq-points li { display: flex; justify-content: space-between; gap: 10px; margin: 0 !important; padding: 8px 12px; border-radius: 10px; background: var(--bc-surface-2, #f6f6f8); font-size: 13px; }
.ms-faq-points b { font-weight: 650; color: var(--bc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 36px 20px;
  border-radius: var(--bc-r-lg, 22px);
  text-align: center;
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 1px var(--bc-line);
  color: var(--bc-muted);
  font-size: 14px;
}
.ms-faq-empty[hidden] { display: none; }
.ms-faq-empty i { font-size: 26px; margin-bottom: 6px; color: var(--bc-faint); }
.ms-faq-empty b { color: var(--bc-ink); font-size: 15px; }
.ms-faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--bc-r-lg, 22px);
  background: var(--bc-ink, #0b0b10);
  color: rgba(255, 255, 255, 0.72);
}
.ms-faq-contact > div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ms-faq-contact b { color: #fff; font-size: 15.5px; }
.ms-faq-contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-faq-contact .ms-btn--soft { color: #fff !important; background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.ms-faq-contact .ms-btn--soft:hover { background: rgba(255, 255, 255, 0.16); }
.ms-faq-contact .ms-btn--primary { color: var(--bc-ink) !important; background: var(--bc-surface); }

@media (max-width: 767px) {
  .ms-chips { position: relative; top: auto; background: none; }
  .ms-faq-section, .ms-faq-item { scroll-margin-top: 80px; }
}
@media (max-width: 600px) {
  .ms-hero { padding: 22px 18px 20px; border-radius: 18px; }
  .ms-faq-section { padding: 16px 12px 6px; border-radius: 18px; }
  .ms-faq-q { font-size: 14.5px; padding-right: 36px; }
  .ms-faq-compare { grid-template-columns: 1fr; }
  .ms-faq-contact { flex-direction: column; align-items: stretch; }
  .ms-faq-contact-actions .ms-btn { flex: 1 1 0; }
  .ms-faq-table td:first-child { width: auto; }
}

/* ==========================================================================
   Support / donate (functions_support.php, donate.php, custompayment.php)
   ========================================================================== */
.ms-btn--lg { min-height: 52px; font-size: 15px; border-radius: 14px; }
.ms-btn--paypal { color: #0b1f4a !important; background: #ffc439; }
.ms-btn--paypal:hover { filter: brightness(1.04); }
.ms-btn--paypal i { font-size: 17px; color: #003087; }
.ms-btn--light { color: var(--bc-ink) !important; background: var(--bc-surface); }
.ms-btn--light:hover { background: #f1f1f4; }

.ms-support-hero { padding-bottom: 22px; }
.ms-support-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.ms-support-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bc-ink-2);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong);
}
.ms-support-facts i { font-size: 12px; color: var(--bc-accent); }

.ms-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.ms-support-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.ms-support-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--bc-r-lg, 22px);
  overflow: hidden;
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line);
  transition: transform 0.3s var(--bc-ease, ease), box-shadow 0.3s var(--bc-ease, ease);
}
@media (hover: hover) {
  .ms-support-card:hover { transform: translateY(-2px); box-shadow: var(--bc-shadow-3), 0 0 0 1px var(--bc-line); }
  .ms-support-card:hover .ms-support-media img { transform: scale(1.04); }
}
.ms-support-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bc-surface-2); }
.ms-support-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--bc-ease, ease); }
.ms-support-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 18px 20px 20px; }
.ms-support-body .ms-btn { margin-top: auto; }
.ms-support-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bc-accent); }
.ms-support-title { margin: 0 !important; font-size: 19px !important; font-weight: 700 !important; letter-spacing: -0.02em; line-height: 1.25 !important; }
.ms-support-text { margin: 0 0 6px !important; font-size: 14px; line-height: 1.55; color: var(--bc-muted); }

.ms-support-donate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 260px);
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 22px;
  border-radius: var(--bc-r-lg, 22px);
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(212, 116, 79, 0.35), transparent 70%),
    radial-gradient(420px 220px at 0% 100%, rgba(3, 195, 227, 0.25), transparent 70%),
    #14121f;
  box-shadow: var(--bc-shadow-3);
}
.ms-support-donate .ms-support-title { color: #fff; }
.ms-support-donate .ms-support-text { color: rgba(255, 255, 255, 0.72); margin: 4px 0 0 !important; }
.ms-support-donate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
  color: #fff;
  background: var(--bc-brand-grad);
  box-shadow: 0 10px 24px -10px rgba(212, 116, 79, 0.8);
}
.ms-support-donate-actions { display: flex; flex-direction: column; gap: 8px; }
.ms-support-donate-actions form { margin: 0; }
.ms-support-donate--monthly { grid-template-columns: auto minmax(0, 1fr); }
.ms-support-donate--monthly .ms-support-monthly { grid-column: 1 / -1; margin: 0; }

.ms-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.ms-amounts-label { grid-column: 1 / -1; float: none; width: auto; margin: 0 0 2px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ms-amount { position: relative; margin: 0; cursor: pointer; }
.ms-amount input { position: absolute; opacity: 0; pointer-events: none; }
.ms-amount span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s var(--bc-ease, ease), box-shadow 0.15s var(--bc-ease, ease);
}
.ms-amount b { font-size: 20px; font-weight: 750; color: #fff; letter-spacing: -0.02em; }
.ms-amount small { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.ms-amount:hover span { background: rgba(255, 255, 255, 0.12); }
.ms-amount input:checked + span { background: var(--bc-surface); box-shadow: none; }
.ms-amount input:checked + span b { color: var(--bc-ink); }
.ms-amount input:checked + span small { color: var(--bc-muted); }
.ms-amount input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }

.ms-support-other { margin: 6px 0 0; }
.ms-support-subtitle { margin: 0 0 10px 4px !important; font-size: 15px !important; font-weight: 700 !important; color: var(--bc-ink); }
.ms-support-other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-support-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 1px var(--bc-line);
  text-decoration: none !important;
  color: var(--bc-muted) !important;
  font-size: 13px;
  line-height: 1.45;
  transition: box-shadow 0.2s var(--bc-ease, ease), transform 0.2s var(--bc-ease, ease);
}
.ms-support-tile i { margin-bottom: 6px; font-size: 16px; color: var(--bc-accent); }
.ms-support-tile b { font-size: 14.5px; color: var(--bc-ink); }
.ms-support-tile:hover { transform: translateY(-1px); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line-strong); }

@media (max-width: 767px) {
  .ms-support-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-support-donate { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .ms-support-donate-actions { grid-column: 1 / -1; }
  .ms-support-other-grid { grid-template-columns: minmax(0, 1fr); }
}
/* custompayment.php: the theme shrinks text inputs, keep them the checkout size */
.ms-cp .bc-co-field input { font-size: 16px !important; }
.ms-cp .ms-btn--lg { margin-top: 4px; }

/* ==========================================================================
   Shared bits: inputs, icon buttons, empty state, back link
   ========================================================================== */
.ms-input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(15, 15, 25, 0.13);
  border-radius: 12px;
  font: inherit;
  font-size: 16px !important;
  color: var(--bc-ink, #0b0b10);
  background: var(--bc-surface, #fff);
  transition: border-color 0.15s var(--bc-ease, ease), box-shadow 0.15s var(--bc-ease, ease);
  -webkit-appearance: none;
  appearance: none;
}
.ms-input:focus { outline: none; border-color: var(--bc-accent, #5b4bd1); box-shadow: var(--bc-ring); }
.ms-input--sm { height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px !important; background: var(--bc-surface-2, #f6f6f8); border-color: transparent; }
.ms-input--sm:focus { background: var(--bc-surface, #fff); }
select.ms-input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b76' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ms-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--bc-ink-2); }
.ms-icon-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--bc-muted, #6b6b76) !important;
  background: transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s var(--bc-ease, ease), color 0.15s var(--bc-ease, ease);
}
.ms-icon-btn:hover { background: var(--bc-surface-2, #f6f6f8); color: var(--bc-ink) !important; }
.ms-icon-btn--danger:hover { background: rgba(225, 29, 72, 0.08); color: var(--bc-red) !important; }
.ms-icon-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.ms-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 20px;
  border-radius: var(--bc-r-lg, 22px);
  text-align: center;
  color: var(--bc-muted);
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 1px var(--bc-line);
}
.ms-empty i { font-size: 28px; color: var(--bc-faint); }
.ms-empty b { color: var(--bc-ink); font-size: 15px; }
.ms-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-ink-2) !important;
  text-decoration: none !important;
}
.ms-back:hover { color: var(--bc-accent) !important; }
.ms-dot { margin: 0 6px; color: var(--bc-faint); }

/* ==========================================================================
   Photo stream (stream.php): masonry of photo cards + gallery lightbox
   ========================================================================== */
.ms-stream-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 18px; }
.ms-stream-head .ms-hero-title { margin: 0 !important; }
.ms-stream-head .ms-eyebrow { margin-bottom: 6px; }

.ms-stream-upload {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 20px;
  padding: 16px;
  border-radius: var(--bc-r-lg, 22px);
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line);
  animation: ms-faq-in 0.25s var(--bc-ease, ease);
}
.ms-stream-upload[hidden] { display: none; }
.ms-stream-upload-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ms-stream-upload-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.ms-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bc-surface-2, #f6f6f8);
  box-shadow: inset 0 0 0 1.5px var(--bc-line-strong);
  transition: box-shadow 0.15s var(--bc-ease, ease), background-color 0.15s var(--bc-ease, ease);
}
.ms-drop:hover, .ms-drop.is-over { background: rgba(91, 75, 209, 0.06); box-shadow: inset 0 0 0 1.5px var(--bc-accent); }
.ms-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ms-drop:focus-within { box-shadow: inset 0 0 0 1.5px var(--bc-accent), var(--bc-ring); }
.ms-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px; text-align: center; font-size: 12px; color: var(--bc-muted); pointer-events: none; }
.ms-drop-empty i { font-size: 24px; color: var(--bc-accent); margin-bottom: 4px; }
.ms-drop-empty b { font-size: 14px; color: var(--bc-ink); overflow-wrap: anywhere; }
.ms-drop-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ms-drop-preview[hidden] { display: none; }

.ms-stream { column-count: 3; column-gap: 16px; }
.ms-stream--single { column-count: 1; max-width: 640px; margin: 0 auto; }
.ms-shot {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--bc-r-lg, 22px);
  overflow: hidden;
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-1), 0 0 0 1px var(--bc-line);
  vertical-align: top;
}
.ms-stream .ms-shot-img.bc-gallery-tile {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: var(--bc-surface-3, #eeeef2);
}
.ms-stream .ms-shot-img.bc-gallery-tile img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}
.ms-shot-body { padding: 12px 14px 14px; }
.ms-shot-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ms-shot-avatar { flex: 0 0 auto; line-height: 0; }
.ms-shot-avatar img, .ms-shot-avatar .bc-av { margin: 0 !important; }
.ms-shot-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ms-shot-name { font-size: 14px; font-weight: 650; color: var(--bc-ink) !important; text-decoration: none !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-shot-name:hover { color: var(--bc-accent) !important; }
.ms-shot-meta { font-size: 12px; color: var(--bc-faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-shot-meta i { font-size: 11px; }
.ms-shot-meta a { color: var(--bc-muted) !important; }
.ms-shot-tools { display: flex; gap: 2px; margin-left: auto; }
.ms-shot-caption { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--bc-ink-2); overflow-wrap: anywhere; }
.ms-shot-comments { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ms-shot-comments:empty { display: none; }
.ms-comment { padding: 8px 12px; border-radius: 14px; background: var(--bc-surface-2, #f6f6f8); font-size: 13px; line-height: 1.45; }
.ms-comment.is-new { animation: ms-faq-in 0.3s var(--bc-ease, ease); }
.ms-comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.ms-comment-head a:first-child, .ms-comment-head b { font-weight: 650; color: var(--bc-ink) !important; text-decoration: none !important; }
.ms-comment-head span { font-size: 11.5px; color: var(--bc-faint); }
.ms-comment-del { margin-left: auto; font-size: 11.5px; color: var(--bc-faint) !important; }
.ms-comment-del:hover { color: var(--bc-red) !important; }
.ms-comment-text { color: var(--bc-ink-2); overflow-wrap: anywhere; }
.ms-shot-reply { position: relative; display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.ms-shot-reply.is-busy { opacity: 0.6; pointer-events: none; }
.ms-icon-btn--send { color: var(--bc-accent) !important; }
.ms-shot-note { margin: 10px 0 0 !important; font-size: 12px; color: var(--bc-muted); }
.ms-stream-pages { margin: 8px 0 0; }

@media (max-width: 1000px) { .ms-stream { column-count: 2; } }
@media (max-width: 600px) {
  .ms-stream { column-count: 1; }
  .ms-stream-upload { grid-template-columns: minmax(0, 1fr); }
  .ms-stream-head .ms-btn { padding: 0 14px; }
}
/* A photo file missing on disk: keep the card, drop the broken image */
.ms-stream .ms-shot-img.bc-gallery-tile[hidden] { display: none; }

/* ==========================================================================
   Instructional videos (instructionalvideos.php)
   ========================================================================== */
.ms-videos-filter {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 20px 0 0;
}
.ms-videos-field { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.ms-videos-field .ms-input { background-color: var(--bc-surface, #fff); }
.ms-videos-actions { display: flex; gap: 8px; }
.ms-videos-actions .ms-btn { min-height: 46px; }
.ms-videos-count { margin: 0 4px 10px !important; font-size: 13px; color: var(--bc-muted); }
.ms-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ms-video {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--bc-r-lg, 22px);
  overflow: hidden;
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-1), 0 0 0 1px var(--bc-line);
  transition: transform 0.3s var(--bc-ease, ease), box-shadow 0.3s var(--bc-ease, ease);
}
@media (hover: hover) {
  .ms-video:hover { transform: translateY(-2px); box-shadow: var(--bc-shadow-3), 0 0 0 1px var(--bc-line); }
  .ms-video:hover .ms-video-media img { transform: scale(1.04); }
  .ms-video:hover .ms-video-play { transform: translate(-50%, -50%) scale(1.08); }
}
.ms-video-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.ms-video-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--bc-ease, ease); }
.ms-video-media:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--bc-accent); }
.ms-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: rgba(11, 11, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--bc-ease-spring, ease);
}
.ms-video-play i { margin-left: 3px; }
.ms-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.ms-video-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.ms-video-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-video-by { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: auto; }
.ms-video-avatar { flex: 0 0 auto; line-height: 0; }
.ms-video-who { min-width: 0; font-size: 13px; line-height: 1.3; }
.ms-video-who a { display: block; font-weight: 600; color: var(--bc-ink) !important; text-decoration: none !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-video-who a:hover { color: var(--bc-accent) !important; }
.ms-videos-pages { margin: 18px 0 0; }

@media (max-width: 900px) {
  .ms-videos-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ms-videos-field--title { grid-column: 1 / -1; }
  .ms-videos-actions { grid-column: 1 / -1; }
  .ms-videos-actions .ms-btn { flex: 1 1 0; }
}
@media (max-width: 600px) {
  .ms-videos-filter { grid-template-columns: minmax(0, 1fr); }
  .ms-videos { grid-template-columns: minmax(0, 1fr); }
}
.ms-video-who > div { margin-top: 4px; line-height: 1; }
.ms-video-who > div > * { margin: 0 !important; }
.ms-input::placeholder { font-size: inherit; color: var(--bc-faint); }
.ms-video-who > div > span { display: inline-block; padding: 3px 8px !important; font-size: 11px !important; line-height: 1.2; border-radius: 999px !important; }

/* ==========================================================================
   Rule book (ruleset.php), voting (ruleset_vote.php + ruleset_vote_card.php),
   pending suggestions (ruleset_pending.php)
   ========================================================================== */
.ms-rules { min-width: 0; }
.ms-seg {
  display: flex;
  gap: 4px;
  margin: 0 12px 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 1px var(--bc-line), var(--bc-shadow-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.ms-seg::-webkit-scrollbar { display: none; }
.ms-seg-item {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bc-muted) !important;
  text-decoration: none !important;
  transition: background-color 0.15s var(--bc-ease, ease), color 0.15s var(--bc-ease, ease);
}
.ms-seg-item i { font-size: 12.5px; opacity: 0.8; }
.ms-seg-item:hover { color: var(--bc-ink) !important; background: var(--bc-surface-2); }
.ms-seg-item.is-active { color: var(--bc-on-ink) !important; background: var(--bc-ink); }
.ms-seg-item:focus-visible { outline: none; box-shadow: var(--bc-ring); }

.ms-rules-about { padding: 8px 4px 4px; }
.ms-rules-about-head { text-align: center; max-width: 620px; margin: 0 auto 24px; }
.ms-rules-about-head .ms-hero-lead { margin: 0 auto; }
.ms-rules-logo { width: min(360px, 80%); height: auto; margin: 8px auto 18px; display: block; }
.ms-rules-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ms-rules-h2 { margin: 0 0 6px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bc-ink); }
.ms-rules-note { margin: 0 0 12px !important; font-size: 13px; line-height: 1.5; color: var(--bc-muted); }
.ms-rules-weights { margin: 0 !important; padding: 0 !important; list-style: none; }
.ms-rules-weights li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 8px 4px; }
.ms-rules-weights li + li { box-shadow: 0 -1px 0 0 var(--bc-line); }
.ms-rules-weights-head { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bc-faint); }
.ms-rules-weights-belt { flex: 1 1 auto; min-width: 0; max-width: 220px; }
.ms-rules-weights b { font-size: 15px; font-weight: 700; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.ms-rules-legend { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none; }
.ms-rules-legend li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 !important; font-size: 13px; color: var(--bc-muted); }

.ms-verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ms-verdict i { font-size: 10.5px; }
.ms-verdict--yes { color: #15803d; background: rgba(22, 163, 74, 0.12); }
.ms-verdict--no { color: #be123c; background: rgba(225, 29, 72, 0.1); }
.ms-verdict--info { color: #1d4ed8; background: rgba(37, 99, 235, 0.1); }
.ms-verdict--pending { color: #b45309; background: rgba(245, 158, 11, 0.14); }

.ms-rules-card .content { min-width: 0; }
.ms-rules-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}
.ms-rules-cat span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--bc-muted);
  background: var(--bc-surface-3);
}
.ms-rule { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.ms-rule + .ms-rule { box-shadow: 0 -1px 0 0 var(--bc-line); }
.ms-rule--yesno, .ms-rule--points { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.ms-rule-text { min-width: 0; }
.ms-rule-name { display: inline-block; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--bc-ink) !important; text-decoration: none !important; }
.ms-rule-link i { margin-left: 4px; font-size: 11px; color: var(--bc-faint); transition: transform 0.2s var(--bc-ease, ease); }
.ms-rule-link:hover { color: var(--bc-accent) !important; }
.ms-rule-link:hover i { transform: translateX(2px); color: var(--bc-accent); }
.ms-rule-desc { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--bc-muted); }
.ms-rule-result { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 190px; max-width: 280px; text-align: right; outline: none; border-radius: 10px; }
.ms-rule-result:focus-visible { box-shadow: var(--bc-ring); }
.ms-rule-meta { font-size: 12px; line-height: 1.4; color: var(--bc-faint); font-variant-numeric: tabular-nums; }
.ms-rule-points { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ms-rule-points small { font-size: 13px; font-weight: 600; }
.ms-rule-points.is-pos { color: #15803d; }
.ms-rule-points.is-neg { color: #be123c; }
.ms-rule-points.is-zero { color: var(--bc-ink); }
.ms-rule-progress, .ms-rule-split { display: block; width: 100%; max-width: 180px; height: 5px; border-radius: 999px; overflow: hidden; background: var(--bc-surface-3); }
.ms-rule-progress span { display: block; height: 100%; border-radius: inherit; background: var(--bc-amber, #f59e0b); }
.ms-rule-split { background: rgba(225, 29, 72, 0.55); }
.ms-rule-split span { display: block; height: 100%; background: var(--bc-green, #16a34a); }

.ms-rule-belts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; }
.ms-belt-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 6px 10px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none !important;
  background: var(--bc-surface-2, #f6f6f8);
  box-shadow: inset 0 0 0 1px var(--bc-line);
  transition: transform 0.2s var(--bc-ease, ease), box-shadow 0.2s var(--bc-ease, ease), background-color 0.2s var(--bc-ease, ease);
}
.ms-belt-cell:hover { transform: translateY(-1px); background: var(--bc-surface, #fff); box-shadow: var(--bc-shadow-2), inset 0 0 0 1px var(--bc-line-strong); }
.ms-belt-cell:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.ms-belt-cell.is-yes { background: rgba(22, 163, 74, 0.06); }
.ms-belt-cell.is-no { background: rgba(225, 29, 72, 0.05); }
.ms-belt-swatch { display: block; width: 100%; max-width: 64px; height: 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(15, 15, 25, 0.12); }
.ms-belt--white { background: var(--bc-surface); }
.ms-belt--grey { background: #9ca3af; }
.ms-belt--yellow { background: #facc15; }
.ms-belt--orange { background: #f97316; }
.ms-belt--green { background: #16a34a; }
.ms-belt--blue { background: #2563eb; }
.ms-belt--purple { background: #7e22ce; }
.ms-belt--brown { background: #85672d; }
.ms-belt--black { background: #111; }
.ms-belt-cell-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ms-belt-cell-sub { font-size: 11px; color: var(--bc-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-belt-cell .ms-verdict { height: 22px; padding: 0 8px; font-size: 10.5px; }

/* Voting */
.ms-rv-me { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ms-rv-me-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ms-rv-me-name { font-size: 15px; font-weight: 650; color: var(--bc-ink); }
.ms-rv-me-belt { width: 140px; margin-top: 4px; }
.ms-rv-me-weight { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--bc-accent); background: rgba(91, 75, 209, 0.08); }
.ms-rv-lock { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #be123c; background: rgba(225, 29, 72, 0.07); }
.ms-rv-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 12px 12px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: #78350f; background: rgba(245, 158, 11, 0.12); }
.ms-rv-note i { margin-top: 3px; color: #d97706; }

.rv-card .ms-rv-q { margin: 0 0 6px !important; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--bc-ink); text-wrap: balance; }
.rv-card .ms-rv-desc { margin: 0 0 16px !important; font-size: 13.5px; line-height: 1.5; color: var(--bc-muted); }
.ms-rv-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-rv-choices--points { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-rv-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 16px;
  border: 0 !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700;
  color: var(--bc-ink) !important;
  background: var(--bc-surface-2) !important;
  box-shadow: inset 0 0 0 1.5px var(--bc-line-strong);
  cursor: pointer;
  transition: transform 0.15s var(--bc-ease, ease), background-color 0.15s var(--bc-ease, ease), box-shadow 0.15s var(--bc-ease, ease), opacity 0.2s var(--bc-ease, ease);
}
.ms-rv-btn:active { transform: scale(0.97); }
.ms-rv-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.ms-rv-btn > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ms-rv-btn small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.ms-rv-btn--yes { color: #15803d !important; box-shadow: inset 0 0 0 1.5px rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.06) !important; }
.ms-rv-btn--yes:hover { background: rgba(22, 163, 74, 0.12) !important; }
.ms-rv-btn--no { color: #be123c !important; box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, 0.3); background: rgba(225, 29, 72, 0.05) !important; }
.ms-rv-btn--no:hover { background: rgba(225, 29, 72, 0.1) !important; }
.ms-rv-btn--pts { min-width: 76px; min-height: 48px; }
.ms-rv-btn--pts:hover { background: var(--bc-surface-3) !important; }
/* Picked (also the classes rvCastVote adds while saving) */
.ms-rv-btn.is-prev.ms-rv-btn--yes, .ms-rv-btn--yes.bg-success { color: #fff !important; background: #16a34a !important; box-shadow: 0 10px 22px -12px rgba(22, 163, 74, 0.9); }
.ms-rv-btn.is-prev.ms-rv-btn--no, .ms-rv-btn--no.bg-danger { color: #fff !important; background: #e11d48 !important; box-shadow: 0 10px 22px -12px rgba(225, 29, 72, 0.9); }
.ms-rv-btn.is-prev.ms-rv-btn--pts, .ms-rv-btn--pts.bg-secondary { color: var(--bc-on-ink) !important; background: var(--bc-ink) !important; box-shadow: none; }
.ms-rv-btn[disabled] { cursor: default; }
.ms-rv-locked { pointer-events: none; opacity: 0.48; filter: grayscale(1); }
.ms-rv-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.ms-rv-skip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--bc-faint) !important; text-decoration: none !important; }
.ms-rv-skip:hover { color: var(--bc-ink) !important; background: var(--bc-surface-2); }

/* Pending suggestions */
.ms-sugg { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; }
.ms-sugg + .ms-sugg { box-shadow: 0 -1px 0 0 var(--bc-line); }
.ms-sugg-text { min-width: 0; flex: 1 1 auto; }
.ms-sugg-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--bc-ink); }
.ms-sugg-desc { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--bc-muted); }
.ms-sugg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--bc-faint); }
.ms-sugg-meta .ms-tag { padding: 2px 8px; border-radius: 999px; font-weight: 600; color: var(--bc-ink-2); background: var(--bc-surface-3); }
.ms-sugg-vote { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.ms-sugg-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--bc-muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--bc-ease, ease), color 0.15s var(--bc-ease, ease), transform 0.15s var(--bc-ease, ease);
}
.ms-sugg-btn:active { transform: scale(0.92); }
.ms-sugg-btn:hover { background: var(--bc-surface); color: var(--bc-ink); }
.ms-sugg-btn.is-up { color: #15803d; background: rgba(22, 163, 74, 0.12); }
.ms-sugg-btn.is-down { color: #be123c; background: rgba(225, 29, 72, 0.1); }
.ms-sugg-net { font-size: 16px; font-weight: 750; line-height: 1.3; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.ms-sugg-net.color-green-dark { color: #15803d !important; }
.ms-sugg-net.color-red-dark { color: #be123c !important; }
.ms-empty--flat { box-shadow: none; padding: 28px 12px; }

@media (max-width: 767px) {
  .ms-seg { margin: 0 8px 10px; }
  .ms-seg-item { flex: 0 0 auto; }
  .ms-rules-about-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-rule--yesno, .ms-rule--points { flex-direction: column; align-items: stretch; gap: 8px; }
  .ms-rule-result { align-items: flex-start; text-align: left; min-width: 0; max-width: none; }
  .ms-rule-belts { gap: 5px; }
  .ms-belt-cell { padding: 8px 2px; border-radius: 12px; }
  .ms-belt-cell .ms-verdict { padding: 0 6px; }
  .ms-belt-cell .ms-verdict i + * , .ms-belt-cell .ms-verdict { font-size: 0; gap: 0; }
  .ms-belt-cell .ms-verdict i { font-size: 11px; }
  .ms-belt-cell-label { font-size: 9.5px; letter-spacing: 0.02em; }
  .rv-card .ms-rv-q { font-size: 18px; }
}
@media (max-width: 480px) {
  .ms-belt-cell { position: relative; gap: 5px; }
  .ms-belt-cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ms-belt-swatch { height: 10px; }
}

/* ==========================================================================
   Network toast (scripts/custom.js: .offline-message / .online-message)
   Replaces the full-width uppercase bar from style.css.
   ========================================================================== */
.bc-net-toast.offline-message,
.bc-net-toast.online-message {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 70px);
  left: 50%;
  right: auto;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 10px 16px 10px 12px !important;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: -0.005em;
  text-align: left;
  color: #fff;
  background: rgba(20, 18, 31, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 14px 34px -12px rgba(11, 11, 16, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(0.96);
  transition: opacity 0.25s var(--bc-ease, ease), transform 0.35s var(--bc-ease-spring, ease);
}
.bc-net-toast i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
}
.bc-net-toast--off i { color: #fff; background: #e11d48; }
.bc-net-toast--on i { color: #fff; background: #16a34a; }
.bc-net-toast.offline-message-active,
.bc-net-toast.online-message-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.is-on-homescreen .bc-net-toast.offline-message,
.is-on-homescreen .bc-net-toast.online-message { padding-top: 10px !important; }
@media (prefers-reduced-motion: reduce) {
  .bc-net-toast.offline-message, .bc-net-toast.online-message { transition: opacity 0.2s linear; transform: translate(-50%, 0); }
}
.bc-net-toast.offline-message, .bc-net-toast.online-message { white-space: nowrap; }
@media (min-width: 768px) { .ms-chips { flex-wrap: wrap; overflow: visible; } }

/* ==========================================================================
   Legal pages (terms.php, privacy.php)
   ========================================================================== */
.ms-doc .ms-hero-lead a { color: var(--bc-accent) !important; font-weight: 600; }
.ms-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ms-doc-body {
  padding: 8px 28px 20px;
  border-radius: var(--bc-r-lg, 22px);
  background: var(--bc-surface, #fff);
  box-shadow: var(--bc-shadow-1), 0 0 0 1px var(--bc-line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bc-ink-2);
}
.ms-doc-section { padding: 18px 0 6px; }
.ms-doc-section + .ms-doc-section { box-shadow: 0 -1px 0 0 var(--bc-line); }
.ms-doc-h { margin: 0 0 10px !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.015em; color: var(--bc-ink); }
.ms-doc-body p { margin: 0 0 12px; }
.ms-doc-body ul { margin: 0 0 14px; padding-left: 22px; }
.ms-doc-body li { margin: 4px 0; }
.ms-doc-body a { color: var(--bc-accent) !important; }
@media (max-width: 600px) {
  .ms-doc-body { padding: 4px 18px 14px; font-size: 14.5px; border-radius: 18px; }
}
