:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --card: #ffffff;
  --card-2: #eef4ea;
  --border: rgba(20, 30, 20, 0.08);
  --surface: #ffffff;
  --surface-2: #eef4ea;
  --surface-3: #e4f3df;
  --text: #151915;
  --muted: #6f776f;
  --line: rgba(20, 30, 20, 0.08);
  --accent: #3c8f35;
  --accent-soft: #e4f3df;
  --pink: #3c8f35;
  --pink-2: #58ad4c;
  --radius: 24px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 480px);
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom));
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 96px;
  margin: 0 -16px 16px;
  padding: 12px 24px 14px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 45, 170, 0.16), transparent 32%),
    rgba(5, 5, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar__logo {
  justify-self: center;
  width: 96px;
  height: auto;
}

.topbar__club-logo {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(38, 63, 36, 0.1);
}

.topbar__club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.topbar__club-logo b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  background: var(--accent-soft);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.topbar-avatar {
  justify-self: start;
  overflow: hidden;
  border-color: rgba(255, 45, 170, 0.55);
  box-shadow: 0 0 22px rgba(255, 45, 170, 0.22);
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-avatar b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 45, 170, 0.24), rgba(255, 45, 170, 0.04));
  text-transform: uppercase;
}

.top-add-run-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  color: var(--pink);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 45, 170, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(26, 16, 25, 0.96), rgba(10, 9, 12, 0.96));
  border: 1px solid rgba(255, 45, 170, 0.38);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(255, 45, 170, 0.18),
    inset 0 0 14px rgba(255, 255, 255, 0.035);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.top-add-run-btn:active {
  transform: scale(0.96);
}

.top-add-run-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 45, 170, 0.26));
  pointer-events: none;
}

#tab-feed .screen-title {
  margin: 26px 0 18px;
}

.screen-title {
  margin: 18px 0 16px;
}

.screen-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.screen-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-transform: lowercase;
}

.tab-panel {
  display: none;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
  scroll-margin-top: 120px;
}

.tab-panel.is-active {
  display: block;
}

.feed-list,
.events-list,
.ranking-list,
.profile-runs {
  display: grid;
  gap: 14px;
}

.post-card,
.event-card,
.profile-head,
.club-stats article,
.ranking-row,
.empty-state,
.sheet__panel,
.profile-stats article,
.mini-workout,
.plan-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-card {
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 45, 170, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--card);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.post-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-card__author,
.ranking-row,
.mini-workout {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.post-card__author strong,
.ranking-row strong,
.mini-workout b {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__author small,
.ranking-row small,
.mini-workout small,
.mini-workout em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.level-badge,
.xp-badge {
  width: fit-content;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.14);
  border: 1px solid rgba(255, 45, 170, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.level-badge {
  padding: 8px 12px;
  white-space: nowrap;
}

.xp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 7px 12px;
}

.xp-bonus-label {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  color: #f2c8e4;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(145deg, var(--pink), rgba(255, 255, 255, 0.85)) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
}

.avatar--mini {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-width: 1px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar b {
  color: var(--pink);
  font-size: 18px;
}

.avatar--large {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-width: 3px;
}

.avatar--large b {
  font-size: 34px;
}

.post-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111116;
  border-radius: 20px;
}

.post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111116;
}

.post-card__placeholder,
.detail-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 45, 170, 0.22), transparent 36%),
    radial-gradient(circle at 82% 80%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #18181b, #09090a);
  border-radius: 18px;
}

.post-card__placeholder[hidden] {
  display: none;
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.detail-placeholder {
  aspect-ratio: 1 / 1;
}

.post-card__placeholder b,
.detail-placeholder b {
  color: var(--text);
  font-size: 22px;
}

.post-card__body {
  padding: 16px 0 0;
}

.post-card__body h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.12;
}

.post-card__body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.post-card__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.metrics span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  place-items: center;
  padding: 10px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
}

.metrics b {
  font-size: 19px;
  line-height: 1.05;
  text-align: center;
}

.metrics small {
  color: var(--muted);
  font-size: 12px;
}

.metric-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  color: var(--pink);
}

.metric-icon::before,
.metric-icon::after {
  position: absolute;
  content: "";
}

.metric-icon--distance::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon--distance::after {
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.metric-icon--pace::before {
  inset: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon--pace::after {
  top: 4px;
  left: 9px;
  width: 2px;
  height: 8px;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(38deg);
}

.metric-icon--time::before {
  inset: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon--time::after {
  top: 5px;
  left: 9px;
  width: 2px;
  height: 7px;
  background: currentColor;
  box-shadow: 4px 6px 0 -1px currentColor;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.post-action-btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: #5b6b61;
  background: #f1f4ef;
  border: 1px solid #e6eae2;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.post-action-btn--share {
  flex: 1.25 1 0;
}

.post-action-icon {
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  color: currentColor;
}

.post-action-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-action-count,
.post-action-label {
  overflow: hidden;
  color: #5b6b61;
  font-size: 14px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-action-label {
  font-weight: 650;
}

.post-action-btn.is-active {
  color: var(--accent, #2e9c4f);
  background: rgba(60, 143, 53, 0.12);
  border-color: rgba(60, 143, 53, 0.28);
}

.post-action-btn.is-active .post-action-icon svg {
  fill: rgba(60, 143, 53, 0.22);
}

.post-action-btn.is-active .post-action-count {
  color: var(--accent, #2e9c4f);
}

.post-action-btn:active {
  transform: translateY(1px);
}

@media (max-width: 380px) {
  .post-action-btn--share {
    flex: 1 1 0;
  }

  .post-action-btn--share .post-action-label {
    display: none;
  }
}

.comments-link {
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.post-card--skeleton {
  min-height: 520px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent) -180px 0 / 180px 100% no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 16px 18px / 52px 52px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 82px 24px / 150px 18px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 82px 50px / 96px 14px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 16px 92px / calc(100% - 32px) 220px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 16px 334px / 210px 26px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 16px 382px / calc(33% - 16px) 82px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 50% 382px / calc(33% - 16px) 82px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) calc(100% - 16px) 382px / calc(33% - 16px) 82px no-repeat,
    var(--card);
  animation: skeleton-shine 1.1s linear infinite;
}

.home-loading-skeleton {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 12px;
}

.home-skeleton-card,
.home-skeleton-stats span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 35, 18, 0.06);
}

.home-skeleton-card {
  display: grid;
  gap: 12px;
  min-height: 138px;
  padding: 18px;
}

.home-skeleton-user {
  min-height: 156px;
  grid-template-columns: 58px 1fr;
  align-items: center;
}

.home-skeleton-small {
  min-height: 104px;
}

.home-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-skeleton-stats span {
  min-height: 72px;
}

.home-skeleton-avatar,
.home-skeleton-line,
.home-skeleton-progress,
.home-skeleton-button {
  display: block;
  border-radius: 999px;
  background: #edf1e9;
}

.home-skeleton-avatar {
  width: 52px;
  height: 52px;
  grid-row: span 3;
}

.home-skeleton-line {
  width: 54%;
  height: 14px;
}

.home-skeleton-line--wide {
  width: 82%;
  height: 18px;
}

.home-skeleton-progress {
  width: 100%;
  height: 10px;
}

.home-skeleton-button {
  width: 170px;
  max-width: 70%;
  height: 44px;
  margin-top: 4px;
}

.home-skeleton-card::after,
.home-skeleton-stats span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(69, 168, 50, 0.10), transparent);
  animation: homeSkeletonPulse 1.35s ease-in-out infinite;
}

@keyframes homeSkeletonPulse {
  100% {
    transform: translateX(100%);
  }
}

.home-load-error {
  display: grid;
  gap: 12px;
  min-height: auto;
  padding: 18px;
}

.home-load-error h2,
.home-load-error p {
  margin: 0;
}

.home-load-error p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

@keyframes skeleton-shine {
  to {
    background-position:
      calc(100% + 180px) 0,
      16px 18px,
      82px 24px,
      82px 50px,
      16px 92px,
      16px 334px,
      16px 382px,
      50% 382px,
      calc(100% - 16px) 382px,
      0 0;
  }
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  overflow: hidden;
}

.event-card--past {
  opacity: 0.56;
}

.event-card--past .outline-action {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.event-card--featured {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 118px;
  align-items: center;
}

.event-card--featured img {
  display: none;
}

.event-card--featured::after {
  display: none;
}

.event-card__date,
.event-card__body,
.event-card .outline-action,
.event-card .primary-action,
.event-inline {
  position: relative;
  z-index: 1;
}

.event-card .outline-action,
.event-card .primary-action {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  white-space: nowrap;
}

.event-card__date b {
  display: block;
  color: var(--text);
  font-size: 25px;
}

.event-card__date span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card__body small,
.event-card__body p,
.event-card__body span {
  color: var(--muted);
  font-size: 13px;
}

.event-card__body h2 {
  margin: 4px 0 7px;
  font-size: 22px;
}

.event-card__body p {
  margin: 0 0 7px;
}

.weather-pill,
.event-status {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 800;
}

.event-status {
  color: var(--pink) !important;
  background: rgba(255, 45, 170, 0.1);
  border-color: rgba(255, 45, 170, 0.24);
}

.event-status--closed {
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.past-events {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.past-events h2 {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.outline-action,
.primary-action {
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.outline-action {
  color: var(--pink);
  background: transparent;
  border: 1px solid var(--pink);
}

.outline-action.is-active {
  color: var(--text);
  background: rgba(255, 45, 170, 0.14);
}

.calendar-card {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 38px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.calendar-day:disabled {
  opacity: 1;
}

.calendar-day.has-event {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.055);
}

.calendar-day.is-today {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calendar-day.is-selected {
  color: #fff;
  background: rgba(255, 45, 170, 0.16);
  border-color: rgba(255, 45, 170, 0.58);
}

.calendar-day.is-past {
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.035);
}

.calendar-day span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  background: var(--accent);
  border-radius: 50%;
}

.calendar-day.is-past span {
  background: rgba(255, 255, 255, 0.32);
}

.calendar-rsvp-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin: 2px auto 0;
  padding: 0 4px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.calendar-day.is-attending {
  border-color: rgba(60, 143, 53, 0.58);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 53, 0.22);
}

.calendar-rsvp-count.is-mine {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.calendar-day--blank {
  background: transparent;
}

.event-inline {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.location-choices {
  display: grid;
  gap: 8px;
}

.location-choices button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.location-choices button.is-selected,
.location-choices button.is-active {
  color: var(--pink);
  border-color: rgba(255, 45, 170, 0.5);
}

.club-select-panel {
  gap: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 45, 170, 0.14), transparent 36%),
    var(--surface);
}

.club-select-panel .sheet__top {
  align-items: flex-start;
}

.club-select-panel .sheet__top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.club-select-list,
.club-custom-form {
  display: grid;
  gap: 10px;
}

.club-sheet-error {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.club-sheet-error.is-hidden {
  display: none;
}

.club-option {
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.club-option b,
.club-option span {
  display: block;
}

.club-option b {
  font-size: 16px;
}

.club-option span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.club-option:active {
  transform: scale(0.99);
}

.my-clubs-list .club-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.my-clubs-list .club-option > span {
  display: block;
  margin: 0;
}

.my-clubs-list .club-option .club-logo {
  width: 44px;
  height: 44px;
}

.my-clubs-list .club-option em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.my-clubs-list .club-option.is-active {
  border-color: rgba(60, 143, 53, 0.26);
  background: var(--accent-soft);
}

.club-option--none {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.club-custom-form {
  padding: 14px;
  background: rgba(255, 45, 170, 0.07);
  border: 1px solid rgba(255, 45, 170, 0.2);
  border-radius: 18px;
}

.club-custom-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.club-custom-form input,
.club-custom-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
}

.club-custom-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.screen-title--compact {
  margin-top: 22px;
}

.club-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.club-card {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 170, 0.09), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.club-card__main {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.club-card--custom {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
}

.club-card span:not(.club-logo) {
  display: grid;
  gap: 4px;
}

.club-card b {
  font-size: 17px;
}

.club-card small,
.club-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.club-card em {
  color: var(--pink);
  font-weight: 850;
  white-space: nowrap;
}

.club-card--custom {
  background: rgba(255, 255, 255, 0.035);
}

.club-card__manage {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.club-custom-form {
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.16);
}

.club-logo {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(255, 45, 170, 0.24), rgba(15, 12, 18, 0.94));
  border: 1px solid rgba(255, 45, 170, 0.36);
  border-radius: 50%;
  object-fit: cover;
}

.club-logo--large {
  width: 72px;
  height: 72px;
  font-size: 28px;
  box-shadow: 0 0 28px rgba(255, 45, 170, 0.2);
}

.club-back {
  min-height: 38px;
  margin: 0 0 12px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.club-page-hero {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 45, 170, 0.18), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.club-cover {
  min-height: 118px;
  margin: -14px -14px 0;
  background:
    linear-gradient(135deg, rgba(255, 45, 170, 0.28), rgba(20, 20, 22, 0.2)),
    url("assets/club-hero.png") center / cover;
}

.club-cover img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
}

.club-page-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: -38px;
}

.club-page-identity {
  display: grid;
  gap: 4px;
  max-width: 100%;
}

.club-page-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.club-page-head p,
.club-page-hero > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.club-page-action {
  width: 100%;
  justify-content: center;
}

.club-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.club-tabs::-webkit-scrollbar {
  display: none;
}

.club-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.club-tabs button.is-active {
  color: var(--pink);
  background: rgba(255, 45, 170, 0.14);
  border-color: rgba(255, 45, 170, 0.34);
}

.club-page-themed .club-tabs button.is-active {
  color: var(--club-accent-text, #ffffff);
  background: var(--club-accent, #2e9c4f);
  border-color: var(--club-accent, #2e9c4f);
}

.club-page-themed .club-page-action.primary-action {
  color: var(--club-accent-text, #ffffff);
  background: var(--club-accent, #2e9c4f);
  border-color: var(--club-accent, #2e9c4f);
}

/* Обложка клуба заполняет блок целиком — без полосы акцента снизу */
.club-page-themed .club-cover {
  height: 152px;
  min-height: 152px;
}
.club-page-themed .club-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-page-themed .club-rating-section .ranking-list b {
  color: var(--club-accent-ink, var(--club-accent, #2e9c4f));
}

/* Консистентная тема клуба: все вторичные акценты тоже в цвет клуба */
.club-page-themed .club-page-action.outline-action,
.club-page-themed .club-manage-button,
.club-page-themed .ghost-link,
.club-page-themed .club-hub-featured__open {
  color: var(--club-accent-ink, var(--club-accent, #2e9c4f));
  border-color: color-mix(in srgb, var(--club-accent, #2e9c4f) 38%, transparent);
}
.club-page-themed .club-page-action.is-active {
  color: var(--club-accent, #2e9c4f);
  background: color-mix(in srgb, var(--club-accent, #2e9c4f) 14%, transparent);
  border-color: color-mix(in srgb, var(--club-accent, #2e9c4f) 38%, transparent);
}
/* Премиальная шапка: выше обложка + логотип в белом кольце поверх неё */
.club-page-themed .club-cover {
  min-height: 152px;
  margin-bottom: 0;
}
.club-page-themed .club-page-head {
  margin-top: -46px;
}
.club-page-themed .club-page-head .club-logo--large,
.club-page-themed .club-page-head img.club-logo,
.club-page-themed .club-page-head span.club-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff, 0 10px 24px rgba(0, 0, 0, 0.12);
}

.profile-head--v2 {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 20px;
}
.profile-head--v2 .profile-avatar-ring {
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: var(--club-accent, #2e9c4f);
  display: inline-flex;
}
.profile-head--v2 .profile-avatar-ring .avatar {
  border: 3px solid #ffffff;
}
.profile-head__info {
  min-width: 0;
  flex: 1;
}
.profile-head__info h1 {
  margin: 0;
  font-size: 22px;
}
.profile-username {
  margin: 2px 0 0;
  color: #8a938a;
  font-size: 13px;
}
.profile-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.profile-club-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--club-accent, #2e9c4f) 16%, transparent);
  color: var(--club-accent, #2e9c4f);
  font-weight: 800;
  font-size: 12px;
}
.profile-club-chip--empty {
  background: rgba(0, 0, 0, 0.05);
  color: #8a938a;
}
.profile-level-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #13201a;
  font-weight: 800;
  font-size: 12px;
}
.profile-xp-progress {
  margin-top: 4px;
}
.profile-xp-progress span {
  background: var(--club-accent, #2e9c4f);
}
.profile-stats--v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.profile-stats--v2 article {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}
.profile-stats--v2 article b {
  font-size: 22px;
}
.profile-stats--v2 article b small {
  font-size: 12px;
  color: #8a938a;
  font-weight: 700;
}
.profile-stats--v2 article span {
  display: block;
  color: #8a938a;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.profile-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}
.profile-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.profile-card__head b {
  font-size: 15px;
}
.profile-card__head small {
  color: #8a938a;
  font-size: 12px;
}
.profile-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}
.profile-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.profile-chart__bar {
  width: 70%;
  min-height: 6px;
  border-radius: 5px;
  background: var(--club-accent, #2e9c4f);
}
.profile-chart__col span {
  font-size: 9px;
  color: #9aa394;
  font-weight: 700;
}
.profile-achievements__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.04);
}

.club-page-body {
  display: grid;
  gap: 12px;
}

.club-event-card,
.club-member-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.club-event-card {
  grid-template-columns: auto 1fr auto;
}

.club-event-card div,
.club-member-row span {
  display: grid;
  gap: 4px;
}

.club-event-card b,
.club-member-row strong {
  font-size: 15px;
}

.club-event-card small,
.club-member-row small,
.club-member-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.club-member-row {
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
}

.club-member-row em {
  text-align: right;
}

.club-about {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.club-about p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.club-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-about-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.club-about-grid small {
  color: var(--muted);
  font-size: 11px;
}

.club-about-grid b {
  font-size: 14px;
}

.event-main-action {
  width: 100%;
  margin-top: 12px;
}

.primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
}

.club-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.month-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 10px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.12);
  border: 1px solid rgba(255, 45, 170, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.motivation-card,
.rewards-block {
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 45, 170, 0.08), transparent), var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.motivation-card {
  display: grid;
  gap: 6px;
}

.motivation-card b {
  font-size: 17px;
}

.motivation-card span {
  color: var(--muted);
  line-height: 1.45;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reward-card {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 12px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.reward-card--first {
  border-color: rgba(255, 45, 170, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 170, 0.14);
}

.reward-card b {
  font-size: 14px;
}

.reward-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.club-stats article {
  min-height: 86px;
  padding: 14px;
}

.club-stats b {
  display: block;
  font-size: 24px;
}

.club-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.help-button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.1);
  border: 1px solid rgba(255, 45, 170, 0.25);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.help-button--inline {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  font-size: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 48px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 12px;
}

.ranking-row .rank {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-row > b {
  font-size: 15px;
}

.profile-head {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.profile-head h1 {
  margin: 3px 0 4px;
  font-size: 24px;
  line-height: 1.08;
}

.profile-head p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-club {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.profile-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(38, 63, 36, 0.08);
}

.profile-club-list {
  display: grid;
  gap: 8px;
}

.profile-club-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 850;
}

.profile-club-list button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-club-list button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.22);
}

.profile-club-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-club-switcher button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-club-switcher button.is-active {
  color: var(--pink);
  border-color: rgba(255, 45, 170, 0.45);
  background: rgba(255, 45, 170, 0.1);
}

.profile-level {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.profile-level span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-level b {
  font-size: 13px;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--pink);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.profile-stats article {
  min-height: 76px;
  padding: 12px 8px;
}

.profile-stats b,
.profile-stats span {
  display: block;
  text-align: center;
}

.profile-stats b {
  font-size: 18px;
}

.profile-stats span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.profile-action {
  margin-bottom: 14px;
}

.profile-runs {
  margin-top: 16px;
}

.profile-runs h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.mini-workout {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 11px;
  min-height: 86px;
  padding: 10px;
}

.mini-workout img,
.mini-workout > span {
  grid-row: span 3;
  width: 78px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-workout > span {
  display: grid;
  place-items: center;
  color: var(--pink);
  background: var(--surface-3);
  font-weight: 900;
}

.mini-workout em {
  color: var(--text);
}

.plan-row {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.plan-row span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: var(--muted);
}

.empty-state b {
  color: var(--text);
  font-size: 17px;
}

.tabbar {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-width: 456px;
  margin: 0 auto;
  padding: 8px;
  background: rgba(13, 13, 16, 0.94);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.tabbar__item {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 54px;
  color: #a9a9b3;
  background: transparent;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.tabbar__item.is-active {
  color: var(--pink);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 45, 170, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 45, 170, 0.16), rgba(255, 45, 170, 0.08));
}

.tabbar__item:active {
  transform: scale(0.98);
}

.tabbar__icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.profile-club-control {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.profile-club-control.is-active {
  border-color: rgba(60, 143, 53, 0.28);
  background: linear-gradient(180deg, #ffffff, #f3f8ef);
}

.profile-club-control > button:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.profile-club-control > button:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-club-manage {
  width: 100%;
  min-height: 42px;
  border-radius: 16px;
}

.profile-club-admin-entry {
  display: grid;
  gap: 12px;
}

.profile-managed-clubs {
  display: grid;
  gap: 10px;
}

.profile-managed-club-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(28, 42, 24, 0.05);
}

.profile-managed-club-card > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-managed-club-card b,
.profile-managed-club-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-managed-club-card b {
  color: #151915;
  font-size: 17px;
  font-weight: 950;
}

.profile-managed-club-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-managed-club-card .primary-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 46px;
  border-radius: 17px;
}

.profile-admin-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.profile-active-club {
  gap: 12px;
}

.profile-active-club-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(28, 42, 24, 0.05);
}

.profile-active-club-card .club-logo {
  width: 58px;
  height: 58px;
}

.profile-active-club-card > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-active-club-card b,
.profile-active-club-card small,
.profile-active-club-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-active-club-card b {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.profile-active-club-card small,
.profile-active-club-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.profile-active-club-card .outline-action {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: 16px;
}

.club-settings-menu {
  display: grid;
  gap: 10px;
}

.club-settings-active,
.club-settings-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
}

.club-settings-active .club-logo {
  width: 48px;
  height: 48px;
}

.club-settings-active span,
.club-settings-action {
  min-width: 0;
}

.club-settings-action {
  grid-template-columns: 1fr;
  cursor: pointer;
}

.club-settings-active b,
.club-settings-action b {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.club-settings-active small,
.club-settings-action span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.club-settings-action--create {
  border-color: rgba(60, 143, 53, 0.24);
  background: var(--accent-soft);
}

.club-settings-action--danger {
  border-color: rgba(229, 72, 77, 0.22);
  background: #fff7f7;
}

.club-settings-action--danger b {
  color: var(--danger);
}

.admin-root,
.admin-section,
.admin-card,
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar,
.admin-filter-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab,
.admin-filter-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: #f3f5f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-tab.is-active,
.admin-filter-tabs button.is-active {
  color: var(--accent);
  border-color: rgba(60, 143, 53, 0.26);
  background: var(--accent-soft);
}

.admin-tab:hover,
.admin-filter-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(60, 143, 53, 0.22);
}

.admin-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-card b {
  font-size: 22px;
}

.admin-card small,
.admin-card span,
.admin-row small {
  color: var(--muted);
}

.admin-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.admin-actions button,
.admin-mini-button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.admin-danger {
  color: #ff7aa8 !important;
}

.admin-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  caret-color: var(--accent);
  font: inherit;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-form select::placeholder,
.admin-search input::placeholder {
  color: #8a8a8a;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 143, 53, 0.12);
  outline: none;
}

.admin-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-form textarea {
  min-height: 76px;
  padding-top: 10px;
  resize: vertical;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.sheet.is-open {
  display: block;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.66);
}

.sheet__panel {
  position: absolute;
  right: max(0px, calc((100vw - 480px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 480px) / 2));
  max-height: min(86svh, 760px);
  overflow: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
}

.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet__top .icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.sheet__top h2 {
  margin: 0;
  font-size: 21px;
}

.add-run-panel {
  display: grid;
  gap: 14px;
  padding: 18px 18px 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 45, 170, 0.13), transparent 35%),
    var(--surface);
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-author b,
.detail-author small {
  display: block;
}

.detail-author small {
  margin-top: 3px;
  color: var(--muted);
}

.detail-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #050507;
  border-radius: 18px;
}

.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-grid span {
  min-width: 96px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-grid b,
.detail-grid small {
  display: block;
}

.detail-grid small,
.detail-note {
  color: var(--muted);
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}

.detail-action-button {
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(26, 26, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.detail-action-button span {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.detail-action-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-action-button--edit {
  color: var(--pink);
  border-color: rgba(255, 45, 170, 0.62);
  background: rgba(255, 45, 170, 0.08);
}

.detail-action-button--delete,
.delete-confirm-action {
  color: #ff3c5f;
  border: 1px solid rgba(255, 60, 95, 0.82);
  border-color: rgba(255, 60, 95, 0.82);
  background: rgba(255, 60, 95, 0.08);
}

.detail-action-button--comment {
  width: 100%;
  color: #eaeaf0;
  border-color: rgba(255, 255, 255, 0.08);
}

.event-detail img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.event-detail {
  display: grid;
  gap: 14px;
}

.event-detail__hero {
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 170, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.home-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 14px;
}

.home-greeting p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.home-greeting h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-add-btn {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  color: var(--pink);
  font-size: 32px;
  line-height: 1;
}

.home-card,
.home-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 45, 170, 0.09), transparent 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.home-card small,
.home-card p,
.home-card span {
  color: var(--muted);
}

.home-card h2,
.home-card b,
.home-section h2 {
  margin: 0;
  color: var(--text);
}

.home-active-club {
  gap: 8px;
}

.home-club-switch {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.home-club-switch .club-logo {
  width: 42px;
  height: 42px;
}

.home-club-switch em {
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
}

.home-club-manage {
  width: 100%;
}

.home-club-menu {
  display: grid;
  gap: 8px;
}

.home-club-menu button {
  min-height: 42px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
}

.home-club-menu button.is-active {
  color: var(--pink);
  border-color: rgba(255, 45, 170, 0.35);
}

.home-club-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(38, 63, 36, 0.08);
}

.home-club-header__brand {
  grid-column: 1 / -1;
  width: 126px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.home-club-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-club-header__identity .club-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.home-club-header__identity span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-club-header__identity small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.home-club-header__identity b {
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-club-header__switch {
  min-height: 42px;
  padding: 0 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 999px;
  font-weight: 850;
}

.home-battle-card {
  gap: 14px;
}

.season-card {
  gap: 14px;
}

.season-card .section-heading > span,
.season-card > small {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.season-card .section-heading > b {
  padding: 7px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.season-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.05;
}

.season-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.season-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.season-prize-grid span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.season-prize-grid b {
  color: var(--text);
  font-size: 13px;
}

.season-prize-grid small {
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.home-battle-card .section-heading > span,
.home-main-mission .section-heading > span,
.home-contribution-card .section-heading > span,
.home-today-impact-card .section-heading > span,
.home-club-week-goal-card .section-heading > span {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.home-battle-card__main {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

.home-battle-card__main span {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.14);
  border-radius: 20px;
}

.home-battle-card__main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-battle-card__main b {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.home-club-battle-card {
  gap: 14px;
}

.home-club-battle-card .section-heading > span {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.club-battle-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.club-battle-versus > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}

.club-battle-versus .club-logo {
  width: 46px;
  height: 46px;
}

.club-battle-versus b {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-battle-versus > strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.club-battle-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: 20px;
  color: var(--accent);
  text-align: center;
}

.club-battle-score b {
  font-size: 20px;
  line-height: 1;
}

.home-club-battle-card p {
  margin: 0;
  color: var(--muted);
}

.club-battle-detail {
  display: grid;
  gap: 16px;
}

.club-battle-versus--detail {
  grid-template-columns: 1fr;
}

.club-battle-versus--detail > strong {
  padding: 12px;
  background: var(--accent-soft);
  border-radius: 18px;
  text-align: center;
}

.club-battle-versus--detail small,
.club-battle-detail__meta {
  color: var(--muted);
}

.club-battle-detail h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.battle-participant-row,
.battle-workout-row {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.battle-participant-row {
  grid-template-columns: auto auto 1fr;
}

.battle-workout-row {
  grid-template-columns: 1fr auto;
}

.battle-participant-row > strong {
  color: var(--accent);
}

.battle-participant-row small,
.battle-workout-row small {
  color: var(--muted);
}

.battle-workout-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.home-main-mission .mission-card {
  box-shadow: none;
}

.home-contribution-card .section-heading b {
  color: var(--accent);
  font-size: 15px;
}

.home-today-impact-card,
.home-club-week-goal-card {
  gap: 14px;
}

.home-today-impact-card p,
.home-club-week-goal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.home-today-impact-card__xp {
  color: var(--accent);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0;
}

.home-today-impact-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-today-impact-card__grid span,
.home-impact-forecast,
.home-club-week-goal-card__progress {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.home-today-impact-card__grid small,
.home-impact-forecast small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.home-today-impact-card__grid b,
.home-impact-forecast b,
.home-club-week-goal-card__progress b {
  color: var(--text);
  font-size: 22px;
}

.home-impact-progress {
  display: grid;
  gap: 8px;
}

.home-impact-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

.home-impact-progress .progress,
.home-club-week-goal-card .progress {
  height: 12px;
  background: #e9efe5;
}

.home-impact-progress .progress span,
.home-club-week-goal-card .progress span {
  background: linear-gradient(90deg, var(--accent), #79c241);
}

.home-impact-forecast {
  background: linear-gradient(180deg, rgba(228, 243, 223, 0.78), rgba(255, 255, 255, 0.96));
  border-color: rgba(60, 143, 53, 0.18);
}

.home-impact-forecast span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.home-club-week-goal-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.home-primary-run-cta {
  width: 100%;
  min-height: 58px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(60, 143, 53, 0.24);
  font-size: 18px;
  font-weight: 900;
}

.home-primary-run-cta--inside {
  min-height: 62px;
  margin-top: 2px;
  font-size: 19px;
}

.home-primary-run-cta:active {
  transform: scale(0.98);
}

.home-event {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.home-event .primary-action,
.home-event .outline-action {
  width: auto;
  min-width: 104px;
  white-space: nowrap;
}

.home-user-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 14px 0 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(38, 63, 36, 0.08);
}

.home-user-hero .avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
}

.home-user-hero__body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-user-hero h1 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-hero small,
.home-user-hero em,
.home-user-level p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.25;
}

.home-user-level {
  display: grid;
  gap: 7px;
}

.home-user-level > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-user-level b {
  color: var(--accent);
  font-size: 18px;
}

.home-user-level .progress {
  height: 10px;
  background: #e9efe5;
}

.home-user-level .progress span {
  background: linear-gradient(90deg, var(--accent), #79c241);
}

.home-daily-action-card {
  gap: 10px;
  background: linear-gradient(180deg, #ffffff, #f4f9f1);
  border-color: rgba(60, 143, 53, 0.16);
}

.home-daily-action-card > span,
.home-personal-missions .section-heading > span,
.home-personal-contribution-card .section-heading > span,
.home-club-position-card .section-heading > span {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.home-daily-action-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.08;
}

.home-daily-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.home-daily-action-card strong {
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.home-daily-action-card.is-done {
  background: var(--surface);
}

.home-club-position-card__main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.home-club-position-card__main .club-logo {
  width: 54px;
  height: 54px;
}

.home-club-position-card__main h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.home-club-position-card__main small,
.home-club-position-card__main em {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.32;
}

.home-contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-contribution-grid span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.home-contribution-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.home-contribution-grid b {
  color: var(--text);
  font-size: 19px;
}

.home-contribution-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.home-club-week-goal-card {
  gap: 10px;
}

.home-club-week-goal-card .section-heading > span {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.home-club-week-goal-card h2 {
  font-size: 19px;
}

.home-event--empty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 12px;
}

.home-event--empty small {
  color: var(--muted);
  font-weight: 850;
}

.home-event--empty b {
  color: var(--text);
  font-size: 16px;
}

.home-missions .section-heading,
.home-section .section-heading {
  margin: 0;
}

.home-missions .section-heading span {
  color: var(--pink);
  font-weight: 900;
}

.mission-list,
.club-missions {
  display: grid;
  gap: 10px;
}

.mission-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 170, 0.11), transparent 44%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mission-card.is-completed {
  border-color: rgba(255, 45, 170, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 170, 0.18), transparent 45%),
    rgba(255, 45, 170, 0.055);
}

.mission-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mission-card__top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mission-card__top b {
  color: var(--pink);
  font-size: 13px;
  white-space: nowrap;
}

.mission-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.18;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.home-rank {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.home-rank .outline-action {
  width: auto;
  min-width: 118px;
  white-space: nowrap;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-stats-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.home-stats-grid b {
  font-size: 20px;
}

.ghost-link {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.08);
  border: 1px solid rgba(255, 45, 170, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.home-recent-list {
  display: grid;
  gap: 10px;
}

.home-mini-workout {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  color: #111;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(38, 63, 36, 0.06);
}

.home-mini-workout__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
}

.home-mini-workout__thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 28px;
  font-weight: 900;
}

.home-mini-workout__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.home-mini-workout b,
.home-mini-workout small,
.home-mini-workout em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mini-workout b {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.home-mini-workout small {
  margin-top: 6px;
  color: #7d7d7d;
  font-size: 14px;
}

.home-mini-workout em {
  margin-top: 8px;
  color: #5d5d5d;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
}

.event-detail__hero h3 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.05;
}

.event-detail__hero p,
.event-detail__note {
  margin: 0;
  color: var(--muted);
}

.event-type-badge {
  display: inline-flex !important;
  width: fit-content;
  padding: 6px 10px;
  color: var(--pink) !important;
  background: rgba(255, 45, 170, 0.13);
  border: 1px solid rgba(255, 45, 170, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail__meta {
  display: grid;
  gap: 8px;
}

.event-detail__meta span,
.event-detail__section {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.event-detail__meta small,
.event-detail__meta b,
.event-detail__meta em {
  display: block;
}

.event-detail__meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-detail__meta b {
  margin-top: 5px;
  color: var(--text);
  font-size: 17px;
}

.event-detail__meta em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
}

.event-detail__section h3,
.participants-heading h3 {
  margin: 0;
  font-size: 18px;
}

.event-detail__section p {
  margin: 8px 0 0;
  color: var(--muted);
}

.event-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.event-detail__chips span {
  width: fit-content;
  padding: 6px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.participants-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.participants-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.participants-heading button {
  width: fit-content;
  padding: 6px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.event-detail__actions {
  display: grid;
  gap: 8px;
}

.event-detail__countdown {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.event-detail__status {
  display: grid;
  gap: 8px;
}

.event-detail__status > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail-status-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.event-detail-status-picker button {
  min-height: 50px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 950;
}

.event-detail-status-picker button.is-primary,
.event-detail-status-picker button.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(60, 143, 53, 0.18);
}

.event-detail__participants {
  display: grid;
  gap: 10px;
}

.event-detail-participants-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.event-detail-participants-button b {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.event-detail-participants-button small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.event-detail__location {
  display: grid;
  gap: 8px;
}

.event-detail__location p {
  margin: 0;
}

.event-detail__location p b {
  color: var(--text);
}

.event-detail__location small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail-route {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  margin-top: 2px;
  padding: 10px 14px;
  text-decoration: none;
}

.event-detail__weather {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.event-detail__weather .weather-pill {
  width: 100%;
  justify-content: flex-start;
}

.event-detail h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.event-detail p,
.event-detail span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.event-detail__hero h3 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.05;
}

.event-detail__section h3,
.participants-heading h3 {
  margin: 0;
  font-size: 18px;
}

.event-detail__chips span {
  display: inline-flex;
  width: fit-content;
  color: var(--text);
}

.participants-heading span {
  color: var(--muted);
}

.location-choices,
.participants-block,
.comments-block {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.location-choices b,
.participants-block h3,
.comments-block h3 {
  margin: 0;
  font-size: 17px;
}

.location-choices button {
  min-height: 42px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.location-choices button.is-selected {
  color: var(--pink);
  border-color: rgba(255, 45, 170, 0.65);
}

.participant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  margin-top: 10px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.participants-block .participant-row,
.event-participants-sheet .participant-row {
  color: #151915;
  background: #ffffff;
  border-color: #e5e7eb;
}

.participant-row b,
.participant-row small {
  display: block;
}

.participant-row b {
  font-size: 16px;
}

.participant-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.share-card-panel {
  gap: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 45, 170, 0.14), transparent 36%),
    var(--surface);
}

.share-format-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.share-format-tabs button {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.share-format-tabs button.is-active {
  color: var(--pink);
  background: rgba(255, 45, 170, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 170, 0.22);
}

.share-card-preview {
  display: grid;
  place-items: center;
  max-height: min(68vh, 720px);
  padding: 14px;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.share-card-preview canvas,
.share-card-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(68vh - 32px);
  background: #050507;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.share-card-preview img[hidden] {
  display: none;
}

.share-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.share-card-actions button {
  min-width: 0;
  padding-right: 10px;
  padding-left: 10px;
}

.share-card-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .share-card-actions {
    grid-template-columns: 1fr;
  }
}

.comments-block article {
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.comments-block article b,
.comments-block article p {
  display: block;
  margin: 0;
}

.comments-block article p,
.comments-block > p {
  color: var(--muted);
}

.comments-block article p {
  margin-top: 5px;
  line-height: 1.35;
}

.workout-form {
  display: grid;
  gap: 16px;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

#workout-form > .section-message,
#workout-form > .workout-preview,
#workout-form > .ocr-raw,
#workout-form > .photo-picker {
  display: none !important;
}

.run-wizard {
  display: grid;
  gap: 16px;
}

.run-wizard-step {
  display: grid;
  gap: 16px;
}

.run-wizard-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.run-wizard-progress span {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.run-wizard-progress span.is-active {
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 45, 170, 0.28);
}

.run-wizard-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.run-wizard-progress--steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.run-wizard-progress--steps span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  height: auto;
  min-height: 42px;
  padding: 8px;
  color: #6f776f;
  background: #f2f5ef;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
}

.run-wizard-progress--steps span.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.28);
}

.run-wizard-progress--steps span.is-done {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.run-wizard-progress--steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.run-wizard-progress--steps small {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-copy {
  display: grid;
  gap: 8px;
}

.wizard-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

.wizard-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.wizard-field {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.wizard-field--hero input,
.wizard-field--hero .time-picker-trigger {
  min-height: 64px;
  font-size: 22px;
  font-weight: 900;
}

.wizard-main-action {
  min-height: 56px;
  margin-top: 2px;
}

.wizard-pace,
.wizard-summary,
.wizard-success {
  padding: 16px;
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.wizard-pace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-pace span,
.wizard-summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wizard-pace b,
.wizard-summary b {
  color: var(--text);
  font-size: 18px;
}

.wizard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-summary span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  background: #1d1d22;
  border-radius: 16px;
}

.wizard-summary span.is-error {
  background: #fff1f1 !important;
  border: 1px solid rgba(229, 72, 77, 0.22);
}

.wizard-summary span.is-error small,
.wizard-summary span.is-error b {
  color: var(--danger) !important;
}

.wizard-proof-error,
.wizard-proof-warning {
  padding: 13px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.wizard-proof-error {
  color: var(--danger);
  background: #fff1f1;
  border: 1px solid rgba(229, 72, 77, 0.22);
}

.wizard-proof-warning {
  color: #7a5b00;
  background: #fff8df;
  border: 1px solid rgba(190, 137, 0, 0.22);
}

.effort-rpe {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
}

.effort-scale-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6f776f;
  font-size: 12px;
  font-weight: 900;
}

.effort-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
}

.effort-scale button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 40px;
  color: #151915;
  background: #f4f7f1;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.effort-scale button.is-selected {
  z-index: 1;
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(60, 143, 53, 0.24);
  transform: scale(1.14);
}

.effort-selected {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
}

.effort-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.effort-legend span {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 8px 6px;
  color: #6f776f;
  background: #f8faf6;
  border: 1px solid #edf0ea;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.effort-legend b {
  color: #151915;
  font-size: 12px;
  font-weight: 950;
}

.wizard-screenshot,
.wizard-photo-preview {
  margin: 0;
  overflow: hidden;
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.wizard-screenshot img,
.wizard-photo-preview img {
  display: block;
  width: 100%;
}

.wizard-screenshot img {
  max-height: 300px;
  object-fit: contain;
}

.wizard-screenshot--small {
  width: 112px;
  justify-self: start;
  border-radius: 18px;
}

.wizard-screenshot--small img {
  max-height: 112px;
}

.wizard-review-top {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.wizard-review-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wizard-review-facts span {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 10px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
}

.wizard-review-facts small {
  color: #6f776f;
  font-size: 11px;
  font-weight: 850;
}

.wizard-review-facts b {
  min-width: 0;
  overflow: hidden;
  color: #111111;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-photo-card {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 190px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 45, 170, 0.42);
  border-radius: 24px;
}

.wizard-photo-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.12);
  border-radius: 18px;
  font-size: 30px;
  font-weight: 900;
}

.wizard-photo-card b {
  color: var(--text);
  font-size: 18px;
}

.wizard-photo-card small {
  color: var(--muted);
}

.wizard-photo-preview {
  aspect-ratio: 1;
  width: min(100%, 360px);
  justify-self: center;
  border-color: rgba(255, 45, 170, 0.22);
}

.wizard-photo-preview img {
  height: 100%;
  object-fit: cover;
}

.wizard-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wizard-success {
  display: grid;
  gap: 8px;
  text-align: center;
}

.wizard-success b {
  color: var(--text);
  font-size: 28px;
}

.wizard-success span {
  color: var(--pink);
  font-size: 24px;
  font-weight: 950;
}

.wizard-success p {
  margin: 0;
  color: var(--muted);
}

.add-workout-choice {
  display: grid;
  gap: 12px;
}

.add-workout-subtitle {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.add-method-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  min-height: 116px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.add-method-card--primary {
  border-color: rgba(255, 45, 170, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 170, 0.08);
}

.add-method-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.12);
  border: 1px solid rgba(255, 45, 170, 0.22);
  border-radius: 16px;
  font-size: 26px;
  font-weight: 900;
}

.add-method-card b {
  align-self: end;
  font-size: 18px;
  line-height: 1.1;
}

.add-method-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.add-run-rules {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: #151915;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
}

.add-run-rules b {
  font-size: 18px;
  line-height: 1.2;
}

.add-run-rules p {
  margin: 0;
  color: #6f776f;
  font-size: 14px;
  line-height: 1.45;
}

.add-run-rules ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.add-run-rules li {
  position: relative;
  padding-left: 26px;
  color: #151915;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.add-run-rules li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 950;
}

.workout-preview {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.workout-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.workout-preview.is-photo {
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-color: rgba(255, 45, 170, 0.18);
}

.workout-preview.is-photo img {
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.ocr-status,
.section-message {
  margin: 0 0 12px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.section-message {
  color: var(--text);
}

.ocr-raw {
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ocr-raw summary {
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.ocr-raw pre {
  max-height: 180px;
  margin: 10px 0 0;
  overflow: auto;
  color: var(--muted);
  white-space: pre-wrap;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.workout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.photo-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.photo-picker__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.photo-picker__button {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 132px;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 45, 170, 0.42);
  border-radius: 20px;
  cursor: pointer;
}

.photo-picker__button b {
  color: var(--text);
  font-size: 16px;
}

.photo-picker__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.12);
  border-radius: 14px;
  font-size: 24px;
}

.photo-picker__button input {
  display: none;
}

.photo-picker small,
.photo-picker__button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field-check {
  width: fit-content;
  padding: 3px 8px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.advanced-toggle {
  min-height: 48px;
  color: var(--pink);
  background: rgba(255, 45, 170, 0.07);
  border-color: rgba(255, 45, 170, 0.22);
  border-radius: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.workout-form input,
.workout-form textarea,
.workout-form select,
.time-picker-trigger {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: #13201a;
  background: #ffffff;
  border: 1.5px solid #e6eae2;
  border-radius: 17px;
  font-size: 16px;
  outline: none;
}

.workout-form textarea {
  padding: 12px 15px;
  line-height: 1.4;
}

.workout-form input::placeholder,
.workout-form textarea::placeholder {
  color: #9aa394;
}

.workout-form input:focus,
.workout-form textarea:focus,
.workout-form select:focus {
  border-color: var(--accent, #2e9c4f);
  box-shadow: 0 0 0 3px rgba(60, 143, 53, 0.16);
}

.time-picker-trigger span {
  color: #13201a;
}

.time-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.time-picker-trigger span {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.time-picker-trigger span.is-empty {
  color: var(--muted);
  font-weight: 700;
}

.advanced-field {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.advanced-field[hidden],
.review-field[hidden],
.workout-preview[hidden],
.ocr-raw[hidden] {
  display: none !important;
}

.workout-form textarea {
  min-height: 86px;
  padding: 14px 15px;
  resize: vertical;
}

.workout-form input:focus,
.workout-form textarea:focus,
.workout-form select:focus,
.time-picker-trigger:focus {
  border-color: rgba(255, 45, 170, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 45, 170, 0.11);
}

.time-picker-panel {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 45, 170, 0.13), transparent 38%),
    var(--surface);
}

.wheel-picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 250px;
  padding: 18px 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.wheel-picker:before {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  height: 48px;
  pointer-events: none;
  background: rgba(255, 45, 170, 0.12);
  border: 1px solid rgba(255, 45, 170, 0.22);
  border-radius: 16px;
  transform: translateY(-50%);
  content: "";
}

.wheel-picker label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.wheel-picker select {
  width: 100%;
  min-height: 204px;
  padding: 70px 6px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 30px;
  font-weight: 950;
  text-align: center;
  text-align-last: center;
  outline: none;
}

.wheel-picker option {
  color: #111;
  font-size: 20px;
}

.time-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-editor-sheet {
  z-index: 50;
}

.photo-editor-panel {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 45, 170, 0.12), transparent 38%),
    var(--surface);
}

.photo-editor-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.photo-crop-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    #09090b;
  background-size: 22px 22px;
  border: 1px solid rgba(255, 45, 170, 0.42);
  border-radius: 20px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(255, 45, 170, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  touch-action: none;
}

.photo-crop-frame::after {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  content: "";
}

.photo-crop-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}

.photo-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.workout-save-footer {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 6px -18px 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(20, 20, 22, 0), rgba(20, 20, 22, 0.96) 22%),
    rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(14px);
}

.workout-submit {
  min-height: 54px;
  border-radius: 19px;
}

.ghost-action {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: max(18px, calc((100vw - 480px) / 2 + 18px));
  z-index: 70;
  max-width: 444px;
  margin: 0 auto;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(24, 24, 27, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
}

.info-panel {
  display: grid;
  gap: 14px;
}

.info-content {
  display: grid;
  gap: 10px;
}

.info-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-heart::before {
  inset: 4px;
  border-radius: 50% 50% 4px 4px;
  transform: rotate(45deg);
}

.icon-comment::before {
  border-radius: 6px;
}

.icon-share::before {
  inset: 5px;
  border-width: 2px 2px 0 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.icon-pin::before {
  inset: 2px 5px 6px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.icon-pin::after {
  inset: 7px 9px 9px 7px;
  background: currentColor;
  border: 0;
  border-radius: 50%;
}

.icon-camera-plus::before {
  inset: 5px 3px 4px;
  border-radius: 5px;
}

.icon-camera-plus::after {
  top: 1px;
  right: 0;
  bottom: auto;
  left: auto;
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 9px no-repeat,
    linear-gradient(currentColor, currentColor) center / 9px 2px no-repeat;
}

.icon-refresh::before {
  border-left-color: transparent;
  border-radius: 50%;
}

.icon-close::before,
.icon-close::after {
  inset: 9px 3px;
  height: 0;
  border-width: 2px 0 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 360px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .screen-title h1 {
    font-size: 27px;
  }

  .profile-stats,
  .club-stats {
    gap: 6px;
  }

  .event-card {
    grid-template-columns: 48px 1fr;
  }

  .event-card .outline-action {
    grid-column: 1 / -1;
  }
}

/* My club hub */
#tab-events {
  min-width: 0;
  padding-bottom: calc(166px + env(safe-area-inset-bottom));
}

#tab-events .screen-title {
  margin-bottom: 14px;
}

#tab-events .screen-title h1 {
  letter-spacing: 0;
}

#tab-events .events-list {
  min-width: 0;
  gap: 16px;
}

.club-hub-header,
.club-hub-featured,
.club-hub-section,
.club-hub-no-club,
.club-hub-about {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.club-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  color: #151915;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(31, 55, 30, 0.06);
}

.club-hub-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.club-hub-header__brand > div {
  min-width: 0;
}

.club-hub-header__brand span {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.club-hub-header__brand h1 {
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-hub-header__brand p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-hub-logo,
.club-hub-logo.club-logo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.club-hub-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.club-hub-switch,
.club-hub-settings {
  min-height: 36px;
  padding: 0 10px;
  color: #486047;
  background: #f2f6ef;
  border: 1px solid rgba(20, 30, 20, 0.07);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.club-hub-settings {
  width: 36px;
  padding: 0;
  font-size: 16px;
}

.club-hub-featured {
  position: relative;
  overflow: hidden;
  color: #151915;
  background: linear-gradient(145deg, #ffffff 0%, #edf7e9 100%);
  border: 1.5px solid rgba(60, 143, 53, 0.32);
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(54, 112, 49, 0.1);
}

.club-hub-featured > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.club-hub-featured__content,
.club-hub-featured--empty {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.club-hub-featured h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.02;
}

.club-hub-featured p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.club-hub-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.club-hub-event-facts {
  display: grid;
  gap: 7px;
  color: #40513f;
  font-size: 14px;
  font-weight: 800;
}

.club-hub-event-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.club-hub-participants {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.club-hub-participants .event-participants-preview {
  min-width: 0;
  flex: 1;
}

.club-hub-participants > b {
  flex: 0 0 auto;
  color: #40513f;
  font-size: 12px;
}

.club-hub-rsvp {
  min-height: 52px;
  border-radius: 17px;
}

.club-hub-rsvp-label {
  margin: 16px 0 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink, #13201a);
}

/* Сегмент RSVP в карточке ближайшей тренировки — три пилюли в ряд (как в концепте) */
.club-hub-featured .event-rsvp-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.club-hub-featured .event-rsvp-controls button {
  min-height: 46px;
  padding: 0 6px;
  border-radius: 14px;
  border: 1.5px solid #e6eae2;
  background: #ffffff;
  color: #5b6b61;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.club-hub-featured .event-rsvp-controls button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.club-page-themed .club-hub-featured .event-rsvp-controls button.is-active {
  color: var(--club-accent-text, #ffffff);
  background: var(--club-accent, var(--accent));
  border-color: var(--club-accent, var(--accent));
}

.club-hub-featured__open {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 0;
  color: #2e9c4f;
  font-weight: 800;
  font-size: 13px;
  background: none;
  border: 0;
}

button.club-hub-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.club-ranking-search-wrap {
  margin: 0 0 12px;
}
.club-ranking-search {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 14px;
}

.schedule-repeat {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.schedule-repeat__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

/* Палитра выбора цвета клуба */
.club-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.club-color-swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.club-color-swatch.is-active {
  box-shadow: 0 0 0 3px #0E1512;
  transform: scale(1.08);
}

/* Кольцо «Твоя неделя» на главной */
.week-ring-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 0 0 12px;
  background: #13261c;
  border-radius: 22px;
}
.week-ring {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
}
.week-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}
.week-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.week-ring__center b {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
.week-ring__center small {
  margin-top: 2px;
  color: #9fb0a6;
  font-size: 10px;
  font-weight: 700;
}
.week-ring__side {
  flex: 1;
  min-width: 0;
}
.week-ring__kicker {
  color: #c6ff4f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.week-ring__rows {
  display: flex;
  gap: 18px;
  margin: 8px 0 6px;
}
.week-ring__stat b {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}
.week-ring__stat small {
  color: #9fb0a6;
  font-size: 11px;
  font-weight: 600;
}
.week-ring__hint {
  margin: 0;
  color: #9fb0a6;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.club-hub-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  padding: 4px;
  overflow-x: auto;
  background: #eef2ec;
  border-radius: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.club-hub-tabs::-webkit-scrollbar {
  display: none;
}

.club-hub-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  color: #697269;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.club-hub-tabs button.is-active {
  color: #246d27;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(29, 55, 28, 0.08);
}

.club-hub-section,
.club-hub-about {
  display: grid;
  gap: 12px;
}

.club-hub-section > h2,
.club-hub-about > h2 {
  margin: 0 2px;
  color: #151915;
  font-size: 20px;
}

.club-hub-feed-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  color: #151915;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(31, 55, 30, 0.055);
}

.club-hub-feed-card--message {
  background: linear-gradient(145deg, #ffffff, #f4f8f2);
  border-left: 3px solid #70b768;
}

.club-hub-feed-card--event {
  background: #eef6eb;
  border-color: rgba(60, 143, 53, 0.15);
}

.club-hub-feed-author {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.club-hub-feed-author .avatar {
  width: 42px;
  height: 42px;
}

.club-hub-feed-author span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.club-hub-feed-author b,
.club-hub-feed-author small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-hub-feed-author small {
  color: var(--muted);
  font-size: 11px;
}

.club-hub-feed-author em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.club-hub-feed-card h3,
.club-hub-feed-card p {
  margin: 0;
}

.club-hub-feed-card p {
  color: #364236;
  line-height: 1.5;
  white-space: pre-wrap;
}

.club-hub-feed-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.club-hub-workout-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.club-hub-workout-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f3f6f1;
  border-radius: 13px;
}

.club-hub-workout-metrics b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-hub-workout-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.club-hub-feed-type {
  width: fit-content;
  padding: 5px 9px;
  color: #2f7f31;
  background: #dff0d9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.club-hub-feed-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.club-hub-feed-event-footer button {
  min-width: 0;
  color: #3d533c;
  background: transparent;
  border: 0;
  font-weight: 850;
}

.club-hub-member-list,
.club-hub-ranking {
  display: grid;
  gap: 8px;
}

.club-hub-member-list article,
.club-hub-ranking article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.07);
  border-radius: 17px;
}

.club-hub-ranking article {
  grid-template-columns: 24px 42px minmax(0, 1fr) auto;
}

.club-hub-ranking article.is-me {
  background: #eff8eb;
  border-color: rgba(60, 143, 53, 0.22);
}

.club-hub-member-list article > span,
.club-hub-ranking article > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.club-hub-member-list small,
.club-hub-ranking small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-hub-member-list em,
.club-hub-ranking em {
  color: #2f7f31;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.club-hub-about {
  padding: 18px;
  color: #151915;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 22px;
}

.club-hub-about p {
  margin: 0;
  color: #536053;
  line-height: 1.55;
}

.club-hub-about dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.club-hub-about dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 30, 20, 0.07);
}

.club-hub-about dt {
  color: var(--muted);
}

.club-hub-about dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.club-hub-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-hub-socials a {
  padding: 8px 11px;
  color: #2f7f31;
  background: #edf6ea;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.club-hub-composer {
  position: sticky;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  padding: 9px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 30, 20, 0.09);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(28, 50, 27, 0.14);
  backdrop-filter: blur(16px);
}

.club-hub-composer .avatar {
  width: 38px;
  height: 38px;
}

.club-hub-composer input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: #151915;
  background: #f2f5f0;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
}

.club-hub-composer input:focus {
  background: #ffffff;
  border-color: #58a64f;
  box-shadow: 0 0 0 3px rgba(60, 143, 53, 0.1);
}

.club-hub-composer > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  font-size: 19px;
}

.club-hub-empty,
.club-hub-no-club,
.club-hub-block-error {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 18px;
  color: #151915;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 22px;
}

.club-hub-no-club > span {
  color: var(--accent);
  font-size: 42px;
}

.club-hub-empty span,
.club-hub-no-club p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.club-hub-block-error {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  padding: 12px 14px;
  color: #87510e;
  text-align: left;
  background: #fff7e8;
}

.club-hub-block-error button {
  color: #7b4b0d;
  background: transparent;
  border: 0;
  font-weight: 900;
}

.club-hub-skeleton {
  display: grid;
  gap: 14px;
}

.club-hub-skeleton article,
.club-hub-skeleton span {
  min-height: 82px;
  background: linear-gradient(90deg, #eef1ec 25%, #f8faf7 50%, #eef1ec 75%);
  background-size: 200% 100%;
  border-radius: 22px;
  animation: homeSkeletonPulse 1.4s infinite linear;
}

.club-hub-skeleton article.is-large {
  min-height: 250px;
}

.club-hub-skeleton div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.club-hub-skeleton span {
  min-height: 42px;
  border-radius: 13px;
}

@media (max-width: 390px) {
  .club-hub-header {
    padding: 13px;
  }

  .club-hub-switch {
    display: none;
  }

  .club-hub-featured__content,
  .club-hub-featured--empty {
    padding: 17px;
  }

  .club-hub-featured h2 {
    font-size: 24px;
  }

  .club-hub-workout-metrics b {
    font-size: 12px;
  }

  .club-hub-composer {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

/* Light platform redesign v1 */
:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --card: #ffffff;
  --card-2: #eef4ea;
  --border: rgba(20, 30, 20, 0.08);
  --surface: #ffffff;
  --surface-2: #f2f6ef;
  --surface-3: #e8f0e3;
  --text: #151915;
  --muted: #6f776f;
  --line: rgba(20, 30, 20, 0.08);
  --pink: #3c8f35;
  --pink-2: #62b857;
  --accent: #3c8f35;
  --accent-soft: #e4f3df;
  --danger: #e5484d;
}

.club-manage-button {
  margin-top: 10px;
  width: 100%;
}

.club-admin-panel {
  max-height: min(92vh, 820px);
  overflow-y: auto;
  background: #ffffff;
  color: #111111;
  -webkit-overflow-scrolling: touch;
}

.club-admin-panel .sheet__top {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -2px -2px 8px;
  padding: 2px 2px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.club-admin-root {
  display: grid;
  gap: 14px;
}

.club-admin-tabs {
  margin-bottom: 2px;
  padding-bottom: 2px;
}

.club-admin-section {
  padding-bottom: 12px;
}

.club-admin-home-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ef 100%);
  border: 1px solid rgba(60, 143, 53, 0.14);
  border-radius: 24px;
}

.club-admin-home-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.club-admin-home-card small,
.club-admin-home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.club-admin-home-card h3 {
  margin: 0;
  color: #151915;
  font-size: 24px;
  line-height: 1.05;
}

.club-admin-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.club-admin-home-stats article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 18px;
}

.club-admin-home-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.club-admin-home-stats b {
  color: #151915;
  font-size: 18px;
  font-weight: 950;
}

.club-admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-admin-section-grid button {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 14px;
  color: #151915;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 20px;
}

.club-admin-section-grid button b {
  font-size: 16px;
  font-weight: 950;
}

.club-admin-section-grid button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.club-admin-section .admin-form input,
.club-admin-section .admin-form textarea,
.club-admin-section .admin-form select,
#club-admin-sheet input,
#club-admin-sheet textarea,
#club-admin-sheet select {
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.club-admin-section .admin-form input::placeholder,
.club-admin-section .admin-form textarea::placeholder,
#club-admin-sheet input::placeholder,
#club-admin-sheet textarea::placeholder {
  color: #8a8a8a;
}

.admin-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-note--danger {
  border-color: rgba(229, 72, 77, 0.22);
  background: #fff5f5;
}

.admin-note--danger b {
  color: var(--danger);
}

.club-danger-form,
.club-danger-delete-card {
  border-color: rgba(229, 72, 77, 0.22);
  background: #fffafa;
}

.club-danger-delete-card .admin-row__top b,
.club-danger-form .club-event-form-head b {
  color: var(--danger);
}

.club-danger-delete-card small {
  color: #7f1d1d;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-grid .admin-row {
  min-height: 86px;
  justify-content: center;
}

.admin-overview-grid strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.admin-actions--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-actions--wide button {
  min-height: 46px;
}

.club-event-form-head {
  display: grid;
  gap: 5px;
}

.club-event-form-head b {
  color: var(--text);
  font-size: 18px;
}

.club-event-form-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.club-info-form {
  gap: 14px;
}

.club-info-media-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.club-info-media-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  background: #f8faf6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

.club-info-media-grid article > span {
  color: #151915;
  font-size: 13px;
  font-weight: 900;
}

.club-info-logo-preview {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.22);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(60, 143, 53, 0.08);
}

.club-info-logo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.club-info-logo-preview b {
  font-size: 30px;
  font-weight: 950;
}

.club-info-cover-preview {
  width: 100%;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #151915;
  background: linear-gradient(135deg, #eef4ea 0%, #ffffff 52%, #e5f3df 100%);
  border: 1px solid rgba(60, 143, 53, 0.16);
  border-radius: 20px;
}

.club-info-cover-preview img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.club-info-cover-preview b {
  padding: 12px;
  font-size: 16px;
  font-weight: 950;
  text-align: center;
}

.club-info-form .outline-action,
.club-info-form .primary-action {
  min-height: 48px;
  border-radius: 16px;
}

.club-event-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-event-type-card,
.weekday-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.club-event-type-card input,
.weekday-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.club-event-type-card span,
.weekday-chip span {
  font-size: 14px;
  font-weight: 900;
}

.club-event-type-card:has(input:checked),
.weekday-chip:has(input:checked) {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 10px 24px rgba(60, 143, 53, 0.12);
}

.club-event-quick-grid,
.club-event-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-event-quick-grid label:first-child,
.club-event-extra-grid label:first-child,
.club-event-extra-grid label:last-child {
  grid-column: 1 / -1;
}

.weekday-chip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-chip-grid.is-hidden {
  display: none;
}

.weekday-chip {
  min-height: 40px;
  padding: 8px 4px;
  border-radius: 14px;
}

.weekday-chip span {
  font-size: 12px;
}

.club-event-details {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.club-event-details summary {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.club-event-details[open] summary {
  margin-bottom: 12px;
}

.club-admin-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.club-admin-ranking {
  margin-top: 12px;
}

.club-admin-podium,
.club-admin-competition {
  display: grid;
  gap: 12px;
}

.club-admin-podium .is-current-club {
  border-color: rgba(60, 143, 53, 0.34);
  background: var(--accent-soft);
}

.club-admin-gap-card strong {
  color: var(--text);
  font-size: 24px;
}

.club-admin-progress {
  height: 10px;
  overflow: hidden;
  background: #edf1ea;
  border-radius: 999px;
}

.club-admin-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #73bd42);
  border-radius: inherit;
}

.club-admin-member-impact__body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-admin-member-impact__body span {
  display: grid;
  gap: 2px;
}

.club-admin-member-impact__body small {
  color: var(--muted);
}

.club-admin-member-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.club-admin-member-row span {
  display: grid;
  gap: 3px;
}

.club-admin-member-row b {
  color: var(--text);
}

.club-admin-member-row small {
  color: var(--muted);
  font-weight: 850;
}

.club-admin-member-row em {
  padding: 6px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.club-member-filter-tabs {
  margin-bottom: 0;
}

.club-members-admin-list {
  gap: 10px;
}

.club-member-admin-card {
  gap: 11px;
}

.club-member-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.club-member-admin-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f7faf4;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 14px;
}

.club-member-admin-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.club-member-admin-stats b {
  overflow: hidden;
  color: #151915;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-stats-section {
  gap: 12px;
}

.club-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-stats-grid article {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 18px;
}

.club-stats-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.club-stats-grid b {
  color: #151915;
  font-size: 20px;
  font-weight: 950;
}

.club-stats-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-stats-chart {
  gap: 10px;
}

.club-stats-bar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.club-stats-bar-row span,
.club-stats-bar-row b {
  color: #151915;
  font-size: 12px;
  font-weight: 900;
}

.club-stats-bar-row b {
  text-align: right;
}

.club-stats-bar-row div {
  height: 8px;
  overflow: hidden;
  background: #eef4ea;
  border-radius: 999px;
}

.club-stats-bar-row i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.club-stats-top-member small {
  color: var(--muted);
  font-weight: 850;
}

.club-team-role-form {
  border-radius: 24px;
}

.club-team-person-card {
  gap: 10px;
}

.club-team-person-card .admin-actions {
  justify-content: flex-end;
}

.club-admin-panel .sheet__top p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.announcement-panel {
  max-width: 520px;
}

.announcement-card {
  display: grid;
  gap: 12px;
}

.announcement-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  background: var(--surface-soft);
}

.announcement-badge {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.announcement-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.08;
}

.announcement-subtitle,
.announcement-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.announcement-body {
  color: var(--text);
}

.announcement-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 420px) {
  .club-admin-upload-grid {
    grid-template-columns: 1fr;
  }
}

html,
body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(60, 143, 53, 0.08), transparent 34%),
    var(--bg);
}

.app-shell {
  padding-inline: 18px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.topbar {
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  min-height: 82px;
  margin-inline: -18px;
  padding: 10px 24px;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(38, 63, 36, 0.08);
}

.topbar__logo {
  width: 86px;
}

.topbar__club-logo {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
}

.icon-button,
.topbar-avatar,
.top-add-run-btn {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(38, 63, 36, 0.1);
}

.topbar-avatar,
.top-add-run-btn {
  align-self: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  margin: 0;
  padding: 0;
}

.topbar-avatar {
  border-color: rgba(60, 143, 53, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border-radius: 50%;
  overflow: hidden;
}

.topbar-avatar b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.topbar-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.top-add-run-btn {
  background:
    radial-gradient(circle at 50% 30%, rgba(60, 143, 53, 0.18), transparent 58%),
    var(--surface);
  border-color: rgba(60, 143, 53, 0.28);
}

.top-add-run-icon {
  filter: none;
}

.screen-title h1,
.home-greeting h1,
.club-page-head h1,
.profile-head h1 {
  color: var(--text);
  letter-spacing: 0;
}

.screen-title p,
.home-greeting p,
.club-page-head p,
.club-page-hero > p,
.profile-head p,
.home-card small,
.home-card p,
.home-card span,
.club-member-row small,
.club-member-row em,
.mini-workout small,
.mini-workout em {
  color: var(--muted);
}

.post-card,
.event-card,
.profile-head,
.club-stats article,
.ranking-row,
.empty-state,
.sheet__panel,
.profile-stats article,
.mini-workout,
.plan-row,
.home-card,
.home-section,
.motivation-card,
.rewards-block,
.club-page-hero,
.club-about,
.calendar-card,
.photo-picker__button,
.mission-card,
.admin-row {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(38, 63, 36, 0.08);
}

.post-card,
.home-card,
.home-section,
.profile-head,
.club-page-hero,
.event-card,
.calendar-card {
  border-radius: 26px;
}

.post-card,
.home-card,
.home-section,
.motivation-card,
.rewards-block,
.mission-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.post-card--skeleton {
  background:
    linear-gradient(90deg, rgba(20, 30, 20, 0.02), rgba(60, 143, 53, 0.08), rgba(20, 30, 20, 0.02)),
    var(--surface);
}

.avatar {
  color: var(--accent);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    linear-gradient(145deg, rgba(60, 143, 53, 0.82), rgba(255, 255, 255, 0.95)) border-box;
}

.avatar b {
  color: var(--accent);
}

.level-badge,
.xp-badge,
.month-pill,
.event-type-badge,
.profile-level span,
.profile-club,
.mission-card__top b {
  color: var(--accent) !important;
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.18);
}

.xp-bonus-label {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #58ad4c);
  box-shadow: 0 12px 24px rgba(60, 143, 53, 0.18);
}

.outline-action,
.ghost-link,
.ghost-action {
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.2);
}

.outline-action.is-active,
.club-tabs button.is-active,
.profile-club-switcher button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.24);
}

input,
textarea,
select,
.time-picker-trigger,
.home-club-switch,
.club-about-grid span,
.home-stats-grid span,
.reward-card,
.club-card,
.club-option,
.add-method-card,
.admin-tabs,
.share-format-tabs {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(60, 143, 53, 0.38);
  box-shadow: 0 0 0 4px rgba(60, 143, 53, 0.1);
  outline: none;
}

#add-workout-sheet .workout-form input,
#add-workout-sheet .workout-form textarea,
#add-workout-sheet .workout-form select,
#add-workout-sheet .time-picker-trigger,
#add-workout-sheet .wizard-field input,
#add-workout-sheet .wizard-summary,
#add-workout-sheet .wizard-summary span,
#add-workout-sheet .wizard-pace,
#add-workout-sheet .photo-picker,
#add-workout-sheet .workout-preview,
#add-workout-sheet .ocr-raw,
#add-workout-sheet .add-method-card,
#add-workout-sheet .wizard-photo-card {
  color: #111111;
  background: #ffffff;
  border-color: #e5e7eb;
}

#add-workout-sheet .workout-form input::placeholder,
#add-workout-sheet .workout-form textarea::placeholder,
#add-workout-sheet .wizard-field input::placeholder {
  color: #8a8a8a;
}

#add-workout-sheet .workout-form input,
#add-workout-sheet .workout-form textarea,
#add-workout-sheet .workout-form select,
#add-workout-sheet .time-picker-trigger,
#add-workout-sheet .wizard-field input {
  border-radius: 16px;
}

#add-workout-sheet .workout-form input:focus,
#add-workout-sheet .workout-form textarea:focus,
#add-workout-sheet .workout-form select:focus,
#add-workout-sheet .time-picker-trigger:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 143, 53, 0.12);
}

#add-workout-sheet .wizard-summary small,
#add-workout-sheet .wizard-copy p,
#add-workout-sheet .photo-picker small,
#add-workout-sheet .add-method-card small {
  color: #6f776f;
}

#add-workout-sheet .wizard-summary b,
#add-workout-sheet .wizard-copy h3,
#add-workout-sheet .add-method-card b,
#add-workout-sheet .time-picker-trigger span {
  color: #111111;
}

#add-workout-sheet .wizard-summary span.is-error {
  background: #fff1f1;
  border-color: rgba(229, 72, 77, 0.22);
}

#add-workout-sheet .wizard-summary span.is-error small,
#add-workout-sheet .wizard-summary span.is-error b {
  color: var(--danger);
}

#add-workout-sheet .workout-submit:disabled,
#add-workout-sheet .wizard-main-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#add-workout-sheet .effort-scale button {
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

#add-workout-sheet .effort-scale button.is-selected {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.14);
}

#add-workout-sheet .effort-selected {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 16px;
  font-weight: 950;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  color: #111111;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(112, 196, 40, 0.18), transparent 28%),
    #ffffff;
}

.app-splash img {
  width: min(280px, 78vw);
  max-height: 150px;
  object-fit: contain;
}

.app-splash h1 {
  margin: 4px 0 0;
  color: #111111;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.app-splash p {
  margin: 0;
  color: #151915;
  font-size: 18px;
  font-weight: 850;
}

.app-splash small {
  color: #6f776f;
  font-size: 14px;
  font-weight: 750;
}

.app-splash__loader {
  width: 34px;
  height: 34px;
  border: 4px solid #e4f3df;
  border-top-color: #3c8f35;
  border-radius: 50%;
  animation: runBattleSpin 0.8s linear infinite;
}

@keyframes runBattleSpin {
  to {
    transform: rotate(360deg);
  }
}

body:not(.app-is-loading) .app-splash {
  display: none;
}

body.app-is-loading .app-shell,
body.app-is-loading .tabbar,
body.app-is-loading .sheet,
body.app-is-loading .toast {
  display: none !important;
}

body:not(.app-is-interactive) .app-shell,
body:not(.app-is-interactive) .tabbar {
  pointer-events: none;
}

.topbar__club-logo--platform {
  width: 164px;
  height: 56px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #ffffff;
}

.topbar__club-logo--platform img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Minimal RUN BATTLE topbar */
.topbar {
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 68px;
  margin: 0 -16px 14px;
  padding: 8px 20px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar__club-logo,
.topbar__club-logo--platform {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.topbar__club-logo img,
.topbar__club-logo--platform img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center center;
}

.topbar__club-logo b {
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
}

.topbar-avatar,
.top-add-run-btn {
  align-self: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}

.topbar-avatar {
  justify-self: start;
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.22);
  box-shadow: none;
  overflow: hidden;
}

.topbar-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.topbar-avatar b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.top-add-run-btn {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  box-shadow: none;
}

.top-add-run-icon {
  width: 24px;
  height: 24px;
  filter: none;
}

/* Bottom navigation, variant 3: airy floating bar. */
.tabbar {
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(14px, calc((100vw - 480px) / 2 + 14px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  max-width: 452px;
  min-height: 74px;
  padding: 8px 10px 9px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 30, 20, 0.07);
  border-radius: 32px;
  box-shadow:
    0 18px 42px rgba(28, 42, 24, 0.14),
    0 2px 8px rgba(28, 42, 24, 0.05);
  backdrop-filter: blur(22px);
}

.tabbar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 54px;
  padding: 6px 2px 4px;
  color: #8b948b;
  background: transparent;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

.tabbar__item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 3px;
  background: transparent;
  border-radius: 999px;
  transform: translateX(-50%);
  transition:
    background 0.16s ease,
    width 0.16s ease;
}

.tabbar__item.is-active {
  color: var(--accent);
  background: transparent;
}

.tabbar__item.is-active::before {
  width: 22px;
  background: var(--accent);
}

.tabbar__icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.tabbar__item--add {
  transform: translateY(-11px);
  color: var(--accent);
  gap: 5px;
}

.tabbar__item--add::before,
.tabbar__item--add.is-active::before {
  display: none;
}

.tabbar__item--add:active {
  transform: translateY(-11px) scale(0.98);
}

.tabbar__add-icon {
  width: 54px;
  height: 54px;
  margin: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #67b631);
  border: 5px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 16px 28px rgba(60, 143, 53, 0.24),
    0 4px 10px rgba(60, 143, 53, 0.14);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 390px) {
  .tabbar {
    right: 10px;
    left: 10px;
    min-height: 72px;
    padding-inline: 8px;
    border-radius: 30px;
  }

  .tabbar__item {
    font-size: 9.5px;
  }

  .tabbar__add-icon {
    width: 52px;
    height: 52px;
  }
}

/* Final responsive overflow lock for the home training card and RSVP controls. */
html,
body,
.app-shell,
#feed-list {
  max-width: 100%;
  overflow-x: hidden;
}

.home-card,
.home-section,
.home-event,
.home-event > *,
.event-rsvp-controls,
.event-rsvp-counts,
.event-participants-count,
.event-participants-preview {
  min-width: 0;
  max-width: 100%;
}

.home-card,
.home-section,
.home-event {
  width: 100%;
  overflow-wrap: anywhere;
}

.home-event {
  overflow: hidden;
}

.home-event .event-rsvp-controls {
  grid-template-columns: 1fr;
}

.home-event__status,
.home-event .primary-action,
.home-event .outline-action {
  width: 100%;
}

.home-event .event-participants-count,
.event-rsvp-controls button {
  white-space: normal;
}

@media (max-width: 430px) {
  .home-event {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .event-rsvp-controls {
    grid-template-columns: 1fr;
  }
}

/* Final calendar grid override: keep participant photos out of date cells. */
.calendar-day {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  overflow: hidden;
}

.calendar-day .calendar-avatar-stack {
  display: none;
}

.calendar-day .calendar-rsvp-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  max-width: 28px;
  height: 16px;
  margin: 0 auto;
  padding: 0 4px;
  overflow: hidden;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.calendar-day.is-attending {
  border-color: rgba(60, 143, 53, 0.58);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 53, 0.22);
}

.calendar-day .calendar-rsvp-count.is-mine {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Calendar grid stays clean: no participant photos inside date cells. */
.calendar-day {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  overflow: hidden;
}

.calendar-day .calendar-avatar-stack {
  display: none;
}

.calendar-day .calendar-rsvp-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  max-width: 28px;
  height: 16px;
  margin: 0 auto;
  padding: 0 4px;
  overflow: hidden;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.calendar-day.is-attending {
  border-color: rgba(60, 143, 53, 0.58);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 53, 0.22);
}

.calendar-day .calendar-rsvp-count.is-mine {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Чистый календарь: числа по центру, событие — аккуратная точка под числом, */
/* сегодня — кружок-акцент, без залитых «боксов» и угловых бейджей. */
.calendar-grid .calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 44px;
  padding: 0;
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text);
}
.calendar-grid .calendar-day:disabled {
  color: var(--muted);
}
.calendar-grid .calendar-day.is-past {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
}
.calendar-grid .calendar-day.has-event,
.calendar-grid .calendar-day.is-selected {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.calendar-grid .calendar-day > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
/* Точка события — фиксировано под числом, не двигает число */
.calendar-grid .calendar-day .calendar-rsvp-count {
  display: none;
}
.calendar-grid .calendar-day > span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  margin: 0;
  background: var(--accent);
  border-radius: 50%;
}
/* Сегодня — заполненный кружок-акцент */
.calendar-grid .calendar-day.is-today > b {
  color: #ffffff;
  background: var(--accent);
}
.calendar-grid .calendar-day.is-today > span {
  background: #ffffff;
}
/* Выбранный день — кольцо вокруг числа */
.calendar-grid .calendar-day.is-selected > b {
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
}
/* День, куда записан — число в мягкой акцентной заливке + точка крупнее */
.calendar-grid .calendar-day.is-attending > b {
  background: var(--accent-soft, rgba(60, 143, 53, 0.16));
  color: var(--accent);
}
.calendar-grid .calendar-day.is-attending > span {
  width: 6px;
  height: 6px;
}

/* Responsive guard: nearest training card must never create horizontal scroll. */
#feed-list,
.home-card,
.home-event,
.home-event > *,
.event-rsvp-controls,
.event-rsvp-counts,
.event-participants-preview {
  min-width: 0;
  max-width: 100%;
}

#feed-list,
.home-card,
.home-section {
  width: 100%;
  overflow-wrap: anywhere;
}

.home-event {
  overflow: hidden;
}

.home-event > div:first-child {
  min-width: 0;
}

.home-event h2,
.home-event p,
.home-event span {
  max-width: 100%;
}

.home-event .event-participants-count {
  width: auto;
  max-width: 100%;
  white-space: normal;
}

.home-event__status {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.home-event__status > b,
.home-event__status > small {
  max-width: 100%;
}

.event-rsvp-controls {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.event-rsvp-controls button {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 430px) {
  .home-event {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .home-event .primary-action,
  .home-event .outline-action,
  .home-event__status {
    width: 100%;
  }

  .home-event__status .event-rsvp-controls {
    grid-template-columns: 1fr;
  }
}

/* Compact home v2 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#tab-feed {
  padding-top: 2px;
}

#feed-list {
  gap: 10px;
}

.home-user-hero {
  min-height: 0;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 12px;
  border-radius: 22px;
}

.home-user-hero .avatar {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  border: 2px solid rgba(60, 143, 53, 0.22);
}

.home-user-hero__body {
  gap: 7px;
}

.home-user-hero h1 {
  font-size: 21px;
}

.home-user-hero__identity small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.home-user-hero__identity em {
  margin-top: 4px;
  font-size: 13px;
}

.home-user-level p {
  font-size: 12px;
}

.home-user-level .progress {
  height: 7px;
}

.home-daily-action-card {
  gap: 10px;
  padding: 16px;
}

.home-daily-action-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-daily-action-card h2 {
  max-width: none;
  font-size: 24px;
}

.home-daily-action-card p {
  max-width: none;
  font-size: 14px;
}

.home-daily-action-card strong {
  font-size: 28px;
}

.home-daily-action-card small {
  font-weight: 850;
}

.home-club-position-card {
  gap: 10px;
  padding: 14px;
}

.home-club-position-card__main {
  align-items: center;
}

.home-club-position-card__main .club-logo {
  width: 44px;
  height: 44px;
}

.home-club-position-card__main h2 {
  font-size: 19px;
}

.home-club-position-card__main small {
  margin-top: 4px;
}

.home-club-position-card__main em {
  font-size: 22px;
}

.home-club-position-card .home-club-manage {
  min-height: 42px;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.18);
  border-radius: 16px;
}

.home-personal-progress-card {
  gap: 10px;
}

.home-personal-progress-card .section-heading > span {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.home-personal-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-personal-progress-list span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  min-width: 0;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.home-personal-progress-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-personal-progress-list b {
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-personal-progress-list em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-main-mission,
.home-club-week-goal-card,
.home-event {
  padding: 14px;
}

.home-event {
  gap: 10px;
}

.home-event h2 {
  font-size: 18px;
}

.home-event p {
  margin: 4px 0 0;
}

.home-event span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

@media (max-width: 390px) {
  .home-personal-progress-list {
    grid-template-columns: 1fr;
  }
}

/* Battle clubs game v2 */
.battle-duel-card--game {
  overflow: hidden;
  border-color: rgba(60, 143, 53, 0.22);
  background:
    linear-gradient(180deg, #ffffff, #f3f9ef);
}

.battle-duel-game {
  display: grid;
  gap: 12px;
}

.battle-duel-game article {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.battle-duel-game article > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.battle-duel-game .club-logo {
  width: 34px;
  height: 34px;
}

.battle-duel-game b,
.battle-duel-game em {
  overflow: hidden;
  color: var(--text);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-duel-game em {
  color: var(--accent);
  font-weight: 950;
}

.battle-duel-game__bar {
  height: 14px;
  overflow: hidden;
  background: #e4ebdf;
  border-radius: 999px;
}

.battle-duel-game__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #79c241);
  border-radius: inherit;
}

.battle-duel-game__bar--rival span {
  background: linear-gradient(90deg, #111827, #6b7280);
}

.battle-duel-game__stakes,
.battle-prize-grid,
.battle-next-goal-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battle-duel-game__stakes span,
.battle-prize-grid span,
.battle-next-goal-card__meta span {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.battle-duel-game__stakes small,
.battle-next-goal-card__meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.battle-duel-game__stakes b,
.battle-next-goal-card__meta b {
  color: var(--text);
  font-size: 18px;
}

.battle-prize-card,
.battle-forecast-card,
.battle-fighters-card,
.battle-next-goal-card,
.battle-challenge-card {
  display: grid;
  gap: 12px;
}

.battle-prize-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.battle-prize-grid span {
  text-align: center;
}

.battle-prize-grid b {
  font-size: 26px;
  line-height: 1;
}

.battle-prize-grid small {
  color: var(--accent);
  font-size: 17px;
  font-weight: 950;
}

.battle-prize-now,
.battle-forecast-probability,
.battle-challenge-card__active {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: linear-gradient(180deg, var(--accent-soft), #ffffff);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 18px;
}

.battle-prize-now small,
.battle-forecast-probability small {
  color: var(--muted);
  font-weight: 850;
}

.battle-prize-now b,
.battle-forecast-probability b {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.battle-prize-now span,
.battle-forecast-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.battle-forecast-list {
  display: grid;
  gap: 8px;
}

.battle-forecast-list span,
.battle-fighters-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.battle-forecast-list b,
.battle-fighters-list b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-forecast-list em,
.battle-fighters-list em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.battle-fighters-list {
  display: grid;
  gap: 8px;
}

.battle-fighters-list article {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.battle-fighters-list strong {
  color: var(--accent);
  font-weight: 950;
}

.battle-fighters-list .avatar {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

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

.battle-activity-card .battle-activity-list li {
  background: #ffffff;
}

.battle-next-goal-card > b {
  color: var(--text);
  font-size: 22px;
}

.battle-challenge-form {
  display: grid;
  gap: 10px;
}

.battle-challenge-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.battle-challenge-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.battle-challenge-card__active b {
  color: var(--text);
  font-size: 18px;
}

.battle-challenge-card__active span,
.battle-challenge-card__active em {
  color: var(--muted);
  font-style: normal;
}

/* Battle gameplay polish */
.battle-card-action {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border-radius: 18px;
  font-weight: 900;
}

.battle-duel-card,
.battle-threat-card,
.battle-activity-card,
.battle-achievements-card {
  display: grid;
  gap: 14px;
}

.battle-duel-card__clubs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.battle-duel-card__clubs > span {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.battle-duel-card__clubs > span b,
.battle-duel-card__clubs > span small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-duel-card__clubs > span small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.battle-duel-card__clubs > em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.battle-duel-card__bar {
  height: 10px;
  overflow: hidden;
  background: #eef2ec;
  border-radius: 999px;
}

.battle-duel-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7cc043);
  border-radius: inherit;
}

.battle-duel-card p,
.battle-threat-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.battle-threat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8ee 100%);
  border-color: rgba(60, 143, 53, 0.16);
}

.battle-threat-card > b {
  color: #151915;
  font-size: 20px;
  line-height: 1.15;
}

.battle-impact-forecast {
  min-height: auto;
  padding: 16px;
}

.battle-impact-forecast strong {
  font-size: 20px;
  line-height: 1.2;
}

.battle-race-card .battle-race-list article {
  min-height: 68px;
}

.battle-activity-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.battle-activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  background: #f7faf4;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 16px;
}

.battle-activity-list li > span {
  flex: 1 1 auto;
}

.battle-activity-list span,
.battle-activity-list em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-activity-list span {
  color: #151915;
  font-size: 14px;
  font-weight: 750;
}

.battle-activity-list em {
  flex: 0 0 auto;
  max-width: 42%;
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.battle-season-progress-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.battle-season-progress-card__grid span {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  background: #f7faf4;
  border-radius: 16px;
}

.battle-season-progress-card__grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.battle-season-progress-card__grid b {
  color: #151915;
  font-size: 15px;
  font-weight: 950;
}

.battle-achievements-list {
  display: grid;
  gap: 9px;
}

.battle-achievements-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: #6f776f;
  background: #f7faf4;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 16px;
}

.battle-achievements-list span.is-done {
  color: #151915;
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.16);
}

.battle-achievements-list b,
.battle-achievements-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-achievements-list b {
  font-size: 14px;
  font-weight: 900;
}

.battle-achievements-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 390px) {
  .battle-duel-card__clubs {
    gap: 8px;
  }

  .battle-duel-card__clubs > span {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .battle-season-progress-card__grid {
    grid-template-columns: 1fr;
  }
}

/* Events schedule management */
.calendar-admin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.07);
  border-radius: 18px;
}

.calendar-admin-entry span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.calendar-admin-entry b {
  color: #151915;
  font-size: 15px;
  font-weight: 950;
}

.calendar-admin-entry small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.calendar-admin-entry .outline-action {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 14px;
}

.event-card__poster {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.event-card__body em {
  display: -webkit-box;
  margin: -1px 0 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.schedule-manager {
  display: grid;
  gap: 14px;
}

.schedule-manager__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.schedule-training-card {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 20px;
}

.schedule-training-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.schedule-manager__list {
  display: grid;
  gap: 10px;
}

.schedule-admin-heading {
  margin-top: 2px;
}

.schedule-training-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.schedule-training-card > div:first-child {
  display: grid;
  gap: 5px;
}

.schedule-training-card b {
  color: #151915;
  font-size: 17px;
  font-weight: 950;
}

.schedule-training-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 20, 0.08);
  border-radius: 24px;
}

.schedule-training-form--quick .club-event-form-head {
  padding: 2px 2px 4px;
}

.schedule-form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8faf6;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 20px;
}

.schedule-form-section h3 {
  margin: 0;
  color: #151915;
  font-size: 16px;
  font-weight: 950;
}

.schedule-field-title {
  display: block;
  margin-bottom: 8px;
  color: #151915;
  font-size: 13px;
  font-weight: 950;
}

.schedule-chip-grid {
  display: grid;
  gap: 8px;
}

.schedule-chip-grid--types {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-chip-grid--days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.schedule-choice-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px;
  color: #151915;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
}

.schedule-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-choice-card span {
  font-size: 13px;
  font-weight: 900;
}

.schedule-choice-card:has(input:checked),
.weekday-chip:has(input:checked) {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.35);
  box-shadow: 0 10px 22px rgba(60, 143, 53, 0.1);
}

.schedule-time-input {
  min-height: 54px;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

/* — Полировка формы тренировки: сочные поля, фокус-кольцо, акцент у заголовков — */
.schedule-training-form label {
  display: grid;
  gap: 6px;
  color: #151915;
  font-size: 13px;
  font-weight: 800;
}
.schedule-training-form input:not([type="radio"]):not([type="checkbox"]):not(.schedule-time-input),
.schedule-training-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #151915;
  background: #ffffff;
  border: 1.5px solid #e6eae2;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.schedule-training-form textarea {
  min-height: 92px;
  line-height: 1.4;
  resize: vertical;
}
.schedule-training-form input:focus,
.schedule-training-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(60, 143, 53, 0.16));
}
.schedule-training-form input::placeholder,
.schedule-training-form textarea::placeholder {
  color: #9aa394;
  font-weight: 500;
}
.schedule-form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-form-section h3::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.schedule-training-form > .primary-action[type="submit"] {
  min-height: 56px;
  margin-top: 4px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}

.schedule-add-training-button {
  width: 100%;
  min-height: 54px;
}

.schedule-locations-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7faf4;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 18px;
}

.schedule-locations-block > b {
  color: #151915;
  font-size: 15px;
  font-weight: 950;
}

.schedule-location-fieldset {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.schedule-location-fieldset legend {
  padding: 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.schedule-location-remove {
  min-height: 40px;
}

.schedule-poster-upload {
  display: grid;
  gap: 10px;
}

.schedule-poster-picker {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 120px;
  padding: 14px;
  color: var(--accent);
  background: #ffffff;
  border: 1px dashed rgba(60, 143, 53, 0.36);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}

.schedule-poster-picker span {
  font-size: 17px;
  font-weight: 950;
}

.schedule-poster-picker small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.schedule-poster-preview {
  margin: 0;
  overflow: hidden;
  background: #f2f5ef;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.schedule-poster-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.schedule-poster-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.16);
  border-radius: 18px;
}

.schedule-poster-editor[hidden] {
  display: none;
}

.schedule-poster-editor__head {
  display: grid;
  gap: 4px;
}

.schedule-poster-editor__head b {
  color: #151915;
  font-size: 16px;
  font-weight: 950;
}

.schedule-poster-editor__head small {
  color: var(--muted);
  line-height: 1.35;
}

.schedule-poster-canvas {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  background: #f7f8f5;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(20, 30, 20, 0.08);
  cursor: grab;
  touch-action: none;
}

.schedule-poster-canvas:active {
  cursor: grabbing;
}

.schedule-poster-zoom {
  display: grid;
  gap: 8px;
  color: #151915;
  font-size: 13px;
  font-weight: 900;
}

.schedule-poster-zoom input {
  width: 100%;
  accent-color: var(--accent);
}

.schedule-poster-editor__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.schedule-created-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(60, 143, 53, 0.1);
}

.schedule-created-card > b {
  color: #151915;
  font-size: 24px;
  font-weight: 950;
}

.schedule-created-card > span {
  color: var(--muted);
  line-height: 1.35;
}

.schedule-created-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8faf6;
  border: 1px solid #edf0ea;
  border-radius: 16px;
}

.schedule-created-summary b {
  color: #151915;
  font-size: 17px;
  font-weight: 950;
}

.schedule-created-summary small {
  color: var(--muted);
  line-height: 1.35;
}

.schedule-created-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.schedule-created-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f8faf6;
  border: 1px solid #edf0ea;
  border-radius: 14px;
}

.schedule-created-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.schedule-created-stats b {
  color: #151915;
  font-size: 18px;
  font-weight: 950;
}

.schedule-created-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.club-admin-fast-training {
  border-radius: 24px;
}

.club-schedule-admin-card {
  gap: 10px;
}

.club-schedule-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.club-schedule-admin-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f7faf4;
  border: 1px solid rgba(20, 30, 20, 0.06);
  border-radius: 14px;
}

.club-schedule-admin-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.club-schedule-admin-stats b {
  color: #151915;
  font-size: 18px;
  font-weight: 950;
}

.club-admin-event-create-form {
  border-radius: 24px;
}

.club-event-admin-card {
  gap: 9px;
}

.club-event-admin-card .admin-row__top span {
  padding: 5px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

/* Live event RSVP */
.event-participants-count,
.event-rsvp-counts,
.event-participants-preview {
  appearance: none;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.event-participants-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 4px 0;
  padding: 5px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.event-rsvp-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.event-rsvp-counts span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  color: var(--muted) !important;
  background: #f7faf4;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 850;
}

.event-card__people {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.event-card__people > b {
  color: #151915;
  font-size: 13px;
  font-weight: 950;
}

.event-participants-preview {
  display: grid;
  gap: 5px;
}

.event-avatar-stack,
.calendar-avatar-stack {
  display: flex;
  align-items: center;
}

.event-avatar-stack .avatar,
.calendar-avatar-stack .avatar {
  flex: 0 0 auto;
  margin-left: -8px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.event-avatar-stack .avatar:first-child,
.calendar-avatar-stack .avatar:first-child {
  margin-left: 0;
}

.event-avatar-stack .avatar {
  width: 30px;
  height: 30px;
}

.calendar-avatar-stack .avatar {
  width: 14px;
  height: 14px;
}

.event-avatar-stack .avatar img,
.calendar-avatar-stack .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-avatar-stack > b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  color: var(--accent);
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.calendar-avatar-stack > b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: -6px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.event-participants-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-participants-empty {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
}

.event-participants-empty b {
  color: #151915;
  font-size: 13px;
}

.event-rsvp-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.event-rsvp-controls button {
  min-height: 46px;
  color: #151915;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 950;
}

.event-rsvp-controls button.is-active,
.event-card .primary-action.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(60, 143, 53, 0.18);
}

.participant-status-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.participant-status-group h4 {
  margin: 0;
  color: #151915;
  font-size: 14px;
  font-weight: 950;
}

.event-participants-sheet {
  display: grid;
  gap: 10px;
}

.event-participants-sheet h3 {
  margin: 0;
  color: #151915;
}

.calendar-avatar-stack {
  justify-content: center;
  max-width: 100%;
  margin-top: 1px;
  overflow: hidden;
  line-height: 1;
}

@media (max-width: 390px) {
  .calendar-admin-entry,
  .schedule-manager__top {
    grid-template-columns: 1fr;
  }

  .calendar-admin-entry {
    display: grid;
  }

  .club-admin-home-stats,
  .club-admin-section-grid,
  .club-member-admin-stats,
  .club-stats-grid,
  .club-stats-two-col {
    grid-template-columns: 1fr;
  }
}

/* Add run: one-tap screenshot flow */
#add-workout-sheet .add-workout-choice {
  gap: 16px;
}

.add-workout-intro {
  display: grid;
  gap: 8px;
}

.add-workout-intro h3 {
  margin: 0;
  color: #111111;
  font-size: 28px;
  line-height: 1.05;
}

.add-workout-intro p,
.add-workout-supported {
  margin: 0;
  color: #6f776f;
  font-size: 15px;
  line-height: 1.45;
}

.add-screenshot-main {
  width: 100%;
  min-height: 60px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(60, 143, 53, 0.22);
  font-size: 17px;
  font-weight: 950;
}

#add-workout-sheet .add-run-rules {
  padding: 0;
  color: #111111;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#add-workout-sheet .add-run-rules summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #151915;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
}

#add-workout-sheet .add-run-rules ul {
  display: grid;
  gap: 8px;
  padding: 12px 0 4px;
  margin: 0;
  list-style: none;
}

#add-workout-sheet .add-run-rules li {
  color: #151915;
  font-size: 14px;
  font-weight: 760;
}

#add-workout-sheet .add-run-rules li::before {
  display: none;
}

#add-workout-sheet .add-run-rules p {
  margin: 10px 0 0;
  color: #6f776f;
  font-size: 14px;
  line-height: 1.4;
}

.wizard-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  color: #151915;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-weight: 950;
}

.wizard-processing span {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(60, 143, 53, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rb-spin 0.9s linear infinite;
}

@keyframes rb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Global avatar hardening: every user picture stays a perfect circle. */
.avatar,
.topbar-avatar,
.ranking-row .avatar,
.club-member-row .avatar,
.profile-head .avatar,
.home-user-hero .avatar,
.participant-row .avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.avatar--mini {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.avatar--large,
.profile-head .avatar--large {
  width: 88px;
  min-width: 88px;
  height: 88px;
  min-height: 88px;
}

.home-user-hero .avatar {
  width: 68px;
  min-width: 68px;
  height: 68px;
  min-height: 68px;
}

.avatar img,
.topbar-avatar img,
.ranking-row .avatar img,
.club-member-row .avatar img,
.profile-head .avatar img,
.home-user-hero .avatar img,
.participant-row .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.avatar b,
.topbar-avatar b,
.ranking-row .avatar b,
.club-member-row .avatar b,
.profile-head .avatar b,
.home-user-hero .avatar b,
.participant-row .avatar b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.home-battle-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Final home polish */
.topbar__club-logo--brand {
  width: auto;
  min-width: 120px;
  height: 32px;
}

.topbar__club-logo--brand span {
  color: #151915;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

#feed-list {
  gap: 12px;
}

#feed-list .home-card,
.home-user-hero {
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(38, 63, 36, 0.055);
}

.home-user-hero {
  gap: 12px;
  margin: 8px 0 10px;
  padding: 14px;
}

.home-user-hero .avatar {
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
}

.home-user-hero__body {
  gap: 9px;
}

.home-user-hero h1 {
  font-size: 24px;
}

.home-user-hero__identity em {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 900;
}

.home-user-level {
  gap: 6px;
}

.home-user-level p {
  font-size: 12px;
}

.home-user-level .progress {
  height: 8px;
}

.home-daily-action-card {
  padding: 18px;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #eef7e9);
}

.home-daily-action-card h2 {
  max-width: 310px;
  font-size: 28px;
}

.home-daily-action-card p {
  max-width: 320px;
  font-size: 15px;
}

.home-daily-action-card .home-primary-run-cta {
  min-height: 58px;
  margin-top: 2px;
  border-radius: 20px;
  font-size: 17px;
}

.home-battle-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.home-battle-actions .outline-action {
  min-height: 58px;
  border-radius: 20px;
}

.home-club-manage-inline {
  width: fit-content;
  margin-top: 2px;
}

.home-club-position-card__main {
  align-items: start;
  gap: 13px;
}

.home-club-position-card__main .club-logo {
  width: 48px;
  height: 48px;
}

.home-club-position-card__main h2 {
  font-size: 22px;
}

.home-club-position-card__main small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.home-club-position-card__main em {
  color: var(--accent);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.05;
}

.home-contribution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-contribution-grid span {
  min-height: 66px;
  padding: 10px;
  border-radius: 18px;
}

.home-contribution-grid b {
  font-size: 18px;
  line-height: 1.05;
}

.home-main-mission {
  gap: 10px;
}

.home-main-mission .mission-list {
  gap: 8px;
}

.home-main-mission .mission-card {
  gap: 7px;
  padding: 10px 12px;
  border-radius: 18px;
}

.home-main-mission .mission-card h3 {
  font-size: 15px;
}

.home-main-mission .mission-card p {
  font-size: 12px;
  line-height: 1.25;
}

.home-main-mission .mission-card .progress {
  height: 7px;
}

.home-main-mission .mission-card__top b {
  color: var(--accent);
}

.home-club-week-goal-card {
  padding: 18px;
  gap: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(60, 143, 53, 0.18), transparent 34%),
    #ffffff;
  border-color: rgba(60, 143, 53, 0.18);
}

.home-club-week-goal-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.12;
}

.home-club-week-goal-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-club-week-goal-card__meta span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.home-club-week-goal-card__meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.home-club-week-goal-card__meta b {
  color: var(--text);
  font-size: 17px;
}

.home-event--empty {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 14px;
}

.home-event--empty small,
.home-event--empty b {
  grid-column: 1;
}

.home-event--empty .outline-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 42px;
  border-radius: 16px;
}

.home-battle-title img {
  width: 34px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
}

.home-club-switch,
.club-card,
.club-option,
.add-method-card,
.home-stats-grid span,
.club-about-grid span {
  background: var(--surface-2);
}

.home-greeting {
  margin-top: 18px;
}

.home-greeting h1 {
  font-size: 29px;
}

.home-add-btn {
  color: #ffffff;
  background: var(--accent);
}

.home-event {
  background:
    linear-gradient(135deg, #ffffff 0%, #ffffff 58%, var(--accent-soft) 100%);
}

.home-event__countdown {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 4px;
  padding: 6px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.home-event__status {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.home-event__status > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.home-event__status > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.home-event__status .event-rsvp-controls {
  grid-template-columns: 1fr;
  gap: 6px;
}

.home-event__status .event-rsvp-controls button {
  min-height: 38px;
  border-radius: 14px;
  font-size: 12px;
}

.home-club-activity-card {
  gap: 10px;
}

.mission-card {
  background: var(--surface-2);
  box-shadow: none;
}

.mission-card.is-completed {
  border-color: rgba(60, 143, 53, 0.28);
  background: var(--accent-soft);
}

.progress {
  background: #dfe8da;
}

.progress span {
  background: var(--accent);
}

.event-card--past {
  opacity: 0.72;
}

.calendar-day {
  color: var(--muted);
  background: var(--surface);
  border-color: transparent;
}

.calendar-day.is-today {
  color: var(--accent);
  border-color: rgba(60, 143, 53, 0.38);
}

.calendar-day.is-selected,
.calendar-day.has-event {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.22);
}

.calendar-day.is-attending {
  border-color: rgba(60, 143, 53, 0.58);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 53, 0.22);
}

.calendar-day .calendar-avatar-stack {
  display: none;
}

.calendar-day .calendar-rsvp-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  max-width: 28px;
  height: 16px;
  margin: 0 auto;
  padding: 0 4px;
  overflow: hidden;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.calendar-day .calendar-rsvp-count.is-mine {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.club-cover {
  background:
    linear-gradient(135deg, rgba(60, 143, 53, 0.16), rgba(228, 243, 223, 0.9)),
    var(--surface-2);
}

.club-logo {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(60, 143, 53, 0.16);
}

.club-tabs {
  padding-bottom: 2px;
}

.club-tabs button {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}

.ranking-row,
.club-member-row,
.club-event-card,
.participant-row {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(38, 63, 36, 0.06);
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.activity-summary article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(38, 63, 36, 0.08);
}

.activity-summary small,
.activity-summary span {
  color: var(--muted);
}

.activity-summary b {
  color: var(--text);
  font-size: 24px;
}

.activity-missions,
.activity-runs {
  margin-top: 14px;
}

.activity-switcher,
.period-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.activity-switcher button,
.period-switcher button {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border-radius: 14px;
  font-weight: 850;
}

.activity-switcher button.is-active,
.period-switcher button.is-active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(38, 63, 36, 0.08);
}

.club-prize-grid,
.club-leaderboard-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.club-prize-grid span,
.club-leaderboard-card__stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.club-prizes-card p,
.club-leaderboard-card p {
  margin: 0;
  color: var(--muted);
}

.club-leaderboard-list {
  display: grid;
  gap: 12px;
}

.club-leaderboard-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(38, 63, 36, 0.08);
}

.club-leaderboard-card.is-user-active-club {
  border-color: rgba(60, 143, 53, 0.42);
  box-shadow: 0 18px 34px rgba(60, 143, 53, 0.16);
}

.club-leaderboard-card__main {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.club-leaderboard-card__main > strong {
  color: var(--accent);
  font-size: 20px;
}

.club-leaderboard-card .club-logo {
  width: 48px;
  height: 48px;
}

.club-leaderboard-card h3 {
  margin: 0;
  color: var(--text);
}

.club-leaderboard-card h3 span {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
}

.club-leaderboard-card em {
  justify-self: start;
  padding: 6px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-style: normal;
  font-weight: 850;
}

/* Activity center v2 */
.activity-progress-card,
.activity-admin-card,
.activity-club-stats-card,
.activity-live-card {
  margin-top: 12px;
}

.activity-progress-card__main,
.activity-progress-card__gaps,
.activity-club-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.activity-progress-card__main span,
.activity-progress-card__gaps span,
.activity-club-stats-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.activity-progress-card__main small,
.activity-progress-card__gaps small,
.activity-club-stats-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-progress-card__main b,
.activity-progress-card__gaps b,
.activity-club-stats-grid b {
  color: var(--text);
  font-size: 18px;
}

.activity-admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.activity-admin-actions button {
  min-height: 42px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(60, 143, 53, 0.18);
  border-radius: 16px;
  font-weight: 850;
}

.activity-workout-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(38, 63, 36, 0.06);
}

.activity-workout-card__thumb {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
}

.activity-workout-card__thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 24px;
  font-weight: 900;
}

.activity-workout-card span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.activity-workout-card b,
.activity-workout-card small,
.activity-workout-card em,
.activity-workout-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-workout-card b {
  color: var(--text);
  font-size: 17px;
}

.activity-workout-card small,
.activity-workout-card strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.activity-workout-card em {
  color: var(--text);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.activity-member-ranking {
  display: grid;
  gap: 8px;
}

.activity-member-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.activity-member-row > strong {
  min-width: 28px;
  color: var(--accent);
  font-weight: 950;
}

.activity-member-row .avatar {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.activity-member-row span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.activity-member-row b,
.activity-member-row small,
.activity-member-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-member-row b {
  color: var(--text);
}

.activity-member-row small,
.activity-member-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.activity-live-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-live-card li {
  padding: 11px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 1.35;
}

.club-leaderboard-head--compact {
  gap: 6px;
}

.club-leaderboard-head--compact h2 {
  font-size: 22px;
}

.club-leaderboard-card--compact {
  gap: 10px;
  padding: 13px;
  border-radius: 20px;
}

.club-leaderboard-card--compact .club-logo {
  width: 42px;
  height: 42px;
}

.club-leaderboard-card__xp b {
  color: var(--accent);
  font-size: 24px;
}

.club-leaderboard-card--compact .club-leaderboard-card__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.club-leaderboard-card--compact .club-leaderboard-card__stats span {
  padding: 9px;
}

.club-leaderboard-card--compact .outline-action {
  min-height: 40px;
}

@media (max-width: 390px) {
  .schedule-chip-grid--types,
  .schedule-created-actions {
    grid-template-columns: 1fr;
  }

  .schedule-chip-grid--days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-created-stats {
    grid-template-columns: 1fr;
  }

  .run-wizard-progress--steps {
    gap: 6px;
  }

  .run-wizard-progress--steps span {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 58px;
    padding: 7px 5px;
    text-align: center;
  }

  .run-wizard-progress--steps small {
    font-size: 11px;
  }

  .wizard-review-top {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px;
  }

  .wizard-screenshot--small {
    width: 92px;
  }

  .wizard-screenshot--small img {
    max-height: 92px;
  }

  .wizard-review-facts {
    gap: 6px;
  }

  .wizard-review-facts span {
    min-height: 46px;
    padding: 8px;
  }

  .wizard-review-facts b {
    font-size: 13px;
  }

  .effort-rpe {
    padding: 12px;
  }

  .effort-scale {
    gap: 4px;
  }

  .effort-scale button {
    min-height: 36px;
    font-size: 14px;
  }

  .effort-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-progress-card__main,
  .activity-progress-card__gaps,
  .activity-club-stats-grid,
  .activity-admin-actions {
    grid-template-columns: 1fr;
  }

  .club-leaderboard-card--compact .club-leaderboard-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.battle-screen-title h1 {
  letter-spacing: 0;
}

.battle-leaderboard-card,
.battle-active-club-card,
.battle-changes-card,
.battle-top-members-card {
  display: grid;
  gap: 14px;
}

.battle-club-rank-list,
.battle-change-list {
  display: grid;
  gap: 10px;
}

.battle-club-rank-card {
  display: grid;
  grid-template-columns: 58px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.battle-club-rank-card.is-user-active-club {
  border-color: rgba(60, 143, 53, 0.36);
  background: linear-gradient(180deg, rgba(228, 243, 223, 0.86), rgba(255, 255, 255, 0.96));
}

.battle-club-rank-card__place {
  display: grid;
  gap: 2px;
  text-align: center;
}

.battle-club-rank-card__place b {
  color: var(--accent);
  font-size: 22px;
}

.battle-club-rank-card__place small,
.battle-club-rank-card span small {
  color: var(--muted);
  font-size: 12px;
}

.battle-club-rank-card .club-logo {
  width: 48px;
  height: 48px;
}

.battle-club-rank-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.battle-club-rank-card strong {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.battle-club-rank-card em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.battle-active-club-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.battle-active-club-card__top .club-logo {
  width: 54px;
  height: 54px;
}

.battle-active-club-card__top span {
  display: grid;
  flex: 1;
  gap: 2px;
}

.battle-active-club-card__top small,
.battle-progress-card small {
  color: var(--muted);
}

.battle-active-club-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battle-active-club-card__stats span,
.battle-progress-card {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.battle-active-club-card__stats b,
.battle-progress-card b {
  color: var(--text);
  font-size: 22px;
}

.battle-change-list span {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 750;
}

.battle-top-members-card .ranking-list {
  display: grid;
  gap: 10px;
}

.battle-hero-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(137, 220, 54, 0.42), transparent 34%),
    linear-gradient(135deg, #111711, #26381f 56%, #3c8f35);
  border: 0;
  border-radius: 30px;
  box-shadow: 0 22px 46px rgba(21, 25, 21, 0.16);
}

.battle-hero-card small,
.battle-hero-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.battle-hero-card__place {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.battle-hero-card__place b {
  color: #ffffff;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: 0;
}

.battle-hero-card__place em {
  color: #d9ffbf;
  font-size: 28px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.battle-hero-card h2 {
  max-width: 320px;
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.08;
}

.battle-hero-card__place b {
  font-size: clamp(38px, 11vw, 58px);
}

.battle-hero-progress {
  display: grid;
  gap: 8px;
}

.battle-hero-progress .progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.24);
}

.battle-hero-progress .progress span {
  background: #d9ffbf;
}

.battle-hero-progress strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.battle-impact-card,
.battle-race-card,
.battle-hunt-card,
.battle-your-position-card,
.battle-season-progress-card {
  display: grid;
  gap: 14px;
}

.battle-impact-card .section-heading h2,
.battle-race-card .section-heading h2,
.battle-hunt-card .section-heading h2,
.battle-your-position-card .section-heading h2,
.battle-season-progress-card .section-heading h2 {
  text-transform: uppercase;
}

.battle-impact-card__today,
.battle-impact-forecast,
.battle-your-position-card__main {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.battle-impact-card__today small,
.battle-impact-forecast span,
.battle-impact-forecast em,
.battle-your-position-card__main small,
.battle-season-progress-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.38;
}

.battle-impact-card__today b {
  color: var(--accent);
  font-size: 36px;
  line-height: 1;
}

.battle-impact-forecast {
  background: linear-gradient(180deg, #e4f3df, #ffffff);
  border-color: rgba(60, 143, 53, 0.22);
}

.battle-impact-forecast strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.08;
}

.battle-today-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #eef7e9);
}

.battle-today-card__main {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(60, 143, 53, 0.2);
  border-radius: 22px;
}

.battle-today-card__main small,
.battle-today-card p,
.battle-today-card li {
  color: var(--muted);
  font-weight: 850;
}

.battle-today-card__main b {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.battle-today-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.battle-race-list,
.battle-hunt-list {
  display: grid;
  gap: 10px;
}

.battle-race-list article {
  display: grid;
  grid-template-columns: 40px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.battle-race-list article.is-active {
  border-color: rgba(60, 143, 53, 0.34);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 53, 0.12);
}

.battle-race-list .club-logo {
  width: 46px;
  height: 46px;
}

.battle-race-list b,
.battle-race-list em,
.battle-your-position-card__main b {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.battle-race-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.battle-race-list strong {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.battle-race-list small {
  color: var(--muted);
}

.battle-race-list em {
  white-space: nowrap;
}

.battle-prize-card--compact {
  gap: 10px;
}

.battle-prize-card--compact .battle-prize-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.battle-prize-card--compact .battle-prize-grid span {
  min-height: 46px;
  padding: 10px 8px;
}

.battle-prize-card--compact .battle-prize-grid b {
  font-size: 16px;
  white-space: nowrap;
}

.battle-challenge-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.battle-hunt-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}

.battle-hunt-card p {
  margin: 0;
  color: var(--muted);
}

.battle-hunt-list span {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 850;
}

.battle-your-position-card__main b {
  font-size: 28px;
}

.battle-your-position-card__main span {
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.battle-season-progress-card .progress {
  height: 12px;
}

@media (max-width: 480px) {
  .battle-hero-card__place {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .battle-hero-card__place b {
    font-size: 64px;
  }

  .battle-hero-card__place em {
    white-space: normal;
  }

  .battle-race-list article {
    grid-template-columns: 34px 42px minmax(0, 1fr);
  }

  .battle-race-list em {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .battle-club-rank-card {
    grid-template-columns: 46px 42px minmax(0, 1fr);
  }

  .battle-club-rank-card em {
    grid-column: 3;
    justify-self: start;
  }
}

.tabbar {
  right: max(0px, calc((100vw - 480px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 480px) / 2));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-width: 480px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 30px rgba(38, 63, 36, 0.08);
}

.tabbar__item {
  min-height: 58px;
  color: #879087;
  border-radius: 18px;
  font-size: 10px;
}

.tabbar__item.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.tabbar__item--add {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 900;
}

.tabbar__item--add.is-active {
  background: transparent;
}

.tabbar__add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #72bd35);
  border: 4px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(60, 143, 53, 0.24);
  font-size: 30px;
  font-weight: 900;
  line-height: 0;
}

.tabbar__icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}

.sheet__backdrop {
  background: rgba(21, 25, 21, 0.22);
}

.sheet__panel,
.photo-editor-panel,
.time-picker-panel,
.share-card-panel {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.toast {
  color: #ffffff;
  background: rgba(21, 25, 21, 0.92);
}

.delete-button,
.delete-confirm-action {
  color: #ffffff;
  background: var(--danger) !important;
  border-color: rgba(229, 72, 77, 0.45) !important;
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 14px;
  }

  .club-event-quick-grid,
  .club-event-extra-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-grid,
  .admin-actions--wide {
    grid-template-columns: 1fr;
  }

  .weekday-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tabbar {
    left: 0;
    right: 0;
  }

  .tabbar__item {
    font-size: 9.5px;
  }
}

/* Final override: bottom navigation variant 3. */
.tabbar {
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(14px, calc((100vw - 480px) / 2 + 14px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  max-width: 452px;
  min-height: 74px;
  padding: 8px 10px 9px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 30, 20, 0.07);
  border-radius: 32px;
  box-shadow:
    0 18px 42px rgba(28, 42, 24, 0.14),
    0 2px 8px rgba(28, 42, 24, 0.05);
  backdrop-filter: blur(22px);
}

.tabbar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 54px;
  padding: 6px 2px 4px;
  color: #8b948b;
  background: transparent;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.tabbar__item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 3px;
  background: transparent;
  border-radius: 999px;
  transform: translateX(-50%);
}

.tabbar__item.is-active {
  color: var(--accent);
  background: transparent;
}

.tabbar__item.is-active::before {
  width: 22px;
  background: var(--accent);
}

.tabbar__icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.tabbar__item--add {
  transform: translateY(-11px);
  color: var(--accent);
  gap: 5px;
}

.tabbar__item--add::before,
.tabbar__item--add.is-active::before {
  display: none;
}

.tabbar__item--add:active {
  transform: translateY(-11px) scale(0.98);
}

.tabbar__add-icon {
  width: 54px;
  height: 54px;
  margin: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #67b631);
  border: 5px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 16px 28px rgba(60, 143, 53, 0.24),
    0 4px 10px rgba(60, 143, 53, 0.14);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 390px) {
  .tabbar {
    right: 10px;
    left: 10px;
    min-height: 72px;
    padding-inline: 8px;
    border-radius: 30px;
  }

  .tabbar__item {
    font-size: 9.5px;
  }

  .tabbar__add-icon {
    width: 52px;
    height: 52px;
  }
}

/* Final responsive overflow lock for the home training card and RSVP controls. */
html,
body,
.app-shell,
#feed-list {
  max-width: 100%;
  overflow-x: hidden;
}

.home-card,
.home-section,
.home-event,
.home-event > *,
.event-rsvp-controls,
.event-rsvp-counts,
.event-participants-count,
.event-participants-preview {
  min-width: 0;
  max-width: 100%;
}

.home-card,
.home-section,
.home-event {
  width: 100%;
  overflow-wrap: anywhere;
}

.home-event {
  overflow: hidden;
}

.home-event .event-rsvp-controls {
  grid-template-columns: 1fr;
}

.home-event__status,
.home-event .primary-action,
.home-event .outline-action {
  width: 100%;
}

.home-event .event-participants-count,
.event-rsvp-controls button {
  white-space: normal;
}

@media (max-width: 430px) {
  .home-event {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .event-rsvp-controls {
    grid-template-columns: 1fr;
  }
}
