/* allow --hero-height to be CSS-transitioned */
@property --hero-height {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-accent:     #c8f000;
  --color-accent-fg:  #0a0a0a;
  --color-bg:         #e8e8e0;
  --color-surface:    #ffffff;
  --color-text:       #0a0a0a;
  --color-text-muted: #8a8a8e;   /* iOS secondary label */
  --color-nav-bg:     rgba(242, 242, 247, 0.85);  /* translucent, like iOS tab bar */
  --color-nav-border: rgba(0, 0, 0, 0.12);
  --nav-height:       83px;   /* ~49pt content + 34pt home indicator area */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:         #1c1c1e;
    --color-surface:    #2c2c2e;
    --color-text:       #f2f2f7;
    --color-text-muted: #8e8e93;
    --color-nav-bg:     rgba(28, 28, 30, 0.85);
    --color-nav-border: rgba(255, 255, 255, 0.12);
  }
}

/* Explicit in-app choice (Settings → Darstellung) overrides system preference either way. */
:root[data-theme="dark"] {
  --color-bg:         #1c1c1e;
  --color-surface:    #2c2c2e;
  --color-text:       #f2f2f7;
  --color-text-muted: #8e8e93;
  --color-nav-bg:     rgba(28, 28, 30, 0.85);
  --color-nav-border: rgba(255, 255, 255, 0.12);
}

:root[data-theme="light"] {
  --color-bg:         #e8e8e0;
  --color-surface:    #ffffff;
  --color-text:       #0a0a0a;
  --color-text-muted: #8a8a8e;
  --color-nav-bg:     rgba(242, 242, 247, 0.85);
  --color-nav-border: rgba(0, 0, 0, 0.12);
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ── Layout shell ────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.page-content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--nav-height);
  padding-top: var(--hero-height);
}

.app-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 0;
}

.app-message {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-nav-border);
  color: var(--color-text);
}

.app-message--success,
.app-message--info {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}

.app-message--error {
  color: #fff;
  background: #d64545;
  border-color: #d64545;
}

/* ── Team grid (club_team) ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 12px;
  cursor: pointer;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.team-card__photo--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.team-card__photo--warm   { background: linear-gradient(135deg, #c8763a, #7a3b1e); }
.team-card__photo--cool   { background: linear-gradient(135deg, #3a7ac8, #1e2f7a); }
.team-card__photo--olive  { background: linear-gradient(135deg, #8a9a3a, #4a531e); }
.team-card__photo--slate  { background: linear-gradient(135deg, #5a6a7a, #232c36); }
.team-card__photo--forest { background: linear-gradient(135deg, #2f8a5a, #16402c); }

.team-card__name {
  margin: 10px 0 0;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.team-card__badge {
  display: inline-block;
  margin: 6px 12px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 11px;
  font-weight: 700;
}

/* ── Trainer finden (club_trainer) ── */
.trainer-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.trainer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trainer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 10px;
}

.trainer-card[hidden] {
  display: none;
}

.trainer-card__clickable {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.trainer-card__photo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.trainer-card__photo--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.trainer-card__photo--warm   { background: linear-gradient(135deg, #c8763a, #7a3b1e); }
.trainer-card__photo--cool   { background: linear-gradient(135deg, #3a7ac8, #1e2f7a); }
.trainer-card__photo--olive  { background: linear-gradient(135deg, #8a9a3a, #4a531e); }
.trainer-card__photo--slate  { background: linear-gradient(135deg, #5a6a7a, #232c36); }
.trainer-card__photo--forest { background: linear-gradient(135deg, #2f8a5a, #16402c); }

.trainer-card__body {
  flex: 1;
  min-width: 0;
}

.trainer-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.trainer-card__desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trainer-card__days {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trainer-card__days svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.trainer-card__book {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-fg);
  cursor: pointer;
}

.trainer-any-card {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 4px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.trainer-any-card__hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.trainer-current-section {
  margin-top: 32px;
}

.trainer-current-section__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.trainer-current-list {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
}

.trainer-current-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-nav-border);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
}

.trainer-current-row:last-child {
  border-bottom: 0;
}

.trainer-current-row__icon {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 14%, transparent);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.trainer-current-row__body {
  flex: 1;
  min-width: 0;
}

.trainer-current-row__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.trainer-current-row__desc {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trainer-current-row__check {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* ── Staff-Detailkarte (club_team, geteilt mit club_trainer) ── */
.staff-detail {
  padding: 16px 16px 32px;
}

.staff-detail__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}

.staff-detail__photo--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
}

.staff-detail__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.staff-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.staff-detail__specialty {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: -8px 0 16px;
}

.staff-detail__section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.staff-detail__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 20px;
  white-space: pre-line;
}

.staff-detail__availability {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.staff-detail__availability svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.staff-detail__book-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-fg);
  cursor: pointer;
}

/* ── Kurskalender (club_kurse) ── */
.kurse-panel {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px;
}

.kurse-panel__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.kurse-panel__title svg {
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
}

.day-strip {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 14px;
}

.day-strip__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border: 0;
  border-radius: 12px;
  background: none;
  font-family: inherit;
  cursor: pointer;
  color: var(--color-text);
}

.day-strip__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.day-strip__number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.day-strip__day--selected .day-strip__number {
  background: var(--color-text);
  color: var(--color-bg);
}

.day-strip__day--selected .day-strip__label {
  color: var(--color-text);
}

.kurse-list {
  display: flex;
  flex-direction: column;
}

.kurse-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--color-nav-border);
}

.kurse-row[hidden] {
  display: none;
}

.kurse-row:first-child {
  border-top: 0;
}

.kurse-row--highlight {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 10px;
  transition: background 0.4s ease;
}

.kurse-row__bar {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.kurse-row__time {
  width: 44px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.kurse-row__duration {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.kurse-row__body {
  flex: 1;
  min-width: 0;
}

.kurse-row__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.kurse-row__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.kurse-row__action {
  flex-shrink: 0;
}

.kurse-row__book {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-fg);
  cursor: pointer;
}

.kurse-row__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── Feedback (club_feedback) ── */
.feedback-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin: 24px 0 8px;
}

.feedback-section-title:first-child {
  margin-top: 0;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 16px;
}

.feedback-card__question {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.feedback-stars {
  display: flex;
  gap: 4px;
}

.feedback-star {
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-nav-border);
}

.feedback-star svg {
  width: 100%;
  height: 100%;
}

.feedback-star--filled {
  color: #f5a623;
}

.feedback-card__toggle {
  display: inline-block;
  margin-top: 8px;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.feedback-card__reason {
  margin-top: 8px;
}

.feedback-card__reason[hidden] {
  display: none;
}

.feedback-card__reason textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--color-nav-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
}

/* ── Mitgliedschaft (club_mitgliedschaft) ── */
.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 16px;
}

.member-card__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: #4a4a4a;
}

.member-card__photo svg {
  width: 26px;
  height: 26px;
}

.member-card__body {
  flex: 1;
  min-width: 0;
}

.member-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.member-card__club {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.member-card__tier {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 12px;
  font-weight: 700;
}

.member-stats {
  display: flex;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 0;
  margin-top: 10px;
}

.member-stats__item {
  flex: 1;
  text-align: center;
  border-left: 1px solid var(--color-nav-border);
}

.member-stats__item:first-child {
  border-left: 0;
}

.member-stats__value {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.member-stats__label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.member-section {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 10px;
}

.member-section__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.member-section__title svg {
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
}

.member-trainer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-trainer-row__photo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--color-nav-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.member-trainer-row__body {
  flex: 1;
  min-width: 0;
}

.member-trainer-row__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.member-trainer-row__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.member-trainer-row__action {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-fg);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.member-grid .member-section {
  margin-top: 0;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.member-macro {
  margin-bottom: 8px;
}

.member-macro__label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.member-macro__bar {
  height: 5px;
  border-radius: 3px;
  background: var(--color-nav-border);
  overflow: hidden;
}

.member-macro__bar-fill {
  height: 100%;
  background: var(--color-text);
  border-radius: 3px;
}

.member-kcal-goal {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.member-week-strip {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 8px;
}

.member-week-strip__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.member-week-strip__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.member-week-strip__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-nav-border);
}

.member-week-strip__dot--active {
  background: var(--brand);
}

.member-week-strip__day--today .member-week-strip__label {
  color: var(--color-text);
}

.member-week-strip__day--today .member-week-strip__dot {
  outline: 2px solid var(--color-text);
  outline-offset: 1px;
}

.member-week-plan__routine {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.member-contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--color-nav-border);
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}

.member-contract-row:first-child {
  border-top: 0;
}

.member-contract-row svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

/* ── Bottom sheet (openGym-style detail overlay) ────────────────
 * Background page stays mounted instead of navigating away — feels lighter
 * than a full page transition for "look at one thing" views (exercise
 * detail, map pin detail, ...). The dark backdrop below provides the
 * separation/focus cue; no blur on the background, same as native map apps
 * (Google/Apple Maps) where the map stays sharp under a sheet.
 */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}

.sheet-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 430px;
  max-height: 88dvh;
  background: var(--color-bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet--open {
  transform: translate(-50%, 0);
}

.sheet__handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-nav-border);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.sheet__body {
  overflow-y: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 16px));
}

/* ── Auth sheet (login / register) ───────────────────────────────
 * Auth pages don't extend base.html — there's no tab to mark active
 * while you're signing in, so the bottom nav rendered anyway (every
 * link grey) and reads as broken (see login.html history). Instead
 * they get their own minimal shell that presents the form as a sheet
 * sliding up over a dark backdrop, mirroring the map-pin sheet
 * pattern elsewhere in the app instead of the full tab-bar chrome.
 */
.auth-body {
  min-height: 100dvh;
  background: var(--color-bg);
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.auth-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 430px;
  max-height: 92dvh;
  background: var(--color-bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.auth-sheet--open {
  transform: translate(-50%, 0);
}

.auth-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.auth-sheet__close svg {
  width: 16px;
  height: 16px;
}

.auth-sheet__body {
  overflow-y: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 16px));
}

/* ── Bottom nav (HIG: Tab Bar) ───────────────────────────────── */
/*
 * Apple HIG Tab Bar guidelines applied:
 * - Floats above content with translucent backdrop-filter
 * - Minimum touch target 44×44pt per item
 * - Icons above labels in portrait (compact)
 * - Filled icon for active tab, outline for inactive
 * - Labels: single words, 11pt, semibold when active
 * - Always visible, never hidden or disabled
 * - Safe-area aware via env(safe-area-inset-bottom)
 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--color-nav-border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  /* HIG: minimum 44×44pt touch target */
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

/* inactive: outline icon */
.nav-item .icon-outline { display: block; }
.nav-item .icon-filled  { display: none; }

/* active: filled icon + accent color */
.nav-item.active {
  color: var(--color-accent-fg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-item.active {
    color: var(--color-accent);
  }
}

:root[data-theme="dark"] .nav-item.active {
  color: var(--color-accent);
}

.nav-item.active .icon-outline { display: none; }
.nav-item.active .icon-filled  { display: block; }

.nav-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

/* ── Club Page ───────────────────────────────────────────────── */

/* Fallback: wenn kein :root{--brand} gesetzt ist, auf accent zurückfallen */
:root {
  --brand:    var(--color-accent);
  --brand-fg: var(--color-accent-fg);
}

.club-page {
  padding-top: 16px;
  padding-bottom: 8px;
}

/* club_* sub-pages (Team, Kurse, Trainer, ...): the collapsed header
   (_header_compact.html) is `position: fixed`, so content needs enough
   top clearance to clear it. --subpage-header-height is measured by that
   partial's own script (a long nickname/studio name can wrap it onto two
   lines, growing past any fixed guess); the calc() fallback covers
   no-JS/first-paint before that script runs. */
.club-subpage-content {
  padding: calc(var(--subpage-header-height, 84px) + 20px) 16px 16px;
}

.subpage-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.subpage-title-row .settings-back {
  flex-shrink: 0;
}

/* Hero Block — fixed, no transitions on the container (only widgets animate) */
.club-hero {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--brand);
  padding: 0 16px 12px;
  border-radius: 0 0 24px 24px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.club-hero--collapsed {
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}

/* outer: animates height via grid-template-rows 1fr → 0fr */
.hero-widgets {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  transition:
    grid-template-rows 0.3s ease,
    opacity 0.2s ease;
}

.club-hero--collapsed .hero-widgets {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* inner: the actual 2-column card row; must have min-height:0 for the trick */
.hero-widgets-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  min-height: 0;
}

/* Header — fixed height so it never moves during widget collapse.
   align-items: flex-start (not center) so the logo and action buttons stay
   pinned to the top text line - a long nickname that wraps the greeting to
   two lines would otherwise pull the vertical center down with it, leaving
   the logo/buttons looking mis-aligned relative to the (now taller) name. */
.club-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 72px;
  padding: 0;
}

.club-header__identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.club-logo {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--brand-fg) 12%, transparent);
  color: var(--brand-fg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

button.club-logo {
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.club-header__studio-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-fg);
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 3px;
}

.club-header__greeting {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-fg);
}

.club-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-fg) 15%, transparent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-fg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-fg) 15%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--brand-fg) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-fg);
  cursor: pointer;
  user-select: none;
}


.hero-card {
  background: color-mix(in srgb, var(--brand-fg) 12%, transparent);
  border-radius: 16px;
  padding: 14px;
}

.hero-card--wide {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card--dark {
  background: #111111;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 88px;
  padding: 14px 16px;
}

.occupancy-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.occupancy-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.occupancy-ring svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: color-mix(in srgb, var(--brand-fg) 20%, transparent);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: var(--brand-fg);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.occupancy-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-fg);
}

.occupancy-info {
  flex: 1;
}

.occupancy-label-small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-fg);
  opacity: 0.6;
  margin-bottom: 2px;
}

.occupancy-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-fg);
  margin-bottom: 6px;
}

.occupancy-bar {
  display: flex;
  gap: 3px;
}

.bar-seg {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--brand-fg) 15%, transparent);
}

.bar-seg.filled {
  background: color-mix(in srgb, var(--brand-fg) 75%, transparent);
}


.open-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cd964;
  margin-bottom: 4px;
}

.open-dot--closed {
  background: #ff3b30;
}

.open-small {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}

.open-time {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* Action Cards */
.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 12px;
}

.action-card {
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}

.action-card svg {
  width: 28px;
  height: 28px;
}

.action-card--dark {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

@media (prefers-color-scheme: dark) {
  .action-card--dark {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.08);
  }
}

.action-card--accent {
  background: var(--brand);
  color: var(--brand-fg);
}

.action-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 4px;
}

.action-card__sub {
  font-size: 12px;
  opacity: 0.6;
}

.action-card--dark .action-card__sub {
  color: rgba(255,255,255,0.6);
}

/* Amenities */
.amenities-scroll {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.amenities-scroll::-webkit-scrollbar { display: none; }

.amenity-pill {
  flex-shrink: 0;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

/* Section */
.section {
  padding: 0 16px 20px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-fg);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-link { color: var(--brand); }
}
:root[data-theme="dark"] .section-link { color: var(--brand); }

/* Classes */
.classes-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.classes-scroll::-webkit-scrollbar { display: none; }

.classes-empty {
  font-size: 14px;
  color: var(--color-text-muted);
}

.class-card {
  display: block;
  flex-shrink: 0;
  width: 148px;
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.class-card__img {
  height: 90px;
  background: #1a1a1a;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 8px;
}

.class-duration {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

.class-card__body {
  padding: 10px 10px 12px;
}

.class-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.class-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.class-status { font-size: 12px; font-weight: 600; }
.status--booked    { color: #34c759; }
.status--waitlisted { color: #ff9500; }
.status--free      { color: var(--color-text-muted); }

/* Announcements */
.announcements-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.announcements-scroll::-webkit-scrollbar { display: none; }

.announcement-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 16px;
}

.announcement-card--scroll {
  flex-shrink: 0;
  width: 260px;
  cursor: pointer;
}

.announcement-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ann-tag {
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ann-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-chevron {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.ann-body {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.announcement-card--scroll .ann-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-detail {
  padding: 16px 16px 32px;
}

.ann-detail__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ann-detail__date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.ann-detail__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ann-detail__body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
  white-space: pre-line;
}

/* Shortcuts Grid */
.shortcuts-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shortcuts-grid::-webkit-scrollbar { display: none; }

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  background: var(--color-surface);
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  min-width: 60px;
}

.shortcut-item svg {
  width: 22px;
  height: 22px;
}

.shortcut-item span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: var(--color-text-muted);
}

/* Membership */
.membership-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
}

.membership-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.membership-card__top svg {
  width: 16px;
  height: 16px;
}

.membership-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.membership-plan {
  font-size: 20px;
  font-weight: 700;
}

.membership-status {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.membership-price {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}

.membership-end {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Dark mode overrides for club page */
@media (prefers-color-scheme: dark) {
  .amenity-pill,
  .class-card,
  .announcement-card,
  .shortcut-item,
  .membership-card {
    background: var(--color-surface);
  }
}

/* ── Profile page ────────────────────────────────────────────── */

.profile-page {
  padding: 32px 16px 16px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 28px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
}

.profile-email {
  font-size: 14px;
  color: var(--color-text-muted);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--color-text);
}

.profile-menu-item__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.profile-menu-item__icon svg {
  width: 22px;
  height: 22px;
}

.profile-menu-item__label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.profile-menu-item__chevron {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ── Auth pages (login / register) ──────────────────────────── */

.auth-page {
  padding: 48px 16px 16px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 20px 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.auth-field input {
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-nav-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.auth-field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
}

.auth-errors {
  font-size: 13px;
  color: #ff453a;
  list-style: none;
}

.auth-submit {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-fg);
  background: var(--brand);
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
}

.auth-switch {
  text-align: center;
  padding-top: 20px;
}

.auth-switch a {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.auth-switch a strong {
  color: var(--color-text);
}

/* ── Settings page ───────────────────────────────────────────── */

.settings-page {
  padding: 16px 16px 24px;
}

.settings-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 20px;
}

.settings-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-text);
}

.settings-back svg {
  width: 22px;
  height: 22px;
}

.settings-title {
  font-size: 28px;
  font-weight: 700;
}

.settings-section {
  padding-bottom: 24px;
}

.settings-section__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0 4px 8px;
}

.settings-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 10px 4px 0;
  line-height: 1.5;
}

.settings-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 14px;
}

.settings-tip__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-tip__icon svg {
  width: 17px;
  height: 17px;
}

.settings-tip__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
}

.settings-card {
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-nav-border);
}

.settings-row--last,
.settings-card .settings-row:last-child {
  border-bottom: none;
}

.settings-row--nav {
  cursor: pointer;
}

.settings-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.settings-row__icon svg {
  width: 18px;
  height: 18px;
}

.settings-row__icon--indigo { background: #5856d6; }
.settings-row__icon--blue   { background: #007aff; }
.settings-row__icon--teal   { background: #30b0c7; }
.settings-row__icon--orange { background: #ff9500; }
.settings-row__icon--green  { background: #34c759; }
.settings-row__icon--yellow { background: #ffcc00; }
.settings-row__icon--pink   { background: #ff2d55; }
.settings-row__icon--purple { background: #af52de; }

.settings-row__label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.settings-row__value {
  font-size: 15px;
  color: var(--color-text-muted);
}

.settings-row__chevron {
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.settings-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 25%, transparent);
  color: var(--color-text-muted);
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

/* Toggle switch */
.settings-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.settings-toggle__track {
  width: 46px;
  height: 27px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-text-muted) 35%, transparent);
  display: block;
  position: relative;
  transition: background 0.2s ease;
}

.settings-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.settings-toggle input:checked + .settings-toggle__track {
  background: #34c759;
}

.settings-toggle input:checked + .settings-toggle__track .settings-toggle__thumb {
  transform: translateX(19px);
}

.settings-toggle input:focus-visible + .settings-toggle__track {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Segmented control (display-only for now) */
.settings-segmented {
  display: flex;
  background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
  border-radius: 8px;
  padding: 2px;
}

.settings-segmented__option {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 6px;
}

.settings-segmented__option--active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ── Training page ───────────────────────────────────────────── */

.training-page {
  padding: 16px 16px 24px;
}

/* Week calendar / today */
.training-week-placeholder {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 20px;
}

.training-week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 12px;
}

.training-week-nav__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  min-width: 108px;
  text-align: center;
}

.training-week-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--color-text-muted);
  text-decoration: none;
}

.training-week-nav__arrow:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.training-week-nav__arrow svg {
  width: 18px;
  height: 18px;
}

.training-week-nav__arrow--disabled {
  opacity: 0.35;
}

.training-week-placeholder__row {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 16px;
}

.training-week-placeholder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 40%, transparent);
}

.training-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  border: none;
  background: none;
  padding: 4px 0;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.training-week-day:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.training-week-day__letter {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  line-height: 1;
}

.training-week-day__num {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.training-week-day__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 30%, transparent);
}

.training-week-day__dot--done {
  width: 7px;
  height: 7px;
  background: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}

.training-week-day__dot--missed {
  background: color-mix(in srgb, var(--color-text-muted) 45%, transparent);
}

.training-week-day__rest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7px;
  color: color-mix(in srgb, var(--color-text-muted) 70%, transparent);
}

.training-week-day__rest-icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.training-week-day--today .training-week-day__letter {
  color: var(--color-text);
  font-weight: 700;
}

.training-week-day--today .training-week-day__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
}

.training-week-day--today .training-week-day__dot {
  display: none;
}

.training-today-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--color-text) 5%, var(--color-surface));
  color: var(--color-text);
  border-radius: 12px;
  padding: 12px 14px;
}

.training-today-card__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text-muted);
}

.training-today-card__icon svg {
  width: 18px;
  height: 18px;
}

.training-today-card__body {
  flex: 1;
  min-width: 0;
}

.training-today-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1px;
}

.training-today-card__title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.training-today-card__subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.training-today-card__cta {
  flex-shrink: 0;
  border: none;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.training-bodyweight-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 2px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.training-bodyweight-nudge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tile grid */
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.training-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: var(--color-text);
  min-height: 120px;
}

.training-tile--accent {
  background: var(--brand);
  color: var(--brand-fg);
}

.training-tile--wide {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin-top: 10px;
}

.training-tile--wide .training-tile__title {
  margin-top: 0;
}

.training-tile--wide .training-tile__sub {
  display: block;
}

.training-tile__icon {
  width: 26px;
  height: 26px;
}

.training-tile__icon svg {
  width: 24px;
  height: 24px;
}

.training-tile__title {
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

.training-tile__sub {
  font-size: 12px;
  opacity: 0.65;
}

.training-tile--locked {
  position: relative;
  opacity: 0.72;
}

.training-tile__lock {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.training-tile--accent .training-tile__lock {
  background: color-mix(in srgb, var(--brand-fg) 20%, transparent);
  color: var(--brand-fg);
}

.training-tile__lock svg {
  width: 13px;
  height: 13px;
}

.training-today-card__cta--locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.training-today-card__cta--locked svg {
  width: 15px;
  height: 15px;
}

.training-today-card__cta--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.training-today-card__cta--icon svg {
  width: 16px;
  height: 16px;
}

/* ── Exercises list ──────────────────────────────────────────── */

.exercises-page {
  padding: 16px 16px 24px;
}

.exercises-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

.exercises-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.exercises-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.exercises-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.exercises-search svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.exercises-search__input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--color-text);
  width: 100%;
  font-family: inherit;
}

.exercises-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.exercises-chips::-webkit-scrollbar { display: none; }

.exercises-chips--secondary {
  padding-bottom: 14px;
}

.exercises-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.exercises-chip--on {
  background: var(--brand);
  color: var(--brand-fg);
}

.exercises-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exercises-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--color-text);
}

.exercises-item__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
}

.exercises-item__thumb svg {
  width: 24px;
  height: 24px;
}

.exercises-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exercises-item__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercises-item__sub {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routine-attribution {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercises-item--routine {
  padding-right: 8px;
}

.exercises-item__link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.exercises-item__start-btn {
  flex-shrink: 0;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 12px;
}

.exercises-item__plan {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-fg);
  background: var(--brand);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.exercises-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.exercises-more {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* ── Exercise detail ─────────────────────────────────────────── */

.exercise-detail {
  padding: 16px 16px 32px;
}

.exercise-detail__title {
  font-size: 24px;
  font-weight: 700;
  text-transform: capitalize;
  margin: 8px 0 14px;
}

.exercise-detail__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  background: var(--color-surface);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.exercise-detail__media svg {
  width: 64px;
  height: 64px;
}

.exercise-detail__media-hint {
  font-size: 12px;
}

.exercise-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.exercise-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
}

.exercise-tag--accent {
  background: var(--brand);
  color: var(--brand-fg);
}

.exercise-detail__plan-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  margin-bottom: 20px;
  font-family: inherit;
  cursor: pointer;
}

.session-finish-btn {
  border: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  margin-bottom: 20px;
  font-family: inherit;
  cursor: pointer;
}

.session-finish-btn--complete {
  background: var(--brand);
  color: var(--brand-fg);
}

.session-menu {
  position: relative;
  margin-left: auto;
}

.session-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 50%;
}

.session-menu__trigger:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.session-menu__trigger svg {
  width: 22px;
  height: 22px;
}

.session-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.session-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.session-menu__item:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.session-menu__item--disabled {
  color: var(--color-text-muted);
  cursor: default;
}

.session-menu__item--disabled:hover {
  background: none;
}

.session-menu__item--danger {
  color: #ff3b30;
}

.session-menu__hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.onerm-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.onerm-card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.onerm-steppers {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.stepper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stepper[hidden] {
  display: none;
}

.stepper__label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.stepper__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 6px 8px;
}

.stepper__btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.stepper__value {
  font-size: 16px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.onerm-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.onerm-result__label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.onerm-result__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-fg);
}

@media (prefers-color-scheme: dark) {
  .onerm-result__value { color: var(--brand); }
}
:root[data-theme="dark"] .onerm-result__value { color: var(--brand); }

.onerm-result__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.exercise-detail__section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.exercise-detail__steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exercise-detail__steps li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  padding-left: 4px;
}

.exercise-note {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.exercise-note--trainer {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.exercise-note__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.exercise-note__text {
  font-size: 14px;
  color: var(--color-text);
  white-space: pre-wrap;
}

.exercise-note-form__textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 14px;
  resize: vertical;
  margin-bottom: 10px;
}

.exercise-note-form__save-btn {
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  font-family: inherit;
  cursor: pointer;
}

/* ── Plan / routines list ────────────────────────────────────── */

.plan-page {
  padding: 16px 16px 24px;
}

.plan-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.plan-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.plan-new-btn {
  border: none;
  border-radius: 20px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
}

.routine-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.routine-icon svg {
  width: 22px;
  height: 22px;
}

/* ── Routine editor ──────────────────────────────────────────── */

.routine-edit {
  padding: 16px 16px 32px;
}

.routine-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.routine-name-input {
  flex: 1;
  border: none;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  font-family: inherit;
  min-width: 0;
}

.input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-text);
  font-family: inherit;
  resize: none;
}

.input::placeholder {
  color: var(--color-text-muted);
}

.input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.routine-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.routine-icon-btn svg {
  width: 20px;
  height: 20px;
}

.routine-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 14px 2px;
}

.routine-delete-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: color-mix(in srgb, #ff3b30 15%, transparent);
  color: #ff3b30;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  font-family: inherit;
  cursor: pointer;
}

/* Routine exercise rows */
.superset-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-fg);
  padding: 2px 4px;
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) { .superset-label { color: var(--brand); } }
:root[data-theme="dark"] .superset-label { color: var(--brand); }

.routine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 10px 12px;
}

.routine-row--in-superset {
  border-left: 3px solid var(--brand);
}

.routine-row__fields {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.routine-row__body-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.routine-row__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.routine-link-btn,
.routine-remove-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.routine-link-btn svg,
.routine-remove-btn svg {
  width: 15px;
  height: 15px;
}

.session-entry__header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.session-entry__note-toggle {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.session-entry__note-toggle svg {
  width: 15px;
  height: 15px;
}

.session-entry__note-toggle--has-note {
  background: var(--brand);
  color: var(--brand-fg);
}

.session-entry__note-panel {
  margin-bottom: 10px;
}

.routine-link-btn--on {
  background: var(--brand);
  color: var(--brand-fg);
}

.routine-row__move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.routine-move-btn {
  width: 22px;
  height: 15px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.routine-move-btn svg {
  width: 14px;
  height: 14px;
}

/* Muscle map — which muscles the routine's exercises train, shaded by relative volume */
.muscle-map-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.muscle-map-placeholder__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  align-self: flex-start;
}

.muscle-map {
  display: flex;
  gap: 20px;
}

.muscle-map__view {
  width: 90px;
  height: 158px;
}

.muscle-map__silhouette {
  fill: color-mix(in srgb, var(--color-text-muted) 18%, transparent);
}

.muscle-map__region {
  fill: color-mix(in srgb, var(--color-text-muted) 30%, transparent);
}

.muscle-map__region--l1 { fill: color-mix(in srgb, var(--brand) 25%, var(--color-text-muted) 30%); }
.muscle-map__region--l2 { fill: color-mix(in srgb, var(--brand) 50%, var(--color-text-muted) 20%); }
.muscle-map__region--l3 { fill: color-mix(in srgb, var(--brand) 75%, var(--color-text-muted) 10%); }
.muscle-map__region--l4 { fill: var(--brand); }

/* ── Workout log: active session ─────────────────────────────── */

.session-entry {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 8px;
}

.session-entry--in-superset {
  border-left: 3px solid var(--brand);
}

.session-entry > .superset-label {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0;
}

.session-entry__media {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-text-muted) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.session-entry__media-placeholder {
  font-size: 40px;
  opacity: 0.5;
}

.session-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.session-entry__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
}

.session-entry__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.session-entry__chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
}

.session-entry__sets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: color-mix(in srgb, var(--color-text-muted) 6%, transparent);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
}

.session-set-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
}

.session-set-header__phase {
  width: 22px;
  flex-shrink: 0;
}

.session-set-header__col {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: center;
}

.session-set-header__spacer {
  width: 56px;
  flex-shrink: 0;
}

.session-set {
  font-size: 13px;
  color: var(--color-text-muted);
}

.session-set--done {
  color: var(--color-text);
}

.session-set__pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-fg);
  background: var(--brand);
  border-radius: 6px;
  padding: 1px 6px;
  margin: 2px 0 3px 28px;
}

.session-set__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-set__phase {
  width: 22px;
  flex-shrink: 0;
  font-weight: 700;
  text-align: center;
}

.session-set__row--readonly {
  padding: 4px 0;
}

.session-set__value {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.session-set__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  font-family: inherit;
  text-align: center;
}

.session-set__toggle {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.session-set__toggle svg {
  width: 15px;
  height: 15px;
}

.session-set__toggle--on {
  background: var(--brand);
  color: var(--brand-fg);
}

.session-set__remove {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.session-set__remove svg {
  width: 12px;
  height: 12px;
}

.session-set__quick-actions {
  display: flex;
  gap: 14px;
  padding: 2px 2px 0 30px;
}

.session-set__quick-link {
  border: none;
  background: none;
  color: var(--brand-fg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) { .session-set__quick-link { color: var(--brand); } }
:root[data-theme="dark"] .session-set__quick-link { color: var(--brand); }

.session-entry__add-set {
  width: 100%;
  border: none;
  background: none;
  color: var(--brand-fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0 2px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) { .session-entry__add-set { color: var(--brand); } }
:root[data-theme="dark"] .session-entry__add-set { color: var(--brand); }

/* ── Workout log: bodyweight check-in ────────────────────────── */

.bodyweight-checkin__value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.bodyweight-checkin__step {
  width: 44px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bodyweight-checkin__number {
  min-width: 110px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
}

/* ── Workout log: focus navigation, rest timer, progress, last-time ─── */

.session-progress {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.session-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  margin: -4px 0 10px;
}

.session-nav {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.session-nav[hidden] {
  display: none;
}

.session-nav__btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.session-nav__btn--next {
  background: var(--brand);
  color: var(--brand-fg);
}

.session-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.rest-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--brand-fg);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.rest-timer[hidden] {
  display: none;
}

.rest-timer__label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}

.rest-timer__count {
  font-size: 18px;
  font-weight: 800;
  flex: 1;
  text-align: center;
}

.rest-timer__adjust,
.rest-timer__skip {
  border: none;
  background: color-mix(in srgb, var(--brand-fg) 18%, transparent);
  color: var(--brand-fg);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.session-entry__last-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.session-entry__recommendation {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.session-entry__recommendation-text {
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.session-entry__recommendation-actions {
  display: flex;
  gap: 8px;
}

.session-entry__recommendation-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text);
  cursor: pointer;
}

.session-entry__recommendation-btn[data-dismiss-recommendation] {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  background: transparent;
}

.session-entry__recommendation-btn--primary {
  background: var(--brand);
  color: var(--brand-fg);
}

.session-set__input--effort {
  font-size: 12px;
}

/* ── Icon / progression picker overlays ──────────────────────── */

.picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.picker-overlay[hidden] {
  display: none;
}

.picker-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 80dvh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: 20px 20px 0 0;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.picker-sheet__title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 4px 0 14px;
}

.picker-sheet__group {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 14px 2px 8px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.icon-grid__item {
  aspect-ratio: 1;
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-grid__item svg {
  width: 22px;
  height: 22px;
}

/* ── Exercise picker (inside routine editor sheet) ───────────── */

.exercises-item--picker {
  cursor: default;
}

.exercises-item__plan--btn {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.exercises-item__plan--added {
  background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
  color: var(--color-text-muted);
}

/* ── Exercise config sheet (ExConfig) ────────────────────────── */

.exconfig__seg {
  display: flex;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 3px;
}

.exconfig__seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 4px;
  border-radius: 9px;
  cursor: pointer;
}

.exconfig__seg-btn--on {
  background: var(--color-bg);
  color: var(--color-text);
}

.exconfig__steppers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.exconfig__steppers .stepper {
  flex: 1 1 130px;
}

.exconfig__steppers[hidden] {
  display: none;
}

.sec {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 4px 2px 8px;
}

/* ── Week schedule (Plan page) ───────────────────────────────── */

.week-schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.week-day {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.week-day__name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.week-day__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-fg);
  background: var(--brand);
  padding: 5px 10px;
  border-radius: 20px;
}

.week-day__badge svg {
  width: 13px;
  height: 13px;
}

.week-day__badge--rest {
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-text-muted) 18%, transparent);
}

/* ── Routine ownership/sharing badges ────────────────────────── */

.routine-owner-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-text-muted) 18%, transparent);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

.routine-owner-badge--public {
  color: var(--brand-fg);
  background: var(--brand);
}

/* ── Training stats: muscle fatigue / soreness list ──────────── */

.fatigue-muscle-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.fatigue-muscle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.fatigue-muscle-row__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.fatigue-muscle-row__fatigue,
.fatigue-muscle-row__soreness {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text-muted) 15%, transparent);
}

/* Chip background levels — same 5-step brand ramp as .muscle-map__region--l0..l4,
   but as `background` since these are HTML spans, not SVG paths (SVG uses `fill`). */
.fatigue-muscle-row__fatigue.level-l1,
.fatigue-muscle-row__soreness.level-l1 { background: color-mix(in srgb, var(--brand) 25%, var(--color-text-muted) 30%); color: var(--color-text); }
.fatigue-muscle-row__fatigue.level-l2,
.fatigue-muscle-row__soreness.level-l2 { background: color-mix(in srgb, var(--brand) 50%, var(--color-text-muted) 20%); color: var(--color-text); }
.fatigue-muscle-row__fatigue.level-l3,
.fatigue-muscle-row__soreness.level-l3 { background: color-mix(in srgb, var(--brand) 75%, var(--color-text-muted) 10%); color: var(--brand-fg); }
.fatigue-muscle-row__fatigue.level-l4,
.fatigue-muscle-row__soreness.level-l4 { background: var(--brand); color: var(--brand-fg); }

.fatigue-muscle-row__soreness--none {
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  color: var(--color-text-muted);
}

/* ── Training stats: soreness check-in sheet ─────────────────── */

.soreness-checkin__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soreness-checkin__option {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
}

/* ── Food ─────────────────────────────────────────────────────── */

.food-page {
  padding: 16px 16px 24px;
}

.food-header {
  padding-bottom: 8px;
}

.food-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.food-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.food-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 12px 24px;
}

.food-promo__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-promo__icon svg {
  width: 28px;
  height: 28px;
}

.food-promo__title {
  font-size: 19px;
  font-weight: 700;
}

.food-promo__text {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.4;
}

.food-promo__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.food-pill {
  background: var(--color-surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.food-promo__cta {
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: var(--color-text);
  color: var(--color-bg);
  cursor: default;
}

/* ── Entdecken (map + gym sheets) ───────────────────────────── */

.discover-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* OSM/ODbL requires visible attribution on the map at all times. Leaflet's
   default bottom-right placement sits under .bottom-nav (fixed, full-width,
   higher stacking context) and is invisible there - lift it above the nav
   and match the map-overlay pill style used elsewhere (search bar, filter
   button) instead of Leaflet's plain white default. */
.discover-map .leaflet-control-attribution {
  margin-bottom: calc(var(--nav-height) + 8px) !important;
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 10px;
}

.discover-map .leaflet-control-attribution a {
  color: var(--color-text-muted);
}

.discover-searchbar {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discover-searchbar__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.discover-searchbar__input {
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding-right: 38px;
}

.discover-searchbar__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-nav-border);
  color: var(--color-text-muted);
}

.discover-searchbar__clear[hidden] {
  display: none;
}

.discover-searchbar__clear svg {
  width: 13px;
  height: 13px;
}

.discover-searchbar__filter-btn {
  position: relative;
  flex-shrink: 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.discover-searchbar__filter-btn--active {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

.discover-filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.discover-empty {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  z-index: 5;
  text-align: center;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.discover-empty__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.discover-empty__body {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.discover-filter-sheet .sheet__body {
  padding: 0 16px;
}

.discover-filter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.discover-filter__title {
  font-size: 18px;
  font-weight: 700;
}

.discover-filter__reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.discover-filter__group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 16px 0 8px;
}

.discover-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-nav-border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.filter-chip--selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-fg);
}

.discover-filter__apply {
  margin: 24px 0 8px;
}

.gym-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.gym-pin--partner {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  border: 2px solid var(--color-surface);
}

.gym-pin--partner svg {
  width: 20px;
  height: 20px;
}

.gym-pin--claimed {
  width: 32px;
  height: 32px;
  background: var(--color-text);
  color: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.gym-pin--claimed svg {
  width: 15px;
  height: 15px;
}

.gym-pin--unclaimed {
  width: 14px;
  height: 14px;
  background: var(--color-surface);
  border: 2px solid var(--color-text-muted);
}

.gym-pin--selected {
  transform: scale(1.2);
}

/* Padding lives on the content itself, not its container: this same
   partial renders both as a full page (entdecken/gym_detail.html, inside
   .page-content, which has no horizontal padding of its own) and as a
   bottom sheet (.sheet__body, likewise unpadded so sheets that want
   edge-to-edge content - like the filter sheet's own chips - aren't
   fighting an inherited inset). Without this, the title/actions/detail
   rows sit flush against the sheet's rounded edge. */
.gym-detail {
  padding: 0 16px 16px;
}

.gym-detail__header {
  margin-bottom: 10px;
}

.gym-detail__title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gym-detail__verified {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gym-detail__subline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.gym-detail__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 500;
}

.gym-caption--muted {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: -6px 0 12px;
}

.gym-detail__description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.gym-photo-strip {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

/* Same placeholder look as the studio profile editor's own preview
   (.pm-photos__tile) - no photo model exists yet on either side, so both
   previews should look identical rather than drifting apart. */
.gym-photo-strip__tile {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2f22, #15170f);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
}

.gym-detail__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.gym-detail__actions-primary {
  flex: 1;
  margin-bottom: 0;
}

.btn-outline {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-nav-border);
  border-radius: 14px;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
}

.btn-outline svg {
  width: 18px;
  height: 18px;
}

.gym-upsell-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  border-radius: 16px;
  padding: 14px;
  margin-top: 18px;
}

.gym-upsell-box p {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.gym-recommend-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 18px;
  text-decoration: none;
  color: var(--color-text);
}

.gym-recommend-cta strong {
  display: block;
  font-size: 14px;
}

.gym-recommend-cta__sub {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.gym-recommend-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.text-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 14px 0;
  cursor: pointer;
}

/* Same reasoning as .gym-detail's padding above - this partial also
   renders inside both an unpadded .page-content and an unpadded
   .sheet__body. */
.gym-recommend {
  padding: 0 16px 16px;
}

.gym-recommend__header {
  margin-bottom: 8px;
}

.gym-recommend__gym-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.gym-recommend__gym-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gym-recommend__gym-icon svg {
  width: 22px;
  height: 22px;
}

.gym-recommend__gym-name {
  font-size: 16px;
  font-weight: 700;
}

.gym-recommend__body {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.check-list__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-accent);
}

.field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.gym-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 24px;
}

.gym-link-box__url {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gym-link-box__copy {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────
   Studio dashboard (B2B, /studio/)

   The member app is a 430px phone shell; this is a full-width desktop
   layout. They share every colour token above — that is what keeps them one
   product — but no structure, so everything here is namespaced `studio-`
   and cannot leak into member screens.

   Two tokens are studio-only: a dark sidebar that stays dark in both themes
   (the mockup's signature), and a canvas slightly off the surface colour so
   white cards read as raised.
   ───────────────────────────────────────────────────────────────────── */
:root {
  --studio-sidebar-bg:    #14140f;
  --studio-sidebar-fg:    #f2f2f7;
  --studio-sidebar-muted: #8a8a80;
  --studio-canvas:        color-mix(in srgb, var(--color-text) 4%, var(--color-bg));
  --studio-border:        color-mix(in srgb, var(--color-text) 12%, transparent);
}

/* Overrides the member app's `html, body { max-width: 430px; margin: 0 auto }`
   (near the top of this file) - that rule has no class guard, so it applies
   here too via plain element selector. Both html AND body need the override:
   body doesn't inherit max-width from html, but html itself stays clipped to
   430px otherwise, capping everything inside it regardless of body's own
   width. base_studio.html sets `studio-html` on <html> and `studio-body` on
   <body> for exactly this. */
.studio-html,
.studio-body {
  max-width: none;
}

.studio-body {
  margin: 0;
  background: var(--studio-canvas);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.studio { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Top bar ── */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--studio-border);
}

.studio-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

.studio-brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 17px;
}

.studio-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.studio-brand__name { font-size: 15px; font-weight: 700; }
.studio-brand__sub  { font-size: 11px; color: var(--color-text-muted); }

.studio-topbar__actions { display: flex; align-items: center; gap: 10px; }

.studio-icon-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--studio-border);
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  cursor: pointer;
}

.studio-avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 12px;
  font-weight: 700;
}

.studio-logout { margin: 0; }

.studio-logout__btn {
  border: 1px solid var(--studio-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.studio-logout__btn:hover { color: var(--color-text); }

/* ── Layout ── */
.studio-body-row { display: flex; flex: 1; min-height: 0; }

/* ── Sidebar ── */
.studio-nav {
  flex: 0 0 220px;
  background: var(--studio-sidebar-bg);
  color: var(--studio-sidebar-fg);
  padding: 16px 12px;
  overflow-y: auto;
}

.studio-nav__group { margin-bottom: 18px; }

.studio-nav__group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--studio-sidebar-muted);
  padding: 0 10px 6px;
}

.studio-nav__item {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--studio-sidebar-fg);
  text-decoration: none;
}

a.studio-nav__item:hover {
  background: color-mix(in srgb, var(--studio-sidebar-fg) 10%, transparent);
}

.studio-nav__item--active {
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 700;
}

/* Planned modules: visible so the structure is legible, clearly not clickable. */
.studio-nav__item--soon { color: var(--studio-sidebar-muted); cursor: default; }

/* ── Canvas ── */
.studio-canvas {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 48px;
  overflow-y: auto;
}

.studio-page-head { margin-bottom: 20px; }
.studio-page-head__title { margin: 0; font-size: 26px; font-weight: 700; }
.studio-page-head__sub { margin: 4px 0 0; font-size: 14px; color: var(--color-text-muted); }

/* ── Stat cards ── */
.studio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.studio-stat {
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  border-radius: 16px;
  padding: 18px 20px;
}

.studio-stat__value { font-size: 30px; font-weight: 700; line-height: 1.1; }
.studio-stat__label { margin-top: 4px; font-size: 13px; color: var(--color-text-muted); }

/* ── Content cards ── */
.studio-card {
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.studio-card--nudge { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.studio-card__title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.studio-card__hint { margin: 10px 0 0; font-size: 12px; color: var(--color-text-muted); }

.studio-checklist { margin: 0; padding: 0; list-style: none; }
.studio-checklist__item { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.studio-checklist__mark { color: var(--color-text-muted); }

.studio-list { margin: 0; padding: 0; list-style: none; }

.studio-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--studio-border);
}

.studio-list__row:last-child { border-bottom: 0; }
.studio-list__main { font-size: 14px; }
.studio-list__meta { font-size: 12px; color: var(--color-text-muted); }

.studio-empty { margin: 0; font-size: 14px; color: var(--color-text-muted); }

/* ── Inline row forms (trainer assignment, routine assignment) ── */
.studio-list__row--form { flex-wrap: wrap; }
.studio-list__form { display: flex; align-items: center; gap: 8px; }

.studio-select,
.studio-text-input {
  font: inherit;
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  border-radius: 8px;
  padding: 6px 10px;
}

.studio-btn-sm {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-fg);
  background: var(--brand);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.studio-btn-sm:hover { opacity: 0.9; }

.studio-btn-sm--danger { color: #fff; background: #d64545; }
.studio-btn-sm--on { outline: 2px solid var(--brand); outline-offset: 1px; }

.studio-back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.studio-back-link:hover { color: var(--color-text); }

/* ── Forms (routine editor) ── */
.studio-form-row { margin-bottom: 12px; }
.studio-form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.studio-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}

.studio-card__title--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-card__title--sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.studio-section-spacer { margin-top: 20px; }

.studio-list__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ── Chips (body-part filter) ── */
.studio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-chips form { display: contents; }

.studio-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.studio-chip:hover { color: var(--color-text); }
.studio-chip--on { color: var(--brand-fg); background: var(--brand); border-color: var(--brand); }

/* ── Favorite star toggle ── */
.studio-star-form { display: inline-flex; }

.studio-star-btn {
  font-size: 16px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--studio-border);
  padding: 4px;
}
.studio-star-btn--on { color: var(--brand); }
.studio-star-btn:hover { color: var(--brand); }

.studio-customer-block { margin-bottom: 18px; }
.studio-customer-block:last-child { margin-bottom: 0; }
.studio-customer-block .studio-list { margin-top: 4px; margin-left: 4px; }

/* ── Staff avatars (team page) ── */
.studio-list__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.studio-list__avatar--placeholder {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 13px;
  font-weight: 700;
}

.studio-avatar-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.studio-avatar-preview--placeholder {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 24px;
  font-weight: 700;
}

/* ── Login ── */
.studio-body--auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; }

.studio-auth { width: 100%; max-width: 380px; }
.studio-auth__brand { text-align: center; margin-bottom: 22px; }

.studio-auth__mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 26px;
}

.studio-auth__name { margin: 0; font-size: 26px; font-weight: 700; }

.studio-auth__kicker {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.studio-auth__card {
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  border-radius: 18px;
  padding: 22px;
}

.studio-auth__title { margin: 0; font-size: 19px; font-weight: 700; }
.studio-auth__sub { margin: 4px 0 18px; font-size: 13px; color: var(--color-text-muted); }

.studio-auth__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.studio-auth__card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--studio-border);
  border-radius: 12px;
  background: var(--studio-canvas);
  color: var(--color-text);
  font-size: 15px;
  outline: none;
}

/* Replaces the browser's default focus ring (thick, square-cornered, breaks
   out of the input's own border-radius) with one that matches it. The email
   field carries `autofocus`, so this is visible on every page load. */
.studio-auth__card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

.studio-auth__submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.studio-auth__error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, #ff3b30 12%, transparent);
  color: #d70015;
  font-size: 13px;
}

.studio-auth__error p { margin: 0; }
.studio-auth__error ul { margin: 0; padding-left: 18px; }

.studio-auth__foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--color-text-muted); }
.studio-auth__foot a { color: var(--color-text); }

/* Narrow screens: the sidebar becomes a horizontal strip above the canvas.
   The dashboard is laptop/tablet-first by design, but an operator checking
   something on a phone should not hit a broken layout. */
@media (max-width: 720px) {
  .studio-body-row { flex-direction: column; }
  .studio-nav { flex: none; display: flex; gap: 16px; overflow-x: auto; padding: 12px; }
  .studio-nav__group { margin-bottom: 0; }
  .studio-nav__group-label { white-space: nowrap; }
  .studio-canvas { padding: 20px 16px 32px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Studio dashboard v2 components (Dashboard KPIs, Setup-Checklist,
   Mitglieder, Statistiken, Kurse, Mitteilungen, Studio-Profil).

   Ported from a Claude Design mockup ("Studio Dashboard") - class names
   and layout intentionally mirror that source so the two stay easy to
   diff against each other. Colours/radii route through the existing
   --color- and --brand tokens above rather than the mockup's own --ink/--bg
   names, so these components stay in sync with the rest of the app's
   theming instead of forking it.
   ───────────────────────────────────────────────────────────────────── */

/* ── Dashboard overview: KPI cards + setup checklist ──
   .studio-canvas (the shared page frame) already scrolls itself and owns
   the page padding, so this can't be a second inset flex row without a
   defined height - it's a normal row instead, and the setup sidebar
   scrolls with the page rather than independently. */
.studio-overview { display: flex; align-items: flex-start; gap: 24px; margin: -28px -32px; padding: 28px 32px 48px; }
.studio-overview-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.studio-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .studio-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.studio-kpi-card { background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.studio-kpi-card__top { display: flex; align-items: center; justify-content: space-between; }
.studio-kpi-card__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--studio-canvas); display: grid; place-items: center; color: var(--color-text-muted); flex: 0 0 auto; }
.studio-kpi-card__delta { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.studio-kpi-card__delta--pos { background: color-mix(in srgb, #2dc76d 14%, transparent); color: #1a8a4a; }
.studio-kpi-card__delta--neg { background: color-mix(in srgb, #d9542c 11%, transparent); color: #b03020; }
.studio-kpi-card__delta--neu { background: var(--studio-canvas); color: var(--color-text-muted); }
.studio-kpi-card__value { font-weight: 800; font-size: 28px; letter-spacing: -0.5px; line-height: 1; }
.studio-kpi-card__label { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }

.studio-setup-sidebar { width: 316px; flex: 0 0 auto; border: 1px solid var(--studio-border); border-radius: 16px; background: var(--color-surface); display: flex; flex-direction: column; overflow: hidden; }
.studio-setup-sidebar__head { padding: 10px 12px; border-bottom: 1px solid var(--studio-border); display: flex; align-items: center; gap: 8px; min-height: 44px; }
.studio-setup-sidebar__title { font-weight: 700; font-size: 13px; flex: 1; }
.studio-setup-sidebar__pct { font-weight: 800; font-size: 18px; }
.studio-setup-sidebar__body { padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) {
  .studio-overview { flex-direction: column; }
  .studio-setup-sidebar { width: 100%; }
}

.studio-setup-progress { height: 4px; background: var(--studio-border); border-radius: 4px; overflow: hidden; }
.studio-setup-progress__bar { height: 100%; background: var(--brand); border-radius: 4px; }

.studio-setup-phase { background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 16px; overflow: hidden; }
.studio-setup-phase__head { padding: 11px 16px; background: var(--studio-canvas); border-bottom: 1px solid var(--studio-border); display: flex; align-items: center; gap: 8px; }
.studio-setup-phase__icon { width: 26px; height: 26px; border-radius: 8px; background: var(--color-surface); border: 1px solid var(--studio-border); display: grid; place-items: center; flex: 0 0 auto; color: var(--color-text-muted); font-size: 12px; }
.studio-setup-phase__icon--done { background: var(--brand); border-color: transparent; color: var(--brand-fg); }
.studio-setup-phase__title { font-weight: 700; font-size: 13px; flex: 1; }
.studio-setup-phase__count { font-size: 11px; font-weight: 700; color: var(--color-text-muted); }
.studio-setup-phase__count--done { color: var(--brand-fg); }

.studio-setup-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--studio-border); }
.studio-setup-item:first-child { border-top: none; }
.studio-setup-item--done { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.studio-setup-item__box { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; background: var(--studio-canvas); border: 1.5px solid var(--studio-border); display: grid; place-items: center; font-size: 11px; }
.studio-setup-item--done .studio-setup-item__box { background: var(--brand); border-color: transparent; color: var(--brand-fg); }
.studio-setup-item__label { display: block; font-size: 13.5px; font-weight: 600; }
.studio-setup-item--done .studio-setup-item__label { color: var(--color-text-muted); text-decoration: line-through; }
.studio-setup-item__desc { font-size: 11.5px; color: var(--color-text-muted); font-weight: 500; }

.studio-setup-cta { background: var(--color-text); color: var(--color-bg); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.studio-setup-cta__kicker { font-size: 10.5px; font-weight: 700; opacity: .5; text-transform: uppercase; letter-spacing: .5px; display: block; }
.studio-setup-cta__label { font-weight: 700; font-size: 14.5px; display: block; margin-top: 2px; }
.studio-setup-cta__btn { height: 34px; padding: 0 14px; border-radius: 9px; background: var(--brand); color: var(--brand-fg); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }

.studio-setup-done { background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }

/* ── Toolbar: search + filter tabs + actions (Mitglieder) ── */
.studio-toolbar { padding: 12px 0; border-bottom: 1px solid var(--studio-border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.studio-toolbar__search { position: relative; flex: 1 1 200px; min-width: 160px; }
.studio-toolbar__search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.studio-toolbar__search input { width: 100%; height: 35px; border: 1.5px solid var(--studio-border); border-radius: 10px; padding-left: 32px; padding-right: 12px; font-size: 13px; font-weight: 500; background: var(--studio-canvas); color: var(--color-text); }
.studio-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.studio-filter-tab { height: 35px; padding: 0 11px; border-radius: 9px; font-weight: 700; font-size: 12px; background: var(--studio-canvas); color: var(--color-text-muted); border: 1.5px solid var(--studio-border); white-space: nowrap; }
.studio-filter-tab--on { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.studio-filter-tab__count { opacity: .5; margin-left: 3px; }
.studio-toolbar__actions { display: flex; gap: 6px; margin-left: auto; }
.studio-btn { height: 35px; padding: 0 13px; border-radius: 9px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.studio-btn--ghost { background: var(--studio-canvas); color: var(--color-text); border: 1.5px solid var(--studio-border); }
.studio-btn--brand { background: var(--brand); color: var(--brand-fg); }

/* ── Member table ── */
.studio-table { width: 100%; border-collapse: collapse; }
.studio-table thead th { font-size: 10px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; text-align: left; padding: 5px 12px; }
.studio-table tbody tr { cursor: pointer; }
.studio-table tbody tr:hover td { background: var(--studio-canvas); }
.studio-table tbody tr.is-selected td { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.studio-table td { padding: 9px 12px; border-top: 1px solid var(--studio-border); font-size: 12.5px; }
.studio-table td:first-child { border-radius: 11px 0 0 11px; }
.studio-table td:last-child { border-radius: 0 11px 11px 0; }

.studio-table__member { display: flex; align-items: center; gap: 10px; }
.studio-table__name { font-weight: 700; display: block; }
.studio-table__meta { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }

.studio-av { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; color: var(--brand-fg); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }

.studio-status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.studio-status-badge__dot { width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto; }
.studio-status-badge--active { background: rgba(45,199,109,.12); color: #2dc76d; }
.studio-status-badge--active .studio-status-badge__dot { background: #2dc76d; }
.studio-status-badge--paused { background: rgba(245,166,35,.12); color: #f5a623; }
.studio-status-badge--paused .studio-status-badge__dot { background: #f5a623; }
.studio-status-badge--cancelled { background: rgba(217,84,44,.12); color: #d9542c; }
.studio-status-badge--cancelled .studio-status-badge__dot { background: #d9542c; }

/* ── Member detail panel (Mitglieder row click) ── */
.studio-list-layout { display: flex; align-items: flex-start; gap: 16px; }
.studio-list-layout__main { flex: 1; min-width: 0; }
.studio-detail-panel { width: 280px; flex: 0 0 auto; background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 14px; overflow: hidden; }
.studio-detail-panel__head { padding: 13px 14px 11px; border-bottom: 1px solid var(--studio-border); display: flex; align-items: center; justify-content: space-between; }
.studio-detail-panel__title { font-weight: 700; font-size: 13px; }
.studio-detail-panel__close { width: 22px; height: 22px; border-radius: 6px; background: var(--studio-canvas); border: none; display: grid; place-items: center; color: var(--color-text-muted); font-size: 11px; cursor: pointer; }
.studio-detail-panel__body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }

.studio-detail-identity { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.studio-detail-identity__av { width: 52px; height: 52px; border-radius: 16px; }
.studio-detail-identity__name { font-weight: 700; font-size: 15.5px; display: block; text-align: center; }
.studio-detail-identity__since { font-size: 12px; color: var(--color-text-muted); font-weight: 500; text-align: center; }

.studio-detail-section { display: flex; flex-direction: column; gap: 5px; }
.studio-detail-section__label { font-size: 10.5px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; display: block; }
.studio-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: var(--studio-canvas); border-radius: 9px; }
.studio-detail-row__label { font-size: 12px; color: var(--color-text-muted); font-weight: 500; }
.studio-detail-row__value { font-size: 12px; font-weight: 600; }
.studio-detail-row__value--badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.studio-detail-row__value--badge.is-on { background: rgba(45,199,109,.12); color: #2dc76d; }
.studio-detail-row__value--badge.is-off { background: rgba(217,84,44,.12); color: #d9542c; }

.studio-detail-action { width: 100%; height: 34px; border-radius: 9px; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 1.5px solid var(--studio-border); background: var(--studio-canvas); color: var(--color-text-muted); margin-bottom: 6px; }
.studio-detail-action:last-child { margin-bottom: 0; }
.studio-detail-action--danger { color: #c0392b; border-color: rgba(210,55,42,.18); background: rgba(210,55,42,.07); }
.studio-detail-action--positive { color: #2dc76d; border-color: rgba(45,199,109,.25); background: rgba(45,199,109,.08); }

@media (max-width: 1000px) {
  .studio-list-layout { flex-direction: column; }
  .studio-detail-panel { width: 100%; }
}

/* ── KPI row (Statistiken) ── */
.studio-stats-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1100px) { .studio-stats-kpi-row { grid-template-columns: repeat(3, 1fr); } }
.studio-stats-kpi-row--auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.studio-stats-kpi { background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; }
.studio-stats-kpi--accent { background: var(--color-text); border-color: transparent; }
.studio-stats-kpi--muted { opacity: .55; }
.studio-stats-kpi__label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--color-text-muted); }
.studio-stats-kpi--accent .studio-stats-kpi__label { color: rgba(255,255,255,.4); }
.studio-stats-kpi__value { font-weight: 800; font-size: 26px; letter-spacing: -.5px; line-height: 1.05; }
.studio-stats-kpi--accent .studio-stats-kpi__value { color: #fff; }
.studio-stats-kpi__row { display: flex; align-items: center; gap: 5px; }
.studio-stats-kpi__trend { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.studio-stats-kpi__trend--up { background: rgba(45,199,109,.15); color: #2dc76d; }
.studio-stats-kpi__trend--down { background: rgba(217,84,44,.12); color: #d9542c; }
.studio-stats-kpi__sub { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }
.studio-stats-kpi--accent .studio-stats-kpi__sub { color: rgba(255,255,255,.35); }

.studio-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .studio-stats-grid { grid-template-columns: 1fr; } }
.studio-stats-grid--wide { grid-template-columns: 1fr 2fr; }
@media (max-width: 1000px) { .studio-stats-grid--wide { grid-template-columns: 1fr; } }

.studio-chart-card { background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 14px; overflow: hidden; }
.studio-chart-card__head { padding: 12px 15px; border-bottom: 1px solid var(--studio-border); }
.studio-chart-card__title { font-weight: 700; font-size: 13.5px; display: block; }
.studio-chart-card__sub { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }
.studio-chart-card__body { padding: 13px 15px; }

.studio-heatmap { display: grid; grid-template-columns: 28px repeat(7, 1fr); gap: 3px; align-items: center; }
.studio-heatmap__day { font-size: 10px; font-weight: 700; color: var(--color-text-muted); text-align: center; }
.studio-heatmap__slot { font-size: 9px; font-weight: 600; color: var(--color-text-muted); text-align: right; padding-right: 3px; }
.studio-heatmap__cell { height: 15px; border-radius: 3px; }
.studio-heatmap__legend { display: flex; align-items: center; gap: 5px; margin-top: 8px; justify-content: flex-end; font-size: 9.5px; color: var(--color-text-muted); font-weight: 500; }
.studio-heatmap__swatch { width: 12px; height: 12px; border-radius: 3px; }

.studio-course-bar { display: flex; flex-direction: column; gap: 5px; }
.studio-course-bar__row { display: flex; justify-content: space-between; align-items: center; }
.studio-course-bar__name { font-size: 12.5px; font-weight: 600; }
.studio-course-bar__frac { font-size: 12px; font-weight: 700; }
.studio-course-bar__track { height: 6px; background: var(--studio-canvas); border-radius: 3px; overflow: hidden; }
.studio-course-bar__fill { height: 100%; border-radius: 3px; }

.studio-map-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: var(--studio-canvas); border-radius: 9px; }
.studio-map-row__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--color-surface); border: 1px solid var(--studio-border); display: grid; place-items: center; flex: 0 0 auto; color: var(--color-text); }
.studio-map-row__label { font-size: 10px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .4px; display: block; }
.studio-map-row__value { font-weight: 800; font-size: 18px; line-height: 1.2; }
.studio-map-row__badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(45,199,109,.15); color: #2dc76d; margin-left: auto; }

.studio-retention-rings { display: flex; justify-content: space-around; align-items: center; padding: 4px 0; }
.studio-retention-ring { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.studio-retention-ring__label { font-size: 11.5px; font-weight: 600; color: var(--color-text-muted); }

.studio-churn-row { display: flex; align-items: center; gap: 10px; }
.studio-churn-row__name { font-size: 12.5px; font-weight: 600; width: 155px; flex: 0 0 auto; }
.studio-churn-row__track { flex: 1; height: 6px; background: var(--studio-canvas); border-radius: 3px; }
.studio-churn-row__fill { height: 100%; border-radius: 3px; }
.studio-churn-row__pct { font-size: 12px; font-weight: 700; color: var(--color-text-muted); width: 72px; text-align: right; flex: 0 0 auto; }

.studio-note-row { margin-top: 12px; padding: 9px 11px; background: var(--studio-canvas); border-radius: 9px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--color-text-muted); font-weight: 500; }

/* ── Kurse: card grid ── */
.studio-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.studio-course-card { background: var(--color-surface); border: 1.5px solid var(--studio-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.studio-course-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.studio-course-card__name { font-weight: 700; font-size: 14.5px; display: block; }
.studio-course-card__sched { font-size: 11.5px; color: var(--color-text-muted); font-weight: 500; margin-top: 2px; display: block; }
.studio-course-card__tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--studio-canvas); color: var(--color-text-muted); white-space: nowrap; border: 1px solid var(--studio-border); }
.studio-course-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-text-muted); }
.studio-course-card__meta span { display: flex; align-items: center; gap: 4px; }
.studio-course-card__meta span:last-child { margin-left: auto; }

.studio-teaser { background: color-mix(in srgb, var(--brand) 8%, var(--color-surface)); border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, transparent); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; }
.studio-teaser__title { font-weight: 700; font-size: 14px; color: var(--brand-fg); display: block; }
.studio-teaser__sub { font-size: 12.5px; color: var(--color-text-muted); font-weight: 500; }

/* ── Mitteilungen ── */
.studio-msg-card { background: var(--color-surface); border: 1px solid var(--studio-border); border-radius: 14px; padding: 13px 16px; display: flex; flex-direction: column; gap: 8px; }
.studio-msg-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.studio-msg-card__type { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.studio-msg-card__type--news { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand-fg); }
.studio-msg-card__type--info { background: rgba(59,130,246,.12); color: #1d4ed8; }
.studio-msg-card__type--promo { background: rgba(245,166,35,.12); color: #92400e; }
.studio-msg-card__title {
  font-weight: 700;
  font-size: 13.5px;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.studio-msg-card__date { font-size: 11px; color: var(--color-text-muted); margin-left: auto; }
.studio-msg-card__body { font-size: 12.5px; color: var(--color-text-muted); font-weight: 500; margin: 0; line-height: 1.45; }
.studio-msg-card__stats { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--color-text-muted); }
.studio-msg-card__stats span { display: flex; align-items: center; gap: 4px; }
.studio-msg-card__progress { flex: 1; height: 4px; background: var(--studio-canvas); border-radius: 2px; max-width: 160px; }
.studio-msg-card__progress-fill { height: 100%; background: var(--brand); border-radius: 2px; }
.studio-msg-delete-form { display: contents; }
.studio-msg-card .studio-icon-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-msg-card .studio-icon-btn:hover { background: var(--studio-canvas); }

/* ── Feedback ── */
.studio-fb-range-tabs { display: flex; gap: 4px; }

.studio-fb-kpi-value-row { display: flex; align-items: baseline; gap: 4px; }
.studio-fb-kpi-unit { font-size: 14px; font-weight: 600; color: var(--color-text-muted); }
.studio-fb-kpi-sub { font-size: 11px; color: var(--color-text-muted); }

.studio-fb-stars { display: inline-flex; align-items: center; gap: 1px; flex-shrink: 0; }
.studio-fb-stars svg { width: 12px; height: 12px; }
.studio-fb-stars svg.is-filled { color: var(--brand-fg); }
.studio-fb-stars svg.is-empty { color: var(--studio-border); }

.studio-fb-trend-card { grid-column: 1 / -1; }
.studio-fb-trend-svg-wrap { position: relative; padding: 4px 15px 13px 34px; }
.studio-fb-trend-axis {
  position: absolute;
  left: 15px;
  top: 4px;
  bottom: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.studio-fb-trend-empty { color: var(--color-text-muted); font-size: 13px; padding: 4px 15px 15px; }

.studio-fb-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .studio-fb-layout { grid-template-columns: 1fr; } }

.studio-fb-question-form { display: none; gap: 8px; margin-bottom: 14px; }
.studio-fb-question-form .studio-text-input { flex: 1; }

.studio-fb-question-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--studio-border);
}
.studio-fb-question-row:last-child { border-bottom: none; }
.studio-fb-question-row__text { flex: 1; font-size: 13.5px; }
.studio-fb-question-row__text--inactive { color: var(--color-text-muted); text-decoration: line-through; }
.studio-fb-question-row .studio-filter-tab { font-size: 11px; white-space: nowrap; }
.studio-fb-question-row .studio-icon-btn { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.studio-fb-question-row .studio-icon-btn:hover { background: var(--studio-canvas); }
.studio-fb-delete-form { display: contents; }

.studio-fb-empty { color: var(--color-text-muted); font-size: 13px; padding: 4px 0; }

.studio-fb-submission {
  background: var(--studio-canvas);
  border: 1px solid var(--studio-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-fb-submission--stale { opacity: .55; }

.studio-fb-submission__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.studio-fb-submission__who { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--color-text-muted); }
.studio-fb-submission__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); white-space: nowrap; }
.studio-fb-submission__stale-tag { font-style: italic; }

.studio-fb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--color-surface);
  border: 1px solid var(--studio-border);
  color: var(--color-text-muted);
}

.studio-fb-trend { font-weight: 800; font-size: 14px; line-height: 1; }
.studio-fb-trend--up { color: #2dc76d; }
.studio-fb-trend--down { color: #d9542c; }

.studio-fb-answer { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; }
.studio-fb-answer__question { color: var(--color-text-muted); }
.studio-fb-answer__rating { display: flex; align-items: center; gap: 5px; flex-shrink: 0; font-weight: 700; }
.studio-fb-answer__reason { font-size: 12px; color: var(--color-text-muted); margin: -2px 0 2px; font-style: italic; }

.studio-fb-history-toggle {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
}
.studio-fb-history-toggle:hover { color: var(--color-text); }
.studio-fb-history-group { display: none; flex-direction: column; gap: 10px; }
.studio-fb-history-group.is-open { display: flex; }

.studio-fb-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.studio-fb-pagination__info { font-size: 12px; color: var(--color-text-muted); }
.studio-fb-pagination__nav { display: flex; gap: 6px; }

.studio-compose { background: var(--color-surface); border: 1.5px solid var(--studio-border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.studio-compose textarea { border: 1.5px solid var(--studio-border); border-radius: 10px; padding: 10px 13px; font-family: inherit; font-size: 13px; background: var(--studio-canvas); color: var(--color-text); resize: none; line-height: 1.5; width: 100%; box-sizing: border-box; }

/* ── Studio-Profil: form + phone preview ── */
.studio-profile-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.studio-profile-form { flex: 1 1 320px; min-width: 280px; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.studio-profile-preview { flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; background: var(--studio-canvas); border-radius: 20px; padding: 20px; }

.studio-form-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--studio-canvas); border-radius: 9px; gap: 10px; }
.studio-form-toggle { width: 35px; height: 20px; border-radius: 10px; background: var(--studio-border); position: relative; flex: 0 0 auto; }
.studio-form-toggle::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .16s; }
.studio-form-toggle--on { background: var(--brand); }
.studio-form-toggle--on::after { left: 17.5px; }

.studio-amenity-chip { padding: 3px 9px; border-radius: 7px; border: 1.5px solid var(--studio-border); background: var(--studio-canvas); color: var(--color-text-muted); font-size: 11.5px; font-weight: 600; display: inline-flex; }
.studio-amenity-chip--on { border-color: var(--color-text); background: var(--color-text); color: var(--color-bg); }

.studio-phone-mock { width: 260px; height: 546px; background: #0c0d0a; border-radius: 34px; padding: 8px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); flex: 0 0 auto; }
.studio-phone-mock__screen { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: #EEF0E8; position: relative; display: flex; flex-direction: column; }
.studio-phone-mock__tabs { display: flex; gap: 4px; margin-bottom: 14px; background: rgba(0,0,0,.06); padding: 3px; border-radius: 10px; }
.studio-phone-mock__tab { height: 26px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--color-text-muted); }
.studio-phone-mock__tab--on { background: var(--color-surface); color: var(--color-text); }

/* Real Leaflet/OSM map behind the profile-preview card, replacing the
   mockup's flat #e8ebe0 rectangle - same tile source/pin styling as the
   Entdecken map (.gym-pin etc. above), non-interactive (dragging: false)
   since this is a small static preview, not a real map to navigate. */
.pm-map { position: absolute; inset: 0; background: #e8ebe0; z-index: 0; }
.pm-map .leaflet-control-container { display: none; }
#sp-preview-card-sheet { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#sp-preview-card-sheet > * { pointer-events: auto; }

/* ── Phone-screen chrome: statusbar + bottom tab bar ──
   These simulate the MEMBER app's own iOS-style chrome inside the small
   preview phone - always the member app's light look, independent of the
   studio dashboard's own theme, same as the design mockup's PhoneFrame/
   StatusBar/TabBar (ui.jsx). Kept literal (not theme tokens) on purpose:
   this is a picture of another product's screen, not themed UI of this
   page - see the existing "fixed decorative accents" exception in
   CLAUDE.md's theming rule. */
.pm-statusbar { height: 30px; display: flex; align-items: center; padding: 0 18px; color: #15180F; flex: 0 0 auto; position: relative; font-weight: 700; font-size: 12px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.pm-statusbar__island { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 56px; height: 18px; background: #0c0d0a; border-radius: 10px; }
.pm-statusbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pm-statusbar__batt { width: 16px; height: 9px; border: 1.2px solid currentColor; border-radius: 3px; position: relative; padding: 1px; }
.pm-statusbar__batt i { display: block; height: 100%; width: 72%; background: currentColor; border-radius: 1px; }

.pm-tabbar { background: rgba(255,255,255,.88); border-top: 1px solid rgba(21,24,15,.09); padding-top: 6px; flex: 0 0 auto; margin-top: auto; }
.pm-tabbar__row { display: flex; justify-content: space-around; align-items: flex-start; padding: 0 4px; }
.pm-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(21,24,15,.46); font-size: 8px; font-weight: 600; flex: 1; }
.pm-tab--on { color: #15180F; }
.pm-tab--center { margin-top: -8px; }
.pm-tab--center .pm-tab__ic { width: 34px; height: 24px; border-radius: 9px; background: var(--brand); color: #15180F; box-shadow: 0 5px 12px -6px rgba(200,242,62,.8); margin-bottom: 2px; }
.pm-tab--center .pm-tab__lbl { font-weight: 700; }
.pm-tab__ic { display: grid; place-items: center; }
.pm-home-indicator { width: 90px; height: 3px; border-radius: 2px; background: #15180F; opacity: .85; margin: 5px auto 6px; }

.pm-stats-row { display: flex; background: var(--color-surface); padding: 8px 12px; border-bottom: 1px solid rgba(21,24,15,.09); }
.pm-stats-row__item { flex: 1; text-align: center; }
.pm-stats-row__value { font-weight: 700; font-size: 12px; display: block; }
.pm-stats-row__label { font-size: 9px; color: #888; font-weight: 500; }

.pm-hours { padding: 10px 12px; background: var(--color-surface); margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.pm-hours__title { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 3px; }
.pm-hours__row { display: flex; justify-content: space-between; font-size: 10px; }
.pm-hours__day { color: #555; font-weight: 600; }
.pm-hours__time { color: #888; font-weight: 500; }

.pm-courses { padding: 10px 12px; background: var(--color-surface); margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.pm-courses__title { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 2px; }
.pm-courses__row { display: flex; align-items: center; gap: 8px; }
.pm-courses__icon { width: 26px; height: 26px; border-radius: 8px; background: #1a1c14; display: grid; place-items: center; flex: 0 0 auto; color: rgba(255,255,255,.5); }
.pm-courses__mid { flex: 1; min-width: 0; }
.pm-courses__name { font-size: 11px; font-weight: 700; color: #15180F; display: block; }
.pm-courses__meta { font-size: 9.5px; color: #888; font-weight: 500; }

.pm-photos { padding: 10px 12px; background: var(--color-surface); margin-top: 4px; }
.pm-photos__title { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 6px; }
.pm-photos__row { display: flex; gap: 5px; }
.pm-photos__tile { flex: 1; height: 54px; border-radius: 9px; background: linear-gradient(135deg,#2a2f22,#15170f); display: grid; place-items: center; color: rgba(255,255,255,.35); }

.pm-contact { padding: 10px 12px; background: var(--color-surface); margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.pm-contact__title { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 3px; }
.pm-contact__row { font-size: 10px; color: #555; font-weight: 500; }

.kontakt-map {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--color-surface);
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.kontakt-map__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.kontakt-map__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

.kontakt-status {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.kontakt-actions {
  display: flex;
  gap: 8px;
}

.kontakt-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.kontakt-action svg {
  width: 20px;
  height: 20px;
}

.kontakt-action--primary {
  background: var(--brand);
  color: var(--brand-fg);
}

.kontakt-details {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
}

.kontakt-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-nav-border);
}

.kontakt-detail-row:last-child {
  border-bottom: 0;
}

.kontakt-detail-row__icon {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 14%, transparent);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.kontakt-detail-row__body {
  flex: 1;
  min-width: 0;
}

.kontakt-detail-row__label {
  margin: 0;
  font-size: 11px;
  color: var(--color-text-muted);
}

.kontakt-detail-row__value {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

a.kontakt-detail-row__value {
  display: block;
  text-decoration: none;
}

.kontakt-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.kontakt-social__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.kontakt-social__item svg {
  width: 15px;
  height: 15px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 14px;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(45deg);
}

.faq-item__answer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.faq-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 18px;
  text-decoration: none;
  color: var(--color-text);
}

.faq-contact-cta strong {
  display: block;
  font-size: 14px;
}

.faq-contact-cta__sub {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.faq-contact-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
