/* MusicXen base layout. Theme colors come from the active theme pack
   (app/static/css/themes/<name>.css) via CSS custom properties. */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--mx-bg);
  background-image: var(--mx-bg-gradient);
  color: var(--mx-text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--mx-link); text-decoration: none; }
a:hover { color: var(--mx-link-hover); text-decoration: underline; }

/* ---------- header ---------- */
.mx-header {
  background-color: var(--mx-header-bg);
  border-bottom: 2px solid var(--mx-primary);
  box-shadow: 0 0 18px var(--mx-primary-glow);
}
/* Blue-gradient accent bar across the top of the header (2011 look).
   Only themes that define --mx-header-strip-img (currently blue2) render
   a bar; the div collapses to zero height otherwise. Bar dimensions and
   the logo overlap live in the theme stylesheet. */
.mx-header { position: relative; }
.mx-header-strip {
  background-image: var(--mx-header-strip-img, none);
  background-repeat: repeat-x;
}
.mx-header-inner {
  max-width: 1010px;
  margin: 0 auto;
  padding: 4px 12px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mx-logo img { height: 42px; width: auto; display: block; }
.mx-tagline { color: var(--mx-text-dim); font-size: 12px; font-style: italic; }

/* ---------- nav ---------- */
.mx-nav {
  background: var(--mx-nav-bg-gradient, var(--mx-nav-bg));
  border-bottom: 1px solid #000;
  border-top: 1px solid #555;
}
.mx-nav-inner {
  max-width: 1010px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--mx-nav-btn-gap, 0);
  align-items: center;
}
.mx-nav a {
  color: var(--mx-nav-text, var(--mx-text));
  background-color: transparent;
  background-image: var(--mx-nav-btn-bg-img, none);
  background-repeat: repeat-x;
  border: 1px solid var(--mx-nav-btn-border, transparent);
  text-shadow: var(--mx-nav-btn-text-shadow, none);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0.5px;
}
.mx-nav a:hover, .mx-nav a.active {
  color: var(--mx-nav-active-text, var(--mx-text-bright));
  background-color: var(--mx-primary);
  background-image: var(--mx-nav-btn-active-bg-img, none);
  background-repeat: repeat-x;
  text-decoration: none;
}
.mx-nav-toggle { display: none; }
/* v0.43.0: Help link far right in the minimal logged-out nav (per Clint) */
.mx-nav-minimal .mx-nav-help { margin-left: auto; }

/* ---------- container: content + sidebar (mirrors 2011: 806 + 200) ---------- */
.mx-container {
  max-width: 1010px;
  margin: 14px auto;
  padding: 0 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mx-content {
  flex: 1 1 806px;
  min-width: 0;
  background: var(--mx-panel);
  border: 1px solid var(--mx-border);
  border-radius: 4px;
  padding: 16px;
}
.mx-sidebar {
  flex: 0 0 200px;
  background: var(--mx-panel-alt);
  border: 1px solid var(--mx-border);
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
}
.mx-sidebar h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--mx-text-bright);
  border-bottom: 1px solid var(--mx-primary);
  padding-bottom: 6px;
  background-image: var(--mx-titlebar-bg-img, none);
  background-repeat: repeat-x;
}

/* ---------- panels / headings ---------- */
.mx-content h1, .mx-content h2 {
  color: var(--mx-text-bright);
  border-bottom: 1px solid var(--mx-primary);
  padding-bottom: 6px;
  margin-top: 0;
}
.mx-panel-box {
  background: var(--mx-panel-alt);
  border: 1px solid var(--mx-border-soft);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
}
.mx-hero {
  text-align: center;
  margin: 4px 0 14px;
}
.mx-hero img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--mx-border-soft);
  border-radius: 4px;
}

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  background: var(--mx-input-bg);
  border: 1px solid var(--mx-input-border);
  color: var(--mx-input-text);
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 14px;
  max-width: 100%;
}
.mx-btn {
  display: inline-block;
  background: var(--mx-btn-bg);
  color: var(--mx-btn-text);
  border: 1px solid var(--mx-btn-border);
  border-radius: 3px;
  padding: 9px 18px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}
.mx-btn:hover { filter: brightness(1.15); color: var(--mx-btn-text); text-decoration: none; }

/* ---------- footer ---------- */
.mx-footer {
  background: var(--mx-footer-bg);
  border-top: 2px solid var(--mx-primary);
  margin-top: 24px;
  padding: 16px 12px;
  text-align: center;
  color: var(--mx-text-dim);
  font-size: 12px;
}

/* ---------- responsive: mobile browsers ---------- */
/* v0.44.0: minimal nav compact on desktop too (per Clint) — the mobile
   media query hid these styles on desktop, leaving a tall gray bar */
.mx-nav .mx-nav-inner.mx-nav-minimal {
  /* v0.44.3: vertical stacked list, not horizontal bar (per Clint) */
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  padding: 4px;
  gap: 4px;
  background: #222;
  border: none;
  overflow: hidden;
}
.mx-nav.open .mx-nav-inner.mx-nav-minimal {
  display: flex;
}
/* Desktop: minimal nav always visible as horizontal bar (no hamburger) */
@media (min-width: 761px) {
  .mx-nav .mx-nav-inner.mx-nav-minimal {
    display: flex;
    flex-direction: row;
    background-image: url(/static/img/theme/blue2/TopMenuBack.png);
    background-size: 100% 100%;
    background-repeat: repeat-x;
    background-color: #333;
    padding: 0;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
  }
}
.mx-nav .mx-nav-inner.mx-nav-minimal > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  line-height: 1.2;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  box-sizing: border-box;
  /* v0.44.3: each item gets its own 3D button background */
  background-image: url(/static/img/theme/blue2/TopMenuBack.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #333;
  border: 1px solid #000;
  color: #fff;
  text-shadow: 2px 2px 3px #000;
  text-align: center;
}
@media (min-width: 761px) {
  .mx-nav .mx-nav-inner.mx-nav-minimal > a {
    background: none;
    border: none;
    font-size: 11px;
    padding: 0 12px;
    line-height: 1;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    overflow: hidden;
  }
}
.mx-nav .mx-nav-inner.mx-nav-minimal > a.active,
.mx-nav .mx-nav-inner.mx-nav-minimal > a:hover {
  background-image: url(/static/img/theme/blue2/TitleBackActive.png);
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-color: #0e5aff;
  color: #fff;
  text-shadow: 2px 2px 3px #000;
}
.mx-nav .mx-nav-inner.mx-nav-minimal > a.active .mx-nav-label,
.mx-nav .mx-nav-inner.mx-nav-minimal > a:hover .mx-nav-label {
  background: none !important;
  padding: 0;
  margin: 0;
}
.mx-nav .mx-nav-inner.mx-nav-minimal > a:first-child {
  flex: 0 0 auto;
}
.mx-nav .mx-nav-inner.mx-nav-minimal > a:last-child {
  flex: 0 0 auto;
  margin-left: auto;
}
@media (max-width: 760px) {
  .mx-container { flex-direction: column; align-items: stretch; }
  .mx-sidebar { flex: 1 1 auto; width: 100%; }
  .mx-header-inner { flex-wrap: wrap; }
  /* tighter mobile header: smaller logo, compact tagline, no gaps */
  .mx-header { width: 100%; overflow: hidden; }
  .mx-header-inner { padding: 8px 12px; gap: 10px; }
  .mx-logo img { height: 32px; }
  .mx-tagline { font-size: 11px; }
  .mx-nav-inner { display: none; }
  .mx-nav.open .mx-nav-inner { display: flex; }
  /* v0.45.7: exact 2011 menu bar specs — 25px tall, 12px, tiled 3D (per Clint) */
  .mx-nav .mx-nav-inner.mx-nav-minimal {
    display: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
    background-image: url(/static/img/theme/blue2/TopMenuBack.png);
    background-repeat: repeat-x;
    background-color: #333;
    border-bottom: 1px solid #000;
    min-height: 25px;
  }
  .mx-nav .mx-nav-inner.mx-nav-minimal > a {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    text-shadow: 3px 3px 4px #000;
    padding: 0 12px;
    height: 25px;
    line-height: 25px;
  }
  .mx-nav .mx-nav-inner.mx-nav-minimal > a.active {
    background-color: #0E5AFF;
    background-image: url(/static/img/theme/blue2/TitleBackActive.png);
    background-repeat: repeat-x;
  }
  .mx-nav .mx-nav-inner.mx-nav-minimal > a.mx-nav-help {
    margin-left: auto;
  }
  .mx-nav .mx-nav-inner.mx-nav-minimal > a:hover {
    background-color: gray;
    background-image: url(/static/img/theme/blue2/TitleBackHover.png);
    background-repeat: repeat-x;
    color: #fff;
  }
  /* Minimal logged-out nav (mobile, hamburger open) — single source of truth.
     One continuous full-width 25px gray 3D bar; Home left / Help right.
     The active/hover link gets the blue 3D tab at exactly the bar's height,
     hugging the word. (Replaces the old v0.43.x conflicting rules.) */
  /* v0.41.1: horizontal wrapping menu on mobile (per Clint 2026-10-07) —
     the 20-item vertical stack looked horrible; 3-4 buttons per line
     across 2-3 lines like the 2011 button menu. Keeps the 3D PNG buttons. */
  .mx-nav.open .mx-nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 12px;
  }
  .mx-nav.open .mx-nav-inner > a,
  .mx-nav.open .mx-nav-inner > form {
    flex: 1 1 30%;
    max-width: 32%;
    text-align: center;
    padding: 6px 4px;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mx-nav.open .mx-nav-inner > form > button { width: 100%; text-align: center; }
  /* search stays full-width at the top of the opened menu */
  .mx-nav.open .mx-nav-search { display: flex; flex: 1 1 100%; max-width: 100%; margin: 0 0 6px 0; }
  .mx-nav.open .mx-nav-search input { flex: 1; width: auto; max-width: none; }
  /* v0.55.9: minimal logged-out nav — one row, Home left / Help right
     (per Clint 2026-10-07). Higher specificity beats the generic
     .mx-nav-inner > a rule above. */
  .mx-nav.open {
    border-top: none;
    border-bottom: none;
  }
  .mx-nav.open .mx-nav-inner.mx-nav-minimal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    background-image: url(/static/img/theme/blue2/TopMenuBack.png);
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-color: #333;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 0;
    margin: 0;
    gap: 0;
    height: 18px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    background: transparent;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-transform: none;
    text-decoration: none;
    text-shadow: 3px 3px 4px #000;
    white-space: nowrap;
  }
  /* Home lines up with the left edge of the content box below,
     Help with the right edge (the box sits 12px off each side). */
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a:first-child { margin-left: 12px; }
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a:last-child {
    margin-left: auto;
    margin-right: 12px;
  }
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a > .mx-nav-label {
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    line-height: normal;
  }
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a.active,
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a:hover,
  .mx-nav.open .mx-nav-inner.mx-nav-minimal > a:active {
    background-color: #0E5AFF;
    background-image: url(/static/img/theme/blue2/TitleBackActive.png);
    background-repeat: repeat-x;
    background-size: auto 100%;
    color: #fff;
  }
  .mx-nav-toggle {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 12px;
    height: 25px;
    background: none;
    border: 1px solid var(--mx-border-soft);
    color: var(--mx-text-bright);
    font-size: 18px;
    padding: 0 10px;
    margin: 0;
    border-radius: 3px;
    cursor: pointer;
  }
}

/* ---------- social: posts, walls, comments ---------- */
.mx-post { border: 1px solid var(--mx-border-soft); border-radius: 4px; padding: 12px; margin-bottom: 12px; background: var(--mx-panel); }
.mx-post-head { margin: 0 0 6px; }
.mx-post-body { margin: 6px 0 10px; white-space: pre-wrap; word-wrap: break-word; }
.mx-post-actions { margin-bottom: 8px; }
.mx-like-btn { background: none; border: 1px solid var(--mx-border-soft); color: var(--mx-text-dim); border-radius: 3px; padding: 3px 10px; cursor: pointer; font-size: 13px; }
.mx-like-btn.liked { color: var(--mx-primary); border-color: var(--mx-primary); }
.mx-comments { margin: 8px 0; }
.mx-comment { padding: 6px 0; border-top: 1px dotted var(--mx-border-soft); font-size: 14px; }
.mx-comment-form { display: flex; gap: 6px; margin-top: 6px; }
.mx-comment-form input { flex: 1; }
.mx-btn-small { font-size: 12px; padding: 5px 10px; }
.mx-profile-actions form { display: inline; }

/* ---------- comment replies ---------- */
.mx-reply { margin-top: 4px; }
.mx-reply summary { cursor: pointer; color: var(--mx-primary); font-size: 12px; }
.mx-reply summary:hover { text-decoration: underline; }

/* ---------- messaging ---------- */
.mx-convo-row { padding: 8px 0; border-bottom: 1px dotted var(--mx-border-soft); }
.mx-unread { background: var(--mx-primary); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }
.mx-msg { border: 1px solid var(--mx-border-soft); border-radius: 6px; padding: 8px 12px; margin: 8px 0; max-width: 80%; }
.mx-msg.mine { margin-left: auto; background: var(--mx-panel); border-color: var(--mx-primary); }
.mx-msg-head { margin: 0 0 4px; font-size: 13px; }
.mx-msg-body { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
/* v0.83.0 messaging RCS */
.mx-msg-system { text-align: center; color: var(--mx-text-dim); font-size: 12.5px; margin: 10px 0; }
.mx-msg-deleted { margin: 0; font-style: italic; color: var(--mx-text-dim); }
.mx-msg-quote { display: block; border-left: 3px solid var(--mx-primary); background: rgba(127,127,127,0.12); border-radius: 4px; padding: 4px 8px; margin: 0 0 6px; font-size: 13px; color: var(--mx-text-dim); text-decoration: none; }
.mx-msg-quote strong { color: var(--mx-text); margin-right: 6px; }
.mx-msg-actions { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.mx-msg-act { background: none; border: 1px solid var(--mx-border-soft); border-radius: 10px; color: var(--mx-text-dim); font-size: 12px; padding: 1px 8px; cursor: pointer; }
.mx-msg-act:hover { color: var(--mx-text); border-color: var(--mx-primary); }
.mx-react-picker { margin-top: 6px; border: 1px solid var(--mx-border-soft); border-radius: 8px; padding: 6px; background: var(--mx-panel); }
.mx-react-row { display: flex; gap: 2px; flex-wrap: wrap; }
.mx-react-row button { background: none; border: none; font-size: 19px; cursor: pointer; padding: 2px 3px; border-radius: 6px; }
.mx-react-row button:hover { background: rgba(127,127,127,0.2); transform: scale(1.15); }
.mx-react-chips { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.mx-chip { background: var(--mx-panel); border: 1px solid var(--mx-border-soft); border-radius: 10px; font-size: 12px; padding: 1px 7px; cursor: pointer; color: var(--mx-text); }
.mx-chip.mine { border-color: var(--mx-primary); background: rgba(64,128,255,0.18); }
.mx-chip-total { font-size: 12px; color: var(--mx-text-dim); }
.mx-seen { margin: 2px 0 0; font-size: 12px; color: var(--mx-text-dim); }
.mx-fwd-line { margin: 0 0 4px; font-size: 12px; color: var(--mx-text-dim); font-style: italic; }
.mx-mention { color: var(--mx-primary); font-weight: 600; }
.mx-msg:target { outline: 2px solid var(--mx-primary); outline-offset: 2px; }
#select-bar { position: sticky; bottom: 0; background: var(--mx-panel); border: 1px solid var(--mx-primary); border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
/* v0.25.0 (ideas #119, #124, #126, #127): pinned key terms, post category
   tags, mention chips, and feed event cards. */
.mx-pin { background: var(--mx-panel); border: 1px solid var(--mx-primary); border-radius: 6px;
  padding: 6px 10px; margin: 6px 0; font-size: 13px; }
.mx-post-cat { background: var(--mx-panel); border: 1px solid var(--mx-border-soft);
  border-radius: 10px; padding: 0 8px; font-size: 11px; color: var(--mx-text-dim); margin-left: 4px; }
.mx-mention { display: inline-block; background: var(--mx-panel); border: 1px solid var(--mx-primary);
  border-radius: 12px; padding: 1px 10px; margin: 2px 4px 2px 0; font-size: 12px; }
.mx-event-card { background: var(--mx-panel); border: 1px dashed var(--mx-primary);
  border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.mx-error { color: #ff7b7b; }
.mx-ok { color: #7bff9e; }

/* ---------- account card popup (the old 510x450 massmsg card) ---------- */
#mx-card-slot:empty { display: none; }
#mx-card-slot { position: fixed; z-index: 1000; left: 50%; top: 12%; transform: translateX(-50%); width: min(510px, 94vw); }
.mx-card { background: var(--mx-panel); border: 2px solid var(--mx-primary); border-radius: 6px; padding: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.6); }
.mx-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mx-card-close { margin-left: auto; background: none; border: 1px solid var(--mx-border-soft); color: var(--mx-text-dim); border-radius: 3px; cursor: pointer; padding: 2px 8px; }
@media (max-width: 760px) { #mx-card-slot { top: 6%; } }

/* ---------- theme toggle ---------- */
.mx-theme-toggle { margin-left: auto; white-space: nowrap; }

/* ---------- band pages (2011 Bands.php look) ---------- */
.mx-sidebar:empty { display: none; }
/* sidebar block overridden with whitespace-only content: no child elements */
.mx-sidebar:not(:has(*)) { display: none; }
.mx-band { color: #c9c9c9; font-size: 13px; }
.mx-band a { color: #5aa9ff; }
.mx-band h1 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.mx-dim { color: #8a8a8a; }
.mx-linkbtn { background: none; border: none; color: #5aa9ff; cursor: pointer; font-size: 13px; padding: 0; }
.mx-linkbtn:hover { text-decoration: underline; }

.mx-band-top { display: flex; gap: 12px; margin-bottom: 10px; }
.mx-band-photo { flex: 0 0 200px; }
.mx-band-photo img { width: 200px; display: block; border: 1px solid #333; }
.mx-band-photo-ph { width: 200px; height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #5aa9ff; background: linear-gradient(135deg, #101828, #1c2f57); border: 1px solid #333; }
.mx-band-head { flex: 1 1 auto; min-width: 0; }
.mx-band-actions { margin: 4px 0 8px; }
.mx-band-subtabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.mx-band-subtabs button { background: #1c1c1c; border: 1px solid #333; color: #5aa9ff; font-size: 12px;
  padding: 3px 10px; cursor: pointer; border-radius: 3px; }
.mx-band-subtabs button.on { background: linear-gradient(to bottom, #2e7de1, #0c2f6e); color: #fff; border-color: #2e7de1; }
.mx-band-subtabs button:disabled { color: #555; cursor: default; }
.mx-band-subpanel { background: #141414; border: 1px solid #2a2a2a; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
.mx-band-rate { font-size: 12px; margin-top: 4px; }
.mx-stars { color: #3a3a3a; font-size: 16px; letter-spacing: 1px; }
.mx-stars .on { color: #2e7de1; }
.mx-rate-form { display: inline; margin-left: 8px; }
.mx-rate-form select { background: #1c1c1c; color: #ccc; border: 1px solid #333; font-size: 12px; }

.mx-band-mini { flex: 0 0 280px; }
.mx-band-mini .mx-mini-cal { max-width: 280px; margin-bottom: 0; }

.mx-band-mid { display: flex; gap: 12px; align-items: flex-start; }
.mx-band-menu { flex: 0 0 150px; background: #141414; border: 1px solid #2a2a2a; font-size: 12px; }
.mx-band-menu a, .mx-band-menu .mx-soon { display: block; padding: 5px 10px; color: #5aa9ff; text-decoration: none; }
.mx-band-menu a:hover { background: #1e1e1e; }
.mx-band-menu a.on { background: #0c2f6e; color: #fff; }
.mx-band-menu .mx-soon { color: #666; cursor: default; }
.mx-band-menuhead { background: linear-gradient(to bottom, #2e7de1, #0c2f6e); color: #fff; font-weight: bold;
  padding: 5px 10px; font-size: 13px; }

.mx-band-maincol { flex: 1 1 auto; min-width: 0; }
.mx-band-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin-bottom: 0; }
.mx-bandtab { background: linear-gradient(to bottom, #2a2a2a, #141414); border: 1px solid #333; border-bottom: none;
  color: #5aa9ff; padding: 5px 9px; font-size: 12px; text-decoration: none; border-radius: 4px 4px 0 0; white-space: nowrap; }
.mx-bandtab.on { background: linear-gradient(to bottom, #2e7de1, #0c2f6e); color: #fff; }
.mx-bandtab.admin { margin-left: auto; }
.mx-band-tabbody { background: #101010; border: 1px solid #2a2a2a; padding: 14px; min-height: 300px; }
.mx-band-sect { text-align: center; text-decoration: underline; color: #5aa9ff; font-size: 18px; margin: 6px 0 10px; }
.mx-band-sep { border: none; border-top: 1px solid #2a2a2a; margin: 16px 0; }
.mx-band-bio { line-height: 1.5; }

.mx-band-right { flex: 0 0 200px; font-size: 12px; }
.mx-band-upcoming { background: #141414; border: 1px solid #2a2a2a; padding: 8px; margin-bottom: 10px; }
.mx-band-upcoming div { padding: 3px 0; border-bottom: 1px dotted #2a2a2a; }
.mx-band-sidebox { background: #141414; border: 1px solid #2a2a2a; margin-bottom: 10px; }
.mx-band-sidebox > div:not(.mx-band-menuhead) { padding: 4px 10px; border-bottom: 1px dotted #2a2a2a; }

.mx-band-form label { display: block; margin: 8px 0; font-size: 12px; color: #aaa; }
.mx-band-form input[type=text], .mx-band-form input[type=url], .mx-band-form input[type=email],
.mx-band-form input[type=date], .mx-band-form textarea, .mx-band-form select {
  display: block; width: 100%; margin-top: 3px; background: #1c1c1c; border: 1px solid #333;
  color: #ddd; padding: 6px; font-size: 13px; border-radius: 3px; box-sizing: border-box; }
.mx-band-formrow { display: flex; gap: 10px; flex-wrap: wrap; }
.mx-band-formrow label { flex: 1; min-width: 140px; }
.mx-check input { display: inline !important; width: auto !important; }
.mx-band-wallform textarea { width: 100%; box-sizing: border-box; background: #1c1c1c; border: 1px solid #333;
  color: #ddd; padding: 6px; border-radius: 3px; }
.mx-band-wallform { margin-bottom: 12px; }

.mx-band-member, .mx-band-show, .mx-band-review, .mx-band-qa, .mx-band-newsitem {
  background: #161616; border: 1px solid #2a2a2a; padding: 8px 10px; margin-bottom: 8px; border-radius: 3px; }
.mx-band-member p, .mx-band-show p, .mx-band-newsitem p { margin: 6px 0 0; }
.mx-band-fans { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-band-fan { background: #1c1c1c; border: 1px solid #333; padding: 4px 10px; border-radius: 12px; text-decoration: none; }
.mx-band-epk h3 { color: #fff; margin: 0 0 4px; }
.mx-band-epk h4 { color: #5aa9ff; margin: 14px 0 6px; }
.mx-band-epk ul { margin: 4px 0; padding-left: 20px; }

.mx-band-diritem { background: #141414; border: 1px solid #2a2a2a; padding: 10px; margin-bottom: 8px; border-radius: 3px; }
.mx-band-diritem .mx-dim { margin-left: 10px; font-size: 12px; }

.mx-band-foot { display: flex; justify-content: space-between; color: #666; font-size: 11px;
  border-top: 1px solid #2a2a2a; margin-top: 12px; padding-top: 8px; }

@media (max-width: 900px) {
  .mx-band-top { flex-wrap: wrap; }
  .mx-band-mid { flex-direction: column; }
  .mx-band-menu, .mx-band-right { flex: 1 1 auto; width: 100%; }
}

/* unread separator in message threads */
.mx-unread-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--mx-accent, #e8a33d);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mx-unread-sep::before, .mx-unread-sep::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--mx-accent, #e8a33d);
}

/* Footer music player (2012 SCM bottom bar, reborn) */
.mx-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--mx-header-bg, #111);
  border-top: 2px solid var(--mx-primary, #0e5aff);
  color: var(--mx-text, #d6d6d6);
}
.mx-player[hidden] { display: none; }
.mx-player button {
  background: var(--mx-btn-bg, #0e5aff); color: #fff;
  border: 1px solid var(--mx-btn-border, #000); border-radius: 4px;
  padding: 4px 10px; cursor: pointer; font-size: 14px;
}
.mx-player-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mx-player input[type=range] { width: 90px; }
body { padding-bottom: 0; }
body:has(.mx-player:not([hidden])) { padding-bottom: 52px; }
.mx-band-tracks { list-style: none; padding: 0; margin: 8px 0; }
.mx-band-tracks li { padding: 4px 0; border-bottom: 1px solid var(--mx-border-soft, #333); }

/* Directories + autocomplete */
.mx-dir-filter { position: relative; margin: 12px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-suggest { position: absolute; top: 100%; left: 0; z-index: 50; background: var(--mx-panel, #222);
  border: 1px solid var(--mx-border-soft, #333); min-width: 220px; }
.mx-suggest[hidden] { display: none; }
.mx-suggest-item { padding: 6px 10px; cursor: pointer; }
.mx-suggest-item:hover { background: var(--mx-primary, #0e5aff); color: #fff; }
.mx-dir-list { list-style: none; padding: 0; }
.mx-dir-list li { padding: 6px 0; border-bottom: 1px solid var(--mx-border-soft, #333); }
.mx-pager { display: flex; gap: 16px; margin-top: 12px; }

/* Booking status badges */
.mx-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.mx-badge-ok { background: #1a5c1a; color: #7fff7f; border: 1px solid #2a8c2a; }
.mx-badge-pending { background: #5c4a1a; color: #ffdf7f; border: 1px solid #8c722a; }
.mx-badge-bad { background: #5c1a1a; color: #ff7f7f; border: 1px solid #8c2a2a; }
.mx-btn-danger { background: linear-gradient(#c04040, #a02020); }

/* Calendar view (2012 recovery) */
.mx-cal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.mx-cal-head h1 { margin: 0; }
.mx-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mx-cal th { padding: 6px; background: var(--mx-panel, #222); border: 1px solid var(--mx-border-soft, #333); }
.mx-cal-day { vertical-align: top; height: 110px; padding: 4px; border: 1px solid var(--mx-border-soft, #333); }
.mx-cal-other { background: rgba(0,0,0,0.25); }
.mx-cal-num { font-weight: bold; margin-bottom: 4px; }
.mx-cal-today { outline: 2px solid var(--mx-primary, #0e5aff); outline-offset: -2px; }
.mx-cal-show { font-size: 12px; margin-bottom: 4px; padding: 2px 4px; background: rgba(14,90,255,0.12);
  border-left: 3px solid var(--mx-primary, #0e5aff); border-radius: 2px; }
.mx-cal-show-pending { border-left-color: #8c722a; background: rgba(140,114,42,0.12); }
.mx-cal-band { display: block; font-weight: bold; }
.mx-cal-venue { display: block; color: var(--mx-dim, #999); }
.mx-cal-flyer { float: right; width: 40px; height: 40px; object-fit: cover; border-radius: 2px; margin-left: 4px; }
.mx-cal-more { font-size: 12px; }
.mx-cal-show::after { content: ""; display: table; clear: both; }

/* Event flyers */
.mx-flyer-thumb { float: left; width: 64px; height: 64px; object-fit: cover; border-radius: 3px;
  margin: 0 10px 6px 0; border: 1px solid var(--mx-border-soft, #333); }
.mx-show-row { display: flex; align-items: flex-start; }
.mx-show-row::after { content: ""; display: table; clear: both; }
.mx-flyer-form { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-band-show::after { content: ""; display: table; clear: both; }

/* Venue booking calendar — 2012 super_calendar visual language:
   blue-filled day cells = booked, plain cells = open. */
.mx-cal-scroll { overflow-x: auto; }
.mx-vcal { min-width: 640px; }
.mx-vcal-day { height: 96px; }
.mx-vcal-booked { background: rgba(14, 90, 255, 0.28); }
.mx-vcal-booked .mx-cal-num a { color: #fff; }
.mx-vcal-pending { background: rgba(140, 114, 42, 0.22); }
.mx-vcal-past { background: rgba(0, 0, 0, 0.35); color: var(--mx-dim, #999); }
.mx-vcal-band { font-size: 12px; font-weight: bold; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-vcal-open { font-size: 12px; margin-top: 4px; }
.mx-vcal-open a { color: var(--mx-primary, #0e5aff); }
.mx-vcal-legend { margin-top: 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-vcal-key { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--mx-border-soft, #333); border-radius: 2px; vertical-align: -3px; }
.mx-vcal-key.mx-vcal-booked { background: rgba(14, 90, 255, 0.28); }
.mx-vcal-key.mx-vcal-pending { background: rgba(140, 114, 42, 0.22); }
.mx-vcal-key.mx-vcal-available { background: rgba(26, 92, 26, 0.35); }
.mx-vcal-key.mx-cal-today { outline: 2px solid var(--mx-primary, #0e5aff); outline-offset: -2px; background: transparent; }
.mx-vcal-panel { border: 1px solid var(--mx-border-soft, #333); border-radius: 4px;
  padding: 12px 16px; margin-bottom: 16px; background: rgba(255,255,255,0.02); }
.mx-vcal-show { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--mx-border-soft, #333); }
.mx-vcal-show:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mx-vcal-show-pending { border-left: 3px solid #8c722a; padding-left: 10px; }
.mx-vcal-flyer { float: right; width: 72px; height: 72px; object-fit: cover; border-radius: 3px; margin-left: 10px;
  border: 1px solid var(--mx-border-soft, #333); }
.mx-vcal-warn { background: rgba(140, 114, 42, 0.15); border: 1px solid #8c722a;
  border-radius: 3px; padding: 8px 12px; }

/* Mini venue calendar (embeds on venue pages) */
.mx-mini-cal { max-width: 280px; border: 1px solid var(--mx-border-soft, #333);
  border-radius: 4px; padding: 8px 10px; margin-bottom: 16px; }
.mx-mini-cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mx-mini-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.mx-mini-cal-grid th, .mx-mini-cal-grid td { text-align: center; padding: 3px 0; }
.mx-mini-cal-grid th { color: var(--mx-dim, #999); font-weight: normal; }
.mx-mini-booked a { display: block; background: rgba(14, 90, 255, 0.45); color: #fff;
  border-radius: 3px; text-decoration: none; }
.mx-mini-pending a { display: block; background: rgba(140, 114, 42, 0.4);
  border-radius: 3px; text-decoration: none; }
.mx-mini-available a { display: block; border-radius: 3px; text-decoration: none; }
.mx-mini-available a:hover { background: rgba(14, 90, 255, 0.15); }
.mx-mini-today a, .mx-mini-today span { outline: 2px solid var(--mx-primary, #0e5aff); outline-offset: -2px; border-radius: 3px; }
.mx-mini-past, .mx-mini-other { color: var(--mx-dim, #666); }
.mx-mini-cal-legend { margin-top: 6px; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.mx-mini-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.mx-mini-key.mx-mini-booked { background: rgba(14, 90, 255, 0.45); }
.mx-mini-key.mx-mini-pending { background: rgba(140, 114, 42, 0.4); }

@media (max-width: 700px) {
  .mx-mini-cal { max-width: 100%; }
}

/* Booking proposal band cards (venue sees who they're dealing with) */
.mx-proposal-band { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0; }
.mx-proposal-pic { width: 64px; height: 64px; object-fit: cover; border-radius: 3px;
  border: 1px solid var(--mx-border-soft, #333); flex-shrink: 0; }
.mx-proposal-info p { margin: 2px 0; }
.mx-proposal-preview { border: 1px solid var(--mx-border-soft, #333); border-radius: 3px;
  padding: 8px 12px; margin: 8px 0; background: rgba(14, 90, 255, 0.06); }
.mx-proposal-preview p { margin: 4px 0; }
.mx-vcal-nudge { color: #c9a227; font-size: 13px; }

/* v0.12.0 slot booking */
.mx-badge-booked { background: #0e3a8f; color: #bcd6ff; border: 1px solid #2a5cc8; }
.mx-vcal-notice { background: rgba(14, 90, 255, 0.12); border: 1px solid var(--mx-border-soft, #333);
  border-radius: 3px; padding: 8px 12px; margin: 8px 0; }
.mx-vcal-slotline { font-size: 12px; margin: 2px 0; line-height: 1.35; }
.mx-vcal-slotline a { text-decoration: none; }
.mx-vcal-slotline a:hover { text-decoration: underline; }
.mx-vcal-slotbooked { font-weight: bold; }
.mx-vcal-more { font-size: 12px; margin-top: 2px; }
.mx-vcal-more summary { cursor: pointer; color: var(--mx-link, #6aa6ff); }
.mx-vcal-formrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mx-vcal-formrow label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mx-vcal-weekdays { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.mx-vcal-weekdays label { display: flex; gap: 4px; align-items: center; font-size: 13px; }
.mx-vcal-rules { margin: 8px 0; padding-left: 20px; }
.mx-vcal-rules li { margin: 4px 0; }
.mx-mini-blocked a, .mx-mini-none a { display: block; border-radius: 3px; text-decoration: none;
  color: var(--mx-dim, #999); }
.mx-mini-blocked a { text-decoration: line-through; }
.mx-mini-none a:hover { background: rgba(14, 90, 255, 0.15); }
.mx-mini-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.mx-mini-key.mx-mini-booked { background: rgba(14, 90, 255, 0.45); }
.mx-mini-key.mx-mini-pending { background: rgba(140, 114, 42, 0.4); }
.mx-mini-key.mx-mini-available { border: 1px solid var(--mx-border-soft, #555); }

/* House rules + backup bands (v0.13.0) */
.mx-rules-box { border: 1px solid #8c722a; border-radius: 4px; padding: 10px 14px;
  margin: 12px 0; background: rgba(140, 114, 42, 0.08); }
.mx-rules-box h3 { margin: 0 0 8px; font-size: 14px; }
.mx-rules-text { white-space: pre-wrap; font-size: 13px; line-height: 1.5;
  max-height: 220px; overflow-y: auto; margin-bottom: 10px; }
.mx-rules-agree { font-weight: bold; }
.mx-backup-box { border: 1px solid rgba(14, 90, 255, 0.4); border-radius: 4px;
  padding: 10px 14px; margin: 14px 0; background: rgba(14, 90, 255, 0.06); }

/* Calendar scope filters (v0.13.0) */
.mx-cal-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--mx-border-soft, #333);
  border-radius: 4px; background: rgba(255,255,255,0.02); }
.mx-cal-filters label { display: flex; flex-direction: column; gap: 2px; font-size: 12px;
  color: var(--mx-dim, #999); }
.mx-cal-filters input[type="text"], .mx-cal-filters select { font-size: 13px; }
.mx-cal-quick { flex: 1 1 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-cal-cols { flex: 1 1 100%; display: flex; gap: 12px; flex-wrap: wrap; }
.mx-cal-picker { flex: 1 1 220px; min-width: 200px; border: 1px solid var(--mx-border-soft, #333);
  border-radius: 4px; padding: 8px 10px; margin: 0; }
.mx-cal-picker legend { font-size: 12px; font-weight: bold; padding: 0 4px; }
.mx-cal-search { width: 100%; box-sizing: border-box; margin-bottom: 6px; font-size: 13px; }
.mx-cal-checklist { max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.mx-cal-checklist label { flex-direction: row !important; align-items: center; gap: 6px;
  font-size: 13px; color: inherit; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }

/* ===== v0.16.0: profiles, signup polish, intent ===== */
.mx-user-ok { color: #7dc97d; font-weight: bold; }
.mx-user-bad { color: #e07070; font-weight: bold; }
.mx-wiz-where { font-size: 13px; color: #9bb3d4; margin: 0 0 10px; }
.mx-wiz-welcome { background: #1c2a44; border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.mx-wiz-skip { font-size: 12px; margin-top: 10px; }
.mx-profile-preview { background: #141c30; border: 1px solid #2e4a7a; border-radius: 8px; padding: 12px; max-width: 420px; margin-bottom: 18px; }
.mx-profile-preview h3 { margin: 0 0 6px; font-size: 16px; }
.mx-profile-preview .mx-roles img { width: 24px; height: 24px; vertical-align: middle; margin-right: 4px; }
.mx-pinmap { height: 240px; border: 1px solid #2e4a7a; border-radius: 6px; margin: 8px 0; }
.mx-band-map[hidden] { display: none; }
.mx-intent-lead { font-size: 15px; margin-bottom: 16px; }
.mx-intent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mx-intent-card { text-align: left; padding: 14px; background: #141c30; border: 1px solid #2e4a7a; border-radius: 10px; cursor: pointer; color: inherit; }
.mx-intent-card:hover { border-color: #4a76b8; background: #182440; }
.mx-intent-label { display: block; font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.mx-intent-desc { display: block; font-size: 13px; color: #9bb3d4; }
.mx-lookingfor { background: #233d24; border: 1px solid #4a7a4e; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.mx-video-intro { margin: 12px 0; }
.mx-demoreel { margin-bottom: 12px; }
.mx-completeness { background: #1c2a44; border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.mx-comp-bar { height: 10px; border-radius: 5px; background: #223; overflow: hidden; margin-top: 6px; max-width: 320px; }
.mx-comp-bar div { height: 100%; background: #4a8ac8; }
.mx-comp-actions { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.mx-endorsements { margin: 12px 0; }
.mx-endorse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mx-endorse-chip { background: #1c2a44; border: 1px solid #2e4a7a; border-radius: 14px; padding: 4px 12px; font-size: 13px; }
.mx-endorse-add { margin: 10px 0; }
.mx-endorse-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.mx-gear-chip { background: #141c30; border: 1px solid #2e4a7a; border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.mx-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-cloud-tag { background: #141c30; border: 1px solid #2e4a7a; border-radius: 14px; padding: 4px 12px; font-size: 13px; }
.mx-gear-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.mx-gear-table td { padding: 6px 8px; border-bottom: 1px solid #22314f; vertical-align: top; }
.mx-gear-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mx-avail-grids { display: flex; flex-wrap: wrap; gap: 16px; }
.mx-avail { border-collapse: collapse; }
.mx-avail caption { font-weight: bold; margin-bottom: 6px; }
.mx-avail th, .mx-avail td { width: 30px; height: 26px; text-align: center; font-size: 12px; border: 1px solid #22314f; padding: 0; }
.mx-avail th { background: #1c2a44; }
.mx-avail .mx-free { background: #2a5a2e; }
.mx-avail .mx-busy { background: #6a2a2a; }
.mx-avail .mx-wknd { font-weight: bold; }
.mx-avail .mx-past { opacity: .4; }
.mx-free-key { color: #4caf50; }
.mx-busy-key { color: #c85555; }
.mx-checklist { background: #1c2a44; border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.mx-checklist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.mx-resume { background: #233d24; border: 1px solid #4a7a4e; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.mx-tribute-badge { display: inline-block; background: #3a2a44; border: 1px solid #7a4a9a; border-radius: 12px; padding: 2px 12px; font-size: 13px; }
.mx-stageplots { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.mx-stageplot { background: #141c30; border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px; max-width: 320px; }
.mx-profile-links { margin: 8px 0; }
.mx-pk { max-width: 720px; }
.mx-pk-sub { color: #9bb3d4; margin-top: -10px; }
.mx-pk-looking { background: #233d24; border: 1px solid #4a7a4e; border-radius: 8px; padding: 10px 14px; }
.mx-pk-table { border-collapse: collapse; }
.mx-pk-table th, .mx-pk-table td { text-align: left; padding: 6px 12px 6px 0; vertical-align: top; }
.mx-pk-foot { margin-top: 30px; font-size: 12px; color: #9bb3d4; }
@media print {
  .mx-nav, .mx-sidebar, .mx-footer, .mx-player, .mx-pk-print { display: none !important; }
  body.mx-presskit .mx-content { margin: 0; max-width: none; }
  .mx-pk { color: #000; }
  .mx-pk-sub, .mx-pk-foot { color: #555; }
}

/* ===== v0.16.0: Help Center ===== */
.mx-help-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mx-help-item { background: #141c30; border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px 14px; }
.mx-help-item p { margin: 4px 0 0; font-size: 13px; }
.mx-help-wrap { display: flex; gap: 20px; }
.mx-help-main { flex: 1; min-width: 0; }
.mx-help-side { width: 200px; flex-shrink: 0; }
.mx-help-side ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.mx-help-side li { margin-bottom: 4px; }
.mx-help-side .mx-on a { font-weight: bold; }
.mx-help-crumb { font-size: 13px; margin-bottom: 8px; }
.mx-help-article h1 { margin-top: 0; }
.mx-help-article h2 { margin-top: 22px; }
.mx-help-article h3 { margin-top: 16px; }
.mx-help-article ul, .mx-help-article ol { margin: 8px 0; padding-left: 22px; }
.mx-help-article li { margin-bottom: 4px; }
.mx-help-foot { margin-top: 24px; font-size: 13px; }
@media (max-width: 640px) {
  .mx-help-wrap { flex-direction: column; }
  .mx-help-side { width: auto; }
}

/* ---- v0.17.0: band management ---- */
.mx-band-memorial { background: #1c1c22; border: 1px solid #5a5a6a; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.mx-band-memorial p { margin: 6px 0; }
.mx-band-merged { background: #1a2438; border: 1px solid #2e4a7a; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.mx-band-merged p { margin: 6px 0; }
.mx-member-roleform { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; flex-wrap: wrap; }
.mx-member-roleform select { max-width: 130px; }
.mx-member-hiatus { opacity: 0.75; }
.mx-wizard-steps { display: flex; gap: 8px; margin: 10px 0 18px; flex-wrap: wrap; }
.mx-wizard-step { padding: 6px 12px; border-radius: 14px; border: 1px solid #2e4a7a; font-size: 13px; }
.mx-wizard-step.on { background: #0e3a8f; color: #bcd6ff; border-color: #2a5cc8; font-weight: bold; }
.mx-role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 8px 0; }
.mx-role-grid label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.mx-setlist-song { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #2e4a7a; border-radius: 6px; margin-bottom: 6px; background: #141c30; cursor: grab; }
.mx-setlist-song.dragging { opacity: 0.5; }
.mx-setlist-song .mx-drag { cursor: grab; color: #7fa8e0; user-select: none; }
.mx-setlist-song .mx-song-main { flex: 1; min-width: 0; }
.mx-setlist-song .mx-song-notes { font-size: 12px; color: #9fb6d8; }
.mx-checklist-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-bottom: 1px solid #22304a; }
.mx-checklist-row.done .mx-check-label { text-decoration: line-through; opacity: 0.6; }
.mx-checklist-row .mx-check-main { flex: 1; min-width: 0; }
.mx-poll-slot { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid #2e4a7a; border-radius: 6px; margin-bottom: 8px; }
.mx-poll-slot.winner { border-color: #2a8c2a; background: #14281a; }
.mx-space-card { border: 1px solid #2e4a7a; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #141c30; }
.mx-space-card h3 { margin: 0 0 6px; }
@media (max-width: 640px) {
  .mx-member-roleform { margin-left: 0; margin-top: 6px; }
  .mx-setlist-song { flex-wrap: wrap; }
}

/* v0.18.0: musician finder & matching (IDEAS.md #35-46) */
.mx-match { display: inline-block; background: #0e3a8f; color: #ffd75e; border: 1px solid #2a5cc8;
  border-radius: 12px; padding: 1px 8px; font-size: 12px; font-weight: bold; cursor: help; white-space: nowrap; }
.mx-compat { display: inline-block; background: #4a1030; color: #ff9ecb; border: 1px solid #8f2a5c;
  border-radius: 12px; padding: 1px 8px; font-size: 12px; font-weight: bold; cursor: help; white-space: nowrap; }
.mx-new { display: inline-block; background: #1d6b1d; color: #d6ffd6; border: 1px solid #2a8c2a;
  border-radius: 10px; padding: 0 8px; font-size: 11px; font-weight: bold; white-space: nowrap; }
.mx-tag { display: inline-block; background: #22304a; color: #bcd6ff; border-radius: 10px;
  padding: 1px 8px; font-size: 12px; margin: 0 4px 4px 0; }
.mx-notice { background: #14281a; border: 1px solid #2a8c2a; border-radius: 6px; padding: 8px 12px; color: #d6ffd6; }
.mx-notice-err { background: #2a1414; border-color: #8c2a2a; color: #ffd6d6; }
.mx-save-search { margin: 8px 0 12px; padding: 8px 10px; border: 1px dashed #2e4a7a; border-radius: 6px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-findermap { height: 480px; border: 1px solid #2e4a7a; border-radius: 8px; background: #0a0e1a; }
.mx-aud-status { display: inline-block; border-radius: 10px; padding: 1px 10px; font-size: 12px;
  font-weight: bold; background: #22304a; color: #bcd6ff; border: 1px solid #2e4a7a; }
.mx-aud-tracks_shared { background: #3a2a10; color: #ffd75e; border-color: #8c6a2a; }
.mx-aud-scheduled { background: #103a3a; color: #9ef2ff; border-color: #2a8c8c; }
.mx-aud-accepted { background: #14281a; color: #9eff9e; border-color: #2a8c2a; }
.mx-aud-declined, .mx-aud-cancelled { background: #2a1414; color: #ff9e9e; border-color: #8c2a2a; }
.mx-thread { border: 1px solid #2e4a7a; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
  max-height: 420px; overflow-y: auto; background: #0f1526; }
@media (max-width: 640px) {
  .mx-dir-filter { display: flex; flex-wrap: wrap; gap: 6px; }
  .mx-dir-filter label { font-size: 12px; }
  .mx-findermap { height: 320px; }
}

/* ===== v0.20.0: booking workflow upgrades (IDEAS.md #59-70) ===== */
.mx-nav-badge { display: inline-block; min-width: 18px; text-align: center; padding: 1px 5px; border-radius: 9px; background: #b3282d; color: #fff; font-size: 11px; font-weight: bold; }
.mx-nav-search { display: inline-flex; align-items: center; gap: 0; margin: 0 4px; }
.mx-nav-search input {
  width: 130px; max-width: 40vw; padding: 6px 8px; font-size: 12px;
  border: 1px solid var(--mx-border-soft); border-radius: 3px 0 0 3px;
  background: var(--mx-input-bg, #fff); color: var(--mx-text);
}
.mx-nav-search button {
  padding: 6px 9px; font-size: 12px; border: 1px solid var(--mx-border-soft);
  border-left: none; border-radius: 0 3px 3px 0; cursor: pointer;
  background: var(--mx-primary); color: #fff;
}
.mx-badge-state-inquiry { background: #3a3a5c; color: #b8b8ff; border: 1px solid #5a5a8c; }
.mx-badge-state-negotiating { background: #5c4a1a; color: #ffdf7f; border: 1px solid #8c722a; }
.mx-badge-state-soft_hold { background: #5c3a1a; color: #ffcf7f; border: 1px solid #8c5a2a; }
.mx-badge-state-confirmed { background: #1a5c1a; color: #7fff7f; border: 1px solid #2a8c2a; }
.mx-badge-state-cancelled { background: #5c1a1a; color: #ff7f7f; border: 1px solid #8c2a2a; }
.mx-badge-state-done { background: #2a2a2a; color: #aaa; border: 1px solid #555; }
.mx-pipeline { display: flex; gap: 10px; overflow-x: auto; margin: 12px 0; }
.mx-pipe-col { flex: 1 0 180px; min-width: 180px; background: #101828; border: 1px solid #2e4a7a; border-radius: 8px; padding: 8px; }
.mx-pipe-head { font-size: 13px; margin: 0 0 8px; }
.mx-pipe-card { background: #1a2438; border: 1px solid #2e4a7a; border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; font-size: 13px; }
.mx-pipe-card p { margin: 2px 0; }
.mx-pipe-empty { text-align: center; padding: 12px 0; }
.mx-warn-box { background: #3a2410; border-color: #8c5a2a; }
.mx-warn-box h3 { color: #ffcf7f; }
.mx-notif-unread { border-left: 4px solid #b3282d; }
.mx-details { margin: 10px 0; }
.mx-details summary { cursor: pointer; font-weight: bold; }
.mx-danger-summary { color: #ff7f7f; }
.mx-onesheet-photo { max-width: 320px; border-radius: 8px; }
.mx-settle-table { border-collapse: collapse; margin: 8px 0; }
.mx-settle-table th, .mx-settle-table td { text-align: left; padding: 4px 10px 4px 0; font-size: 13px; }
.mx-table-scroll { overflow-x: auto; }
@media print {
  .mx-pk-print-form button { display: none !important; }
  .mx-onesheet-photo { max-width: 220px; }
}
@media (max-width: 640px) {
  .mx-pipeline { flex-direction: column; }
  .mx-pipe-col { min-width: 0; }
}

/* ---- v0.21.0 calendar upgrades (#71-80) ---- */
.mx-clash-box { background: #3d0f0f; border: 2px solid #e03131; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; color: #ffe3e3; }
.mx-clash-box h3 { color: #ff8787; margin: 0 0 8px; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.5px; }
.mx-clash-box ul { margin: 6px 0; padding-left: 20px; }
.mx-clash-box li { margin: 6px 0; }
.mx-free-cell { margin-top: 4px; }
.mx-free-on { background: #123d1c; border: 1px solid #2a8c2a; border-radius: 4px;
  padding: 2px 4px; font-size: 11px; color: #b8f0b8; }
.mx-free-off { font-size: 11px; }
.mx-tour-cell { background-image: repeating-linear-gradient(45deg, #3a2c10, #3a2c10 4px, #2a2008 4px, #2a2008 8px);
  border-radius: 4px; padding: 2px 4px; font-size: 11px; color: #ffd98a; margin-top: 4px; }
.mx-weather { background: #0f2a3d; border: 1px solid #2a6a8c; border-radius: 6px;
  padding: 6px 10px; margin: 6px 0; font-size: 12px; color: #d6ecff; }
.mx-weather-na { background: #222; border-color: #444; color: #999; }
.mx-weather-glyph { font-size: 16px; }
.mx-weather-src { color: #7a99b3; font-size: 10px; }
.mx-route-leg { border-left: 3px solid #0E5AFF; margin: 0 0 0 8px; padding: 8px 0 8px 16px; }
.mx-route-stop { margin-bottom: 4px; }
.mx-drive { color: #9fb8dd; font-size: 12px; margin: 4px 0 10px; }
.mx-gig-card { border: 1px solid var(--mx-border-soft, #333); border-radius: 8px;
  padding: 10px 12px; margin: 8px 0; background: var(--mx-panel, #222); }
.mx-gig-date { font-weight: bold; color: #7db3ff; }
.mx-form-row { margin: 8px 0; }
.mx-form-row label { display: block; font-size: 12px; color: #aaa; margin-bottom: 2px; }
.mx-form-row input, .mx-form-row select, .mx-form-row textarea { max-width: 100%; }
.mx-embed-snippet { background: #111; border: 1px solid #444; border-radius: 6px;
  padding: 10px; font-family: monospace; font-size: 12px; color: #b8f0b8;
  word-break: break-all; margin: 8px 0; }
/* printable poster (standalone page, #79) */
.mx-poster { width: 100%; max-width: 1100px; margin: 0 auto; }
.mx-poster-head { text-align: center; margin-bottom: 12px; }
.mx-poster-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mx-poster-grid th { background: #0E5AFF; color: #fff; padding: 6px; }
.mx-poster-grid td { border: 2px solid #000; vertical-align: top; height: 110px;
  padding: 4px; background: #1e1e1e; overflow: hidden; }
.mx-poster-grid td.mx-poster-other { background: #111; }
.mx-poster-day { font-weight: bold; font-size: 15px; color: #fff; }
.mx-poster-show { font-size: 11px; margin: 3px 0; line-height: 1.25; color: #cfe0ff; }
.mx-poster-show .mx-wx { color: #ffd98a; }
@media print {
  .mx-poster .no-print, .mx-poster-printbar { display: none !important; }
  .mx-poster-grid td { height: 100px; }
}
/* show pages & events (#81-92, v0.22.0) */
.mx-show-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 16px; }
.mx-show-flyer { max-width: 220px; height: auto; border: 1px solid #444; }
.mx-show-when { font-size: 16px; color: #ffd98a; margin: 4px 0; }
.mx-show-where { margin: 4px 0; }
.mx-alert { background: #3a1010; border: 1px solid #a33; color: #ffb0a0; padding: 10px; margin: 10px 0; border-radius: 4px; }
.mx-alert a { color: #ffd98a; }
.mx-badge-price { background: #123f1a; color: #b8f0b8; }
.mx-btn-tickets { background: #0E5AFF; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 4px; display: inline-block; }
.mx-inline-form { display: inline; margin-right: 8px; }
.mx-inline-form button { margin: 2px 4px 2px 0; }
.mx-lineup { list-style: none; padding: 0; }
.mx-lineup li { padding: 6px 8px; border-bottom: 1px dotted #444; }
.mx-lineup li strong { margin-right: 6px; }
.mx-rsvp-list { list-style: none; padding: 0; columns: 2; }
.mx-rsvp-list li { padding: 2px 0; }
.mx-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.mx-photo-cell { margin: 0; max-width: 220px; }
.mx-photo-cell img { max-width: 100%; height: auto; border: 1px solid #444; display: block; }
.mx-photo-cell figcaption { font-size: 12px; color: #ccc; margin-top: 2px; }
.mx-review { border-top: 1px dotted #444; padding: 8px 0; }
.mx-setlist-block { margin: 8px 0; padding: 8px; background: #151515; border: 1px solid #333; }
.mx-setlist-songs li { margin: 2px 0; }
.mx-danger { border: 1px solid #a33; padding: 8px; margin: 12px 0; background: #1a0d0d; }
.mx-danger summary { cursor: pointer; font-weight: bold; color: #ffb0a0; }
/* lineup builder table */
.mx-table { border-collapse: collapse; width: 100%; max-width: 640px; }
.mx-table th, .mx-table td { border: 1px solid #444; padding: 6px 8px; text-align: left; font-size: 13px; }
.mx-table th { background: #222; }
/* printable show poster (#86) */
.mx-showposter { max-width: 720px; margin: 0 auto; background: #0d0d0d; color: #f5f5f5; border: 3px double #0E5AFF; padding: 24px; text-align: center; }
.mx-showposter h1 { font-size: 34px; margin: 6px 0; letter-spacing: 1px; }
.mx-showposter .mx-sp-flyer { max-width: 100%; height: auto; max-height: 420px; border: 1px solid #555; margin: 8px auto; display: block; }
.mx-showposter .mx-sp-when { font-size: 20px; color: #ffd98a; margin: 8px 0; }
.mx-showposter .mx-sp-where { font-size: 18px; margin: 6px 0; }
.mx-showposter .mx-sp-lineup { list-style: none; padding: 0; margin: 12px 0; }
.mx-showposter .mx-sp-lineup li { font-size: 16px; margin: 4px 0; }
.mx-showposter .mx-sp-meta { font-size: 14px; color: #ccc; margin: 8px 0; }
.mx-showposter .mx-sp-tickets { font-size: 15px; word-break: break-all; }
@media print {
  .mx-showposter .no-print, .mx-header, .mx-nav, .mx-sidebar, .mx-footer { display: none !important; }
  .mx-container { margin: 0; }
  .mx-showposter { border-color: #000; }
}

/* v0.28.0: trust & safety */
.mx-scam-note { background: #2a1414; border: 1px solid #8c2a2a; border-radius: 6px;
  padding: 6px 10px; color: #ffd6d6; font-size: 13px; margin: 4px 0 8px; }
.mx-scam-note a { color: #ffb0b0; }

/* ===== v0.29.0: Help Center final batch (#151-162) ===== */
.mx-help-search { display: flex; gap: 8px; margin: 12px 0 16px; max-width: 360px; }
.mx-help-search input[type="text"] { flex: 1; min-width: 0; }
.mx-help-extras { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mx-help-extra { display: block; background: #141c30; border: 1px solid #2e4a7a;
  border-radius: 8px; padding: 8px 12px; text-decoration: none; max-width: 220px; }
.mx-help-extra:hover { background: #1b2742; text-decoration: none; }
.mx-help-extra strong { display: block; font-size: 14px; }
.mx-help-extra span { font-size: 12px; color: #8a8a8a; }
.mx-help-group { margin: 20px 0; }
.mx-help-group h3 { margin-bottom: 2px; }
.mx-help-grouplist { columns: 2; column-gap: 24px; margin: 8px 0; padding-left: 18px;
  font-size: 14px; }
.mx-help-grouplist li { margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 640px) { .mx-help-grouplist { columns: 1; } }
.mx-help-article mark { background: #5a4a10; color: #ffe9a8; padding: 0 2px;
  border-radius: 2px; }
.mx-whatsnew-bullets li { margin-bottom: 8px; }
/* Contextual "?" help links (#154) */
.mx-help-q { display: inline-block; min-width: 18px; height: 18px; line-height: 16px;
  text-align: center; border: 1px solid #2e4a7a; border-radius: 50%;
  background: #141c30; color: #9fc0ff; font-size: 12px; font-weight: bold;
  text-decoration: none; margin-left: 8px; vertical-align: middle; padding: 0 2px; }
.mx-help-q:hover { background: #1e2c4a; color: #fff; text-decoration: none; }
/* Illustrated step guides (#158): simplified mock layouts, not screenshots */
.mx-guide-note { background: #141c30; border: 1px dashed #2e4a7a; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; color: #8a8a8a; margin: 10px 0 18px; }
.mx-guide-steps { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.mx-guide-step { display: flex; gap: 12px; align-items: flex-start; }
.mx-guide-num { flex-shrink: 0; width: 30px; height: 30px; line-height: 28px;
  text-align: center; border-radius: 50%; background: #0e5aff; color: #fff;
  font-weight: bold; font-size: 15px; border: 1px solid #000; }
.mx-guide-body { flex: 1; min-width: 0; }
.mx-guide-body h3 { margin: 2px 0 6px; }
.mx-guide-mock { background: #10182c; border: 1px solid #2e4a7a; border-radius: 8px;
  padding: 10px 12px; margin: 8px 0; max-width: 360px; font-size: 13px; }
.mx-guide-mock .mx-mock-bar { height: 10px; border-radius: 5px; background: #2e4a7a;
  margin: 6px 0; }
.mx-guide-mock .mx-mock-bar.short { width: 55%; }
.mx-guide-mock .mx-mock-bar.half { width: 75%; }
.mx-guide-mock .mx-mock-btn { display: inline-block; background: #0e5aff; color: #fff;
  border-radius: 4px; padding: 4px 10px; font-size: 12px; margin: 4px 6px 4px 0;
  border: 1px solid #000; }
.mx-guide-mock .mx-mock-btn.ghost { background: #1c2740; color: #9fc0ff; }
.mx-guide-mock .mx-mock-tag { display: inline-block; font-size: 11px;
  border: 1px solid #2e4a7a; border-radius: 10px; padding: 1px 8px;
  color: #9fc0ff; margin: 2px 4px 2px 0; }
.mx-guide-mock .mx-mock-ok { color: #7fd67f; font-weight: bold; }

/* ---- single password field + in-box eye toggle (v0.62.0: the eye
   lives INSIDE the field at the right edge — standard view/hide icons,
   no separate Show/Hide button shrinking the box) ---- */
.mx-pw-wrap { position: relative; display: block; }
.mx-pw-wrap input[type="password"], .mx-pw-wrap input[type="text"] {
  width: 100%; box-sizing: border-box; padding-right: 46px; }
.mx-pw-toggle { position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); background: none; border: none;
  padding: 6px; cursor: pointer; color: #5a6b84; display: flex;
  align-items: center; }
.mx-pw-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.mx-pw-toggle .pw-eye-off { display: none; }
.mx-pw-toggle[aria-pressed="true"] .pw-eye { display: none; }
.mx-pw-toggle[aria-pressed="true"] .pw-eye-off { display: block; }
.mx-pw-toggle:hover { color: #222; }
.mx-pw-toggle:focus-visible { outline: 2px solid #06c; outline-offset: 1px; }

/* ---- DOB field: auto-dash typing + calendar picker (icon lives inside the box) ---- */
.mx-dob-wrap { position: relative; display: flex; min-width: 0; }
.mx-dob-wrap .mx-dob-input { flex: 1 1 10.5ch; min-width: 0; max-width: 13em; padding-right: 36px; }
.mx-dob-pick { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 32px;
  padding: 0; font-size: 15px; line-height: 1; cursor: pointer;
  background: transparent; border: 0; border-radius: 3px; font-family: inherit; }
.mx-dob-pick:hover { background: #e2e2e2; }
.mx-dob-pick:active { background: #d4d4d4; }
.mx-dob-pick:focus-visible { outline: 2px solid #06c; outline-offset: -2px; }

/* ---- [?] help marks: real links to the matching help article ---- */
a.mx-q { color: #6cf; text-decoration: none; cursor: pointer; white-space: nowrap; }
a.mx-q:hover, a.mx-q:focus-visible { text-decoration: underline; }
a.mx-q:focus-visible { outline: 2px solid #06c; outline-offset: 1px; }

/* v0.87.1: signup [?] marks are now set-style icon buttons that open an
   in-page help dialog (_signup_help.html) instead of leaving for a help tab */
.mx-q-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; align-self: center; vertical-align: middle; }
.mx-q-btn img { width: 24px; height: 24px; display: block; }
.mx-q-btn:focus-visible { outline: 2px solid #06c; outline-offset: 1px; }
.mx-modal-overlay[hidden] { display: none; }
.mx-help-modal { max-width: 440px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; }
.mx-help-modal .mx-help-body p { margin: 0.5em 0; }
.mx-help-modal .mx-help-body ul { margin: 0.4em 0 0.4em 1.2em; padding: 0; }
.mx-help-modal .mx-modal-btns { align-items: center; }
.mx-help-modal .mx-modal-btns a { margin-right: auto; }
.mx-help-close { cursor: pointer; }

/* ---- single "City or ZIP" field: pin icon lives inside, suggestions drop down ---- */
.mx-loc-wrap { position: relative; display: flex; align-items: stretch; }
.mx-loc-input { flex: 1; min-width: 0; padding-right: 36px; }
.mx-geo-pin-in { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 32px;
  padding: 0; font-size: 15px; line-height: 1; cursor: pointer;
  background: transparent; border: 0; border-radius: 3px; font-family: inherit; }
/* v0.63.0: the pin emoji rendered terribly/invisibly — use the globe icon
   from Clint's 2011 backup (Downloaded-Icons/world.gif) instead. */
.mx-geo-pin-in img { width: 28px; height: 28px; display: block; margin: 0 auto; }
.mx-geo-pin-in:hover { background: #e2e2e2; }
.mx-geo-pin-in:active { background: #d4d4d4; }
.mx-geo-pin-in:focus-visible { outline: 2px solid #06c; outline-offset: -2px; }
.mx-loc-suggest { position: absolute; z-index: 1100; left: 0; right: 0; top: 100%;
  margin: 2px 0 0; padding: 0; list-style: none; background: #fff; color: #111;
  border: 1px solid #999; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.35);
  max-height: 220px; overflow-y: auto; }
.mx-loc-suggest li { padding: 8px 10px; font-size: 13px; cursor: pointer; }
.mx-loc-suggest li:hover, .mx-loc-suggest li.mx-active { background: #d8e8ff; }
.mx-geo-note { font-size: 12px; color: #fc6; margin: 4px 0 0; }

/* v0.29.48: header login button next to hamburger on mobile (per Clint) —
   visible without opening the menu */
.mx-header-login { display: none; }
@media (max-width: 760px) {
  .mx-header-login {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 82px;
    height: 25px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: none;
    color: var(--mx-nav-text);
    text-decoration: none;
    border: 1px solid var(--mx-border-soft);
  }
}

/* v0.29.50: no borders on header buttons (per Clint) — hamburger and login */
@media (max-width: 760px) {
  .mx-nav-toggle { border: none; }
  .mx-header-login { border: none; }
}

/* v0.29.51: header avatar (per Clint) — replaces login button when signed in */
.mx-header-avatar { display: none; }
/* v0.43.8: help icon next to login (per Clint) */
.mx-header-help { display: none; }
@media (max-width: 760px) {
  .mx-header-help {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 52px;
    height: 25px;
    width: 25px;
    /* v0.115.1 (Clint): the circle IS his "?" coin now — the
       artwork carries its own chrome ring, so no border and
       the glyph text is hidden (title/aria still announce it).
       The coin's disc is 84/96 of its canvas, so a 25px box
       shows a ~22px coin — the old circle's footprint. */
    font-size: 0;
    color: transparent;
    text-decoration: none;
    background: url(/static/img/icons/HelpQ.png) center / contain no-repeat;
    border-radius: 50%;
  }
  .mx-header-help:hover, .mx-header-help:active {
    background-image: url(/static/img/icons/HelpQGlow.png);
  }
}
/* v0.115.1 (Clint): the coin leads the nav's Help link too */
.mx-nav-help-coin { width: 18px; height: 18px; vertical-align: -4px;
  margin-right: 5px; }
@media (max-width: 760px) {
  .mx-header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 82px;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
  }
  .mx-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mx-avatar-initial {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--mx-primary);
    color: #fff;
    font-size: 14px; font-weight: bold;
    border-radius: 50%;
  }
}

/* Ticket history trophy wall */
.mx-stub-wall { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.mx-stub {
  border: 1px dashed var(--mx-border-soft, #555);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 160px;
  background: var(--mx-panel-alt, #1a1a1a);
}
.mx-stub p { margin: 2px 0; }

/* Ticket visual anti-fraud: rotating color border + 4-digit code.
   A screenshot shows a stale color/code within 5s; the pulsing glow
   animation is another thing a still image can't fake. */
.mx-ticket-visual {
  display: inline-block;
  border: 10px solid #888;
  border-radius: 12px;
  padding: 10px;
  margin: 6px 0;
  text-align: center;
  background: #fff;
  animation: mx-ticket-pulse 5s ease-in-out infinite;
}
@keyframes mx-ticket-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(128, 128, 128, 0.0); }
  50%      { box-shadow: 0 0 18px 4px currentColor; }
}
.mx-ticket-visual img { display: block; margin: 0 auto; }
.mx-visual-code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.35em;
  margin: 8px 0 2px 0;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.mx-visual-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px 0;
  word-break: break-word;
}

/* Door-check reference for venue staff */
.mx-door-ref {
  border: 10px solid #888;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  max-width: 320px;
  text-align: center;
  background: var(--mx-panel, #222);
}
.mx-door-swatch {
  width: 120px;
  height: 60px;
  border-radius: 8px;
  margin: 10px auto;
  border: 2px solid rgba(0, 0, 0, 0.25);
}
.mx-door-code {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.35em;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}

/* v0.40.1: live clock on tickets (per Clint) — moves back and forth, updates every second */
.mx-ticket-clock {
  font-size: 15px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: var(--mx-text-dim);
  margin: 4px 0 0 0;
  white-space: nowrap;
  display: inline-block;
  animation: mx-clock-sway 3s ease-in-out infinite;
}
@keyframes mx-clock-sway {
  0%, 100% { transform: translateX(-14px); }
  50%      { transform: translateX(14px); }
}

/* v0.50.4: pro-role disclosure modal */
.mx-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.mx-modal {
  background: #fff; color: #222; border-radius: 8px;
  padding: 24px; max-width: 400px; margin: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.mx-modal h3 { margin-top: 0; }
.mx-modal-btns { display: flex; gap: 12px; margin-top: 16px; justify-content: flex-end; }

/* v0.66.0: Settings > Listening history — recent listens */
.mx-listens { display: flex; flex-direction: column; }
.mx-listen-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(127,127,127,0.18); }
.mx-listen-row:last-child { border-bottom: none; }
.mx-listen-art { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.mx-listen-noart { display: inline-flex; align-items: center; justify-content: center; background: rgba(127,127,127,0.18); color: var(--mx-text-dim); font-size: 20px; }
.mx-listen-meta { flex: 1 1 auto; min-width: 0; }
.mx-listen-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-listen-sub { color: var(--mx-text-dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-listen-when { color: var(--mx-text-dim); font-size: 12px; flex: 0 0 auto; }

/* v0.67.0: Listening tab + profile listening blocks */
.mx-listen-totals { font-size: 17px; }
.mx-period-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.mx-period-btn { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--mx-border, #444); text-decoration: none; }
.mx-period-btn.active { background: #1c6ef2; color: #fff; border-color: #1c6ef2; }
.mx-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.mx-top-list { margin: 0; padding-left: 22px; }
.mx-top-list li { padding: 3px 0; }
.mx-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.mx-bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.mx-bar { width: 100%; max-width: 26px; background: #1c6ef2; border-radius: 3px 3px 0 0; min-height: 2px; }
.mx-bar-label { font-size: 10px; color: var(--mx-text-dim); margin-top: 4px; white-space: nowrap; }
.mx-src-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.mx-src-label { flex: 0 0 42%; }
.mx-src-track { flex: 1 1 auto; background: rgba(127,127,127,0.18); border-radius: 4px; height: 12px; overflow: hidden; }
.mx-src-fill { display: block; height: 100%; background: #1c6ef2; }
.mx-hist-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.mx-pager { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.mx-profile-listening .mx-top-list { margin-bottom: 6px; }

/* v0.69.0: performance agreement document (paper look on screen) */
.ct-doc { background: #fff; color: #111; border-radius: 6px;
          padding: 28px 34px 30px; margin: 14px 0; max-width: 820px;
          font-family: Georgia, "Times New Roman", serif;
          box-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.ct-doc .ct-letterhead { letter-spacing: 4px; font-family: Arial, sans-serif;
          font-size: 13px; color: #555; border-bottom: 2px solid #111;
          padding-bottom: 6px; }
.ct-doc .ct-title { font-size: 25px; text-align: center; margin: 16px 0 4px;
          text-transform: uppercase; letter-spacing: 1px; color: #111; }
.ct-doc .ct-meta { text-align: center; font-size: 13px; color: #333; margin: 0 0 14px; }
.ct-doc .ct-intro { font-size: 14px; line-height: 1.55; }
.ct-doc .ct-h { font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.5px;
          border-bottom: 1px solid #999; padding-bottom: 3px; margin: 20px 0 8px;
          color: #111; }
.ct-doc table.ct-parties, .ct-doc table.ct-terms { width: 100%;
          border-collapse: collapse; font-size: 14px; }
.ct-doc table.ct-parties th { text-align: left; font-size: 12px;
          text-transform: uppercase; color: #555; padding: 2px 8px 2px 0; width: 50%; }
.ct-doc table.ct-parties td { vertical-align: top; padding: 2px 8px 2px 0; line-height: 1.5; }
.ct-doc table.ct-terms td { padding: 3px 8px 3px 0; vertical-align: top; }
.ct-doc table.ct-terms td.ct-k { width: 34%; color: #333; }
.ct-doc .ct-p { font-size: 14px; line-height: 1.55; margin: 4px 0; white-space: pre-wrap; }
.ct-doc .ct-dim { color: #666; font-size: 12.5px; }
.ct-doc .ct-sigs { display: flex; gap: 40px; margin-top: 8px; }
.ct-doc .ct-sig { flex: 1 1 0; }
.ct-doc .ct-sig-role { font-size: 13px; font-weight: bold; margin: 0 0 16px; }
.ct-doc .ct-sig-name { font-size: 17px; font-style: italic; margin: 0;
          border-bottom: 1px solid #111; padding-bottom: 2px; }
.ct-doc .ct-sig-line { border-bottom: 1px solid #111; margin: 0; height: 20px; }
.ct-doc .ct-foot { margin-top: 26px; border-top: 1px solid #999; padding-top: 6px;
          font-size: 11.5px; color: #555; }

/* v0.71.0: password strength bar + requirements checklist */
.mx-pwc { margin-top: 8px; max-width: 420px; }
.mx-pwc-track { height: 9px; border-radius: 5px; background: #22303f;
  overflow: hidden; }
.mx-pwc-fill { height: 100%; width: 0; background: #c0392b;
  border-radius: 5px; transition: width .25s, background .25s; }
.mx-pwc-label { font-size: 12.5px; margin: 5px 0 2px; min-height: 15px;
  font-weight: 600; }
.mx-pwc-reqs { list-style: none; margin: 4px 0 0; padding: 0;
  font-size: 13px; }
.mx-pwc-reqs li { padding: 1.5px 0 1.5px 2px; color: #8d9bab;
  transition: color .2s; }
.mx-pwc-reqs li::before { content: "\2717  "; color: #c0392b;
  font-weight: 700; }
.mx-pwc-reqs li.met { color: #27ae60; }
.mx-pwc-reqs li.met::before { content: "\2713  "; color: #27ae60; }
.mx-pwc-error .mx-pwc-track { outline: 2px solid #c0392b; }

/* v0.79.0: announcement banners under the menu bar */
.mx-banners { max-width: 1200px; margin: 8px auto 0; padding: 0 12px; }
.mx-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-radius: 6px; padding: 9px 12px; margin-bottom: 6px;
  border: 1px solid var(--mx-border, #444); }
.mx-banner-msg { flex: 1 1 260px; }
.mx-banner-from { color: var(--mx-text-dim); font-size: 0.92em; }
.mx-banner-info { background: #12233a; border-color: #2a5a8c; color: #d6ecff; }
.mx-banner-important { background: #33300f; border-color: #8c7d2a; color: #fff3b0; }
.mx-banner-urgent { background: #3a1212; border-color: #a02c2c; color: #ffd9d9; }

/* v0.117.0 (Clint): the genre-mix widget — pie + "The mix" */
.mx-mix { display: flex; gap: 12px; align-items: center; margin: 8px 0 4px; }
.mx-mix-pie svg { width: 92px; height: 92px; display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.mx-mix-pie path { stroke: #0d1526; stroke-width: 1; }
.mx-mix-top { font-size: 0.95rem; color: var(--mx-text, #e8eefc); margin-bottom: 5px; }
.mx-mix-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-mix-btn { background: #122544; color: #bcd6ff; border: 1px solid #33507e;
  border-radius: 14px; padding: 4px 12px; font-size: 0.82rem; cursor: pointer; }
.mx-mix-btn:hover { background: #1a3560; color: #fff; }
.mx-mix-save { background: #1d4ed8; color: #fff; border-color: #3b82f6; }
.mx-mix-note { margin-top: 5px; font-size: 0.85rem; color: #9fe8b1; }
.mx-mix-note a { color: #7db4ff; }
.mx-mix-even { margin-top: 4px; font-size: 0.76rem; color: var(--mx-text-dim, #8ea3c8); }
.mx-mix-modal { position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 16, .72); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.mx-mix-modal[hidden] { display: none; }
.mx-mix-card { position: relative; background: #0d1830; color: #e8eefc;
  border: 1px solid #33507e; border-radius: 12px; max-width: 520px;
  width: 100%; max-height: 86vh; overflow-y: auto; padding: 18px 20px; }
.mx-mix-close { position: absolute; top: 8px; right: 10px; background: none;
  border: none; color: #9db8e8; font-size: 22px; cursor: pointer; }
.mx-mix-title { margin: 0 24px 12px 0; font-size: 1.05rem; }
.mx-mix-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.mx-mix-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.mx-mix-name { flex: 0 1 150px; font-size: 0.9rem; }
.mx-mix-bar { flex: 1; height: 10px; background: #16233f; border-radius: 5px; overflow: hidden; }
.mx-mix-bar > span { display: block; height: 100%; border-radius: 5px; }
.mx-mix-pct { flex: none; width: 42px; text-align: right; font-weight: 700; font-size: 0.9rem; }
.mx-mix-paths { margin-top: 10px; font-size: 0.75rem; color: #8ea3c8; }
.mx-mix-help { font-size: 0.85rem; color: #b8c9e8; margin: 0 0 10px; }
.mx-mix-erow { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.mx-mix-ename { flex: 0 1 140px; font-size: 0.9rem; }
.mx-mix-lock { color: #7db4ff; font-size: 0.6rem; vertical-align: 2px; }
.mx-mix-erow input[type="range"] { flex: 1; accent-color: #3b82f6; }
.mx-mix-epct input { width: 52px; background: #0a1322; color: #e8eefc;
  border: 1px solid #33507e; border-radius: 6px; padding: 3px 5px; }
.mx-mix-foot { display: flex; justify-content: space-between; margin-top: 14px; }
