:root {
  --wc-bg: #f4f7fb;
  --wc-ink: #142033;
  --wc-muted: #66758a;
  --wc-line: #d9e2ef;
  --wc-primary: #ff4b55;
  --wc-primary-soft: #eef4ff;
  --wc-card: #fff;
  --wc-logo-bg: #0b0f14;
  --wc-logo-accent: #ff4b55;
  --wc-logo-plate: #f6f7f9;
}

@media (max-width: 767.98px) {
  .athlete-profile-hero,
  .profile-showcase-grid {
    grid-template-columns: 1fr;
  }

  .athlete-profile-main {
    align-items: flex-start;
  }

  .athlete-profile-actions {
    justify-content: flex-start;
  }

  .athlete-profile-actions.has-menu {
    padding-right: 2.8rem;
  }

  .athlete-profile-actions .btn,
  .athlete-profile-actions > form {
    width: auto;
  }

  .athlete-profile-actions > form .btn {
    width: 100%;
  }

  .profile-action-menu {
    margin-left: 0;
  }

  .profile-highlight {
    grid-template-columns: 1fr;
  }

  .profile-highlight b {
    text-align: left;
    white-space: normal;
  }

  .notification-card {
    grid-template-columns: 1fr;
  }

  .account-security-card {
    grid-template-columns: 1fr;
  }

  .passkey-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .passkey-row .btn {
    width: 100%;
  }

  .passkey-add-row {
    grid-template-columns: 1fr;
  }

  .notification-controls {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .notification-status {
    grid-column: 1 / -1;
  }

  .notification-help {
    text-align: left;
  }
}

body {
  background: var(--wc-bg);
  color: var(--wc-ink);
  min-height: 100vh;
  padding-bottom: 5.5rem;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  margin-right: .35rem;
  flex: 0 0 auto;
}

.wod-logo {
  color: var(--wc-logo-accent);
  overflow: visible;
}

.wod-logo-bg {
  fill: var(--wc-logo-bg);
}

.wod-logo-bar,
.wod-logo-bar-front {
  stroke: var(--wc-logo-plate);
}

.wod-logo-plate {
  fill: var(--wc-logo-plate);
}

.wod-logo-w {
  fill: var(--wc-logo-accent);
}

.navbar-brand .wod-logo {
  transition: transform .16s ease, filter .16s ease;
}

.navbar-brand:hover .wod-logo {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 6px 10px rgba(255, 75, 85, .22));
}

.navbar .nav-link.active {
  color: var(--wc-primary);
  font-weight: 700;
}

.app-menu {
  position: relative;
}

.app-menu-mobile {
  display: none;
  margin-left: auto;
}

.app-menu summary {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-content: center;
  gap: .2rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.app-menu summary::-webkit-details-marker {
  display: none;
}

.app-menu summary span {
  width: 1rem;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--wc-ink);
}

.app-menu-panel {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  z-index: 20;
  min-width: 9rem;
  padding: .35rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 32, 51, .14);
}

.app-menu-panel a {
  display: block;
  padding: .55rem .65rem;
  border-radius: .4rem;
  color: var(--wc-ink);
  font-weight: 700;
  text-decoration: none;
}

.app-menu-panel a:hover {
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
}

@media (max-width: 991.98px) {
  .app-menu-mobile {
    display: block;
  }
}

.card {
  border-color: var(--wc-line);
  border-radius: .5rem;
}

.hero-panel,
.auth-card,
.feature-card {
  box-shadow: 0 18px 42px rgba(20, 32, 51, .08);
}

.auth-card {
  width: min(100%, 28rem);
  padding: 1.25rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.feature-card,
.empty-state {
  padding: 1.25rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.test-upload-list {
  display: grid;
  gap: .8rem;
}

.test-upload-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f8fbff;
}

.test-upload-item > div {
  min-width: 0;
}

.test-upload-item img {
  width: 7rem;
  height: 5rem;
  display: block;
  object-fit: cover;
  border: 1px solid var(--wc-line);
  border-radius: .4rem;
  background: #fff;
}

.test-upload-item code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--wc-muted);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-heading-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .55rem;
  min-width: 0;
  padding-right: 0;
}

.page-action-menu {
  position: relative;
  z-index: 35;
  flex: 0 0 auto;
}

.page-action-menu .app-menu-panel {
  z-index: 40;
}

.gym-action-panel {
  width: min(22rem, calc(100vw - 2rem));
}

.gym-action-panel .stack-form {
  gap: .65rem;
  padding: .35rem .35rem .65rem;
  border-bottom: 1px solid var(--wc-line);
  margin-bottom: .35rem;
}

.gym-action-panel .btn {
  width: 100%;
}

.gym-action-title {
  color: var(--wc-ink);
  font-size: .82rem;
  font-weight: 850;
}

.gym-action-pending {
  display: grid;
  gap: .25rem;
  padding: .45rem .65rem .65rem;
  border-bottom: 1px solid var(--wc-line);
  margin-bottom: .35rem;
}

.gym-action-pending strong {
  color: var(--wc-ink);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.gym-action-pending span {
  min-width: 0;
  color: var(--wc-muted);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.page-heading h1 {
  margin: 0;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 .25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wc-primary);
  font-size: .78rem;
  font-weight: 800;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.stack-form label {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.stack-form label span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 700;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.9rem;
  padding: .55rem .7rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
}

.errorlist {
  margin: .25rem 0 0;
  padding-left: 1rem;
  color: #b42318;
}

.notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.notification-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.account-security-card {
  display: grid;
  gap: 1rem;
}

.settings-section-header h2 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.passkey-manager {
  display: grid;
  gap: .85rem;
}

.passkey-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-soft, #f8fbff);
}

.passkey-name-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.passkey-name-field span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 700;
}

.passkey-name-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
  color: var(--wc-ink);
}

.passkey-add-row .btn {
  min-height: 2.75rem;
  white-space: nowrap;
}

.passkey-status {
  grid-column: 1 / -1;
  min-height: 1.15rem;
  margin: -.25rem 0 0;
  font-size: .88rem;
}

.passkey-list {
  display: grid;
  gap: .6rem;
}

.passkey-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.passkey-row strong,
.passkey-row small {
  overflow-wrap: anywhere;
}

.passkey-empty {
  display: grid;
  gap: .15rem;
  padding: .85rem;
  border: 1px dashed var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.notification-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: .5rem;
  align-items: center;
  justify-content: end;
}

.notification-status {
  min-width: 3rem;
  padding: .35rem .6rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: #f6f8fb;
  color: var(--wc-muted);
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
}

.notification-status.is-enabled {
  border-color: #9ed8b3;
  background: #eaf8ef;
  color: #166534;
}

.notification-help {
  grid-column: 1 / -1;
  margin: 0;
  text-align: right;
  font-size: .88rem;
}

.filter-panel {
  padding: 1rem;
  border-color: var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.library-filters {
  margin-bottom: 1rem;
}

.library-filters summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.library-filters summary::-webkit-details-marker {
  display: none;
}

.library-filters summary::after {
  content: "+";
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  font-weight: 900;
}

.library-filters[open] summary {
  border-bottom-right-radius: .25rem;
  border-bottom-left-radius: .25rem;
}

.library-filters[open] summary::after {
  content: "-";
}

.library-filters summary strong {
  margin-left: auto;
  color: var(--wc-primary);
  font-size: .78rem;
}

.library-search-panel {
  display: grid;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
  box-shadow: var(--wc-shadow-sm);
}

.library-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
}

.library-search-row .form-control {
  min-height: 3rem;
  font-size: 1.02rem;
}

[data-library-results] {
  transition: opacity .16s ease;
}

[data-library-results].is-loading {
  opacity: .58;
}

[hidden] {
  display: none !important;
}

.library-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin-bottom: 1rem;
  padding: .25rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f6f8fb;
}

.library-toggle-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: var(--wc-muted);
  font-weight: 800;
}

.library-toggle-button span {
  display: inline-flex;
  min-width: 1.6rem;
  min-height: 1.35rem;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #e9eef6;
  color: var(--wc-text);
  font-size: .78rem;
}

.library-toggle-button.active {
  background: var(--wc-card);
  color: var(--wc-primary);
  box-shadow: var(--wc-shadow-sm);
}

.library-toggle-button.active span {
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
}

.library-section {
  margin-bottom: 1.25rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 1.15rem;
}

.exercise-card {
  border-color: var(--wc-line);
  border-radius: .5rem;
}

.detail-heading {
  align-items: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .85fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.detail-section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.detail-section-heading span {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: right;
}

.detail-subtitle {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.movement-summary {
  display: flex;
  min-height: 10.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.pr-value {
  display: block;
  margin-bottom: .75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.pr-entry-collapse {
  margin-top: .85rem;
}

.pr-entry-collapse summary {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid rgba(15, 118, 110, .32);
  border-radius: .5rem;
  background: #fff;
  color: var(--wc-primary-strong);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  list-style: none;
}

.pr-entry-collapse summary::-webkit-details-marker {
  display: none;
}

.pr-entry-collapse summary::after {
  content: "+";
  margin-left: .5rem;
}

.pr-entry-collapse[open] summary::after {
  content: "-";
}

.pr-entry-form {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--wc-line);
}

.pr-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.pr-entry-grid label {
  display: grid;
  gap: .35rem;
}

.pr-entry-grid label:last-child {
  grid-column: 1 / -1;
}

.pr-entry-grid label > span {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 800;
}

.form-error {
  color: var(--wc-danger);
  font-size: .78rem;
  font-weight: 700;
}

.percent-card {
  min-height: 10.5rem;
}

.target-weight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: .8rem;
}

.target-weight span {
  color: var(--wc-primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.target-weight strong {
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem;
}

.preset-grid .btn {
  min-height: 2.25rem;
  font-weight: 800;
}

.muted-panel {
  background: #f8fafc;
}

.movement-flags {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
  color: var(--wc-muted);
  font-size: .9rem;
}

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
  color: var(--wc-muted);
  font-size: .9rem;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.chip-row span {
  display: inline-flex;
  padding: .25rem .55rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--wc-muted);
  font-size: .8rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.stats-grid > div {
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
}

.stats-grid strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 700;
}

.social-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.athlete-row,
.leader-row,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--wc-line);
}

.athlete-row:last-child,
.leader-row:last-child,
.mini-row:last-child {
  border-bottom: 0;
}

.avatar-circle {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--wc-primary);
  font-weight: 800;
}

.athlete-main {
  min-width: 0;
  flex: 1;
}

.athlete-main strong,
.athlete-main span {
  display: block;
}

.athlete-main span,
.athlete-main p,
.leader-row p,
.mini-row span {
  margin: 0;
  color: var(--wc-muted);
  font-size: .9rem;
}

.button-form {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.leader-row.current {
  margin-inline: -.5rem;
  padding-inline: .5rem;
  border-radius: .5rem;
  background: #f0f6ff;
}

.leader-row > span {
  width: 2.5rem;
  color: var(--wc-primary);
  font-weight: 800;
}

.social-feed {
  display: grid;
  gap: 0;
}

.activity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--wc-line);
}

.activity-card:first-of-type {
  border-top: 0;
  padding-top: .15rem;
}

.activity-card .avatar-circle {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: .1rem;
  font-size: .82rem;
}

.activity-main {
  min-width: 0;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: .18rem;
  color: var(--wc-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.activity-meta strong {
  color: var(--wc-ink);
  font-size: .9rem;
}

.activity-meta span::before {
  content: "·";
  margin-right: .35rem;
  color: var(--wc-line-strong);
}

.activity-main h3 {
  margin: .08rem 0 0;
  color: var(--wc-ink);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.48;
}

.activity-inline-note {
  color: var(--wc-muted);
  font-weight: 680;
}

.activity-type {
  padding: .2rem .5rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: var(--wc-soft);
  color: var(--wc-muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: .18rem;
  margin-top: .45rem;
}

.reaction-row form {
  margin: 0;
}

.reaction-button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 1.9rem;
  min-height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .12rem .34rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-color: transparent;
  color: var(--wc-muted);
  font-size: .9rem;
  font-weight: 760;
  line-height: 1;
  box-shadow: none;
}

.reaction-button:hover,
.reaction-button.active {
  border-color: rgba(25, 84, 168, .42);
  background: rgba(25, 84, 168, .12);
  background-color: rgba(25, 84, 168, .12);
  color: var(--wc-primary-strong);
}

.reaction-button b {
  font-size: .72rem;
}

.social-empty-state {
  padding: 1rem 0 .25rem;
}

.pr-detail-card {
  display: grid;
  gap: .85rem;
}

.pr-detail-card .activity-header {
  margin-bottom: 0;
}

.pr-detail-card h2 {
  margin: .45rem 0 0;
  font-size: 1.45rem;
  font-weight: 880;
}

.pr-detail-summary {
  margin: 0;
  color: var(--wc-ink);
  font-size: 1.05rem;
  font-weight: 760;
}

.comments-card {
  display: grid;
  gap: 1rem;
}

.comment-form {
  display: grid;
  gap: .75rem;
}

.comment-form .btn {
  justify-self: start;
}

.comment-list {
  display: grid;
  gap: .85rem;
}

.comment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px solid var(--wc-line);
}

.comment-row strong,
.comment-row span {
  display: block;
}

.comment-row span {
  color: var(--wc-muted);
  font-size: .85rem;
}

.comment-row p {
  margin: .35rem 0 0;
}

.athlete-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.athlete-profile-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.athlete-profile-avatar {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.35rem;
}

.athlete-profile-hero h1 {
  margin: 0;
  font-weight: 850;
}

.athlete-profile-goals {
  margin: .65rem 0 0;
  max-width: 46rem;
}

.athlete-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: flex-end;
}

.athlete-profile-actions.has-menu {
  padding-right: 3rem;
}

.athlete-profile-actions form {
  margin: 0;
}

.relationship-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  color: var(--wc-muted);
  font-weight: 800;
}

.profile-action-menu {
  position: absolute;
  top: .85rem;
  right: .85rem;
}

.profile-action-menu summary {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wc-muted);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  list-style: none;
}

.profile-action-menu summary:hover,
.profile-action-menu[open] summary {
  background: #f6f8fb;
  color: var(--wc-ink);
}

.profile-action-menu summary::-webkit-details-marker {
  display: none;
}

.profile-action-menu-panel {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  z-index: 20;
  min-width: 11rem;
  padding: .35rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 32, 51, .14);
}

.profile-action-menu-panel a,
.profile-action-menu-panel button {
  width: 100%;
  display: flex;
  align-items: center;
  padding: .6rem .7rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--wc-ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.profile-action-menu-panel a:hover,
.profile-action-menu-panel button:hover {
  background: #f6f8fb;
}

.profile-action-menu-panel .profile-action-warning {
  justify-content: center;
  border: 1px solid #f2b8a8;
  background: #fff7ed;
  color: #b42318;
}

.profile-action-menu-panel .profile-action-warning:hover {
  background: #ffedd5;
}

.profile-showcase-section {
  display: grid;
  gap: .85rem;
}

.profile-section-heading h2 {
  margin: 0;
}

.profile-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-showcase-grid h3 {
  margin: 0 0 .5rem;
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.profile-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--wc-line);
  color: inherit;
  text-decoration: none;
}

.profile-highlight + .profile-highlight {
  margin-top: 0;
}

.profile-highlight:last-child {
  border-bottom: 0;
}

.profile-highlight span,
.profile-highlight small,
.profile-highlight strong {
  display: block;
  min-width: 0;
}

.profile-highlight small {
  color: var(--wc-muted);
  font-size: .76rem;
  font-weight: 800;
}

.profile-highlight strong {
  overflow-wrap: anywhere;
  color: var(--wc-ink);
  font-size: 1rem;
  line-height: 1.2;
}

.profile-highlight b {
  max-width: 100%;
  color: var(--wc-muted);
  font-size: .9rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: nowrap;
}

.profile-activity-row {
  align-items: flex-start;
  flex-direction: column;
  gap: .15rem;
}

.gym-switcher {
  min-width: min(100%, 20rem);
}

.mygym-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.session-meta-grid {
  grid-template-columns: minmax(10.5rem, .75fr) minmax(0, 1.35fr) minmax(0, .9fr);
  align-items: end;
}

.session-meta-grid label,
.session-builder label {
  min-width: 0;
  max-width: 100%;
}

.session-meta-grid input,
.session-meta-grid select,
.session-meta-grid textarea {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.session-meta-grid input[type="date"] {
  display: block;
  box-sizing: border-box;
  inline-size: 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.checkbox-panel {
  display: grid;
  gap: .5rem;
}

.checkbox-panel > span,
.recipient-panel-heading span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 700;
}

.checkbox-panel ul,
.recipient-list {
  display: grid;
  gap: .35rem;
  max-height: 14rem;
  margin: 0;
  padding: .75rem;
  overflow: auto;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f8fafc;
  list-style: none;
}

.checkbox-panel label,
.recipient-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.recipient-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.recipient-panel-heading small {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 720;
}

.recipient-option {
  min-height: 2.6rem;
  padding: .55rem .65rem;
  border: 1px solid var(--wc-line);
  border-radius: .45rem;
  background: #fff;
  color: var(--wc-ink);
  font-weight: 720;
}

.recipient-option input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--wc-primary);
}

.recipient-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(16rem, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.coach-session-collapsible {
  overflow: hidden;
  border: 1px solid rgba(11, 15, 20, .16);
  border-radius: .65rem;
  background: #101012;
  box-shadow: 0 12px 30px rgba(11, 15, 20, .12);
}

.coach-session-collapsible summary {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.coach-session-collapsible summary::-webkit-details-marker {
  display: none;
}

.coach-session-collapsible summary span:nth-child(2) {
  min-width: 0;
}

.coach-session-collapsible-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .5rem;
  background: #ff4b55;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.coach-session-collapsible[open] .coach-session-collapsible-icon {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.coach-session-collapsible[open] .coach-session-collapsible-icon::before {
  content: "-";
}

.coach-session-collapsible[open] .coach-session-collapsible-icon {
  font-size: 0;
}

.coach-session-collapsible[open] .coach-session-collapsible-icon::before {
  font-size: 1.25rem;
}

.coach-session-collapsible summary strong,
.coach-session-collapsible summary small {
  display: block;
}

.coach-session-collapsible summary strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.coach-session-collapsible summary small {
  color: rgba(255, 255, 255, .68);
  font-size: .86rem;
  font-weight: 720;
}

.coach-session-collapsible-action {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .45rem;
  background: #1f1f22;
  color: #fff;
  font-size: .8rem;
  font-weight: 850;
}

.coach-session-collapsible[open] .coach-session-collapsible-action {
  color: rgba(255, 255, 255, .7);
}

.coach-session-collapsible[open] .coach-session-collapsible-action::before {
  content: "Close";
}

.coach-session-collapsible[open] .coach-session-collapsible-action {
  font-size: 0;
}

.coach-session-collapsible[open] .coach-session-collapsible-action::before {
  font-size: .8rem;
}

.coach-session-collapsible-body {
  padding: 0 1rem 1rem;
  min-width: 0;
}

.coach-session-collapsible-body .session-builder {
  margin-bottom: 0 !important;
  min-width: 0;
}

.coach-session-archive {
  display: grid;
  gap: .55rem;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .1);
  background: #101012 !important;
  box-shadow: 0 12px 30px rgba(11, 15, 20, .12);
}

.coach-session-archive .detail-section-heading {
  margin-bottom: .2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.coach-session-archive .detail-section-heading h2 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 930;
}

.coach-session-archive .detail-section-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .18rem .5rem;
  border: 1px solid rgba(255, 75, 85, .38);
  border-radius: .4rem;
  background: rgba(255, 75, 85, .12);
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
}

.coach-session-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .78rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .6rem;
  background: #171719;
  box-shadow: none;
}

.coach-session-row::before {
  content: "";
  position: absolute;
  top: .7rem;
  bottom: .7rem;
  left: 0;
  width: .2rem;
  border-radius: 0 .2rem .2rem 0;
  background: #ff4b55;
}

.coach-session-date {
  display: grid;
  place-items: center;
  width: 3.25rem;
  min-height: 3.25rem;
  border: 1px solid rgba(255, 75, 85, .38);
  border-radius: .5rem;
  background: #0b0f14;
  color: #fff;
  text-decoration: none;
}

.coach-session-date span {
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.coach-session-date strong {
  font-size: 1.25rem;
  line-height: 1;
}

.coach-session-row-main {
  min-width: 0;
}

.coach-session-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.coach-session-row-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.coach-session-row-title span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: .15rem .45rem;
  border: 1px solid rgba(255, 75, 85, .26);
  border-radius: .4rem;
  background: rgba(255, 75, 85, .12);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
}

.coach-session-row-main p {
  margin: .18rem 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: .88rem;
}

.coach-session-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .36rem .72rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .45rem;
  background: #ff4b55;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}

.coach-session-open:hover {
  border-color: #ff4b55;
  background: #ff4b55;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .coach-session-collapsible summary,
  .coach-session-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .coach-session-collapsible summary {
    gap: .65rem;
  }

  .coach-session-collapsible-body {
    padding: 0 .65rem .75rem;
  }

  .coach-session-collapsible-body .session-builder {
    padding: .85rem;
  }

  .coach-session-collapsible-action {
    justify-self: start;
  }

  .coach-session-row {
    align-items: start;
  }

  .coach-session-open {
    justify-self: start;
  }

  .session-detail-actions {
    justify-content: flex-start;
  }

  .session-manage-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .session-manage-actions .btn,
  .session-manage-actions .delete-session-form {
    width: 100%;
  }

  .session-detail-actions > .btn {
    width: 100%;
  }
}

.builder-part-card {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f8fafc;
}

.builder-part-card .form-grid.compact {
  grid-template-columns: minmax(12rem, 1.4fr) minmax(8rem, 1fr) minmax(7rem, .7fr) minmax(6rem, .6fr);
}

.builder-panel {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f8fafc;
}

.builder-panel .detail-section-heading {
  margin-bottom: 0;
}

.builder-prescription-hint {
  display: grid;
  gap: .2rem;
  padding: .65rem .75rem;
  border-left: 3px solid var(--wc-primary);
  border-radius: .45rem;
  background: rgba(255, 59, 63, .07);
}

.builder-prescription-hint[hidden] {
  display: none;
}

.builder-prescription-hint strong {
  color: var(--wc-primary-strong);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-prescription-hint p {
  margin: 0;
  color: var(--wc-ink);
  font-weight: 750;
  line-height: 1.45;
  white-space: pre-line;
}

.builder-library-panel {
  align-content: start;
}

.builder-library-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.builder-library-panel summary::-webkit-details-marker {
  display: none;
}

.builder-library-panel summary::after {
  content: "+";
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--wc-line);
  border-radius: .45rem;
  background: var(--wc-card);
  color: var(--wc-primary-strong);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.builder-library-panel[open] summary::after {
  content: "-";
}

.builder-library-panel summary strong,
.builder-library-panel summary small {
  display: block;
}

.builder-library-panel summary strong {
  color: var(--wc-ink);
  font-size: .98rem;
  font-weight: 900;
}

.builder-library-panel summary small {
  margin-top: .1rem;
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 650;
}

.builder-library-body {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
}

.form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.gym-invite-form .form-grid.compact {
  align-items: end;
}

.movement-picker {
  display: grid;
  gap: .45rem;
  max-height: 24rem;
  overflow: auto;
}

.movement-option {
  display: grid;
  gap: .1rem;
  padding: .65rem .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
  color: var(--wc-ink);
  text-align: left;
  cursor: pointer;
}

.movement-option span,
.builder-piece-row span {
  color: var(--wc-muted);
  font-size: .82rem;
}

.session-pieces-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.selected-movements {
  display: grid;
  gap: .65rem;
}

.benchmark-prefill-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: end;
}

.builder-level-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
}

.builder-level-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.builder-level-actions .btn:disabled {
  opacity: .52;
  pointer-events: none;
}

.movement-build-card {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
}

.movement-build-card[draggable="true"] {
  cursor: grab;
}

.movement-build-card.is-dragging {
  opacity: .62;
}

.movement-build-card.is-drag-over {
  border-color: var(--wc-primary);
  box-shadow: 0 0 0 2px var(--wc-primary-soft);
}

.text-build-card {
  background: #f8fbff;
}

.text-build-card textarea {
  min-height: 7rem;
}

.movement-build-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  min-width: 0;
  flex-wrap: wrap;
}

.movement-build-heading > div {
  min-width: 0;
  flex: 1;
}

.movement-drag-handle {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--wc-line);
  border-radius: .45rem;
  background: var(--wc-card);
  color: var(--wc-muted);
  cursor: grab;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.movement-drag-handle:active {
  cursor: grabbing;
}

.movement-build-heading span {
  display: block;
  color: var(--wc-muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.movement-attribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: .65rem;
}

.builder-piece-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
}

.programmed-movements {
  display: grid;
  gap: .45rem;
  margin-top: .65rem;
}

.programmed-movements > div {
  padding: .55rem .65rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #fff;
}

.programmed-movements strong,
.programmed-movements span,
.programmed-movements p {
  display: block;
}

.programmed-movements span,
.programmed-movements p {
  margin: 0;
  color: var(--wc-muted);
  font-size: .86rem;
}

.programmed-text-block {
  white-space: normal;
}

.pr-board,
.compact-list {
  display: grid;
}

.pr-board-form .preset-grid {
  margin-top: -.35rem;
}

.pr-board-form label span strong {
  color: var(--wc-primary);
  font-size: 1rem;
}

.pr-board-row {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) minmax(7rem, auto);
  align-items: center;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--wc-line);
}

.pr-board-row:last-child {
  border-bottom: 0;
}

.pr-board-row span,
.session-card span,
.session-piece p,
.strategy-note {
  margin: 0;
  color: var(--wc-muted);
  font-size: .9rem;
}

.pr-board-row > div:last-child {
  text-align: right;
}

.prep-board-row {
  grid-template-columns: 2.8rem minmax(9rem, 1fr) minmax(12rem, auto);
  align-items: start;
}

.prep-board-athlete span {
  display: block;
  margin-top: .18rem;
}

.prep-board-targets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.prep-target {
  display: grid;
  min-width: 7.6rem;
  padding: .42rem .58rem;
  border: 1px solid rgba(255, 75, 85, .22);
  border-radius: .48rem;
  background: rgba(255, 75, 85, .07);
  text-align: left;
}

.prep-board-row .prep-target small {
  color: var(--wc-muted);
  font-size: .71rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.prep-board-row .prep-target strong {
  color: var(--wc-ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.3;
}

.session-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--wc-line);
}

.session-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.session-card-heading {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.session-card-heading strong,
.session-card-heading span {
  display: block;
}

.session-piece {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: .85rem;
  padding: .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: #f8fafc;
}

.session-piece-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.session-piece + .session-piece {
  margin-top: .65rem;
}

.session-piece .chip-row {
  margin-top: .65rem;
}

.strategy-note {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--wc-line);
  color: var(--wc-ink);
}

.mobile-tabbar {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  padding: .4rem;
  border: 1px solid var(--wc-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(20, 32, 51, .14);
}

.mobile-tabbar a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.6rem;
  border-radius: .75rem;
  color: var(--wc-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
}

.mobile-tabbar a.active {
  background: var(--wc-primary);
  color: #fff;
}

.mobile-tabbar span {
  position: absolute;
  top: -.25rem;
  right: .25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
}

@media (max-width: 767.98px) {
  :root {
    --wc-bg: #f8fafc;
    --wc-line: #e4eaf3;
  }

  html {
    scroll-padding-top: 3.35rem;
  }

  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
  }

  main.container {
    padding-top: .75rem !important;
    padding-bottom: 1rem !important;
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .navbar {
    min-height: 3.25rem;
    background: rgba(255, 255, 255, .94) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(20, 32, 51, .05);
  }

  .navbar .container {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .auth-shell .navbar-toggler,
  .auth-shell .navbar-collapse {
    display: none !important;
  }

  .navbar-brand {
    font-size: .95rem;
    min-width: 0;
    max-width: calc(100vw - 5.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: .45rem;
    font-size: .86rem;
  }

  .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    margin-bottom: .85rem;
  }

  .page-heading-actions {
    width: 100%;
    justify-content: stretch;
    padding-right: 0;
  }

  .page-heading-actions .gym-switcher {
    flex: 1;
  }

  .page-heading h1 {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .page-heading .text-secondary {
    margin-bottom: 0;
    font-size: .92rem;
    line-height: 1.35;
  }

  .page-heading > .btn,
  .page-heading > .badge,
  .page-heading > .d-flex,
  .page-heading-actions > .badge {
    width: 100%;
  }

  .page-heading > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-heading > .btn,
  .page-heading > .d-flex .btn {
    min-height: 2.85rem;
  }

  .page-heading > .badge {
    justify-self: stretch;
    min-height: 2.35rem;
  }

  .eyebrow {
    font-size: .68rem;
  }

  .hero-panel {
    margin-right: -.75rem;
    margin-left: -.75rem;
    padding: 1rem .75rem 1.1rem !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
  }

  .hero-panel .display-5 {
    font-size: 2rem;
  }

  .hero-panel .lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-panel .btn {
    flex: 1 1 9rem;
  }

  .feature-card,
  .empty-state,
  .auth-card {
    padding: .95rem;
    border-radius: .5rem;
    box-shadow: none;
  }

  .card {
    border-radius: .5rem;
    box-shadow: none !important;
  }

  .card-body,
  .card-footer {
    padding: .95rem;
  }

  .auth-card {
    margin-top: .75rem;
  }

  .stats-grid {
    gap: .5rem;
  }

  .stats-grid > div {
    padding: .8rem;
    border-radius: .5rem;
  }

  .stats-grid strong {
    font-size: 1.35rem;
  }

  .stack-form {
    gap: .85rem;
  }

  .stack-form input,
  .stack-form select,
  .stack-form textarea,
  .form-control,
  .form-select {
    min-height: 2.75rem;
    border-radius: .5rem;
    font-size: 1rem;
  }

  .library-filters {
    margin-bottom: .75rem;
  }

  .library-filters summary {
    min-height: 2.75rem;
    padding: .6rem .75rem;
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(20, 32, 51, .04);
  }

  .library-filters[open] summary {
    border-radius: .5rem .5rem .2rem .2rem;
  }

  .filter-panel {
    padding: .8rem;
    border-top: 0;
    border-radius: 0 0 .5rem .5rem;
  }

  .filter-panel .form-label {
    margin-bottom: .25rem;
    font-size: .78rem;
    font-weight: 800;
  }

  .library-list {
    gap: .5rem 0;
  }

  .library-list > [class*="col-"] {
    padding-top: 0;
    padding-bottom: 0;
  }

  .exercise-card {
    border-radius: .5rem;
    box-shadow: none;
  }

  .exercise-card .card-body {
    padding: .75rem 2.35rem .75rem .8rem;
  }

  .exercise-card .card-body > .d-flex {
    margin-bottom: .1rem !important;
  }

  .exercise-card h2 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .exercise-card .badge {
    font-size: .66rem;
  }

  .exercise-card .small {
    margin-bottom: 0 !important;
    font-size: .78rem;
  }

  .exercise-card .exercise-description,
  .exercise-card .chip-row,
  .exercise-card .card-footer {
    display: none;
  }

  .exercise-card .card-body {
    position: relative;
  }

  .mobile-card-link {
    color: transparent;
  }

  .exercise-card::after {
    content: ">";
    position: absolute;
    right: .82rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wc-primary);
    font-size: 1.1rem;
    font-weight: 800;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .detail-section-heading {
    align-items: flex-start;
    margin-bottom: .65rem;
  }

  .movement-summary,
  .percent-card {
    min-height: auto;
  }

  .pr-value {
    font-size: 2rem;
  }

  .pr-entry-grid {
    grid-template-columns: 1fr;
  }

  .target-weight strong {
    font-size: 1.65rem;
  }

  .athlete-row {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem .8rem;
    padding: .85rem 0;
  }

  .athlete-row .avatar-circle {
    width: 2.6rem;
    height: 2.6rem;
  }

  .athlete-main strong,
  .leader-row strong,
  .mini-row strong {
    overflow-wrap: anywhere;
  }

  .button-form,
  .athlete-row form {
    grid-column: 1 / -1;
    width: 100%;
  }

  .button-form .btn,
  .athlete-row form .btn {
    flex: 1;
    min-height: 2.6rem;
  }

  .leader-row {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
  }

  .leader-row.current {
    margin-inline: -.45rem;
    padding-inline: .45rem;
  }

  .leader-row > span {
    width: auto;
  }

  .mini-row {
    align-items: flex-start;
    gap: .35rem;
    padding: .8rem 0;
  }

  .input-group {
    gap: .5rem;
  }

  .input-group > .form-control,
  .input-group > .btn {
    border-radius: .5rem;
  }

  .input-group > .btn {
    min-width: 5.75rem;
  }

  .mygym-grid,
  .form-grid,
  .session-piece,
  .tool-link-grid,
  .builder-layout,
  .form-grid.compact,
  .movement-attribute-grid {
    grid-template-columns: 1fr;
  }

  .session-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gym-switcher {
    min-width: 0;
    width: 100%;
  }

  .builder-wod-panel {
    order: 1;
  }

  .builder-library-panel {
    order: 2;
  }

  .pr-board-row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: .65rem .75rem;
  }

  .pr-board-row > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding-left: 3.35rem;
    text-align: left;
  }

  .prep-board-row .prep-board-targets {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .session-card {
    padding: .85rem 0;
  }

  .session-piece {
    padding: .8rem;
  }

  .session-piece-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding: .25rem .45rem calc(.25rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -1px 0 rgba(20, 32, 51, .08);
  }

  .mobile-tabbar a {
    min-height: 3rem;
    border-radius: .5rem;
    font-size: .73rem;
  }

  .mobile-tabbar a.active {
    background: var(--wc-primary-soft);
    color: var(--wc-primary);
  }

  .library-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-top: .75rem;
    padding-bottom: .25rem;
  }

  .library-pagination .btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .navbar-brand {
    max-width: calc(100vw - 4.7rem);
    font-size: .88rem;
  }

  .page-heading h1 {
    font-size: 1.4rem;
  }

  .stats-grid strong {
    font-size: 1.2rem;
  }

  .mobile-tabbar a {
    font-size: .68rem;
  }
}

/* Modern application layer */
:root {
  --wc-bg: #f5f7f9;
  --wc-bg-2: #edf7f4;
  --wc-ink: #17211f;
  --wc-muted: #66736f;
  --wc-soft: #f8faf9;
  --wc-line: #dbe5e1;
  --wc-line-strong: #c3d2cc;
  --wc-primary: #0f766e;
  --wc-primary-strong: #0a5d57;
  --wc-primary-soft: #e2f4f1;
  --wc-accent: #f97316;
  --wc-accent-soft: #fff1e7;
  --wc-danger: #c2410c;
  --wc-card: #ffffff;
  --wc-shadow: 0 16px 42px rgba(23, 33, 31, .08);
  --wc-shadow-sm: 0 8px 24px rgba(23, 33, 31, .06);
}

html {
  background: var(--wc-bg);
}

body {
  background:
    linear-gradient(180deg, rgba(237, 247, 244, .72) 0, rgba(245, 247, 249, 0) 18rem),
    var(--wc-bg);
  color: var(--wc-ink);
  font-feature-settings: "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wc-primary);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--wc-primary-strong);
}

main.container {
  max-width: 1180px;
  padding-top: 1.35rem !important;
  padding-bottom: 2rem !important;
}

.navbar {
  min-height: 4.1rem;
  border-bottom: 1px solid rgba(195, 210, 204, .72) !important;
  background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(23, 33, 31, .03);
}

.navbar .container {
  max-width: 1180px;
}

.app-nav-shell {
  gap: .8rem;
}

.app-header .navbar-collapse {
  align-items: center;
}

.nav-actions {
  margin-left: auto;
}

.navbar-brand {
  font-weight: 850;
  color: var(--wc-ink);
}

.brand-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .5rem;
  background: var(--wc-primary);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
  font-weight: 900;
}

.navbar-nav {
  gap: .25rem;
}

.nav-link {
  border-radius: .5rem;
  color: var(--wc-muted);
  font-weight: 760;
}

.navbar .nav-link {
  padding: .5rem .72rem;
}

.navbar .nav-link:hover {
  background: var(--wc-soft);
  color: var(--wc-ink);
}

.navbar .nav-link.active {
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong);
}

.navbar .d-flex .btn {
  min-height: 2.35rem;
}

.navbar-toggler {
  border-color: var(--wc-line);
  background: var(--wc-card);
  box-shadow: var(--wc-shadow-sm);
}

.page-heading {
  align-items: center;
  margin-bottom: 1.4rem;
}

.page-heading h1 {
  font-size: 2.15rem;
  line-height: 1.08;
  font-weight: 880;
}

.page-heading p.text-secondary {
  max-width: 44rem;
  margin-top: .35rem;
}

.eyebrow,
.text-uppercase {
  letter-spacing: 0;
}

.eyebrow {
  color: var(--wc-accent);
  font-size: .82rem;
  text-transform: none;
}

.card,
.feature-card,
.empty-state,
.auth-card,
.filter-panel,
.library-filters summary,
.stats-grid > div,
.builder-panel,
.movement-build-card,
.programmed-movements > div,
.session-piece {
  border-color: rgba(195, 210, 204, .82);
  border-radius: .5rem;
}

.card,
.feature-card,
.auth-card,
.filter-panel,
.stats-grid > div {
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--wc-shadow-sm);
}

.feature-card,
.auth-card {
  padding: 1.35rem;
}

.empty-state {
  background: rgba(255, 255, 255, .78);
  color: var(--wc-muted);
  box-shadow: none;
}

.card {
  overflow: hidden;
}

.card-body,
.card-footer {
  padding: 1.15rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(195, 210, 204, .82) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(237, 247, 244, .88)) !important;
  box-shadow: var(--wc-shadow);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: 2rem;
  align-items: center;
}

.home-hero h1 {
  max-width: 44rem;
  margin-bottom: 1rem;
  color: var(--wc-ink);
  font-size: 3rem;
  line-height: 1.02;
  font-weight: 900;
}

.hero-panel .lead {
  max-width: 40rem;
  color: var(--wc-muted) !important;
}

.home-preview {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid rgba(195, 210, 204, .82);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.home-preview-head,
.home-preview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid rgba(195, 210, 204, .72);
  border-radius: .5rem;
  background: #fff;
}

.home-preview-head {
  border-color: rgba(15, 118, 110, .25);
  background: var(--wc-primary-soft);
}

.home-preview-line.accent {
  border-color: rgba(249, 115, 22, .28);
  background: var(--wc-accent-soft);
}

.home-preview strong {
  color: var(--wc-ink);
  font-weight: 850;
}

.home-preview span {
  color: var(--wc-muted);
  font-size: .9rem;
  font-weight: 760;
  text-align: right;
}

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

.home-feature-grid h2 {
  margin-bottom: .45rem;
  font-size: 1.1rem;
  font-weight: 860;
}

.auth-card {
  margin-top: 2rem;
}

.auth-card h1 {
  font-weight: 860;
}

.access-screen {
  min-height: calc(100vh - 11rem);
  display: grid;
  align-items: center;
  padding: 2rem 0;
}

.access-card {
  width: min(100%, 28rem);
  margin-top: 0;
}

.access-heading {
  margin-bottom: 1.35rem;
}

.access-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .95rem;
}

.btn {
  border-radius: .5rem;
  font-weight: 820;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border-color: var(--wc-primary);
  background: var(--wc-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .2);
}

.btn-primary:hover {
  border-color: var(--wc-primary-strong);
  background: var(--wc-primary-strong);
  color: #fff;
}

.btn-dark {
  border-color: var(--wc-ink);
  background: var(--wc-ink);
}

.btn-outline-primary {
  border-color: rgba(15, 118, 110, .32);
  background: #fff;
  color: var(--wc-primary-strong);
}

.btn-outline-primary:hover {
  border-color: var(--wc-primary);
  background: var(--wc-primary-soft);
}

.btn-outline-secondary {
  border-color: var(--wc-line);
  background: #fff;
  color: var(--wc-muted);
}

.btn-outline-secondary:hover {
  border-color: var(--wc-line-strong);
  background: var(--wc-soft);
  color: var(--wc-ink);
}

.btn-outline-danger {
  border-color: rgba(194, 65, 12, .34);
  color: var(--wc-danger);
}

.badge {
  min-height: 1.7rem;
  border-radius: .5rem;
  font-weight: 820;
}

.text-bg-primary {
  background: var(--wc-primary);
}

.text-bg-success {
  background: var(--wc-primary);
}

.text-bg-light {
  background: var(--wc-soft);
  color: var(--wc-muted);
}

.text-primary {
  color: var(--wc-primary) !important;
}

.text-secondary {
  color: var(--wc-muted) !important;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.form-control,
.form-select {
  border-color: var(--wc-line);
  border-radius: .5rem;
  background-color: #fff;
  color: var(--wc-ink);
  box-shadow: inset 0 1px 0 rgba(23, 33, 31, .03);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 118, 110, .72);
  outline: 0;
  box-shadow: 0 0 0 .22rem rgba(15, 118, 110, .12);
}

.stack-form label span,
.form-label,
.checkbox-panel > span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 820;
}

.errorlist {
  color: var(--wc-danger);
  font-weight: 720;
}

.library-filters summary {
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--wc-shadow-sm);
}

.library-filters summary::after {
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong);
}

.filter-panel {
  margin-top: .55rem;
}

.exercise-card {
  min-height: 100%;
  border-color: rgba(195, 210, 204, .82);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--wc-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.exercise-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .34);
  box-shadow: var(--wc-shadow);
}

.exercise-card h2 {
  font-weight: 840;
}

.exercise-description {
  color: var(--wc-muted);
}

.chip-row span {
  border-color: rgba(195, 210, 204, .88);
  background: var(--wc-soft);
  color: var(--wc-muted);
}

.stats-grid {
  gap: .9rem;
}

.stats-grid > div {
  position: relative;
  overflow: hidden;
}

.stats-grid > div::before {
  content: "";
  display: block;
  width: 2rem;
  height: .22rem;
  margin-bottom: .8rem;
  border-radius: 999px;
  background: var(--wc-accent);
}

.stats-grid strong {
  color: var(--wc-ink);
  font-size: 1.85rem;
  font-weight: 880;
}

.stats-grid span {
  color: var(--wc-muted);
  font-weight: 780;
}

.athlete-row,
.leader-row,
.mini-row {
  border-bottom-color: rgba(195, 210, 204, .7);
}

.athlete-row:hover,
.leader-row:hover,
.mini-row:hover {
  background: rgba(248, 250, 249, .8);
}

.avatar-circle {
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .12);
}

.leader-row.current {
  background: var(--wc-primary-soft);
}

.leader-row > span {
  color: var(--wc-primary-strong);
}

.detail-section-heading h2,
.detail-subtitle {
  font-weight: 860;
}

.movement-summary,
.percent-card {
  background: linear-gradient(180deg, #fff, var(--wc-soft));
}

.pr-value,
.target-weight strong {
  color: var(--wc-primary-strong);
  font-size: 2.4rem;
}

.target-weight span {
  color: var(--wc-accent);
}

.movement-summary,
.percent-card {
  justify-content: flex-start;
}

.movement-summary .text-secondary,
.percent-card .text-secondary {
  line-height: 1.45;
}

.pr-value {
  margin: .35rem 0 .85rem;
  color: var(--wc-primary-strong);
  font-size: 2.75rem;
  line-height: .98;
  font-weight: 900;
}

.target-weight {
  align-items: center;
  margin: .25rem 0 1rem;
}

.target-weight > span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .25rem .55rem;
  border-radius: .5rem;
  background: var(--wc-accent-soft);
  color: var(--wc-accent);
  font-size: 1rem;
  line-height: 1;
  font-weight: 860;
}

.target-weight strong {
  display: inline-flex;
  align-items: baseline;
  gap: .28rem;
  color: var(--wc-primary-strong);
  font-size: 3rem;
  line-height: .95;
  font-weight: 920;
  white-space: nowrap;
}

.target-weight strong span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.target-weight strong .metric-unit {
  color: var(--wc-muted);
  font-size: 1rem;
  line-height: 1;
  font-weight: 820;
}

.percent-card .form-range {
  margin-bottom: .9rem;
  accent-color: var(--wc-primary);
}

.muted-panel,
.builder-panel,
.session-piece,
.checkbox-panel ul {
  background: var(--wc-soft);
}

.movement-option {
  border-color: rgba(195, 210, 204, .82);
  background: #fff;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.movement-option:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, .34);
  background: var(--wc-primary-soft);
}

.movement-build-card,
.programmed-movements > div {
  background: #fff;
}

.session-card {
  border-bottom-color: rgba(195, 210, 204, .7);
}

.session-card-heading strong,
.session-piece-heading strong,
.programmed-movements strong,
.mini-row strong,
.leader-row strong,
.athlete-main strong {
  color: var(--wc-ink);
  font-weight: 820;
}

.session-piece .badge {
  align-self: start;
}

.strategy-note {
  border-top-color: var(--wc-line);
  color: var(--wc-ink);
}

.mobile-tabbar {
  border-color: rgba(195, 210, 204, .82);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.mobile-tabbar a {
  color: var(--wc-muted);
}

.mobile-tabbar a.active {
  background: var(--wc-primary);
  color: #fff;
}

.message-stack .alert,
.alert {
  border-color: rgba(195, 210, 204, .82);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--wc-shadow-sm);
}

@media (min-width: 992px) {
  .navbar-collapse {
    gap: 1rem;
  }

  .navbar-nav {
    align-items: center;
    padding: .18rem;
    border: 1px solid rgba(195, 210, 204, .72);
    border-radius: .5rem;
    background: rgba(248, 250, 249, .7);
  }
}

@media (max-width: 767.98px) {
  body {
    background: var(--wc-bg);
  }

  main.container {
    padding-top: .85rem !important;
    padding-right: .85rem;
    padding-left: .85rem;
  }

  .navbar {
    min-height: 3.65rem;
  }

  .page-heading {
    margin-bottom: 1rem;
  }

  .page-heading h1 {
    font-size: 1.7rem;
  }

  .feature-card,
  .empty-state,
  .auth-card,
  .card-body,
  .card-footer {
    padding: 1rem;
  }

  .hero-panel {
    margin-right: -.85rem;
    margin-left: -.85rem;
    padding: 1.15rem .85rem 1.25rem !important;
  }

  .home-hero-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .home-preview {
    padding: .75rem;
  }

  .home-preview-head,
  .home-preview-line {
    padding: .75rem;
  }

  .library-search-row {
    grid-template-columns: 1fr;
  }

  .pr-value {
    font-size: 2.25rem;
  }

  .target-weight {
    align-items: flex-start;
  }

  .target-weight strong {
    font-size: 2.45rem;
  }

  .stats-grid {
    gap: .65rem;
  }

  .stats-grid > div::before {
    margin-bottom: .65rem;
  }

  .stats-grid strong {
    font-size: 1.45rem;
  }

  .exercise-card:hover,
  .movement-option:hover,
  .btn:hover {
    transform: none;
  }

  .exercise-card {
    box-shadow: none;
  }

  .exercise-card .card-body {
    padding: .85rem 2.45rem .85rem .9rem;
  }

  .exercise-card::after {
    content: "›";
    color: var(--wc-primary-strong);
  }

  .mini-row:hover,
  .athlete-row:hover,
  .leader-row:hover {
    background: transparent;
  }

  .mobile-tabbar {
    background: rgba(255, 255, 255, .96);
  }

  .mobile-tabbar a.active {
    background: var(--wc-primary-soft);
    color: var(--wc-primary-strong);
  }
}

/* Regnskapssystem-inspired refinement */
:root {
  --wc-bg: #eef3f8;
  --wc-bg-2: #f8fbfd;
  --wc-ink: #17324b;
  --wc-muted: #60778d;
  --wc-soft: #f6f9fc;
  --wc-line: #d8e2ee;
  --wc-line-strong: #c3d2df;
  --wc-primary: #1954a8;
  --wc-primary-strong: #174a86;
  --wc-primary-soft: #e8f2ff;
  --wc-accent: #198060;
  --wc-accent-soft: #e8f6f1;
  --wc-danger: #b54931;
  --wc-card: rgba(255, 255, 255, .9);
  --wc-shadow: 0 18px 38px rgba(15, 39, 60, .08);
  --wc-shadow-sm: 0 10px 24px rgba(15, 39, 60, .06);
}

body {
  background:
    linear-gradient(180deg, var(--wc-bg-2) 0, var(--wc-bg) 24rem),
    radial-gradient(760px 360px at top right, rgba(25, 84, 168, .1), transparent 70%);
  color: var(--wc-ink);
}

main.container {
  padding-top: 1.15rem !important;
}

.app-header {
  min-height: 4.6rem;
  background: rgba(248, 251, 253, .86) !important;
  border-bottom: 1px solid rgba(216, 226, 238, .92) !important;
  backdrop-filter: blur(16px);
}

.app-nav-shell {
  min-height: 3.3rem;
}

.navbar-brand {
  gap: .65rem;
}

.brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  margin-right: 0;
  border-radius: .5rem;
  background: var(--wc-primary);
  box-shadow: 0 10px 22px rgba(25, 84, 168, .16);
}

.brand-copy {
  display: grid;
  gap: .04rem;
  line-height: 1.05;
}

.brand-copy strong {
  color: #102f4d;
  font-size: 1rem;
  font-weight: 860;
}

.brand-copy small {
  color: var(--wc-muted);
  font-size: .72rem;
  font-weight: 720;
}

.navbar-nav {
  border: 1px solid rgba(216, 226, 238, .9);
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.navbar .nav-link {
  color: #45627c;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  background: rgba(25, 84, 168, .1);
  color: var(--wc-primary-strong);
}

.nav-actions .btn {
  box-shadow: none;
}

.page-heading {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--wc-shadow-sm);
}

.page-heading h1 {
  color: #102f4d;
}

.eyebrow,
.text-uppercase {
  color: #5d7893 !important;
  font-size: .76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.hero-panel,
.feature-card,
.auth-card,
.stats-grid > div,
.exercise-card,
.library-search-panel,
.filter-panel,
.library-filters summary {
  border: 1px solid var(--wc-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--wc-shadow);
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 249, 252, .92)),
    radial-gradient(680px 260px at top right, rgba(25, 84, 168, .12), transparent 72%) !important;
}

.home-preview,
.home-preview-head,
.home-preview-line,
.builder-panel,
.movement-build-card,
.session-piece,
.programmed-movements > div,
.checkbox-panel ul,
.muted-panel {
  border-color: rgba(18, 55, 93, .09);
  background: rgba(246, 249, 252, .95);
}

.home-preview-head,
.leader-row.current {
  background: var(--wc-primary-soft);
}

.home-preview-line.accent {
  background: var(--wc-accent-soft);
}

.btn-primary {
  border-color: var(--wc-primary);
  background: var(--wc-primary);
  box-shadow: 0 10px 22px rgba(25, 84, 168, .16);
}

.btn-primary:hover {
  border-color: var(--wc-primary-strong);
  background: var(--wc-primary-strong);
}

.btn-outline-primary {
  border-color: rgba(25, 84, 168, .28);
  color: var(--wc-primary-strong);
}

.btn-outline-primary:hover {
  background: var(--wc-primary-soft);
}

.stats-grid > div {
  padding: .95rem;
}

.stats-grid > div::before {
  background: var(--wc-primary);
}

.stats-grid strong {
  color: #102f4d;
}

.athlete-row,
.leader-row,
.mini-row,
.pr-board-row,
.session-card {
  border-bottom-color: rgba(18, 55, 93, .08);
}

.athlete-row,
.leader-row,
.mini-row {
  padding-right: .65rem;
  padding-left: .65rem;
  border-radius: .5rem;
}

.athlete-row:hover,
.leader-row:hover,
.mini-row:hover {
  background: rgba(246, 249, 252, .95);
}

.avatar-circle {
  background: var(--wc-primary);
  color: #fff;
  box-shadow: none;
}

.chip-row span,
.badge {
  border-color: rgba(18, 55, 93, .09);
  background: rgba(246, 249, 252, .95);
}

.detail-grid {
  gap: 1.15rem;
}

.movement-summary,
.percent-card {
  background: rgba(255, 255, 255, .9);
}

.pr-value,
.target-weight strong {
  color: #102f4d;
}

.target-weight > span {
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong);
}

.movement-option:hover {
  background: var(--wc-primary-soft);
}

.mobile-tabbar {
  border-color: rgba(216, 226, 238, .95);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -10px 30px rgba(15, 39, 60, .08);
}

.mobile-tabbar a.active {
  background: var(--wc-primary);
  color: #fff;
}

@media (max-width: 767.98px) {
  .app-header {
    min-height: 3.75rem;
  }

  .brand-copy small {
    display: none;
  }

  .page-heading {
    padding: 1rem;
  }

  .navbar-nav {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-tabbar a.active {
    background: var(--wc-primary-soft);
    color: var(--wc-primary-strong);
  }
}

/* App-like softness layer */
:root {
  --wc-bg: #f6f8f7;
  --wc-soft-panel: rgba(255, 255, 255, .68);
  --wc-glass-panel: rgba(255, 255, 255, .78);
  --wc-hairline: rgba(23, 33, 31, .08);
  --wc-shadow: 0 10px 28px rgba(23, 33, 31, .045);
  --wc-shadow-sm: 0 4px 14px rgba(23, 33, 31, .035);
}

body {
  background:
    linear-gradient(180deg, rgba(226, 244, 241, .62) 0, rgba(246, 248, 247, 0) 15rem),
    var(--wc-bg);
}

main.container {
  max-width: 1040px;
}

.app-header {
  min-height: 4rem;
  border-bottom-color: var(--wc-hairline) !important;
  background: rgba(246, 248, 247, .82) !important;
  box-shadow: none;
}

.navbar-nav {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.navbar .nav-link {
  border-radius: .5rem;
}

.navbar .nav-link.active {
  background: rgba(15, 118, 110, .1);
}

.page-heading {
  padding: .15rem 0 .35rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-heading h1 {
  letter-spacing: 0;
}

.hero-panel,
.feature-card,
.auth-card,
.stats-grid > div,
.exercise-card,
.library-search-panel,
.filter-panel,
.library-filters summary,
.home-preview,
.home-preview-head,
.home-preview-line,
.builder-panel,
.movement-build-card,
.session-piece,
.programmed-movements > div,
.checkbox-panel ul,
.muted-panel {
  border-color: transparent;
  background: var(--wc-glass-panel);
  box-shadow: none;
}

.feature-card,
.auth-card,
.library-search-panel,
.filter-panel {
  backdrop-filter: blur(10px);
}

.exercise-card,
.athlete-row,
.leader-row,
.mini-row,
.session-card {
  background: transparent;
}

.exercise-card {
  border-bottom: 1px solid var(--wc-hairline);
  border-radius: 0;
}

.exercise-card .card-footer {
  background: transparent;
}

.card {
  box-shadow: none;
}

.detail-grid {
  gap: .8rem;
}

.movement-summary,
.percent-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62));
}

.detail-section-heading,
.session-piece-heading,
.movement-build-heading {
  border-bottom: 0;
}

.library-search-panel {
  padding: .85rem;
}

.library-filters summary,
.pr-entry-collapse summary,
.btn,
.form-control,
.form-select,
.stack-form input,
.stack-form select,
.stack-form textarea {
  box-shadow: none;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  box-shadow: none;
}

.mobile-tabbar {
  border-top: 1px solid var(--wc-hairline);
  background: rgba(246, 248, 247, .9);
  box-shadow: none;
}

.mobile-tabbar a {
  background: transparent;
}

.mobile-tabbar a.active {
  background: transparent;
  color: var(--wc-primary-strong);
}

.mobile-tabbar a.active::before {
  content: "";
  width: 1.35rem;
  height: .18rem;
  display: block;
  margin: 0 auto .28rem;
  border-radius: 999px;
  background: var(--wc-primary);
}

@media (min-width: 992px) {
  .navbar-nav {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 5rem;
  }

  main.container {
    padding-top: .75rem !important;
    padding-right: .85rem;
    padding-left: .85rem;
  }

  .page-heading {
    gap: .45rem;
    margin-bottom: .7rem;
    padding: .05rem 0 .2rem;
  }

  .page-heading > .btn,
  .page-heading > .badge,
  .page-heading > .d-flex {
    width: auto;
    justify-self: start;
  }

  .page-heading > .btn,
  .page-heading > .d-flex .btn {
    min-height: 2.35rem;
  }

  .feature-card,
  .empty-state,
  .auth-card {
    padding: .95rem 0;
    border-radius: 0;
    background: transparent;
  }

  .movement-summary,
  .percent-card,
  .library-search-panel,
  .stats-grid > div,
  .builder-panel,
  .session-piece {
    padding: .95rem;
    border-radius: .5rem;
    background: var(--wc-soft-panel);
  }

  .row.g-4 {
    --bs-gutter-y: .65rem;
  }

  .detail-grid {
    gap: .65rem;
    margin-bottom: .55rem;
  }

  .exercise-card {
    margin-right: -.85rem;
    margin-left: -.85rem;
    padding-right: .85rem;
    padding-left: .85rem;
  }

  .exercise-card .card-body {
    padding-top: .95rem;
    padding-bottom: .95rem;
  }

  .mobile-tabbar {
    padding-top: .2rem;
  }

  .mobile-tabbar a {
    min-height: 3.15rem;
    padding-top: .34rem;
    font-weight: 780;
  }
}

/* Sports app visual direction */
:root {
  --wc-bg: #0b0b0d;
  --wc-bg-2: #141416;
  --wc-ink: #f8f8fb;
  --wc-muted: #a7a7b1;
  --wc-soft: #18181b;
  --wc-soft-panel: #1f1f22;
  --wc-glass-panel: #171719;
  --wc-hairline: rgba(255, 255, 255, .08);
  --wc-line: rgba(255, 255, 255, .1);
  --wc-line-strong: rgba(255, 255, 255, .18);
  --wc-primary: #ff3b3f;
  --wc-primary-strong: #ff5a5d;
  --wc-primary-soft: rgba(255, 59, 63, .14);
  --wc-accent: #ff3b3f;
  --wc-accent-soft: rgba(255, 59, 63, .12);
  --wc-danger: #ff6b4f;
  --wc-card: #19191c;
  --wc-shadow: 0 22px 46px rgba(0, 0, 0, .32);
  --wc-shadow-sm: 0 12px 28px rgba(0, 0, 0, .24);
}

html,
body {
  background: var(--wc-bg);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 59, 63, .16) 0, rgba(11, 11, 13, 0) 18rem),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 5rem 5rem,
    var(--wc-bg);
  color: var(--wc-ink);
}

a,
a:hover {
  color: var(--wc-primary-strong);
}

main.container {
  max-width: 1080px;
}

.app-header,
.navbar {
  border-bottom-color: var(--wc-hairline) !important;
  background: rgba(10, 10, 12, .92) !important;
  backdrop-filter: blur(18px);
}

.navbar-brand,
.brand-copy strong,
.page-heading h1,
.home-hero h1,
.home-preview strong,
.stats-grid strong,
.session-card-heading strong,
.session-piece-heading strong,
.programmed-movements strong,
.mini-row strong,
.leader-row strong,
.athlete-main strong,
.detail-section-heading h2,
.detail-subtitle {
  color: var(--wc-ink);
}

.brand-icon {
  border-radius: .38rem;
  background: var(--wc-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 28px rgba(255, 59, 63, .2);
}

.brand-copy small,
.navbar .nav-link,
.text-secondary,
.home-preview span,
.stats-grid span,
.athlete-main span,
.athlete-main p,
.leader-row p,
.mini-row span,
.pr-board-row span,
.session-card span,
.session-piece p,
.strategy-note,
.movement-option span,
.builder-piece-row span,
.programmed-movements span,
.programmed-movements p {
  color: var(--wc-muted) !important;
}

.navbar .nav-link {
  font-size: .86rem;
  letter-spacing: 0;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  background: var(--wc-primary-soft);
  color: #fff;
}

.navbar-toggler {
  border-color: var(--wc-line);
  background: #161618;
}

.navbar-toggler-icon {
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
}

.app-menu summary {
  border-color: var(--wc-line);
  background: var(--wc-soft);
  box-shadow: var(--wc-shadow-sm);
}

.app-menu summary span {
  background: var(--wc-ink);
}

.app-menu summary:hover,
.app-menu[open] summary {
  border-color: var(--wc-primary);
  background: var(--wc-primary-soft);
}

.app-menu-panel {
  border-color: var(--wc-line);
  background: var(--wc-card);
  box-shadow: var(--wc-shadow);
}

.app-menu-panel a {
  color: var(--wc-ink);
}

.app-menu-panel a:hover {
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong);
}

.page-heading {
  padding: .25rem 0 .55rem;
}

.page-heading h1,
.home-hero h1 {
  font-weight: 920;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.text-uppercase {
  color: var(--wc-primary-strong) !important;
  font-size: .72rem;
  font-style: italic;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-panel,
.feature-card,
.auth-card,
.stats-grid > div,
.exercise-card,
.library-search-panel,
.filter-panel,
.library-filters summary,
.home-preview,
.builder-panel,
.movement-build-card,
.programmed-movements > div,
.session-piece,
.checkbox-panel ul,
.muted-panel,
.card {
  border: 1px solid var(--wc-line);
  background: var(--wc-card);
  box-shadow: none;
}

.feature-card,
.auth-card,
.library-search-panel,
.filter-panel {
  backdrop-filter: none;
}

.hero-panel {
  border-color: var(--wc-line-strong) !important;
  background:
    linear-gradient(135deg, rgba(31, 31, 34, .98), rgba(12, 12, 14, .98) 54%, rgba(255, 59, 63, .14)),
    var(--wc-card) !important;
  box-shadow: var(--wc-shadow);
}

.home-hero-grid {
  gap: 1.4rem;
}

.home-hero h1 {
  max-width: 42rem;
}

.home-preview {
  position: relative;
  isolation: isolate;
  min-height: 28rem;
  align-content: end;
  overflow: hidden;
  padding: 1rem;
  border-color: rgba(255, 255, 255, .12);
  border-radius: .5rem;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, .06), rgba(10, 10, 12, .88) 72%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .28) 0 6%, rgba(255, 59, 63, .16) 7% 18%, transparent 34%),
    linear-gradient(145deg, #252529, #0c0c0e 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-preview::before {
  content: "WOD";
  position: absolute;
  top: 4.9rem;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .06);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 950;
  line-height: .8;
}

.home-preview::after {
  content: "";
  position: absolute;
  right: 16%;
  bottom: 7.3rem;
  z-index: -1;
  width: 34%;
  aspect-ratio: 1 / 1.75;
  border-radius: 999px 999px .8rem .8rem;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, .86) 35% 65%, transparent 66%),
    linear-gradient(180deg, #f4f4f7 0 47%, var(--wc-primary) 48% 53%, #f4f4f7 54% 100%);
  opacity: .74;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .36));
}

.home-preview-head,
.home-preview-line {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}

.home-preview-head {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  background: rgba(8, 8, 10, .82);
}

.home-preview-head span {
  min-height: 1.55rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--wc-primary);
  color: #fff !important;
  font-size: .72rem;
}

.home-preview-line.accent {
  border-color: rgba(255, 59, 63, .22);
  background: rgba(255, 59, 63, .12);
}

.home-feature-grid {
  gap: .75rem;
}

.feature-card,
.auth-card {
  padding: 1.15rem;
}

.feature-card,
.empty-state,
.auth-card,
.stats-grid > div,
.library-search-panel,
.filter-panel,
.movement-summary,
.percent-card,
.builder-panel,
.session-piece {
  border-radius: .5rem;
}

.card,
.exercise-card {
  border-radius: .5rem;
  background: var(--wc-card);
}

.exercise-card {
  border-bottom: 1px solid var(--wc-line);
  transition: border-color .16s ease, background-color .16s ease;
}

.exercise-card:hover,
.movement-option:hover,
.athlete-row:hover,
.leader-row:hover,
.mini-row:hover {
  border-color: rgba(255, 59, 63, .26);
  background: #202024;
  transform: none;
}

.card-footer.bg-white,
.bg-white {
  background: transparent !important;
}

.btn {
  border-radius: .5rem;
  text-transform: none;
}

.btn-primary,
.text-bg-primary,
.text-bg-success,
.mobile-tabbar span {
  background: var(--wc-primary);
  color: #fff;
}

.btn-primary {
  border-color: var(--wc-primary);
  box-shadow: 0 12px 28px rgba(255, 59, 63, .18);
}

.btn-primary:hover {
  border-color: var(--wc-primary-strong);
  background: var(--wc-primary-strong);
}

.btn-dark {
  border-color: var(--wc-line-strong);
  background: #222226;
  color: #fff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  border-color: var(--wc-line);
  background: #151518;
}

.btn-outline-primary,
.btn-outline-secondary {
  color: var(--wc-ink);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
  border-color: rgba(255, 59, 63, .34);
  background: var(--wc-primary-soft);
  color: #fff;
}

.text-bg-light,
.badge,
.chip-row span {
  border-color: var(--wc-line);
  background: #242428;
  color: var(--wc-muted);
}

.border {
  border-color: var(--wc-line) !important;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.passkey-name-field input,
.form-control,
.form-select,
.input-group > .form-control {
  border-color: var(--wc-line);
  background-color: #121214;
  color: var(--wc-ink);
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 59, 63, .74);
  box-shadow: 0 0 0 .22rem rgba(255, 59, 63, .12);
}

.stack-form input::placeholder,
.stack-form textarea::placeholder,
.form-control::placeholder {
  color: #6f6f78;
}

.library-search-panel,
.library-toggle,
.library-filters summary,
.filter-panel {
  background: #151518;
}

.library-toggle {
  border-color: var(--wc-line);
}

.library-toggle-button {
  color: var(--wc-muted);
}

.library-toggle-button.active {
  background: var(--wc-primary);
  color: #fff;
}

.library-toggle-button span,
.library-toggle-button.active span {
  background: rgba(255, 255, 255, .12);
  color: inherit;
}

.library-filters summary::after {
  background: var(--wc-primary);
  color: #fff;
}

.stats-grid > div::before {
  background: var(--wc-primary);
}

.avatar-circle {
  background: #2a2a2f;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--wc-line);
}

.leader-row.current {
  background: var(--wc-primary-soft);
}

.leader-row > span,
.pr-value,
.target-weight strong,
.target-weight strong span {
  color: var(--wc-ink);
}

.target-weight > span {
  background: var(--wc-primary);
  color: #fff;
}

.percent-card .form-range {
  accent-color: var(--wc-primary);
}

.pr-entry-collapse summary,
.movement-option,
.movement-build-card,
.programmed-movements > div,
.session-piece,
.checkbox-panel ul,
.muted-panel {
  border-color: var(--wc-line);
  background: #151518;
  color: var(--wc-ink);
}

.athlete-row,
.leader-row,
.mini-row,
.pr-board-row,
.session-card {
  border-bottom-color: var(--wc-line);
}

.strategy-note {
  border-top-color: var(--wc-line);
}

.message-stack .alert,
.alert {
  border-color: var(--wc-line);
  background: #19191c;
  color: var(--wc-ink);
}

.mobile-tabbar {
  border-top-color: var(--wc-line);
  background: rgba(9, 9, 11, .96);
  backdrop-filter: blur(18px);
}

.mobile-tabbar a {
  color: var(--wc-muted);
}

.mobile-tabbar a.active,
.mobile-tabbar a.active::before {
  color: #fff;
}

.mobile-tabbar a.active::before {
  background: var(--wc-primary);
}

@media (min-width: 992px) {
  .navbar-nav {
    border: 1px solid var(--wc-line);
    border-radius: .5rem;
    background: #141416;
  }
}

@media (max-width: 767.98px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 59, 63, .13) 0, rgba(11, 11, 13, 0) 13rem),
      var(--wc-bg);
  }

  .app-header,
  .navbar {
    background: rgba(10, 10, 12, .96) !important;
  }

  .home-preview {
    min-height: 23rem;
  }

  .feature-card,
  .empty-state,
  .auth-card {
    padding: .95rem;
    border-radius: .5rem;
    background: var(--wc-card);
  }

  .exercise-card {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    border: 1px solid var(--wc-line);
    border-radius: .5rem;
  }

  .exercise-card::after {
    color: var(--wc-primary);
  }

  .mini-row:hover,
  .athlete-row:hover,
  .leader-row:hover {
    background: transparent;
  }

  .mobile-tabbar a.active {
    background: transparent;
    color: #fff;
  }
}

/* Library refinement */
.library-search-panel {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr);
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
  padding: .75rem;
  border-color: transparent;
  background: rgba(255, 255, 255, .045);
}

.library-search-label {
  margin: 0;
  padding-inline: .35rem;
  color: var(--wc-muted);
  font-size: .76rem;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-search-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
}

.library-search-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: .95rem;
  z-index: 1;
  width: .78rem;
  height: .78rem;
  border: 2px solid var(--wc-muted);
  border-radius: 999px;
  transform: translateY(-58%);
  opacity: .74;
}

.library-search-row::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.62rem;
  z-index: 1;
  width: .42rem;
  height: 2px;
  border-radius: 999px;
  background: var(--wc-muted);
  transform: translateY(105%) rotate(45deg);
  opacity: .74;
}

.library-search-row .form-control {
  min-height: 3.2rem;
  padding-left: 2.35rem;
  border-color: transparent;
  border-radius: .5rem;
  background: #101012;
  font-size: .98rem;
}

.library-search-row .btn {
  min-height: 3.2rem;
  border-color: transparent;
  background: #232327;
}

.library-toggle {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: repeat(2, max-content);
  gap: .25rem;
  margin: 0 0 1.35rem;
  padding: .25rem;
  border-color: transparent;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.library-toggle-button {
  min-width: 10.5rem;
  min-height: 2.55rem;
  padding-inline: .9rem;
  border-radius: .4rem;
  letter-spacing: 0;
}

.library-section {
  margin-bottom: 1.6rem;
}

.section-heading-row {
  align-items: center;
  margin-bottom: .85rem;
}

.section-heading-row h2 {
  color: var(--wc-ink);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.library-list {
  row-gap: .85rem;
}

.exercise-card {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(255, 59, 63, .18), rgba(255, 59, 63, 0) 2.75rem),
    #18181b;
}

.exercise-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: .82rem;
  width: .24rem;
  border-radius: 999px;
  background: var(--wc-primary);
}

.exercise-card .card-body {
  padding: 1rem 1rem .75rem 1.45rem;
}

.exercise-card .card-body > .d-flex {
  align-items: flex-start !important;
}

.exercise-card h2,
.exercise-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.exercise-card .small {
  color: #c6c6ce !important;
}

.exercise-description {
  min-height: 3.9rem;
  margin-bottom: .9rem;
  line-height: 1.35;
}

.exercise-card .card-footer {
  display: flex;
  justify-content: flex-start;
  padding: 0 1rem 1rem 1.45rem;
}

.library-card-action {
  width: auto;
  min-height: 2.15rem;
  padding: .35rem .7rem;
  border-color: rgba(255, 59, 63, .34);
  background: transparent;
  color: var(--wc-primary-strong);
  font-size: .82rem;
}

.library-card-action::after {
  content: ">";
  margin-left: .45rem;
  color: inherit;
}

.exercise-card .badge {
  flex: 0 0 auto;
  min-height: 1.45rem;
  padding: .2rem .45rem;
  border-color: transparent;
  background: rgba(255, 255, 255, .08);
  color: #d8d8de;
  font-size: .68rem;
}

.exercise-card .chip-row span {
  border-color: transparent;
  background: rgba(255, 255, 255, .065);
}

@media (max-width: 767.98px) {
  .library-search-panel {
    grid-template-columns: 1fr;
    gap: .45rem;
    margin-right: -.35rem;
    margin-left: -.35rem;
    padding: .55rem;
    border-radius: .5rem;
  }

  .library-search-label {
    padding-inline: .25rem;
  }

  .library-search-row {
    grid-template-columns: 1fr;
  }

  .library-search-row::before {
    top: 1.42rem;
  }

  .library-search-row::after {
    top: 1.42rem;
  }

  .library-search-row .form-control,
  .library-search-row .btn {
    min-height: 2.85rem;
  }

  .library-toggle {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
  }

  .library-toggle-button {
    min-width: 0;
    min-height: 2.45rem;
    padding-inline: .55rem;
    font-size: .84rem;
  }

  .section-heading-row {
    margin-bottom: .55rem;
  }

  .section-heading-row h2 {
    font-size: 1.05rem;
  }

  .library-list {
    gap: .55rem 0;
  }

  .exercise-card {
    background:
      linear-gradient(90deg, rgba(255, 59, 63, .18), rgba(255, 59, 63, 0) 2.45rem),
      #18181b;
  }

  .exercise-card::before {
    top: .75rem;
    bottom: .75rem;
    left: .68rem;
  }

  .exercise-card .card-body {
    padding: .82rem 2.35rem .82rem 1.25rem;
  }

  .exercise-card h2,
  .exercise-card h3 {
    font-size: .96rem;
  }

  .exercise-card .badge {
    font-size: .62rem;
  }
}

@media (max-width: 767.98px) {
  body.auth-shell {
    padding-bottom: calc(6.35rem + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
    gap: .35rem;
    padding: .42rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1.05rem;
    background: rgba(15, 15, 18, .94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.45rem;
    align-items: center;
    justify-content: center;
    padding: .55rem .25rem;
    border-radius: .75rem;
    background: transparent;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .mobile-tabbar a::before,
  .mobile-tabbar a.active::before {
    content: none;
  }

  .mobile-tabbar a.active {
    background: rgba(255, 59, 63, .18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 63, .42);
  }

  .mobile-tabbar a.mobile-tabbar-primary {
    min-height: 3.75rem;
    margin-top: -.32rem;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .84rem;
  }

  .mobile-tabbar a.mobile-tabbar-primary.active {
    background: var(--wc-primary);
    box-shadow: 0 10px 24px rgba(255, 59, 63, .28);
  }

  .mobile-tabbar .mobile-tabbar-label {
    position: static;
    display: block;
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tabbar .mobile-tabbar-badge {
    position: absolute;
    top: .28rem;
    right: .34rem;
    display: inline-flex;
    min-width: 1.15rem;
    height: 1.15rem;
    align-items: center;
    justify-content: center;
    padding: 0 .28rem;
    border-radius: 999px;
    background: #fff;
    color: var(--wc-primary);
    font-size: .64rem;
    font-weight: 950;
    line-height: 1;
  }
}

/* Today and WOD programming */
.today-week-nav {
  display: grid;
  gap: .7rem;
  margin: 0 0 1rem;
  padding: .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--wc-shadow-sm);
}

.today-week-nav-heading {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
  align-items: center;
  gap: .55rem;
}

.today-week-nav-title {
  display: grid;
  gap: .08rem;
  min-width: 0;
  text-align: center;
}

.today-week-nav-title span {
  color: var(--wc-primary-strong);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-week-nav-title strong {
  color: var(--wc-muted);
  font-size: .84rem;
  font-weight: 850;
}

.today-week-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: var(--wc-card);
  color: var(--wc-muted);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.today-week-jump-icon {
  display: block;
  transform: translateY(-1px);
}

.today-week-jump-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.today-week-jump:hover,
.today-week-jump:focus {
  border-color: var(--wc-primary);
  color: var(--wc-primary-strong);
  transform: translateY(-1px);
}

.today-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}

.today-week-day {
  display: grid;
  gap: .12rem;
  min-width: 0;
  min-height: 4.35rem;
  padding: .5rem .35rem;
  border: 1px solid var(--wc-line);
  border-radius: .55rem;
  background: var(--wc-card);
  color: var(--wc-muted);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.today-week-day:hover,
.today-week-day:focus {
  border-color: var(--wc-primary);
  color: var(--wc-primary-strong);
  transform: translateY(-1px);
}

.today-week-day span,
.today-week-day em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-week-day span {
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-week-day strong {
  color: var(--wc-ink);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.today-week-day em {
  color: var(--wc-muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.today-week-day.today {
  border-color: rgba(249, 115, 22, .42);
}

.today-week-day.today em {
  color: var(--wc-accent);
}

.today-week-day.selected {
  border-color: var(--wc-primary);
  background: var(--wc-primary);
  color: #fff;
}

.today-week-day.selected strong,
.today-week-day.selected em {
  color: #fff;
}

.today-sessions {
  display: grid;
  gap: .9rem;
}

.today-sessions > .detail-section-heading {
  margin-bottom: .25rem;
}

.today-whiteboard {
  position: relative;
  padding: 1rem 0 1.35rem 1rem;
  border-bottom: 1px solid var(--wc-line);
}

.today-whiteboard:last-child {
  border-bottom: 0;
}

.today-whiteboard::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.35rem;
  left: 0;
  width: .24rem;
  border-radius: 999px;
  background: var(--wc-primary);
}

.today-whiteboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--wc-line);
}

.today-whiteboard-heading h2 {
  margin: 0;
  color: var(--wc-ink);
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 930;
  text-transform: uppercase;
}

.today-whiteboard-heading span,
.today-session-brief {
  color: var(--wc-muted);
}

.today-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .35rem;
}

.today-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: .18rem .48rem;
  border: 1px solid var(--wc-line);
  border-radius: .4rem;
  background: rgba(255, 255, 255, .045);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.today-coach-line {
  margin: .25rem 0 0;
  color: var(--wc-ink);
  font-size: .88rem;
  font-weight: 760;
}

.today-whiteboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.today-coach-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--wc-line);
}

.today-coach-tools span {
  color: var(--wc-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.today-coach-tools a {
  color: var(--wc-muted);
  font-size: .8rem;
  font-weight: 760;
  text-decoration: none;
}

.today-coach-tools a:hover,
.today-coach-tools a:focus {
  color: var(--wc-primary-strong);
  text-decoration: underline;
}

.today-session-brief {
  margin-bottom: 1rem;
}

.today-wod-block {
  display: grid;
  gap: .45rem;
  margin-top: .9rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--wc-hairline);
}

.today-wod-content {
  min-width: 0;
}

.today-wod-block:last-of-type {
  border-bottom: 0;
}

.today-wod-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  margin-bottom: .25rem;
}

.today-wod-heading > div {
  display: grid;
  gap: .35rem;
  min-width: 0;
  align-content: start;
}

.today-wod-heading span {
  color: var(--wc-primary-strong);
  font-size: .72rem;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.today-wod-heading strong {
  color: var(--wc-ink);
  font-size: .95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-wod-title {
  line-height: 1.15;
}

.today-timer-link {
  justify-self: end;
  min-width: 0;
  min-height: 0;
  padding: .42rem .68rem;
  border: 1px solid rgba(255, 59, 63, .32);
  border-radius: .4rem;
  background: rgba(255, 59, 63, .08);
  color: var(--wc-primary-strong);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  width: fit-content;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.today-timer-link:hover,
.today-timer-link:focus {
  border-color: rgba(255, 59, 63, .52);
  background: rgba(255, 59, 63, .14);
  color: var(--wc-primary-strong);
}

.today-prescription {
  margin: 0 0 .45rem;
  color: var(--wc-ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.35;
}

.today-session-description {
  margin: .85rem 0 1rem;
  padding: .75rem .85rem;
  border-left: 3px solid var(--wc-accent);
  border-radius: .45rem;
  background: rgba(255, 255, 255, .045);
}

.today-session-description strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--wc-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-session-description p {
  margin: 0;
  color: var(--wc-ink);
  line-height: 1.45;
}

.level-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .2rem;
  width: min(100%, 22rem);
  margin: .65rem 0 .55rem;
  padding: .2rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .055);
}

.level-toggle button {
  min-height: 2.2rem;
  padding: .35rem .5rem;
  border: 0;
  border-radius: .38rem;
  background: transparent;
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.level-toggle button.active {
  background: var(--wc-primary);
  color: #fff;
}

.level-toggle-builder {
  width: 100%;
  margin-top: 0;
}

.today-level-panel {
  display: none;
}

.today-level-panel.active {
  display: block;
}

.today-level-title {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--wc-ink);
}

.today-movement-text {
  margin: 0;
  color: var(--wc-muted);
  line-height: 1.55;
}

.today-movement-text strong {
  color: var(--wc-ink);
  font-weight: 900;
}

.today-movement-link {
  color: var(--wc-ink);
  font-weight: 900;
  text-decoration: none;
  text-underline-offset: .18em;
}

.today-movement-link:hover,
.today-movement-link:focus {
  color: var(--wc-primary-strong);
  text-decoration: underline;
}

.today-text-block {
  display: inline;
  color: var(--wc-muted);
}

.today-percentage-loads {
  display: grid;
  gap: .2rem;
  margin-top: .25rem;
  width: min(100%, 18rem);
  color: var(--wc-muted);
}

.today-percentage-loads small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
  line-height: 1.35;
}

.today-plate-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: .08rem .42rem;
  border: 1px solid rgba(255, 59, 63, .24);
  border-radius: .38rem;
  background: rgba(255, 59, 63, .07);
  color: var(--wc-primary-strong);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.today-plate-shortcut:hover,
.today-plate-shortcut:focus {
  border-color: rgba(255, 59, 63, .42);
  background: rgba(255, 59, 63, .12);
  color: var(--wc-primary-strong);
}

.today-station-list {
  display: grid;
  gap: .55rem;
}

.today-station {
  display: grid;
  gap: .12rem;
}

.today-station > strong {
  color: var(--wc-primary-strong);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-station > span {
  color: var(--wc-muted);
  font-size: .86rem;
  font-weight: 760;
}

.today-movement-list {
  display: grid;
  gap: .2rem;
}

.today-movement-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(0, 1fr);
  gap: .8rem;
}

.today-movement-list strong {
  color: var(--wc-ink);
  font-weight: 850;
}

.today-movement-list span {
  color: var(--wc-muted);
}

.today-note {
  margin-top: .8rem;
  padding: .65rem .75rem;
  border-left: 2px solid rgba(255, 59, 63, .45);
  background: rgba(255, 255, 255, .035);
}

.today-strategy-box {
  display: grid;
  gap: .15rem;
  margin-top: .8rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(255, 59, 63, .35);
  border-left: 3px solid rgba(255, 59, 63, .72);
  border-radius: .45rem;
  background: rgba(255, 59, 63, .07);
  color: inherit;
  text-decoration: none;
}

.today-strategy-box:hover {
  border-color: rgba(255, 59, 63, .58);
  background: rgba(255, 59, 63, .11);
}

.today-strategy-box strong {
  color: var(--wc-primary-strong);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-strategy-box span {
  color: var(--wc-muted);
}

.today-note strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--wc-primary-strong);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-note p {
  margin: 0;
  color: var(--wc-muted);
}

.today-session-card {
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background:
    linear-gradient(90deg, rgba(255, 59, 63, .12), rgba(255, 59, 63, 0) 3rem),
    #151518;
}

.today-session-card + .today-session-card {
  margin-top: 0;
}

.timer-heading {
  align-items: center;
}

.wod-timer,
.timer-workout {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background:
    radial-gradient(circle at 20% 0, rgba(15, 118, 110, .18), transparent 35%),
    linear-gradient(145deg, rgba(255, 59, 63, .10), rgba(255, 255, 255, .03) 48%, rgba(249, 115, 22, .07)),
    var(--wc-card);
  box-shadow: var(--wc-shadow-sm);
}

html.timer-takeover-active,
body.timer-takeover-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding-bottom: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.timer-takeover-active .app-header,
body.timer-takeover-active .mobile-tabbar {
  display: none !important;
}

.wod-timer.is-running {
  position: fixed;
  inset: 0;
  z-index: 3000;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
  padding: 0 max(1rem, env(safe-area-inset-right)) max(1.9rem, calc(env(safe-area-inset-bottom) + 1rem)) max(1rem, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: none;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(15, 118, 110, .28), transparent 36%),
    linear-gradient(145deg, rgba(20, 32, 51, .98), rgba(15, 23, 42, .98)),
    #111827;
  box-shadow: none;
}

.wod-timer:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(15, 118, 110, .28), transparent 36%),
    linear-gradient(145deg, rgba(20, 32, 51, .98), rgba(15, 23, 42, .98)),
    #111827;
}

.wod-timer.is-running .timer-program {
  display: none;
}

.timer-mode-amrap {
  min-height: calc(100svh - 13rem);
  align-content: start;
}

.timer-mode-amrap_sequence {
  min-height: calc(100svh - 13rem);
  align-content: start;
}

.timer-program {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
}

.timer-program span,
.timer-program small {
  color: var(--wc-muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-program span {
  width: fit-content;
  padding: .18rem .5rem;
  border-radius: .35rem;
  background: var(--wc-primary);
  color: #fff;
}

.timer-program strong {
  min-width: 0;
  overflow: hidden;
  color: var(--wc-ink);
  font-size: .9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer-face {
  display: grid;
  gap: .55rem;
  align-content: center;
  width: 100%;
  min-height: clamp(15rem, 44vh, 27rem);
  padding: 1rem;
  border: 1px solid rgba(20, 32, 51, .14);
  border-radius: .75rem;
  background:
    linear-gradient(145deg, rgba(20, 32, 51, .96), rgba(15, 23, 42, .98)),
    #111827;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 32, 51, .18);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.timer-face:focus {
  outline: 3px solid rgba(255, 75, 85, .34);
  outline-offset: 3px;
}

.wod-timer.is-idle .timer-face {
  min-height: clamp(16rem, 48vh, 28rem);
  gap: .45rem;
}

.wod-timer.is-idle .timer-state {
  align-self: end;
}

.wod-timer.is-idle .timer-clock {
  align-self: center;
}

.wod-timer.is-idle .timer-subline {
  align-self: start;
}

.timer-state,
.timer-subline {
  align-self: end;
  color: rgba(255, 255, 255, .72);
  font-weight: 900;
  text-transform: uppercase;
}

.timer-state {
  font-size: clamp(.88rem, 2.5vw, 1.1rem);
}

.timer-clock {
  align-self: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(4.8rem, 17vw, 11rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .9;
}

.timer-face-movements {
  display: grid;
  gap: .32rem;
  align-self: center;
  justify-self: center;
  width: min(100%, 42rem);
  max-height: 8.5rem;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  font-weight: 850;
  line-height: 1.22;
}

.timer-face-level {
  color: rgba(255, 255, 255, .58);
  font-size: .78em;
  font-weight: 950;
  text-transform: uppercase;
}

.timer-face-movement {
  display: block;
  overflow-wrap: anywhere;
}

.timer-face-movement b {
  display: inline-block;
  margin-right: .35rem;
  color: rgba(255, 255, 255, .62);
  font-size: .78em;
  text-transform: uppercase;
}

.timer-subline {
  align-self: start;
  min-height: 1.35rem;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(.78rem, 2.2vw, .98rem);
}

.wod-timer.is-countable .timer-face,
.wod-timer.has-checklist .timer-face {
  cursor: pointer;
}

.timer-face-movement.is-current {
  color: #86efac;
}

.timer-face-movement.is-next-up {
  color: rgba(255, 255, 255, .58);
  font-size: .88em;
}

.timer-face-movement.is-complete {
  color: rgba(255, 255, 255, .44);
  text-decoration: line-through;
  text-decoration-thickness: .12em;
}

.timer-mode-amrap.is-running {
  cursor: pointer;
}

.timer-mode-amrap.is-running .timer-face {
  pointer-events: none;
}

.wod-timer.is-running .timer-face {
  min-height: 0;
  height: 100%;
  padding: max(1rem, env(safe-area-inset-top)) clamp(.75rem, 2.3vw, 1.4rem) clamp(.75rem, 2.3vw, 1.4rem);
  overflow: hidden;
  border-color: rgba(255, 75, 85, .46);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}

.wod-timer.is-running.round-confirmed::after {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  content: "";
  animation: timer-round-flash .34s ease-out;
}

.wod-timer.is-running.round-confirmed .timer-face,
.wod-timer.is-running.round-confirmed .timer-sequence-panel {
  animation: timer-round-pop .34s ease-out;
}

@keyframes timer-round-flash {
  0% {
    background: rgba(20, 184, 166, 0);
  }
  18% {
    background: rgba(20, 184, 166, .34);
  }
  100% {
    background: rgba(20, 184, 166, 0);
  }
}

@keyframes timer-round-pop {
  0% {
    filter: brightness(1);
  }
  24% {
    filter: brightness(1.42);
  }
  100% {
    filter: brightness(1);
  }
}

.wod-timer.is-done .timer-face {
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .96), rgba(20, 83, 45, .98)),
    #14532d;
}

.wod-timer.is-resting .timer-face {
  border-color: rgba(245, 158, 11, .58);
  background:
    linear-gradient(145deg, rgba(180, 83, 9, .96), rgba(113, 63, 18, .98)),
    #92400e;
}

.wod-timer.is-resting .timer-state,
.wod-timer.is-resting .timer-subline,
.wod-timer.is-resting .timer-face-level {
  color: rgba(254, 243, 199, .9);
}

.timer-mode-amrap .timer-program,
.timer-mode-amrap .timer-settings,
.timer-mode-amrap_sequence .timer-settings {
  display: none;
}

.timer-mode-amrap .timer-face,
.timer-mode-amrap_sequence .timer-face {
  min-height: clamp(19rem, 58svh, 34rem);
}

.timer-mode-amrap.is-running,
.timer-mode-amrap_sequence.is-running {
  min-height: 100svh;
}

.timer-mode-amrap.is-running .timer-face,
.timer-mode-amrap_sequence.is-running .timer-face {
  min-height: 0;
}

.timer-mode-amrap .timer-face-movements,
.timer-mode-amrap_sequence .timer-face-movements {
  max-height: 10rem;
  font-size: clamp(1.08rem, 3.4vw, 1.75rem);
}

.timer-mode-amrap .timer-subline,
.timer-mode-amrap_sequence .timer-subline {
  margin-top: .85rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1;
}

.timer-controls,
.timer-counter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}

.wod-timer.is-idle .timer-controls {
  grid-template-columns: 1fr;
  justify-self: center;
  width: min(100%, 22rem);
}

.wod-timer.is-idle [data-pause-timer],
.wod-timer.is-idle [data-reset-timer],
.wod-timer.is-idle [data-finish-timer] {
  display: none;
}

.wod-timer.is-idle [data-start-timer] {
  min-height: 3.25rem;
  font-size: 1.05rem;
}

.timer-counter-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wod-timer:not(.is-countable) .timer-counter-controls {
  display: none;
}

.timer-mode-amrap .timer-counter-controls {
  display: none;
}

.timer-mode-amrap_sequence .timer-counter-controls {
  display: none;
}

.timer-sequence-panel {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  width: min(100%, 46rem);
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .5rem;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(14px);
}

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

.timer-emom-panel,
.timer-interval-panel {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  width: min(100%, 46rem);
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .5rem;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(14px);
}

.timer-emom-panel[hidden],
.timer-interval-panel[hidden] {
  display: none;
}

.timer-emom-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
}

.timer-emom-header span,
.timer-emom-header small {
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-emom-header strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.timer-emom-rows {
  display: grid;
  gap: .45rem;
}

.timer-emom-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(6rem, .55fr);
  gap: .55rem;
  align-items: center;
  min-width: 0;
  padding: .55rem .65rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .45rem;
  background: rgba(15, 23, 42, .72);
}

.timer-emom-row.is-current {
  border-color: rgba(20, 184, 166, .42);
  background: rgba(20, 184, 166, .12);
}

.timer-emom-row.is-complete {
  opacity: .68;
}

.timer-emom-row.is-locked {
  opacity: .72;
}

.timer-emom-meta {
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-emom-movement {
  min-width: 0;
  color: #fff;
  font-size: .94rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.timer-emom-row input {
  min-height: 2.5rem;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(15, 23, 42, .86);
  color: #fff;
  font-weight: 900;
}

.timer-sequence-current,
.timer-sequence-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
}

.timer-sequence-current span,
.timer-sequence-summary span,
.timer-partial-reps span {
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-sequence-current strong,
.timer-sequence-summary strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.timer-sequence-current strong {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
}

.timer-sequence-round-actions {
  display: flex;
  gap: .4rem;
}

.timer-partial-reps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.timer-partial-reps label {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.timer-partial-reps input {
  min-height: 2.55rem;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-weight: 900;
}

.timer-partial-reps input:focus {
  border-color: rgba(20, 184, 166, .78);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  box-shadow: 0 0 0 .22rem rgba(20, 184, 166, .18);
}

.timer-sequence-summary {
  display: grid;
  gap: .4rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.wod-timer.is-running .timer-sequence-panel {
  max-height: 28svh;
  overflow: auto;
}

.wod-timer.is-running .timer-emom-panel,
.wod-timer.is-running .timer-interval-panel {
  max-height: 30svh;
  overflow: auto;
}

.wod-timer.is-running:not(.has-emom-panel) .timer-emom-panel {
  display: none;
}

.wod-timer.is-running:not(.has-interval-panel) .timer-interval-panel {
  display: none;
}

.timer-controls .btn,
.timer-counter-controls .btn {
  min-height: 2.7rem;
  font-weight: 900;
}

.timer-score-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem .9rem;
  border: 1px solid rgba(20, 184, 166, .28);
  border-radius: .5rem;
  background: rgba(20, 184, 166, .08);
}

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

.timer-score-save span,
.timer-score-save small {
  display: block;
  color: var(--wc-muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-score-save strong {
  display: block;
  min-width: 0;
  color: var(--wc-ink);
  font-size: 1.1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.timer-score-save small.is-error {
  color: var(--wc-danger);
}

.wod-timer.is-running .timer-score-save {
  display: none;
}

.wod-timer.is-running .timer-controls .btn {
  min-height: 3rem;
  border-color: rgba(255, 255, 255, .2);
  border-radius: .45rem;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  backdrop-filter: blur(12px);
}

.wod-timer.is-running .timer-controls {
  align-self: end;
  justify-self: center;
  order: 3;
  width: min(100%, 34rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .35rem;
  padding: .45rem max(.55rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .65rem;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(14px);
}

.wod-timer.is-running [data-start-timer],
.wod-timer.is-running [data-reset-timer] {
  display: none;
}

.wod-timer.is-running .timer-settings {
  display: none;
}

.wod-timer.is-running .timer-state {
  align-self: center;
  font-size: clamp(2.5rem, 9vw, 5.8rem);
  line-height: .95;
}

.wod-timer.is-running.has-sequence-panel .timer-face {
  gap: .6rem;
}

.wod-timer.is-running.has-sequence-panel .timer-clock {
  align-self: center;
}

.wod-timer.is-running.has-sequence-panel .timer-face-level {
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.wod-timer.is-running.has-emom-panel .timer-face {
  gap: .5rem;
}

.wod-timer.is-running.has-emom-panel .timer-clock {
  align-self: center;
}

.wod-timer.is-running .timer-emom-header span,
.wod-timer.is-running .timer-emom-header small,
.wod-timer.is-running .timer-emom-meta {
  color: rgba(255, 255, 255, .68);
}

.wod-timer.is-running .timer-emom-header strong {
  color: #fff;
}

.wod-timer.is-running .timer-emom-row {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(15, 23, 42, .72);
}

.wod-timer.is-running .timer-emom-row.is-current {
  border-color: rgba(134, 239, 172, .38);
  background: rgba(6, 95, 70, .32);
}

.wod-timer.is-running .timer-emom-row.is-complete {
  opacity: .58;
}

.wod-timer.is-running .timer-emom-row input {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(15, 23, 42, .86);
  color: #fff;
}

.wod-timer.is-resting .timer-state {
  font-size: clamp(3.2rem, 12vw, 7rem);
}

.wod-timer.is-resting .timer-clock {
  color: #fffbeb;
}

.wod-timer.is-running .timer-sequence-current span,
.wod-timer.is-running .timer-sequence-summary span,
.wod-timer.is-running .timer-partial-reps span {
  color: rgba(255, 255, 255, .68);
}

.wod-timer.is-running .timer-sequence-current strong,
.wod-timer.is-running .timer-sequence-summary strong {
  color: #fff;
}

.wod-timer.is-running .timer-sequence-round-actions .btn {
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.wod-timer.is-running .timer-partial-reps input {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(15, 23, 42, .86);
  color: #fff;
}

.timer-settings {
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .35);
}

.timer-settings summary {
  padding: .75rem .85rem;
  color: var(--wc-ink);
  cursor: pointer;
  font-weight: 900;
}

.timer-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  padding: 0 .85rem .85rem;
}

.timer-settings-grid label {
  display: grid;
  gap: .25rem;
  min-width: 0;
  color: var(--wc-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-workout {
  margin-top: 1rem;
}

.timer-level {
  display: grid;
  gap: .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--wc-line);
}

.timer-level:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.timer-level > strong {
  color: var(--wc-primary-strong);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-level p {
  margin: 0;
  color: var(--wc-muted);
  line-height: 1.5;
}

.session-info-block {
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.session-info-block strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--wc-ink);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-info-block p {
  margin: 0;
  color: var(--wc-muted);
}

.session-description-field {
  display: block;
  margin: .5rem 0 1rem;
}

.session-description-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.session-piece-expanded + .session-piece-expanded {
  margin-top: .75rem;
}

.session-builder .builder-layout {
  align-items: start;
}

.session-part-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
}

.session-part-toggle {
  width: 100%;
  margin: 0;
}

.session-builder .selected-movements .empty-state {
  padding: .85rem;
  border: 1px dashed var(--wc-line-strong);
  border-radius: .5rem;
  background: transparent;
}

.delete-session-form {
  margin: 0;
}

.session-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
}

.session-manage-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  align-items: center;
}

.session-manage-actions .btn,
.session-detail-actions > .btn {
  white-space: nowrap;
}

.import-text-preview {
  max-height: 16rem;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--wc-muted);
  font: inherit;
}

.import-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  padding: .75rem .85rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.import-loading[hidden] {
  display: none;
}

.import-loading span {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, .32);
  border-top-color: var(--wc-primary);
  border-radius: 999px;
  animation: wc-spin .8s linear infinite;
}

.import-loading p {
  margin: 0;
  color: var(--wc-muted);
  font-size: .92rem;
}

@keyframes wc-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  .today-whiteboard-heading,
  .today-movement-list > div {
    grid-template-columns: 1fr;
  }

  .today-week-nav-heading {
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
    gap: .45rem;
  }

  .today-week-jump {
    width: 2.8rem;
    height: 2.8rem;
  }

  .today-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .28rem;
  }

  .today-week-day {
    min-height: 4rem;
    padding: .45rem .18rem;
  }

  .today-sessions {
    gap: .85rem;
  }

  .today-sessions > .detail-section-heading {
    padding: 0 .15rem;
  }

  .today-whiteboard-heading {
    display: grid;
    gap: .45rem;
    margin-bottom: .75rem;
    padding: .95rem .95rem .8rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .5rem .5rem 0 0;
    background:
      linear-gradient(135deg, rgba(255, 59, 63, .16), rgba(255, 255, 255, .035) 48%, rgba(255, 255, 255, .015)),
      #151518;
  }

  .today-whiteboard {
    overflow: hidden;
    padding: 0 0 .9rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: .5rem;
    background: #101012;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  }

  .today-whiteboard + .today-whiteboard {
    margin-top: .25rem;
  }

  .today-whiteboard::before {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: .2rem;
    border-radius: 0;
  }

  .today-whiteboard-heading h2 {
    font-size: 1.22rem;
  }

  .today-meta-row {
    margin-top: .45rem;
  }

  .today-coach-line {
    margin-top: .45rem;
    color: var(--wc-muted);
    font-size: .82rem;
  }

  .today-session-brief {
    margin: 0 .95rem .75rem;
    padding: .65rem .75rem;
    border-radius: .45rem;
    background: rgba(255, 255, 255, .045);
  }

  .today-wod-block {
    margin: .75rem .95rem 0;
    padding: .75rem 0 .85rem;
  }

  .today-prescription {
    margin-bottom: .65rem;
    font-size: 1rem;
  }

  .today-wod-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
  }

  .today-timer-link {
    align-self: start;
    min-width: 5.4rem;
  }

  .today-wod-heading span {
    width: fit-content;
    padding: .15rem .45rem;
    border-radius: .35rem;
    background: var(--wc-primary);
    color: #fff;
    font-size: .66rem;
  }

  .today-movement-list {
    gap: .4rem;
  }

  .today-movement-list > div {
    gap: .1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .today-movement-list span {
    font-size: .86rem;
  }

  .level-toggle {
    width: 100%;
  }

  .today-movement-text {
    font-size: .92rem;
  }

  .today-note {
    margin: .75rem .95rem 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid rgba(255, 59, 63, .72);
    border-radius: .45rem;
    background: rgba(255, 255, 255, .045);
  }

  .today-strategy-box {
    margin: .75rem .95rem 0;
  }

  .today-coach-tools {
    margin: .75rem .95rem 0;
  }

  .today-session-card {
    padding: .85rem;
  }

  .today-session-card .session-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .session-part-toolbar {
    grid-template-columns: 1fr;
  }

  .timer-program,
  .timer-controls,
  .timer-counter-controls,
  .timer-settings-grid {
    grid-template-columns: 1fr;
  }

  .timer-face {
    min-height: 16rem;
    padding: .85rem;
  }

  .timer-mode-amrap {
    min-height: calc(100svh - 10rem);
  }

  .timer-mode-amrap .timer-face,
  .timer-mode-amrap_sequence .timer-face {
    min-height: clamp(22rem, 64svh, 36rem);
  }

  .wod-timer.is-running {
    gap: .5rem;
    padding: 0 max(1rem, env(safe-area-inset-right)) max(2.35rem, calc(env(safe-area-inset-bottom) + 1.25rem)) max(1rem, env(safe-area-inset-left));
  }

  .wod-timer.is-running .timer-face,
  .timer-mode-amrap.is-running .timer-face {
    min-height: 0;
  }

  .wod-timer.is-running .timer-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .55rem;
  }

  .timer-clock {
    font-size: clamp(4.5rem, 27vw, 8rem);
  }

  .timer-face-movements {
    max-height: 10rem;
    font-size: clamp(.95rem, 4.2vw, 1.28rem);
  }

  .timer-program strong {
    white-space: normal;
  }

  .timer-sequence-current,
  .timer-sequence-summary > div,
  .timer-partial-reps,
  .timer-score-save {
    grid-template-columns: 1fr;
  }

  .timer-emom-header,
  .timer-emom-row {
    grid-template-columns: 1fr;
  }

  .builder-part-card .form-grid.compact,
  .session-meta-grid,
  .builder-level-toolbar,
  .benchmark-prefill-control {
    grid-template-columns: 1fr;
  }

  .builder-level-actions {
    justify-content: stretch;
  }

  .builder-level-actions .btn,
  .gym-invite-form .btn {
    width: 100%;
  }

  .test-upload-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .test-upload-item img {
    width: 5.5rem;
    height: 4.1rem;
  }
}

/* Social/profile page polish */
.app-surface,
.surface-page {
  position: relative;
}

.surface-page {
  display: grid;
  gap: 1rem;
}

.app-surface {
  isolation: isolate;
}

.app-surface > * + * {
  margin-top: 1rem;
}

.app-surface > .surface-page::before {
  content: none;
}

.app-surface > .surface-page {
  position: static;
}

.app-surface > .page-heading,
.app-surface > .stats-grid,
.app-surface > .feature-card,
.app-surface > .empty-state,
.app-surface > .detail-grid,
.app-surface > .row,
.surface-page > .page-heading,
.surface-page > .stats-grid,
.surface-page > .feature-card,
.surface-page > .row {
  position: relative;
}

.app-surface > .page-heading,
.surface-page > .page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  overflow: visible;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, rgba(255, 59, 63, .14), rgba(255, 255, 255, .04) 50%, rgba(255, 59, 63, .06)),
    var(--wc-card);
  box-shadow: var(--wc-shadow-sm, 0 14px 32px rgba(20, 32, 51, .08));
}

.app-surface > .page-heading > div:first-child,
.surface-page > .page-heading > div:first-child {
  min-width: 0;
}

.app-surface > .page-heading h1,
.surface-page > .page-heading h1 {
  overflow-wrap: anywhere;
}

.app-surface > .page-heading > .btn,
.app-surface > .page-heading > .badge,
.app-surface > .page-heading > .d-flex,
.app-surface > .page-heading > .gym-switcher,
.app-surface > .page-heading > .page-heading-actions,
.surface-page > .page-heading > .btn,
.surface-page > .page-heading > .badge,
.surface-page > .page-heading > .d-flex,
.surface-page > .page-heading > .gym-switcher,
.surface-page > .page-heading > .page-heading-actions {
  justify-self: start;
}

.app-surface > .page-heading > .d-flex,
.app-surface > .page-heading > .page-heading-actions,
.surface-page > .page-heading > .d-flex,
.surface-page > .page-heading > .page-heading-actions {
  justify-content: flex-start;
}

.app-surface > .today-heading {
  gap: .55rem;
  margin-bottom: .75rem;
  padding: .72rem .85rem;
}

.app-surface > .today-heading .eyebrow {
  margin-bottom: .12rem;
  font-size: .7rem;
}

.app-surface > .today-heading h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.08;
}

.app-surface > .today-heading .text-secondary {
  font-size: .86rem;
}

.app-surface > .coach-heading {
  gap: .65rem;
  padding: .85rem 1rem;
}

.app-surface > .coach-heading h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.1;
}

.app-surface > .coach-heading .text-secondary {
  max-width: 42rem;
  font-size: .92rem;
}

.app-surface > .page-heading::before,
.surface-page > .page-heading::before,
.athlete-profile-hero::before,
.pr-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: .22rem;
  background: linear-gradient(90deg, var(--wc-primary), var(--wc-primary-strong, var(--wc-primary)));
}

.app-surface .stats-grid > div,
.app-surface .stats-grid > a,
.app-surface .feature-card,
.app-surface .empty-state,
.surface-page .stats-grid > div,
.surface-page .stats-grid > a,
.surface-page .feature-card {
  border-color: var(--wc-line);
  background:
    linear-gradient(145deg, rgba(255, 59, 63, .08), rgba(255, 255, 255, .035) 48%, rgba(255, 59, 63, .04)),
    var(--wc-card);
  box-shadow: var(--wc-shadow-sm, 0 14px 32px rgba(20, 32, 51, .08));
}

.app-surface .stats-grid > div,
.app-surface .stats-grid > a,
.surface-page .stats-grid > div,
.surface-page .stats-grid > a {
  overflow: hidden;
  position: relative;
}

.app-surface .stats-grid > div::before,
.app-surface .stats-grid > a::before,
.surface-page .stats-grid > div::before,
.surface-page .stats-grid > a::before {
  background: linear-gradient(90deg, var(--wc-primary), var(--wc-primary-strong, var(--wc-primary)));
}

.stats-grid > a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: var(--wc-card);
  color: inherit;
  text-decoration: none;
}

.stats-grid > a::before {
  content: "";
  display: block;
  width: 2rem;
  height: .22rem;
  margin-bottom: .8rem;
  border-radius: 999px;
  background: var(--wc-primary);
}

.stats-grid > a:hover,
.stats-grid > a:focus {
  transform: translateY(-1px);
  border-color: rgba(255, 59, 63, .34);
}

.stats-grid > a strong {
  display: block;
  color: var(--wc-ink);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 880;
}

.stats-grid > a span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 780;
}

.app-surface .athlete-row,
.app-surface .leader-row,
.app-surface .mini-row,
.app-surface .pr-board-row,
.app-surface .session-card,
.app-surface .session-piece,
.app-surface .movement-option,
.surface-page .athlete-row,
.surface-page .leader-row,
.surface-page .mini-row {
  border-bottom-color: var(--wc-line);
}

.app-surface .leader-row.current,
.surface-page .leader-row.current {
  border: 1px solid rgba(255, 59, 63, .28);
  background: var(--wc-primary-soft);
}

.app-surface .today-week-nav {
  border-color: var(--wc-line);
  background:
    linear-gradient(145deg, rgba(255, 59, 63, .08), rgba(255, 255, 255, .025) 48%, rgba(255, 59, 63, .04)),
    var(--wc-card);
}

.app-surface .today-week-nav-title span {
  color: var(--wc-primary-strong);
}

.app-surface .today-week-nav-title strong {
  color: var(--wc-muted);
}

.app-surface .today-week-jump {
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, .045);
  color: var(--wc-muted);
}

.app-surface .today-week-jump:hover,
.app-surface .today-week-jump:focus {
  border-color: rgba(255, 59, 63, .42);
  background: rgba(255, 59, 63, .08);
  color: var(--wc-primary-strong);
}

.app-surface .today-week-day {
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, .045);
  color: var(--wc-muted);
}

.app-surface .today-week-day:hover,
.app-surface .today-week-day:focus {
  border-color: rgba(255, 59, 63, .42);
  background: rgba(255, 59, 63, .08);
  color: var(--wc-primary-strong);
}

.app-surface .today-week-day strong {
  color: var(--wc-ink);
}

.app-surface .today-week-day em {
  color: var(--wc-muted);
}

.app-surface .today-week-day.today {
  border-color: rgba(255, 59, 63, .34);
}

.app-surface .today-week-day.today em {
  color: var(--wc-primary-strong);
}

.app-surface .today-week-day.selected {
  border-color: rgba(255, 59, 63, .68);
  background: var(--wc-primary);
  color: #fff;
}

.app-surface .today-week-day.selected strong,
.app-surface .today-week-day.selected em {
  color: #fff;
}

.app-surface .movement-summary,
.app-surface .percent-card,
.app-surface .muted-panel,
.app-surface .builder-panel,
.app-surface .movement-option,
.app-surface .session-piece,
.app-surface .checkbox-panel ul,
.app-surface .programmed-movements > div,
.app-surface .today-session-card {
  border-color: var(--wc-line);
  background:
    linear-gradient(145deg, rgba(255, 59, 63, .07), rgba(255, 255, 255, .025) 48%, rgba(255, 59, 63, .035)),
    var(--wc-card);
}

.app-surface .session-builder {
  background: var(--wc-card);
}

.app-surface .session-builder .builder-part-card,
.app-surface .session-builder .builder-panel {
  border-color: var(--wc-line);
  background: var(--wc-soft-panel, var(--wc-soft));
}

.app-surface .session-builder .movement-option,
.app-surface .session-builder .movement-build-card {
  border-color: var(--wc-line);
  background: var(--wc-soft);
  color: var(--wc-ink);
}

.app-surface .session-builder .movement-option span,
.app-surface .session-builder .movement-build-heading span {
  color: var(--wc-muted);
}

.app-surface .session-builder .level-toggle {
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, .045);
}

.app-surface .session-builder .level-toggle button {
  color: var(--wc-muted);
}

.app-surface .session-builder .level-toggle button.active {
  background: var(--wc-primary);
  color: #fff;
}

.app-surface .session-builder .selected-movements .empty-state {
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, .045);
  color: var(--wc-muted);
}

.athlete-profile-hero,
.pr-detail-card {
  position: relative;
  overflow: hidden;
}

.athlete-profile-hero h1,
.pr-detail-page .page-heading h1 {
  max-width: 48rem;
}

.athlete-profile-avatar,
.pr-detail-card .avatar-circle {
  border: 2px solid rgba(255, 255, 255, .88);
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.profile-highlight,
.profile-activity-link {
  text-decoration: none;
}

.surface-page .profile-highlight {
  border-color: var(--wc-line);
  background:
    linear-gradient(135deg, rgba(255, 59, 63, .08), rgba(255, 255, 255, .04) 56%, rgba(255, 59, 63, .04)),
    rgba(255, 255, 255, .03);
}

.surface-page .profile-highlight:hover,
.profile-activity-link:hover {
  border-color: rgba(255, 59, 63, .34);
  background: var(--wc-primary-soft);
}

.pr-detail-card .activity-header {
  position: relative;
}

.comments-card .comment-form,
.comments-card .comment-row {
  position: relative;
  border-color: var(--wc-line);
}

.social-search-results {
  display: grid;
  gap: .9rem;
}

.athlete-search-grid {
  display: grid;
  gap: .75rem;
}

.athlete-search-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .9rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, rgba(255, 59, 63, .08), rgba(255, 255, 255, .035) 52%, rgba(255, 59, 63, .035)),
    rgba(255, 255, 255, .025);
}

.athlete-search-card .avatar-circle {
  width: 3rem;
  height: 3rem;
  background: #111827;
  color: #fff;
}

.athlete-search-main {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.athlete-search-main strong,
.athlete-search-main span {
  display: block;
}

.athlete-search-main span,
.athlete-search-main p,
.athlete-search-stats {
  margin: 0;
  color: var(--wc-muted);
  font-size: .88rem;
}

.athlete-search-main p {
  line-height: 1.45;
}

.athlete-search-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.athlete-search-stats span {
  display: inline-flex;
  width: fit-content;
  padding: .14rem .45rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  line-height: 1.35;
}

.athlete-search-action {
  margin: 0;
  align-self: center;
}

.athlete-search-action .btn {
  min-width: 7.6rem;
  min-height: 2.35rem;
}

.plate-calculator-card {
  display: grid;
  gap: 1rem;
}

.plate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, .55fr) minmax(8rem, .45fr) auto;
  gap: .8rem;
  align-items: end;
}

.plate-form label {
  display: grid;
  gap: .3rem;
  margin: 0;
}

.plate-form label > span {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 800;
}

.plate-result {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 59, 63, .28);
  border-radius: .5rem;
  background: rgba(255, 59, 63, .08);
}

.plate-result.is-warning {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .08);
}

.plate-result > div:first-child span,
.plate-equipment-grid strong {
  display: block;
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plate-result > div:first-child strong {
  display: block;
  margin-top: .15rem;
  color: var(--wc-ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 920;
}

.plate-result p,
.plate-equipment-grid p {
  margin: 0;
  color: var(--wc-muted);
}

.plate-visual-heading {
  color: var(--wc-ink);
  font-size: .92rem;
  font-weight: 900;
}

.plate-bar-visual {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(6.5rem, .62fr) minmax(7rem, 1fr);
  align-items: center;
  min-height: 8.5rem;
  padding: 1.2rem .8rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 59, 63, .22);
  border-radius: .5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .035)),
    rgba(255, 59, 63, .045);
}

.plate-bar-shaft {
  position: relative;
  display: grid;
  place-items: center;
  height: .58rem;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 45%, #475569 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 .45rem 1rem rgba(15, 23, 42, .18);
}

.plate-bar-shaft span {
  position: absolute;
  top: 1.05rem;
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.plate-sleeve {
  display: flex;
  align-items: center;
  min-width: 0;
}

.plate-sleeve-left {
  justify-content: flex-end;
}

.plate-sleeve-right {
  justify-content: flex-start;
}

.plate-sleeve::before,
.plate-sleeve::after {
  content: "";
  flex: 1 1 auto;
  height: .42rem;
  min-width: .3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5e7eb 0%, #94a3b8 55%, #475569 100%);
}

.plate-sleeve-left::after,
.plate-sleeve-right::before {
  display: none;
}

.plate-disc,
.plate-collar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: .22rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 .35rem .8rem rgba(15, 23, 42, .22);
}

.plate-disc {
  width: var(--plate-width, 1.2rem);
  height: var(--plate-height, 5.85rem);
  margin-inline: .1rem;
  border: 1px solid rgba(15, 23, 42, .28);
  color: #fff;
  font-size: .62rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(15, 23, 42, .45);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.plate-thickest {
  --plate-width: 1.75rem;
  --plate-height: 5.85rem;
}

.plate-thick {
  --plate-width: 1.55rem;
  --plate-height: 5.85rem;
}

.plate-medium {
  --plate-width: 1.32rem;
  --plate-height: 5.85rem;
}

.plate-thin {
  --plate-width: 1.08rem;
  --plate-height: 5.85rem;
}

.plate-thinnest {
  --plate-width: .82rem;
  --plate-height: 5.85rem;
}

.plate-change-lg {
  --plate-width: .78rem;
  --plate-height: 3.95rem;
}

.plate-change-md {
  --plate-width: .66rem;
  --plate-height: 3.45rem;
}

.plate-change-sm {
  --plate-width: .56rem;
  --plate-height: 3rem;
}

.plate-change-xs {
  --plate-width: .48rem;
  --plate-height: 2.65rem;
}

.plate-collar {
  width: .65rem;
  height: 3.1rem;
  margin-inline: .22rem;
  border: 1px solid rgba(71, 85, 105, .5);
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 45%, #64748b 100%);
}

.plate-red {
  background: linear-gradient(180deg, #fca5a5 0%, #dc2626 45%, #7f1d1d 100%);
}

.plate-blue {
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 45%, #1e3a8a 100%);
}

.plate-yellow {
  color: #1f2937;
  text-shadow: none;
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 45%, #92400e 100%);
}

.plate-green {
  background: linear-gradient(180deg, #86efac 0%, #16a34a 45%, #166534 100%);
}

.plate-white {
  color: #1f2937;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 50%, #94a3b8 100%);
}

.plate-gray {
  background: linear-gradient(180deg, #cbd5e1 0%, #64748b 50%, #334155 100%);
}

.plate-stack,
.plate-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .65rem;
}

.plate-stack > div,
.plate-equipment-grid > div {
  padding: .75rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.plate-stack strong,
.plate-stack span {
  display: block;
}

.plate-stack span {
  color: var(--wc-muted);
  font-size: .86rem;
}

.plate-warmup-card {
  margin-top: 1rem;
}

.plate-warmup-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.plate-warmup-card summary::-webkit-details-marker {
  display: none;
}

.plate-warmup-card summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  color: var(--wc-primary);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.plate-warmup-card[open] summary::after {
  content: "-";
}

.plate-warmup-card summary span {
  color: var(--wc-ink);
  font-size: 1.08rem;
  font-weight: 920;
}

.plate-warmup-card summary small {
  color: var(--wc-muted);
  font-size: .82rem;
  font-weight: 850;
}

.plate-warmup-body {
  margin-top: .9rem;
}

.plate-warmup-form {
  display: grid;
  grid-template-columns: minmax(5rem, .3fr) minmax(5rem, .3fr) auto;
  gap: .65rem;
  align-items: end;
  margin-bottom: .85rem;
}

.plate-warmup-form label {
  display: grid;
  gap: .3rem;
  margin: 0;
}

.plate-warmup-form label > span {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 900;
}

.plate-warmup-list {
  display: grid;
  gap: .65rem;
}

.plate-warmup-row {
  display: grid;
  grid-template-columns: minmax(5rem, .45fr) minmax(5.5rem, .45fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .78rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.plate-warmup-row span,
.plate-warmup-plates span {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 850;
}

.plate-warmup-row strong {
  display: block;
  margin-top: .08rem;
  color: var(--wc-ink);
  font-size: 1rem;
  font-weight: 920;
}

.plate-warmup-plates {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.plate-warmup-plates span {
  padding: .22rem .48rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  white-space: nowrap;
}

.tool-card {
  display: grid;
  gap: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.tool-tile {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  min-height: 12rem;
  align-items: stretch;
  overflow: hidden;
  margin: 0;
  border-color: rgba(20, 32, 51, .1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94)),
    var(--wc-card);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tool-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .22rem;
  background: linear-gradient(90deg, var(--wc-primary), rgba(255, 59, 63, .22));
}

.tool-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 59, 63, .34);
  box-shadow: var(--wc-shadow, 0 18px 44px rgba(20, 32, 51, .12));
}

.tool-tile-primary {
  grid-column: 1 / -1;
  min-height: 10rem;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: none;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 59, 63, .12), rgba(255, 255, 255, .96) 46%, rgba(248, 250, 252, .96)),
    var(--wc-card);
}

.tool-tile-primary .btn {
  align-self: end;
}

.tool-tile-body {
  display: grid;
  gap: .5rem;
  align-content: start;
  position: relative;
  z-index: 1;
}

.tool-tile-body span,
.tool-tile-body small {
  font-weight: 850;
}

.tool-tile-body span {
  width: fit-content;
  padding: .22rem .5rem;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 999px;
  background: var(--wc-primary-soft);
  color: #0b5ed7;
  font-size: .78rem;
  text-transform: uppercase;
}

.tool-tile-body strong {
  color: var(--wc-ink);
  font-size: 1.25rem;
  font-weight: 920;
}

.tool-tile-body small {
  color: var(--wc-muted);
  max-width: 42rem;
  font-size: .94rem;
  line-height: 1.5;
}

.tool-tile .btn {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.tool-tile.is-disabled {
  opacity: .68;
}

@media (max-width: 767.98px) {
  .tools-grid,
  .tool-tile-primary {
    grid-template-columns: 1fr;
  }
}

.page-heading-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .18em;
}

.page-heading-link:hover,
.page-heading-link:focus {
  color: var(--wc-primary);
  text-decoration: underline;
}

.tool-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, .35fr) minmax(8rem, .5fr) minmax(6rem, .35fr) auto;
  gap: .75rem;
  align-items: end;
}

.tool-form label {
  display: grid;
  gap: .3rem;
  margin: 0;
}

.tool-form label > span {
  color: var(--wc-muted);
  font-size: .8rem;
  font-weight: 900;
}

.pace-result-grid,
.pace-split-list {
  display: grid;
  gap: .65rem;
}

.pace-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pace-split-list {
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.pace-result-grid > div,
.pace-split-list > div,
.scaling-suggestion-list > div {
  padding: .8rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .045);
}

.pace-result-grid span,
.pace-split-list span,
.pace-result-grid small {
  display: block;
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 850;
}

.pace-result-grid strong,
.pace-split-list strong {
  display: block;
  margin-top: .08rem;
  color: var(--wc-ink);
  font-size: 1.3rem;
  font-weight: 920;
}

.scaling-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.scaling-helper-grid {
  display: grid;
  grid-template-columns: minmax(12rem, .45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.scaling-exercise-list,
.scaling-detail,
.scaling-suggestion-list {
  display: grid;
  gap: .65rem;
}

.scaling-exercise-list {
  max-height: 32rem;
  overflow: auto;
}

.scaling-exercise-list a {
  display: grid;
  gap: .15rem;
  padding: .72rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  color: var(--wc-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, .045);
}

.scaling-exercise-list a:hover,
.scaling-exercise-list a.active {
  border-color: rgba(255, 59, 63, .34);
  background: rgba(255, 59, 63, .08);
}

.scaling-exercise-list span,
.scaling-meta-row span {
  color: var(--wc-muted);
  font-size: .78rem;
  font-weight: 850;
}

.scaling-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.scaling-meta-row span {
  padding: .22rem .48rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.profile-link {
  color: inherit;
  font-weight: 820;
  text-decoration: none;
  text-underline-offset: .18em;
}

.profile-link:hover,
.profile-link:focus {
  color: var(--wc-primary);
  text-decoration: underline;
}

a.avatar-circle {
  text-decoration: none;
}

.social-feed {
  gap: .85rem;
}

.activity-card {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--wc-line);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, rgba(255, 59, 63, .16), rgba(255, 255, 255, .045) 48%, rgba(255, 59, 63, .055) 100%),
    var(--wc-card);
  box-shadow: var(--wc-shadow-sm, 0 14px 32px rgba(20, 32, 51, .08));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.activity-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 59, 63, .34);
}

.activity-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.activity-card > :not(.activity-card-link),
.activity-main {
  position: relative;
  z-index: 2;
}

.activity-card .reaction-row,
.activity-card .reaction-row *,
.activity-card .activity-avatar,
.activity-card .profile-link,
.activity-card .activity-title-link {
  position: relative;
  z-index: 3;
}

.activity-card:first-of-type {
  padding-top: 1rem;
  border-top: 1px solid var(--wc-line);
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .32rem;
  background: linear-gradient(180deg, var(--wc-primary), var(--wc-primary-strong, var(--wc-primary)));
}

.activity-pr::before {
  background: linear-gradient(180deg, var(--wc-primary), #e11d48);
}

.activity-benchmark::before {
  background: linear-gradient(180deg, var(--wc-primary-strong, var(--wc-primary)), var(--wc-primary));
}

.activity-card .activity-avatar {
  width: 3rem;
  height: 3rem;
  margin-top: 0;
  border: 2px solid rgba(255, 255, 255, .88);
  background: #111827;
  color: #fff;
  font-size: .88rem;
  box-shadow: 0 10px 22px rgba(20, 32, 51, .16);
}

.activity-meta {
  gap: .45rem;
  margin-bottom: .28rem;
}

.activity-meta span::before,
.activity-meta .activity-type::before {
  content: none;
}

.activity-meta .activity-type {
  padding: .16rem .48rem;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--wc-primary-strong, var(--wc-primary));
  font-size: .7rem;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0;
}

.activity-main h3 {
  margin-top: .12rem;
  font-size: 1.08rem;
  line-height: 1.38;
}

.activity-title-link {
  color: var(--wc-ink);
  text-decoration: none;
}

.activity-title-link:hover,
.activity-title-link:focus {
  color: var(--wc-primary);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.activity-inline-note {
  margin: .28rem 0 0;
  color: var(--wc-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.activity-card .reaction-row {
  gap: .35rem;
  margin-top: .7rem;
}

.activity-card .reaction-button {
  min-height: 2rem;
  padding: .22rem .52rem;
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, .06);
  color: var(--wc-ink);
}

.activity-card .reaction-button:hover,
.activity-card .reaction-button.active {
  border-color: var(--wc-primary);
  background: var(--wc-primary-soft);
  color: var(--wc-primary-strong, var(--wc-primary));
}

@media (max-width: 575.98px) {
  .app-surface,
  .surface-page {
    gap: .85rem;
  }

  .app-surface > .page-heading,
  .surface-page > .page-heading {
    padding: .95rem;
  }

  .activity-card {
    padding: .85rem .85rem .9rem;
    gap: .7rem;
  }

  .activity-card .activity-avatar {
    width: 2.55rem;
    height: 2.55rem;
  }

  .activity-main h3 {
    font-size: 1rem;
  }

  .athlete-search-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    padding: .85rem;
  }

  .athlete-search-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .athlete-search-action .btn {
    width: 100%;
  }

  .plate-form {
    grid-template-columns: 1fr;
  }

  .plate-warmup-row {
    grid-template-columns: minmax(4.5rem, .6fr) minmax(5.5rem, .7fr);
  }

  .plate-warmup-form {
    grid-template-columns: 1fr 1fr;
  }

  .plate-warmup-form .btn {
    grid-column: 1 / -1;
  }

  .plate-warmup-card summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plate-warmup-card summary small {
    grid-row: 2;
  }

  .plate-warmup-card summary::after {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .plate-warmup-plates {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tool-form,
  .scaling-search-form,
  .scaling-helper-grid,
  .pace-result-grid {
    grid-template-columns: 1fr;
  }

  .plate-bar-visual {
    grid-template-columns: minmax(5.5rem, 1fr) minmax(4.5rem, .55fr) minmax(5.5rem, 1fr);
    min-height: 7.4rem;
    padding-inline: .45rem;
  }

  .plate-disc {
    width: calc(var(--plate-width, 1.1rem) * .88);
    height: calc(var(--plate-height, 5.25rem) * .88);
    margin-inline: .05rem;
    font-size: .54rem;
  }

  .plate-collar {
    width: .5rem;
    height: 2.65rem;
    margin-inline: .12rem;
  }
}

.brand-icon.wod-logo {
  display: block;
  flex: 0 0 auto;
  background: transparent;
  border-radius: .6rem;
  color: var(--wc-logo-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 28px rgba(255, 75, 85, .22);
}

.brand-icon.wod-logo,
.wod-logo {
  overflow: visible;
}

.wod-logo-bg {
  fill: var(--wc-logo-bg);
}

.wod-logo-bar,
.wod-logo-bar-front {
  stroke: var(--wc-logo-plate);
}

.wod-logo-plate {
  fill: var(--wc-logo-plate);
}

.wod-logo-w {
  fill: var(--wc-logo-accent);
}
