/* Member area.
   Rides on tokens.css and site.css so the club looks like the rest of the
   site rather than a bolted-on app, and only adds what the marketing pages
   have no use for. */

.club-body {
  background: var(--mw-night);
  color: var(--mw-white);
  min-height: 100svh;
}

/* --- Auth / wall card ---------------------------------------------- */

.auth-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.auth-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-brand { display: inline-block; margin-bottom: 1.6rem; }
.auth-brand .logo { height: 30px; width: auto; display: block; }

.auth-card h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: var(--display-weight-heavy);
  margin: 0.4rem 0 0.7rem;
}

.auth-sub { color: var(--mw-sage-1); margin-bottom: 1.8rem; }

.auth-card label {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--mw-sage-1);
  margin-bottom: 0.45rem;
}

.auth-card input {
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 18, 11, 0.5);
  color: var(--mw-white);
  font: inherit;
  font-size: 1rem;    /* 16px: anything smaller makes iOS zoom on focus */
}

.auth-card input:focus-visible {
  outline: 2px solid var(--mw-lime);
  outline-offset: 2px;
  border-color: transparent;
}

.auth-card .btn { width: 100%; justify-content: center; }
.auth-card .btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.auth-card .btn-row .btn { width: auto; flex: 1 1 auto; }

.auth-error {
  margin: -0.4rem 0 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(214, 69, 69, 0.14);
  border: 1px solid rgba(214, 69, 69, 0.4);
  color: #ffc9c9;
  font-size: 0.92rem;
}

.auth-foot { margin-top: 1.5rem; color: var(--mw-sage-1); font-size: 0.92rem; }
.auth-foot a { color: var(--mw-lime); }

/* --- Club shell ------------------------------------------------------ */

.club-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 18, 11, 0.9);
  backdrop-filter: blur(10px);
}

.club-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mw-white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.club-home .logo { height: 26px; width: auto; }
.club-bar-right { display: flex; align-items: center; gap: 1rem; }
.club-who { color: var(--mw-sage-1); font-size: 0.92rem; }

.club-main {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

.club-main h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: var(--display-weight-heavy);
  margin: 0.4rem 0 0.6rem;
}

.club-sub { color: var(--mw-sage-1); margin-bottom: 2.4rem; }

.club-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.club-grid > * { min-width: 0; }

.club-card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Course covers, as they are in Skool. His are 1460x752 (roughly 1.94:1),
   so the ratio is fixed rather than left to the image: a card that resizes
   when a future cover has different dimensions makes the grid jump. The
   image is clipped to the card's top corners, which is why the padding
   moved onto an inner element. */
.club-card.has-cover { padding: 0; overflow: hidden; }
.club-card.has-cover .course-link { display: block; }
.course-cover {
  display: block; width: 100%; aspect-ratio: 1460 / 752;
  object-fit: cover; background: rgba(255, 255, 255, 0.05);
}
.club-card.has-cover .course-body { padding: 1.3rem 1.5rem 1.6rem; }

.club-card .n {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mw-lime);
}

.club-card h2 { font-size: 1.25rem; margin: 0.5rem 0 0.4rem; }
.club-card p { color: var(--mw-sage-1); font-size: 0.95rem; }

/* Said plainly rather than hidden: a member should be able to see what is
   coming without wondering whether something is broken. */
.club-soon {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-sage-1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.club-card.is-soon { opacity: 0.72; }

@media (max-width: 560px) {
  .club-who { display: none; }
}

/* --- Classroom ------------------------------------------------------- */

.course-link { display: block; color: inherit; text-decoration: none; }
.course-link h2 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.course-link p { color: var(--mw-sage-1); font-size: 0.95rem; margin-bottom: 1rem; }

/* One bar style for the card and the rail, so the two numbers on screen at
   once cannot look like different measurements. */
.bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.bar > span { display: block; height: 100%; background: var(--mw-lime); border-radius: 999px; }
.bar-label {
  display: block; margin-top: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mw-sage-1);
}

.back-link {
  display: inline-block; margin-bottom: 1.4rem;
  color: var(--mw-sage-1); text-decoration: none; font-size: 0.92rem;
}
.back-link:hover { color: var(--mw-lime); }

.course-layout {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
}
.course-layout > * { min-width: 0; }

.course-rail {
  position: sticky; top: 88px;
  padding: 1.4rem; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rail-title { font-size: 1.05rem; margin: 0 0 0.8rem; }

.lesson-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.lesson-link {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 0.6rem; align-items: center;
  padding: 0.6rem 0.7rem; border-radius: 10px;
  color: var(--mw-white); text-decoration: none; font-size: 0.92rem;
}
.lesson-link:hover { background: rgba(255, 255, 255, 0.06); }
.lesson-link.is-current { background: rgba(198, 243, 95, 0.14); }
.lesson-link.is-current .lesson-title { font-weight: 700; }
.lesson-title { overflow-wrap: anywhere; }
.lesson-dur { color: var(--mw-sage-1); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.tick {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid; place-items: center; font-size: 0.7rem; line-height: 1;
}
.tick.is-done { background: var(--mw-lime); border-color: var(--mw-lime); color: var(--mw-night); font-weight: 700; }

.lesson-pane h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 1.2rem; }
.lesson-pane .video-embed { margin-bottom: 1.6rem; }
.lesson-pane .btn { margin-top: 0.4rem; }

/* Skool shows the running time on the poster; it is genuinely useful when
   deciding whether to start a 6-minute lesson or a 61-minute call. */
.video-dur {
  position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 2;
  padding: 0.15rem 0.45rem; border-radius: 6px;
  background: rgba(5, 18, 11, 0.85); color: var(--mw-white);
  font-size: 0.78rem; font-variant-numeric: tabular-nums;
}

.file-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.5rem; }
.file-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.8rem 1rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.file-name { overflow-wrap: anywhere; }
.file-meta { color: var(--mw-sage-1); font-size: 0.82rem; white-space: nowrap; }
.file-list li.is-pending { opacity: 0.6; }

@media (max-width: 860px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-rail { position: static; }
}

.club-go {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mw-lime);
}

.lesson-empty {
  padding: 1.1rem 1.2rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.4rem;
}

/* --- Community ------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.6rem; }
.chip {
  padding: 0.4rem 0.9rem; border-radius: 999px; text-decoration: none;
  font-size: 0.85rem; color: var(--mw-sage-1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.chip:hover { color: var(--mw-white); }
/* Michael's own category colours, carried over from Skool. A dot rather
   than a tinted background: several of his colours (#F5D93D, #EE976D) have
   no readable contrast against white text, and a few of them side by side
   as full chips would fight the lime accent the rest of the club uses. */
.cat-dot {
  display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%;
  margin-right: 0.45em; vertical-align: 0.04em;
  background: var(--cat, var(--mw-sage-1));
}
.chip.is-on .cat-dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }

.chip.is-on { background: var(--mw-lime); border-color: var(--mw-lime); color: var(--mw-night); font-weight: 700; }

.composer { margin-bottom: 1.8rem; }
.composer > summary { display: inline-flex; cursor: pointer; list-style: none; }
.composer > summary::-webkit-details-marker { display: none; }
.composer[open] > summary { margin-bottom: 1rem; }
.composer-body {
  display: grid; gap: 0.4rem; padding: 1.4rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.composer-body label {
  font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--mw-sage-1); margin-top: 0.5rem;
}
.composer-body input, .composer-body select, .composer-body textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 18, 11, 0.5); color: var(--mw-white);
  font: inherit; font-size: 1rem;   /* 16px keeps iOS from zooming on focus */
}
.composer-body textarea { resize: vertical; }
.composer-body input:focus-visible,
.composer-body select:focus-visible,
.composer-body textarea:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }
.composer-body .btn { justify-self: start; margin-top: 0.9rem; }

.post-list, .comment-list, .reply-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.post-card {
  border-radius: 16px; padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-head { display: block; color: inherit; text-decoration: none; }
.post-head h2 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.post-meta { color: var(--mw-sage-1); font-size: 0.82rem; margin: 0 0 0.6rem; }
.post-excerpt { color: var(--mw-sage-1); font-size: 0.95rem; margin: 0; overflow-wrap: anywhere; }

.post-foot { display: flex; gap: 1rem; align-items: center; margin-top: 0.9rem; }
.react {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; cursor: pointer; padding: 0.2rem 0;
  color: var(--mw-sage-1); font: inherit; font-size: 0.88rem; text-decoration: none;
}
.react:hover { color: var(--mw-white); }
.react.is-on { color: var(--mw-lime); font-weight: 700; }
.react[disabled] { opacity: 0.5; cursor: default; }

.post-full { margin-bottom: 2.4rem; }
.post-full h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 0.4rem; }
.post-body p, .comment-body p { margin: 0 0 0.9rem; overflow-wrap: anywhere; }
.post-body p:last-child, .comment-body p:last-child { margin-bottom: 0; }

.comments h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.comment {
  border-radius: 14px; padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.reply-list { margin-top: 0.9rem; padding-left: 1rem; border-left: 2px solid rgba(255, 255, 255, 0.12); }
.comment-list { margin-bottom: 1.6rem; }
.reply-hint { color: var(--mw-lime); font-size: 0.82rem; cursor: pointer; margin: 0.3rem 0 0; }

/* --- Calendar -------------------------------------------------------- */

.subscribe {
  margin: 1.4rem 0 2.4rem; padding: 1.4rem; border-radius: 16px;
  background: rgba(198, 243, 95, 0.08); border: 1px solid rgba(198, 243, 95, 0.28);
}
.subscribe p { color: var(--mw-sage-1); font-size: 0.95rem; margin: 0 0 0.9rem; }
.subscribe strong { color: var(--mw-white); }
.subscribe-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.subscribe-row input {
  flex: 1 1 260px; min-width: 0; padding: 0.6rem 0.8rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 18, 11, 0.5); color: var(--mw-sage-1);
  font: inherit; font-size: 0.85rem; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.subscribe-hint { font-size: 0.82rem; margin: 0.9rem 0 0 !important; }

.cal-head {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mw-sage-1); margin: 2rem 0 1rem;
}
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event-card {
  padding: 1.3rem 1.4rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.event-card.is-past { opacity: 0.55; }
.event-when { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; margin-bottom: 0.4rem; }
.event-date { color: var(--mw-lime); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.event-where {
  color: var(--mw-sage-1); font-size: 0.78rem; padding: 0.1rem 0.5rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
}
.event-card h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.event-desc { color: var(--mw-sage-1); font-size: 0.95rem; margin: 0; overflow-wrap: anywhere; }

.event-foot {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  justify-content: space-between; margin-top: 1rem;
}
.rsvp { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rsvp-btn {
  padding: 0.35rem 0.8rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.82rem;
  color: var(--mw-sage-1); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rsvp-btn:hover { color: var(--mw-white); }
.rsvp-btn.is-on { background: var(--mw-lime); border-color: var(--mw-lime); color: var(--mw-night); font-weight: 700; }
.rsvp-btn[disabled] { opacity: 0.5; cursor: default; }
.event-going { color: var(--mw-sage-1); font-size: 0.82rem; white-space: nowrap; }

/* --- Members --------------------------------------------------------- */

.search-row { margin: 1.4rem 0; }
.search-row input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 18, 11, 0.5); color: var(--mw-white);
  font: inherit; font-size: 1rem;
}
.search-row input:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }

.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.member-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.member-card.is-me { border-color: rgba(198, 243, 95, 0.4); }
.member-card > * { min-width: 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(198, 243, 95, 0.16); color: var(--mw-lime);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { margin: 0 0 0.15rem; font-weight: 700; }
.member-handle { margin: 0 0 0.35rem; color: var(--mw-sage-1); font-size: 0.82rem; }
.member-bio { margin: 0 0 0.4rem; color: var(--mw-sage-1); font-size: 0.92rem; overflow-wrap: anywhere; }
.member-meta { margin: 0; color: var(--mw-sage-1); font-size: 0.8rem; }
.member-meta .lvl { color: var(--mw-lime); font-weight: 700; }

.tag {
  display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.45rem;
  border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mw-sage-1); border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: middle;
}
.tag--admin { color: var(--mw-night); background: var(--mw-lime); border-color: var(--mw-lime); }

.switch { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.switch input { width: auto; margin: 0; }
.switch span {
  font-size: 0.9rem; color: var(--mw-sage-1); text-transform: none;
  letter-spacing: 0; font-weight: 400;
}

/* --- Leaderboard ------------------------------------------------------ */

.me-card {
  margin: 1.4rem 0 1.8rem; padding: 1.4rem; border-radius: 16px;
  background: rgba(198, 243, 95, 0.08); border: 1px solid rgba(198, 243, 95, 0.28);
}
.me-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.8rem; }
.me-level { font-size: 1.3rem; font-weight: var(--display-weight-heavy); }
.me-points { color: var(--mw-lime); font-weight: 700; }
.me-split { margin: 0.8rem 0 0; color: var(--mw-sage-1); font-size: 0.85rem; }

.board { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.3rem; }
.board-row {
  display: grid; grid-template-columns: 2rem 1fr auto auto; gap: 0.8rem; align-items: center;
  padding: 0.65rem 0.9rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid transparent;
}
.board-row.is-me { border-color: rgba(198, 243, 95, 0.4); background: rgba(198, 243, 95, 0.08); }
.board-row > * { min-width: 0; }
.board-rank { color: var(--mw-sage-1); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.board-name { overflow-wrap: anywhere; }
.board-lvl { color: var(--mw-sage-1); font-size: 0.78rem; white-space: nowrap; }
.board-pts { color: var(--mw-lime); font-weight: 700; font-variant-numeric: tabular-nums; }

.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.ledger li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; align-items: center;
  font-size: 0.88rem; padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ledger-when { color: var(--mw-sage-1); font-size: 0.78rem; white-space: nowrap; }
.ledger-delta { color: var(--mw-lime); font-weight: 700; font-variant-numeric: tabular-nums; }

.level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.level-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.9rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); font-size: 0.9rem;
}
.level-list li.is-on { background: rgba(198, 243, 95, 0.12); color: var(--mw-white); font-weight: 700; }
.level-min { color: var(--mw-sage-1); font-size: 0.8rem; white-space: nowrap; }

@media (max-width: 520px) {
  .board-row { grid-template-columns: 1.6rem 1fr auto; }
  .board-lvl { display: none; }
}

/* --- Admin ----------------------------------------------------------- */

.stat-grid {
  list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
  padding: 1.1rem 1.2rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat.is-warn { border-color: rgba(255, 193, 112, 0.45); background: rgba(255, 193, 112, 0.08); }
.stat-n { display: block; font-size: 1.9rem; font-weight: var(--display-weight-heavy); line-height: 1.1; }
.stat-l { display: block; margin-top: 0.3rem; color: var(--mw-sage-1); font-size: 0.82rem; }

.gap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.gap-list li {
  padding: 0.9rem 1.1rem; border-radius: 12px; font-size: 0.92rem;
  background: rgba(198, 243, 95, 0.08); border: 1px solid rgba(198, 243, 95, 0.28);
}

.admin-select {
  padding: 0.35rem 0.6rem; border-radius: 8px; font: inherit; font-size: 0.82rem;
  background: rgba(5, 18, 11, 0.6); color: var(--mw-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.admin-select:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }

.club-card code, .member-meta code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem; color: var(--mw-sage-1);
}
.admin-link { margin-top: 2rem; }

.hist { margin-top: 0.8rem; }
.hist .ledger li { gap: 0.9rem; }

.file-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  color: inherit; text-decoration: none; width: 100%;
}
.file-row:hover .file-meta { color: var(--mw-lime); }
.file-list li:has(.file-row):hover { border-color: rgba(198, 243, 95, 0.4); }

.upload-label { cursor: pointer; }
.upload-label:hover { color: var(--mw-lime); }
.up-state { font-size: 0.8rem; }

/* --- admin: course rows and the edit dialog ---------------------------- */

.course-row { grid-template-columns: 96px 1fr auto; align-items: center; gap: 1rem; }
.course-thumb {
  width: 96px; aspect-ratio: 1460 / 752; object-fit: cover;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06);
}
.course-thumb--empty { display: block; border: 1px dashed rgba(255, 255, 255, 0.18); }
.course-actions { display: flex; gap: 0.4rem; align-items: center; }
.course-actions .btn[disabled] { opacity: 0.3; cursor: default; }

@media (max-width: 640px) {
  .course-row { grid-template-columns: 64px 1fr; }
  .course-thumb { width: 64px; }
  .course-actions { grid-column: 1 / -1; }
}

/* A real <dialog>, so the browser handles the focus trap, Escape and
   inertness of the page behind it. Reimplementing those in script is how
   modals end up keyboard-hostile. */
.club-dialog {
  width: min(540px, calc(100vw - 2rem));
  padding: 0; border: none; border-radius: 18px;
  background: var(--mw-night);
  color: var(--mw-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.club-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog-body { display: grid; gap: 0.4rem; padding: 1.6rem; }
.dialog-body h2 { margin: 0 0 0.8rem; font-size: 1.3rem; }
.dialog-body label {
  font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--mw-sage-1); margin-top: 0.6rem;
}
.dialog-count { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--mw-sage-1); text-align: right; }

.dialog-cover {
  display: grid; grid-template-columns: 180px 1fr; gap: 1rem;
  align-items: center; margin-top: 1rem;
}
.dialog-cover img {
  width: 180px; aspect-ratio: 1460 / 752; object-fit: cover; border-radius: 10px;
}
.dialog-cover--empty {
  display: grid; place-items: center; width: 180px; aspect-ratio: 1460 / 752;
  border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 0.78rem; color: var(--mw-sage-1);
}
.dialog-cover .member-name { margin: 0; }
.dialog-cover .member-meta { margin: 0 0 0.6rem; }
/* The real file input is hidden and its <label> is the button, so the
   control stays keyboard-reachable through the input itself. */
.dialog-cover label.btn { cursor: pointer; }

.dialog-toggle {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem;
  text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--mw-white);
}
.dialog-toggle input { width: auto; }

.dialog-foot { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; }

@media (max-width: 520px) {
  .dialog-cover { grid-template-columns: 1fr; }
}

/* --- admin: member tools ---------------------------------------------- */

.member-tools {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin: 0 0 1.4rem;
}
.member-tools input[type="search"] { flex: 1 1 16rem; min-width: 0; }
.member-tools .btn { margin-left: auto; }

.tag--banned { background: rgba(255, 92, 92, 0.16); color: #ff9c9c; }
/* Dimmed rather than hidden: Michael still needs to find the person to
   lift the ban, and a list that silently drops rows is one he cannot
   trust. */
.member-card.is-banned { opacity: 0.6; }

@media (max-width: 560px) {
  .member-tools .btn { margin-left: 0; }
}

/* Event covers, same 1460x752 as Skool's upload hint, so Michael can reuse
   artwork between the two while both exist. */
.event-cover {
  display: block; width: 100%; max-width: 420px;
  aspect-ratio: 1460 / 752; object-fit: cover;
  border-radius: 12px; margin: 0.9rem 0 0.2rem;
  background: rgba(255, 255, 255, 0.05);
}

/* --- community rules --------------------------------------------------- */

/* Skool puts these in a right-hand column. Here they sit below the feed on
   one column and float right on a wide screen, because the feed is what a
   member came for and three sentences they have already read should not
   take a third of the width away from it on a phone. */
.rules {
  margin: 2.4rem 0 0;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rules h2 {
  font-size: var(--text-eyebrow); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--mw-sage-1); margin: 0 0 0.9rem;
}
.rules ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.rules li { color: var(--mw-white); font-size: 0.95rem; }
.rules li span { display: block; color: var(--mw-sage-1); font-size: 0.88rem; margin-top: 0.15rem; }

.rule-row { grid-template-columns: 1fr; }
.rule-row label {
  display: block; margin-top: 0.6rem;
  font-size: var(--text-eyebrow); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--mw-sage-1);
}

/* --- admin: Zahlen ----------------------------------------------------- */

.stat-row {
  list-style: none; margin: 1.4rem 0 1.8rem; padding: 0;
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.stat-value { display: block; font-size: 1.9rem; font-weight: var(--display-weight-heavy); line-height: 1.1; }
.stat-label { display: block; margin-top: 0.3rem; color: var(--mw-sage-1); font-size: 0.82rem; }
.stat-hint  { display: block; margin-top: 0.15rem; color: var(--mw-sage-1); font-size: 0.74rem; opacity: 0.75; }

.chart-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.chart-grid h2 { font-size: 1.05rem; margin: 0 0 0.2rem; }
.chart-grid .club-sub { margin: 0 0 0.9rem; font-size: 0.82rem; }

/* preserveAspectRatio="none" stretches the viewBox to the box, which is
   what makes one chart component work at any width. Stroke width is kept
   honest with vector-effect rather than being stretched with it. */
.chart { display: block; width: 100%; height: 110px; overflow: visible; }
.chart-foot {
  display: flex; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.4rem; font-size: 0.72rem; color: var(--mw-sage-1);
}

.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.source-list li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.6rem; align-items: center; }
.source-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-bar {
  display: block; height: 0.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.source-bar > span { display: block; height: 100%; background: var(--mw-lime); border-radius: 999px; }
.source-n { font-size: 0.76rem; color: var(--mw-sage-1); white-space: nowrap; }

@media (max-width: 520px) {
  .source-list li { grid-template-columns: 6rem 1fr; }
  .source-n { grid-column: 2; text-align: right; }
}

/* --- live call --------------------------------------------------------- */

/* The meeting UI wants a box with a real height; given a percentage it
   collapses to nothing, because its parents have no height either. dvh
   rather than vh so the mobile browser chrome appearing does not push the
   controls off the bottom mid-call. 14rem is what sits above the stage
   (club bar, padding, the recording note: about 210px on desktop and
   phone alike); 7rem left the control bar, mic and Leave included, below
   the fold. */
.live-stage {
  height: calc(100dvh - 14rem);
  min-height: 24rem;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
/* The meeting must stay a flex column. Its own stylesheet says so on
   :host, but a page rule beats :host, and the earlier `display: block`
   here did exactly that: the camera check (one child, its own height)
   still looked right, but in the call the video area is a flex child
   with no height of its own and collapsed to 0px. Members saw a black
   screen while the video was arriving fine. mode="fill" on the element
   (live.html) keeps it in this box rather than fixed over the page,
   where the club header covered its toolbar. */
.live-stage rtk-meeting { display: flex; flex-direction: column; position: relative; width: 100%; height: 100%; }

.live-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(255, 92, 92, 0.16); color: #ff9c9c;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.live-pill::before {
  content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: currentColor;
}
/* The dot pulses to say "now", but not for anyone who has asked the
   system to stop moving things. */
@media (prefers-reduced-motion: no-preference) {
  .live-pill::before { animation: live-pulse 1.8s ease-in-out infinite; }
  @keyframes live-pulse { 50% { opacity: 0.35; } }
}

/* Recordings from the club's own storage. Same footprint as the YouTube
   embed so a course mixing both does not change shape lesson to lesson. */
.lesson-pane .video-native { margin-bottom: 1.6rem; }
.video-native video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; background: #000;
}
.rec-row { margin-top: 0.7rem; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rec-row .club-sub { margin: 0; font-size: 0.8rem; }

/* --- the section tabs, on every club page ------------------------------ */

/* A second row inside the sticky header, so the tabs stay reachable while
   scrolling a long feed — the way Skool's do. */
.club-bar { flex-wrap: wrap; row-gap: 0.4rem; padding-bottom: 0; }
.club-tabs {
  flex-basis: 100%;
  display: flex; gap: 0.2rem;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3rem));
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.club-tabs::-webkit-scrollbar { display: none; }
.club-tabs a {
  flex: none;
  padding: 0.65rem 0.8rem 0.75rem;
  color: var(--mw-sage-1); text-decoration: none;
  font-size: 0.92rem; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.club-tabs a:hover { color: var(--mw-white); }
.club-tabs a[aria-current="page"] { color: var(--mw-white); border-bottom-color: var(--mw-lime); }
.club-tabs a:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: -4px; border-radius: 6px; }
.club-tabs .club-tab-admin { margin-left: auto; color: var(--mw-lime); }
.club-tabs .club-tab-live { display: flex; align-items: center; }

/* Pinned posts: above the feed, and marked, so members can tell an
   announcement from the newest post. */
.post-card.is-pinned { border-color: rgba(198, 255, 0, 0.35); }
.pin-tag {
  display: inline-block; margin-bottom: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mw-lime);
}
.post-body a, .comment-body a { color: var(--mw-lime); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.react--quiet { opacity: 0.7; }
.react--quiet:hover { opacity: 1; color: #ff9c9c; }
.comment-edit { width: 100%; margin-bottom: 0.4rem; }

/* --- rich posts: pictures, videos, polls, mentions ---------------------- */

.post-card-row { display: flex; gap: 1rem; align-items: flex-start; }
.post-card-text { flex: 1; min-width: 0; }
.post-cover {
  position: relative; flex: none; width: 112px; aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.06);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover--video::after {
  content: '▶'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.1rem; background: rgba(0, 0, 0, 0.25);
}
.post-cover-count {
  position: absolute; right: 6px; bottom: 6px; padding: 0.1rem 0.4rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.post-tag { margin: 0.4rem 0 0; font-size: 0.78rem; font-weight: 700; color: var(--mw-lime); }
@media (max-width: 420px) { .post-cover { width: 84px; } }

.post-gallery { display: grid; gap: 6px; margin: 1.2rem 0; border-radius: 14px; overflow: hidden; }
.post-gallery--one { grid-template-columns: 1fr; }
.post-gallery--two { grid-template-columns: 1fr 1fr; }
.post-gallery--many { grid-template-columns: repeat(3, 1fr); }
.post-shot { padding: 0; border: 0; background: rgba(255, 255, 255, 0.05); cursor: zoom-in; display: block; }
.post-shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.post-gallery--one .post-shot img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; background: #000; }
.post-shot:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: -2px; }

.shot-dialog {
  padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
.shot-dialog::backdrop { background: rgba(0, 0, 0, 0.88); }
.shot-dialog img { display: block; max-width: 96vw; max-height: 84vh; object-fit: contain; margin: 0 auto; }
.shot-bar { display: flex; justify-content: center; gap: 1rem; align-items: center; margin-top: 0.8rem; color: #fff; }
.shot-bar button {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 999px;
  padding: 0.45rem 0.9rem; font: inherit; cursor: pointer;
}

.post-video { margin: 1rem 0; }
.post-video .video-title {
  position: absolute; left: 0.8rem; bottom: 0.7rem; right: 0.8rem; color: #fff; font-size: 0.85rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.poll { display: grid; gap: 0.5rem; margin: 1.2rem 0; }
.poll-option {
  text-align: left; padding: 0.8rem 1rem; border-radius: 12px; cursor: pointer; font: inherit;
  background: rgba(255, 255, 255, 0.05); color: var(--mw-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.poll-option:hover { border-color: var(--mw-lime); }
.poll-row {
  position: relative; display: flex; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 0.75rem 1rem; border-radius: 12px; overflow: hidden; cursor: pointer; font: inherit; text-align: left;
  background: rgba(255, 255, 255, 0.04); color: var(--mw-white); border: 1px solid rgba(255, 255, 255, 0.12);
}
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(198, 255, 0, 0.16); z-index: 0; }
.poll-label, .poll-count { position: relative; z-index: 1; }
.poll-count { color: var(--mw-sage-1); font-size: 0.85rem; white-space: nowrap; }
.poll-result.is-mine .poll-row { border-color: var(--mw-lime); }
.poll-voters { margin: 0.25rem 0 0 1rem; font-size: 0.8rem; color: var(--mw-sage-1); }
.poll-voters summary { cursor: pointer; }
.poll-note { margin: 0.2rem 0 0; font-size: 0.8rem; }

.mention { color: var(--mw-lime); font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }

.composer-tools { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.composer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.composer-pick { cursor: pointer; }
.composer-shots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.composer-shot { position: relative; margin: 0; width: 84px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.composer-shot img { width: 100%; height: 100%; object-fit: cover; }
.composer-shot button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; line-height: 1;
}
.composer-poll { display: grid; gap: 0.4rem; }
/* A video in the post being written: its picture, the provider, and × */
.composer-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.composer-videos:empty { display: none; }
.composer-videos li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; padding: .35rem .5rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; }
.composer-videos img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.composer-videos span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.composer-videos button { background: none; border: 0; color: var(--mw-sage-1); font-size: 1.1rem; cursor: pointer; }
.composer-video-add { display: flex; gap: .5rem; }
.composer-video-add[hidden] { display: none; }
.composer-video-add input { flex: 1; min-width: 0; }
.composer-label {
  margin: 0.4rem 0 0; font-size: var(--text-eyebrow); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--mw-sage-1);
}
.mention-list {
  list-style: none; margin: 0.2rem 0 0; padding: 0.3rem; border-radius: 12px;
  background: var(--mw-night); border: 1px solid rgba(255, 255, 255, 0.18); max-width: 22rem;
}
.mention-list li { padding: 0.45rem 0.6rem; border-radius: 8px; cursor: pointer; }
.mention-list li span { color: var(--mw-sage-1); font-size: 0.82rem; }
.mention-list li[aria-selected="true"], .mention-list li:hover { background: rgba(198, 255, 0, 0.14); }

/* --- the bell ---------------------------------------------------------- */

.bell { position: relative; }
.bell-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent;
  color: var(--mw-white); cursor: pointer;
}
.bell-btn svg { width: 20px; height: 20px; fill: currentColor; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { border-color: var(--mw-lime); }
.bell-btn:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }
.bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 0.68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: min(360px, calc(100vw - 2rem)); max-height: min(70vh, 520px); overflow-y: auto;
  border-radius: 14px; background: var(--mw-night); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.bell-head {
  display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-weight: 700; font-size: 0.9rem;
}
.bell-all { background: none; border: 0; color: var(--mw-lime); font: inherit; font-size: 0.8rem; cursor: pointer; }
.bell-panel ul { list-style: none; margin: 0; padding: 0.3rem; }
.bell-panel li a {
  display: grid; gap: 0.15rem; padding: 0.65rem 0.75rem; border-radius: 10px;
  color: var(--mw-sage-1); text-decoration: none; font-size: 0.87rem; line-height: 1.35;
}
.bell-panel li a b { color: var(--mw-white); font-weight: 700; }
.bell-panel li a:hover { background: rgba(255, 255, 255, 0.05); }
.bell-panel li a.is-unread { background: rgba(198, 255, 0, 0.08); color: var(--mw-white); }
.bell-panel time { font-size: 0.74rem; color: var(--mw-sage-1); }
.bell-empty { padding: 1rem; margin: 0; font-size: 0.87rem; color: var(--mw-sage-1); }
@media (max-width: 560px) {
  .bell-panel { position: fixed; right: 1rem; left: 1rem; top: 4.2rem; width: auto; }
}

.announce-switch { margin-top: 0.6rem; }
.comment.is-target { box-shadow: 0 0 0 2px var(--mw-lime); border-radius: 12px; }

/* Authors' faces beside their names. */
.face {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 0.45rem;
  border-radius: 50%; overflow: hidden; vertical-align: middle; flex: none;
  background: rgba(198, 255, 0, 0.18); color: var(--mw-lime); font-size: 0.62rem; font-weight: 700;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.post-full .face, .comment .face { width: 28px; height: 28px; }

/* Profile photo and password in "Mein Profil". */
.avatar-edit { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.4rem; }
.avatar-big {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgba(198, 255, 0, 0.18); color: var(--mw-lime); font-weight: 700; font-size: 1.3rem;
}
.avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick { cursor: pointer; }
.pw-box { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 0.4rem; }
.pw-box summary { cursor: pointer; font-weight: 700; color: var(--mw-white); }
.auth-error.is-ok { color: var(--mw-lime); }

/* --- direct messages --------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.dm-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.dm-list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.85rem 1rem; border-radius: 14px; text-decoration: none; color: var(--mw-sage-1);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.dm-list a:hover { border-color: rgba(255, 255, 255, 0.2); }
.dm-list a.is-unread { border-color: var(--mw-lime); background: rgba(198, 255, 0, 0.06); }
.dm-list a.is-unread b::after { content: ' •'; color: var(--mw-lime); }
.dm-list .face { width: 40px; height: 40px; margin: 0; font-size: 0.8rem; }
.dm-who { display: grid; min-width: 0; }
.dm-who b { color: var(--mw-white); }
.dm-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.88rem; }
.dm-list time { font-size: 0.75rem; }

.dm-head { display: flex; align-items: center; gap: 0.7rem; margin: 0.6rem 0 1rem; }
.dm-head h1 { margin: 0; font-size: 1.5rem; }
.dm-head .face { width: 40px; height: 40px; margin: 0; }
.dm-thread {
  list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
  height: min(60vh, 560px); overflow-y: auto; border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
}
.dm-msg { display: grid; justify-items: start; max-width: 80%; }
.dm-msg.is-mine { align-self: flex-end; justify-items: end; }
.dm-bubble {
  padding: 0.6rem 0.85rem; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, 0.08);
  color: var(--mw-white); overflow-wrap: anywhere;
}
.dm-msg.is-mine .dm-bubble { border-radius: 16px 16px 4px 16px; background: rgba(198, 255, 0, 0.18); }
.dm-bubble p { margin: 0; }
.dm-bubble p + p { margin-top: 0.5em; }
.dm-bubble a { color: var(--mw-lime); }
.dm-msg time { font-size: 0.7rem; color: var(--mw-sage-1); margin-top: 0.15rem; }
/* The composer: one rounded bar under the conversation, like any chat —
   attach, emoji, a field that grows, send. */
.dm-thread:empty { display: none; }
.dm-empty { margin: 0; padding: 2.4rem 1.2rem; text-align: center; color: var(--mw-sage-1); border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; }
.dm-compose { position: relative; margin: 0; padding: .6rem; border: 1px solid rgba(255,255,255,.08); border-top: 0;
  border-radius: 0 0 16px 16px; background: rgba(255,255,255,.05); }
.dm-thread:not(:empty) + .dm-empty[hidden] + .dm-compose { border-top: 1px solid rgba(255,255,255,.06); }
.dm-bar { display: flex; align-items: flex-end; gap: .35rem; }
.dm-bar textarea { flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 160px; padding: .6rem .9rem; line-height: 1.4;
  font: inherit; font-size: .97rem; color: var(--mw-white); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12);
  border-radius: 21px; outline: none; }
.dm-bar textarea:focus { border-color: var(--mw-lime); }
.dm-bar textarea::placeholder { color: var(--mw-sage-1); }
.dm-tool, .dm-send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 0; background: none; color: var(--mw-sage-1); }
.dm-tool:hover, .dm-tool[aria-expanded="true"] { color: var(--mw-lime); background: rgba(198,255,0,.08); }
.dm-tool svg, .dm-send svg { width: 22px; height: 22px; }
.dm-send { background: var(--mw-lime); color: var(--mw-night); }
.dm-send:hover { filter: brightness(1.08); }
.dm-hint { margin: .35rem .4rem 0; font-size: .72rem; color: var(--mw-sage-1); }
@media (hover: none) { .dm-hint { display: none; } }
.dm-emoji { position: absolute; bottom: calc(100% + 6px); left: .6rem; z-index: 20; width: min(340px, calc(100% - 1.2rem));
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: .5rem; max-height: 240px; overflow-y: auto;
  background: var(--mw-night); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.dm-emoji button { font-size: 1.35rem; line-height: 1; padding: .3rem 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.dm-emoji button:hover { background: rgba(255,255,255,.08); }
.dm-attach { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.dm-attach li { display: flex; align-items: center; gap: .45rem; max-width: 100%; padding: .3rem .4rem .3rem .3rem; border-radius: 10px;
  background: rgba(255,255,255,.07); font-size: .82rem; color: var(--mw-white); }
.dm-attach li.is-busy { opacity: .6; }
.dm-attach img, .dm-attach-doc { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; color: var(--mw-lime); }
.dm-attach-doc svg { width: 20px; height: 20px; }
.dm-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.dm-attach button { border: 0; background: none; color: var(--mw-sage-1); font-size: 1.1rem; cursor: pointer; }
.dm-imgs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: inherit; margin-bottom: 3px; }
.dm-imgs img { display: block; max-width: min(260px, 100%); max-height: 260px; width: auto; height: auto; border-radius: 12px; object-fit: cover; }
.dm-doc { display: grid; grid-template-columns: 20px auto auto; gap: .5rem; align-items: center; margin-bottom: 3px; padding: .5rem .75rem;
  border-radius: 12px; background: rgba(255,255,255,.08); color: var(--mw-white); text-decoration: none; font-size: .88rem; }
.dm-doc svg { width: 18px; height: 18px; color: var(--mw-lime); }
.dm-doc small { color: var(--mw-sage-1); }
.dm-head-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: none; color: var(--mw-sage-1); font: inherit; font-size: .85rem; cursor: pointer; }
.dm-head-btn:hover { color: var(--mw-lime); border-color: var(--mw-lime); }
.dm-head-btn svg, .dm-row-archive svg { width: 16px; height: 16px; fill: currentColor; }
.dm-row { display: flex; align-items: center; gap: .3rem; }
.dm-row > a { flex: 1; min-width: 0; }
.dm-row-archive { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--mw-sage-1); cursor: pointer; opacity: .55; }
.dm-row:hover .dm-row-archive, .dm-row-archive:focus-visible { opacity: 1; }
.dm-row-archive:hover { color: var(--mw-lime); background: rgba(198,255,0,.08); }
.dm-archive-link { margin-left: .8rem; font-size: .88rem; color: var(--mw-sage-1); }
.dm-archive-link:hover { color: var(--mw-lime); }
@media (max-width: 560px) {
  .dm-thread { height: calc(100dvh - 21rem); }
  .dm-msg { max-width: 88%; }
  .dm-head-btn span { display: none; }
}

/* The chat icon in the header, beside the bell. */
.dm-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--mw-white);
}
.dm-btn svg { width: 19px; height: 19px; fill: currentColor; }
.dm-btn:hover { border-color: var(--mw-lime); }
.dm-btn:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }

/* --- search ------------------------------------------------------------- */
.search-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mw-sage-1); margin: 1.6rem 0 0.6rem; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.search-list a {
  display: grid; gap: 0.2rem; padding: 0.8rem 1rem; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--mw-sage-1);
}
.search-list a:hover { border-color: rgba(255, 255, 255, 0.22); }
.search-list b { color: var(--mw-white); }
.search-list span { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Three round icons and a name do not fit a phone header; the name goes. */
@media (max-width: 480px) { .club-who { display: none; } }

/* The Info page (Skool's "About"): text and videos, facts beside them. */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.info-main h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.8rem; }
.info-main #edit { margin-bottom: 1rem; }
.info-text { margin-top: 1.2rem; font-size: 1.02rem; line-height: 1.6; }
.info-side { display: grid; gap: 1rem; }
.info-side .club-card { padding: 1.1rem 1.25rem; }
.info-facts p { margin: 0 0 0.35rem; color: var(--mw-white); }
.info-facts p:last-child { margin: 0.6rem 0 0; font-size: 0.9rem; }
.info-facts b { font-size: 1.15rem; color: var(--mw-lime); }
.info-side a { color: var(--mw-lime); text-underline-offset: 0.15em; }
.info-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mw-sage-1); margin: 0 0 0.6rem; }
.info-admins, .info-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.info-admins li { display: flex; align-items: center; color: var(--mw-white); }
.info-admins .face { width: 32px; height: 32px; font-size: 0.75rem; }
.info-edit { max-width: 760px; }
.info-edit textarea#tx { font-family: inherit; line-height: 1.5; }
.row-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* Backend: a category card's first line is colour, name, post count. */
.cat-head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.4rem; }
.cat-head .cat-name { flex: 1; min-width: 0; }
.cat-head .cat-color { width: 44px; height: 38px; padding: 2px; border-radius: 8px; flex: none; }
.cat-row .member-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.9rem; }

/* "Passwort vergessen?" under the login form. */
.forgot { margin-top: 1.2rem; }
.forgot summary { cursor: pointer; color: var(--mw-sage-1); font-size: 0.92rem; }
.forgot summary:hover { color: var(--mw-lime); }
.forgot form { margin-top: 0.8rem; }

/* Backend: a one-time link, shown once. */
.link-dialog { max-width: 560px; width: calc(100% - 32px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  background: var(--mw-night); color: var(--mw-white); padding: 1.4rem; }
.link-dialog::backdrop { background: rgba(0,0,0,.6); }
.link-dialog h2 { font-size: 1.15rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.link-dialog textarea { width: 100%; margin-top: .8rem; font: inherit; font-size: .9rem; border-radius: 10px; padding: .7rem;
  background: rgba(255,255,255,.06); color: var(--mw-white); border: 1px solid rgba(255,255,255,.14); }
.open-links { margin: .8rem 0 1rem; }
.open-links summary { cursor: pointer; }

/* Push, at the foot of the bell panel. */
.bell-foot:empty { display: none; }
.bell-foot { border-top: 1px solid rgba(255,255,255,.08); padding: .7rem .9rem; font-size: .85rem; color: var(--mw-sage-1); }
.bell-foot p { margin: 0; }
.bell-foot b { color: var(--mw-white); }
.bell-foot button { background: none; border: 0; padding: 0; color: var(--mw-lime); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.bell-foot .bell-push-on { text-decoration: none; font-weight: 600; }

/* Documents under a post, and in the composer. */
.post-files { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.post-files a { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; align-items: center; padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: var(--mw-white); text-decoration: none; }
.post-files a:hover { border-color: var(--mw-lime); }
.post-files svg { width: 22px; height: 22px; fill: none; stroke: var(--mw-lime); stroke-width: 1.6; stroke-linejoin: round; }
.post-file-name { overflow-wrap: anywhere; }
.post-file-meta { color: var(--mw-sage-1); font-size: .82rem; white-space: nowrap; }
.composer-files { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.composer-files:empty { display: none; }
.composer-files li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; font-size: .9rem;
  padding: .4rem .7rem; border-radius: 8px; background: rgba(255,255,255,.05); }
.composer-files button { background: none; border: 0; color: var(--mw-sage-1); font-size: 1.1rem; cursor: pointer; }

/* Backend: the move from Skool. */
.skool-move { margin-bottom: 1rem; }
.skool-move p { margin: 0 0 .6rem; }
.skool-move b { color: var(--mw-lime); }

/* The hidden attribute always wins. Several components set display (the
   badge counts use grid), which silently overrode [hidden]: the bell and
   chat badges showed a red "0" when there was nothing to count. */
[hidden] { display: none !important; }

/* Calls are recorded: said before joining, and visible during the call. */
.live-rec-note { color: var(--mw-sage-1); font-size: .92rem; margin: .4rem 0 0; }
.live-rec { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-size: .85rem; color: var(--mw-white); }
.live-rec span { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.25); }
/* Michael's record button above the stage (16.11.2026). */
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 2.2rem; margin: 0 0 .6rem; }
.live-bar .live-rec { margin: 0; }
.live-norec { margin: 0; font-size: .85rem; color: var(--mw-sage-1); }
.live-rec-btn { background: #e5484d; color: #fff; border-color: #e5484d; }
.live-rec-btn::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; background: currentColor; }
.live-rec-btn.is-on { background: transparent; color: var(--mw-white); border-color: rgba(255,255,255,.4); }
.live-rec-btn.is-on::before { border-radius: 2px; }
.live-rec-btn:disabled { opacity: .55; cursor: default; }
.live-rec-msg { font-size: .85rem; color: var(--mw-sage-1); }
.live-blur-btn { margin-left: auto; }
.live-blur-btn.is-on { border-color: var(--mw-lime, #c8f169); color: var(--mw-lime, #c8f169); }
.live-ready { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.live-ready li { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .9rem;
  padding: .5rem .8rem; border-radius: 10px; background: rgba(255,255,255,.05); }
.live-ready a { color: var(--mw-lime, #c8f169); }
/* Club home: «Zum neusten Beitrag» (Michael, 16.11.2026). */
.club-latest { display: grid; gap: .5rem; margin: 0 0 1.4rem; padding: .9rem 1.1rem; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: inherit; text-decoration: none; }
.club-latest[hidden] { display: none; }
.club-latest:hover { border-color: var(--mw-lime); }
.club-latest-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mw-lime); }
.club-latest-row { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.club-latest-img { flex: none; width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.club-latest-text { display: grid; gap: .2rem; min-width: 0; flex: 1; }
.club-latest-text b { font-size: 1.1rem; line-height: 1.25; }
.club-latest-meta { font-size: .8rem; color: var(--mw-sage-1); }
.club-latest-excerpt { font-size: .9rem; color: var(--mw-sage-1); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.club-latest-go { flex: none; font-weight: 800; color: var(--mw-lime); }
@media (max-width: 640px) {
  .club-latest-img { width: 84px; }
  .club-latest-go { display: none; }
  .club-latest-excerpt { -webkit-line-clamp: 1; }
}
/* A club call recording in a post: the club's own player, members only. */
.post-recording { margin: 1rem 0; }
.post-recording video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.post-recording .video-title { display: block; margin-top: .4rem; font-size: .85rem; color: var(--mw-sage-1); }

/* Calendar: the month grid above the list. */
.cal-month { margin: 1.6rem 0 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.02); }
.cal-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.cal-title { margin: 0 .4rem; font-size: 1.15rem; min-width: 10rem; text-transform: capitalize; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: none; color: var(--mw-white); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--mw-lime); color: var(--mw-lime); }
.cal-today { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mw-sage-1); padding: 0 .3rem .3rem; }
.cal-cell { min-height: 92px; border-radius: 10px; background: rgba(255,255,255,.04); padding: .35rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.is-out { background: transparent; }
.cal-day { font-size: .8rem; color: var(--mw-sage-1); }
.cal-cell.is-today .cal-day { color: var(--mw-night); background: var(--mw-lime); border-radius: 999px; width: 1.6rem; text-align: center; font-weight: 700; }
.cal-ev { display: block; font-size: .74rem; line-height: 1.25; padding: .25rem .35rem; border-radius: 6px; background: rgba(198,255,0,.16); color: var(--mw-white);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev b { color: var(--mw-lime); font-weight: 600; }
.cal-ev:hover { background: rgba(198,255,0,.28); }
.cal-ev.is-past { opacity: .55; }
.event-card.is-target { box-shadow: 0 0 0 2px var(--mw-lime); }
.event-card { scroll-margin-top: 140px; }
@media (max-width: 640px) {
  .cal-month { padding: .6rem; }
  .cal-cell { min-height: 54px; padding: .25rem; }
  /* On a phone a cell is too narrow for a title: a dot says "something
     that day", and tapping it still jumps to the event. */
  .cal-ev { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--mw-lime); }
  .cal-ev.is-past { background: var(--mw-sage-1); }
  .cal-title { min-width: 0; font-size: 1rem; }
}

/* Messages: start a new conversation. */
.dm-new { margin: 1rem 0 1.4rem; position: relative; max-width: 480px; }
.dm-pick { margin-top: .6rem; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .6rem; background: rgba(255,255,255,.03); }
.dm-pick input { width: 100%; }
.dm-pick-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.dm-pick-list a { display: flex; align-items: center; gap: .2rem; padding: .5rem .55rem; border-radius: 10px; color: var(--mw-white); text-decoration: none; }
.dm-pick-list a:hover, .dm-pick-list a:focus-visible { background: rgba(198,255,0,.12); }
.dm-pick-list .face { width: 30px; height: 30px; }
.dm-pick-list li.club-sub { padding: .5rem .55rem; }

/* Membership & payment: the two plans as big choices. */
.billing-card { max-width: 520px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.2rem 0 .8rem; }
.plan { display: grid; gap: .35rem; text-align: left; padding: 1.1rem 1.1rem 1rem; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--mw-white); font: inherit; }
.plan:hover, .plan:focus-visible { border-color: var(--mw-lime); background: rgba(198,255,0,.07); }
.plan:disabled { opacity: .6; cursor: default; }
.plan.is-busy { border-color: var(--mw-lime); }
.plan-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mw-sage-1); }
.plan-price { font-size: 1.6rem; font-weight: 700; color: var(--mw-white); }
.plan-price small { font-size: .85rem; font-weight: 500; color: var(--mw-sage-1); margin-left: .15rem; }
.plan-sub { font-size: .82rem; color: var(--mw-lime); }
.billing-note { font-size: .85rem; margin-top: .6rem; }
.billing-foot { margin-top: 1.4rem; }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* The launch prices (Michael, 11.11.2026): the regular price on top, greyed
   and hatched, not bookable; two tiles (6 and 12 months), each paid monthly
   or once; the 1:1 package below as the high anchor. */
.auth-card.billing-card--wide { width: min(820px, 100%); max-width: none; }
.price-normal { display: grid; gap: .3rem; margin: 1.2rem 0 1.6rem; padding: 1rem 1.1rem; border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22); color: var(--mw-sage-4);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 14px); }
.price-normal .plan-name, .price-normal .pn-price, .price-normal .pn-price small { color: var(--mw-sage-4); }
.pn-price { font-size: 1.35rem; font-weight: 700; }
.pn-price small { font-size: .85rem; font-weight: 500; margin-left: .15rem; }
.pn-sub { font-size: .85rem; }
.kickoff-label { color: var(--mw-lime); margin: 0 0 .7rem; }
.tiers2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.tier2 { display: grid; gap: .9rem; align-content: start; padding: 1.2rem; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.tier2--best { border-color: var(--mw-lime); }
.tier2 h2 { font-size: 1.25rem; margin: 0; color: var(--mw-white); }
.t2-opt { display: grid; gap: .3rem; justify-items: start; }
.t2-opt + .t2-opt { padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.12); }
.t2-or { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mw-sage-1); }
.t2-badge { font-size: .78rem; font-weight: 700; color: var(--mw-night); background: var(--mw-lime); border-radius: 999px; padding: .1rem .55rem; }
.t2-sub { font-size: .85rem; color: var(--mw-sage-1); }
.t2-gift { font-size: .85rem; color: var(--mw-lime); }
.tier2 .btn { width: auto; max-width: 100%; margin-top: .3rem; white-space: normal; text-align: center; }
.tier2--premium { margin-top: .9rem; }
.tier2--premium .plan-price s { font-size: 1.1rem; font-weight: 500; color: var(--mw-sage-4); margin-right: .4rem; }
@media (max-width: 640px) { .tiers2 { grid-template-columns: 1fr; } }

/* --- Backend editing cards (rules, categories) ---------------------------
   One layout for every "list of things Michael edits": a marker on the
   left, the fields in the middle at full width, reorder on the right. */
.admin-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.admin-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.admin-fields { display: grid; gap: .45rem; min-width: 0; }
.admin-fields > label:not(.switch) { font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--mw-sage-1); margin-top: .2rem; }
.admin-input { width: 100%; padding: .65rem .85rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(5,18,11,.5); color: var(--mw-white); font: inherit; font-size: 1rem; }
textarea.admin-input { resize: vertical; min-height: 3.2rem; line-height: 1.45; }
.admin-input::placeholder { color: rgba(255,255,255,.35); }
.admin-input:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 1px; border-color: transparent; }
.admin-side { display: flex; flex-direction: column; gap: .35rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: none;
  color: var(--mw-white); font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { border-color: var(--mw-lime); color: var(--mw-lime); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn--danger:hover:not(:disabled) { border-color: #ff8a8a; color: #ff8a8a; }
.text-btn { background: none; border: 0; padding: .4rem .2rem; font: inherit; font-size: .9rem; color: var(--mw-sage-1); cursor: pointer; }
.text-btn--danger:hover { color: #ff8a8a; }
.admin-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; padding: .8rem 1rem;
  border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.admin-bar-gap { flex: 1; }
.admin-bar .auth-error { margin: 0; }
.rule-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-top: .25rem;
  background: rgba(198,255,0,.16); color: var(--mw-lime); font-weight: 700; }
.cat-swatch { position: relative; width: 38px; height: 38px; border-radius: 50%; margin-top: .2rem; cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.cat-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.cat-head { display: flex; gap: .7rem; align-items: center; }
.cat-head .cat-name { flex: 1; font-weight: 600; }
.cat-count { flex: none; font-size: .85rem; color: var(--mw-sage-1); white-space: nowrap; }
.cat-actions { display: flex; align-items: center; gap: .8rem; margin-top: .3rem; }
.admin-card .switch { margin-top: .3rem; }
@media (max-width: 560px) {
  .admin-card { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-card > .rule-num, .admin-card > .cat-swatch { grid-column: 1 / -1; }
}

.dm-emoji.is-below { bottom: auto; top: calc(100% + 6px); }

/* Backend: Abo & Preise. */
.abo-status { margin-bottom: 1rem; }
.abo-status p { margin: .4rem 0; }
.abo-status code { font-size: .85rem; overflow-wrap: anywhere; }
.pay-ok { color: var(--mw-lime); }
.pay-warn { padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 180, 77, .12); border: 1px solid rgba(255, 180, 77, .4); color: #ffd59a; font-size: .92rem; line-height: 1.5; }
.pay-warn b { color: #ffe2b8; }
.abo-form { max-width: 560px; }
/* One plan only (e.g. monthly without a yearly price): full width. */
.plans:has(> .plan:only-child) { grid-template-columns: 1fr; }

/* Backend → Team (KI): one card per coach. */
.tm-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.tm-admin-card { padding: 1.1rem 1.2rem; display: grid; gap: .35rem; align-content: start; }
.tm-admin-card p { margin: 0; }
.tm-admin-card .club-sub { margin: 0; font-size: .88rem; }
.tm-admin-n { color: var(--mw-sage-3); font-size: .85rem; }
.tm-admin-card textarea { width: 100%; margin-top: .4rem; padding: .6rem .8rem; border-radius: 10px; resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(5, 18, 11, 0.5); color: var(--mw-white); font: inherit; font-size: .95rem; }
.tm-admin-card textarea:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; }
.tm-admin-who { display: flex; gap: .7rem; align-items: center; }
.tm-admin-who img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }

/* Club home: the Dream-Team banner, with a fan of cards. */
.ct-promo { position: relative; display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 1rem; align-items: center; margin: 0 0 1.4rem;
  padding: 1.4rem 1.6rem; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--mw-white);
  background: radial-gradient(120% 140% at 100% 0%, rgba(216,255,107,.18), transparent 55%), linear-gradient(135deg, var(--mw-pitch), var(--mw-night));
  border: 1px solid rgba(216,255,107,.4); }
.ct-promo[hidden] { display: none; }
.ct-promo:hover { border-color: var(--mw-lime); }
.ct-promo-text { display: grid; gap: .5rem; }
.ct-promo-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mw-lime); }
.ct-promo b { font-family: var(--font-display, inherit); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.1; }
.ct-promo-text > span:nth-child(3) { color: var(--mw-sage-1); }
.ct-promo-go { margin-top: .3rem; font-weight: 800; color: var(--mw-lime); }
.ct-promo-fan { position: relative; display: flex; justify-content: center; height: 190px; }
.ct-promo-fan img { width: 104px; height: 138px; margin: 0 -24px; object-fit: cover; object-position: 50% 15%; border-radius: 10px; border: 4px solid #f3f3ea;
  box-shadow: 0 10px 22px rgba(0,0,0,.5); transform: translateY(calc(var(--i) * var(--i) * 6px)) rotate(calc(var(--i) * 7deg)); transition: transform .2s ease; }
.ct-promo:hover .ct-promo-fan img { transform: translateY(calc(var(--i) * var(--i) * 6px - 6px)) rotate(calc(var(--i) * 9deg)); }
@media (max-width: 640px) {
  .ct-promo { grid-template-columns: 1fr; padding: 1.2rem; }
  .ct-promo-fan { order: -1; height: 150px; }
  .ct-promo-fan img { width: 84px; height: 112px; margin: 0 -20px; }
}
@media (prefers-reduced-motion: reduce) { .ct-promo-fan img { transition: none; } }

/* --- who is coming (admin) ----------------------------------------------
   "3 dabei" as a button for Michael: a popover with a mouse, a dialog on
   touch (club-attendees.js). Members keep the plain count. */
.att-trigger {
  background: none; border: 0; padding: 0.2rem 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dotted rgba(255, 255, 255, 0.35); text-underline-offset: 3px;
}
.event-going.att-trigger { color: var(--mw-sage-1); font-size: 0.82rem; }
.att-trigger:hover, .att-trigger[aria-expanded="true"] { color: var(--mw-white); text-decoration-color: var(--mw-lime); }
.att-trigger:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; border-radius: 4px; }

.att-pop {
  position: absolute; z-index: 40;
  width: min(340px, calc(100vw - 1rem)); max-height: min(60vh, 420px); overflow-y: auto;
  padding: 0.4rem; border-radius: 14px; background: var(--mw-night);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.att-pop[hidden] { display: none; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.att-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.3rem 0.4rem; border-radius: 10px;
}
.att-list li:hover { background: rgba(255, 255, 255, 0.05); }
.att-who {
  display: flex; align-items: center; gap: 0.4rem; min-width: 0;
  color: var(--mw-white); text-decoration: none; font-size: 0.92rem;
}
.att-who > span:not(.face):not(.tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-who:hover > span:not(.face):not(.tag) { text-decoration: underline; }
.att-who .face { width: 30px; height: 30px; margin: 0; font-size: 0.7rem; }
.att-who .tag { flex: none; }
.att-dm { flex: none; color: var(--mw-lime); font-size: 0.82rem; }
.att-who:focus-visible, .att-dm:focus-visible { outline: 2px solid var(--mw-lime); outline-offset: 2px; border-radius: 6px; }
.att-empty, .att-note { margin: 0; padding: 0.6rem; font-size: 0.85rem; color: var(--mw-sage-1); }
.att-note { padding-top: 0.4rem; font-size: 0.78rem; color: var(--mw-sage-3); }
.att-sub { margin: -0.6rem 0 0.6rem; font-size: 0.85rem; color: var(--mw-sage-1); }
/* The reset in tokens.css zeroes every margin, which also takes away the
   auto margin that centres a modal <dialog>. */
.att-dialog { margin: auto; }
.att-dialog .dialog-body h2 { margin-bottom: 0.8rem; }
.att-dialog .att-list li { padding: 0.45rem 0.2rem; }
.att-dialog .att-dm { padding: 0.4rem 0.2rem; }

/* A lesson's text (imported from Skool or written in the backend). */
.lesson-text { max-width: 68ch; margin: 0 0 1.6rem; color: var(--mw-sage-1); line-height: 1.65; }
.lesson-text p { margin: 0 0 1rem; }
.lesson-text a { color: var(--mw-lime); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lesson-text figure { margin: 1.2rem 0; }
.lesson-text img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.lesson-text-edit { display: grid; gap: .5rem; margin-top: .7rem; } .lesson-text-edit textarea { width: 100%; min-height: 12rem; }

/* The lesson list as a fold-out on phones (one line above the lesson),
   always open beside it on wide screens; previous/next under each lesson. */
.rail-summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; align-items: center; cursor: pointer; }
.rail-summary::-webkit-details-marker { display: none; }
.rail-summary .rail-title { grid-column: 1 / -1; margin: 0; }
.rail-pos { font-size: .82rem; color: var(--mw-sage-1); }
.rail-toggle { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-lime); }
.rail-toggle::after { content: ' ▾'; }
.course-rail[open] .rail-toggle::after { content: ' ▴'; }
.course-rail .bar { margin-top: .9rem; }
@media (min-width: 861px) {
  .rail-summary { cursor: default; pointer-events: none; }
  .rail-toggle { display: none; }
  .rail-summary .rail-title { margin-bottom: .2rem; }
}
@media (max-width: 860px) {
  .course-rail { padding: .9rem 1rem; }
  .course-rail .lesson-list { max-height: 60vh; overflow-y: auto; }
  .course-layout { gap: 1.2rem; }
}
.lesson-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.lesson-step { display: grid; gap: .2rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--mw-white); text-decoration: none; min-width: 0; }
.lesson-step:hover { border-color: var(--mw-lime); }
.lesson-step small { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-lime); }
.lesson-step span { font-weight: 600; overflow-wrap: anywhere; }
.lesson-step.is-next { text-align: right; }

/* Calendar: joining the call from its date (Michael, 17.11.2026). */
.event-join { white-space: nowrap; }
.event-join .live-pill { margin-right: .45rem; }
