@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #0d1012;
  --surface: #171b1e;
  --surface2: #202529;
  --text: #f5f7f5;
  --muted: #929b98;
  --lime: #c8ff47;
  --line: #2a3033;
  --danger: #ff6b6b;
  --bs-primary: #c8ff47;
  --bs-primary-rgb: 200, 255, 71;
  --bs-body-bg: #0d1012;
  --bs-body-color: #f5f7f5;
  --bs-border-color: #2a3033;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px "DM Sans",
    sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(
      circle at 10% 0%,
      rgba(200, 255, 71, 0.06),
      transparent 28rem
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(75, 125, 255, 0.04),
      transparent 30rem
    );
}
a {
  color: var(--lime);
  text-decoration: none;
}
header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(13, 16, 18, 0.92);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.app-container {
  max-width: 920px;
}
.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 20px;
}
.brand span {
  color: var(--lime);
}
.brand.big {
  font-size: 29px;
}
.site-logo {
  display: block;
  width: auto;
  max-width: 100%;
}
.header-logo {
  width: auto;
  height: 44px;
}
.auth-logo {
  width: 190px;
  height: auto;
  margin: 0 auto;
}
.install-logo {
  width: 190px;
  height: auto;
  margin-bottom: 24px;
}
.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #10130d;
  font-weight: 800;
}
.avatar {
  width: 38px;
  height: 38px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.running-workout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 255, 71, 0.28);
  border-radius: 12px;
  background: rgba(200, 255, 71, 0.07);
  color: var(--text);
  transition: all 0.25s ease;
}
.running-workout:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 71, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 71, 0.5);
  animation: live-pulse 1.8s infinite;
}
.running-copy {
  display: grid;
  line-height: 1.1;
}
.running-copy small {
  color: var(--lime);
  font-size: 9px;
  text-transform: uppercase;
}
.running-copy b {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.running-workout strong {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--lime);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(200, 255, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 71, 0);
  }
}
.admin-shortcut {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.25s ease;
}
.admin-shortcut:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: rotate(30deg);
}
main {
  max-width: 920px;
  margin: auto;
  padding: 38px 20px 110px;
}
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.narrow,
.auth {
  max-width: 570px;
  margin: auto;
}
.card {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 45px #0003;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 71, 0.28);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}
.auth {
  width: 100%;
  text-align: center;
}
.auth form,
.auth label {
  text-align: left;
}
.auth h1 {
  margin-top: 32px;
}
h1 {
  font-size: clamp(30px, 6vw, 46px);
  letter-spacing: -1.7px;
  line-height: 1.05;
  margin: 8px 0 12px;
}
h2 {
  font-size: 21px;
  margin: 7px 0;
}
p {
  color: #c4cbc8;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-weight: 800;
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 1.7px;
  margin-bottom: 8px;
}
label {
  display: block;
  color: #c7ceca;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}
input,
select {
  width: 100%;
  background: #0f1214;
  color: #fff;
  border: 1px solid #343b3e;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--lime);
}
button,
.button {
  border: 0;
  border-radius: 11px;
  padding: 14px 20px;
  background: var(--lime);
  color: #11160b;
  font: 700 15px inherit;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  --bs-btn-color: #11160b;
  --bs-btn-bg: var(--lime);
  --bs-btn-border-color: var(--lime);
  --bs-btn-hover-color: #11160b;
  --bs-btn-hover-bg: #d5ff71;
  --bs-btn-hover-border-color: #d5ff71;
  --bs-btn-active-color: #11160b;
  --bs-btn-active-bg: #b8ed3e;
  --bs-btn-active-border-color: #b8ed3e;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(200, 255, 71, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 255, 71, 0.25);
}
form > button,
.auth button {
  width: 100%;
  margin-top: 18px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.alert {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  background: #253622;
  color: #dfffcd;
}
.alert.error {
  background: #3a2020;
  color: #ffd3d3;
}
fieldset {
  border: 0;
  margin: 22px 0;
  padding: 0;
}
legend {
  font-weight: 700;
  margin-bottom: 10px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checks label {
  margin: 0;
}
.checks input {
  display: none;
}
.checks span {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.checks input:checked + span {
  border-color: var(--lime);
  color: var(--lime);
  background: #c8ff4710;
}
.today {
  margin-top: 30px;
  padding: 30px;
  background: radial-gradient(circle at 100% 0, #35421f, var(--surface) 55%);
}
.today h2 {
  font-size: 33px;
  margin: 18px 0;
}
.today.is-running {
  border-color: rgba(200, 255, 71, 0.32);
  background: radial-gradient(circle at 100% 0, #3b4c20, var(--surface) 58%);
}
.continue-workout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.continue-workout i {
  transition: transform 0.2s ease;
}
.continue-workout:hover i {
  transform: translateX(4px);
}
.pill,
.muscle,
.day {
  font-size: 11px;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 1px;
}
.stats {
  display: flex;
  gap: 30px;
  color: var(--muted);
  margin: 25px 0;
}
.stats b {
  color: #fff;
}
.weekly {
  margin-top: 24px;
  padding: 20px 5px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.weekly progress {
  grid-column: 1/-1;
  width: 100%;
  accent-color: var(--lime);
  height: 8px;
}
.cards {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 0;
  margin-left: 0;
}
.row > div {
  flex: 1;
}
.row p {
  margin: 5px 0;
}
.row form button {
  margin: 0;
  width: auto;
}
.day {
  min-width: 70px;
}
.exercise {
  margin: 20px 0;
}
.workout-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.workout-elapsed {
  display: grid;
  min-width: 145px;
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.workout-elapsed small {
  color: var(--muted);
}
.workout-elapsed strong {
  color: var(--lime);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.exercise-media {
  overflow: hidden;
  margin: 16px 0;
  border-radius: 14px;
  background: #080a0b;
  aspect-ratio: 16 / 9;
}
.exercise-media video,
.exercise-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exercise-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.prescription {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  background: #0e1113;
  padding: 13px;
  border-radius: 9px;
  margin: 18px 0;
  font-size: 13px;
}
.hint {
  color: var(--lime);
}
.set-form {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 120px 44px;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.workout-summary {
  max-width: 760px;
  margin: 0 auto;
}
.summary-celebration {
  padding: 20px 0 30px;
  text-align: center;
}
.summary-celebration > span {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 24px;
  background: var(--lime);
  color: #151a0d;
  box-shadow: 0 0 50px rgba(200, 255, 71, 0.25);
  font-size: 31px;
  transform: rotate(-5deg);
}
.summary-celebration h1 {
  margin-top: 5px;
}
.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.summary-stats article {
  display: grid;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.summary-stats i {
  margin-bottom: 8px;
  color: var(--lime);
}
.summary-stats b {
  font-size: 18px;
}
.summary-stats span {
  color: var(--muted);
  font-size: 10px;
}
.record-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(200, 255, 71, 0.4);
  border-radius: 15px;
  background: rgba(200, 255, 71, 0.08);
  color: var(--lime);
}
.record-banner > i {
  font-size: 25px;
}
.record-banner div {
  display: grid;
}
.record-banner span {
  color: #d6ddca;
  font-size: 12px;
}
.summary-exercises {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.summary-exercise > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.record-pill {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}
.summary-set-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.summary-set-list > span {
  display: grid;
  min-width: 105px;
  padding: 10px;
  border-radius: 10px;
  background: #0d1012;
}
.summary-set-list > span > small {
  margin-top: 5px;
  font-size: 9px;
}
.effort-facil {
  color: #7fdaff;
}
.effort-normal {
  color: var(--lime);
}
.effort-pesado {
  color: #ff9c82;
}
.summary-done {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.history-details {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}
.history-details:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.set-form label {
  margin: 0;
}
.set-form input {
  padding: 9px;
}
.set-form button {
  padding: 11px;
  margin: 0;
}
.set-form.done {
  margin: 5px -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-color: rgba(200, 255, 71, 0.2);
  border-radius: 10px;
  background: rgba(200, 255, 71, 0.06);
}
.set-form.done > b,
.set-form.done > b {
  color: var(--lime);
}
.set-form.done button {
  border: 1px solid rgba(200, 255, 71, 0.55);
  background: transparent;
  color: var(--lime);
  box-shadow: none;
}
.set-form.done button:hover {
  border-color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
}
.finish {
  margin-top: 25px;
}
.timer {
  position: fixed;
  inset: 0;
  background: #0c0f0fea;
  z-index: 20;
  display: grid;
  place-content: center;
  text-align: center;
}
.timer[hidden] {
  display: none;
}
.timer strong {
  font-size: 72px;
  font-variant-numeric: tabular-nums;
}
.timer small {
  color: var(--muted);
}
.timer p {
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 2px;
}
.timer button {
  margin-top: 35px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}
.timer .notification-permission {
  margin-top: 24px;
  border-color: rgba(200, 255, 71, 0.45);
  color: var(--lime);
}
.timer .notification-permission + [data-skip-rest] {
  margin-top: 10px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: #14181af5;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  z-index: 10;
}
.bottom-nav a {
  position: relative;
  width: min(18%, 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #b0b7b4;
  font-size: 21px;
  gap: 4px;
  border-radius: 14px 14px 0 0;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}
.bottom-nav a::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--lime);
  content: "";
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.bottom-nav a:hover {
  background: rgba(200, 255, 71, 0.06);
  color: #e5ffc0;
  transform: translateY(-3px);
}
.bottom-nav a:hover i {
  transform: scale(1.1);
}
.bottom-nav a.active {
  background: linear-gradient(to top, rgba(200, 255, 71, 0.1), transparent);
  color: var(--lime);
}
.bottom-nav a.active::before {
  width: 42px;
}
.bottom-nav a i {
  transition: transform 0.25s ease;
}
.bottom-nav a.active i {
  filter: drop-shadow(0 0 8px rgba(200, 255, 71, 0.35));
  transform: translateY(-1px);
}
.bottom-nav small {
  font-size: 10px;
}
.search {
  margin: 20px 0;
}
.exercise-filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 -4px 14px;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.exercise-filters button {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
  transition: all 0.2s ease;
}
.exercise-filters button span {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #0d1012;
  color: #aab2ae;
  font-size: 9px;
}
.exercise-filters button:hover {
  border-color: rgba(200, 255, 71, 0.5);
  color: #11160b;
  transform: translateY(-2px);
}
.exercise-filters button:hover span {
  background: rgba(13, 16, 18, 0.15);
  color: #11160b;
}
.exercise-filters button.active {
  border-color: var(--lime);
  background: var(--lime);
  color: #11160b;
}
.exercise-filters button.active span {
  background: rgba(13, 16, 18, 0.15);
  color: #11160b;
}
.filter-result {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.filter-result b {
  color: var(--lime);
}
.exercise-list {
  display: grid;
  align-items: center;
  min-height: 220px;
  padding: 18px;
  grid-template-columns: 240px minmax(0, 1fr) 50px;
  gap: 28px;
}
.exercise-card-media {
  overflow: hidden;
  width: 240px;
  height: 184px;
  border-radius: 15px;
  background: #eef0ed;
}
.exercise-card-media img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.exercise-list:hover .exercise-card-media img {
  transform: scale(1.04);
}
.exercise-card-media > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #9ba09b;
  font-size: 45px;
}
.exercise-card-copy {
  min-width: 0;
}
.exercise-card-copy .muscle {
  display: block;
  margin-bottom: 15px;
  font-size: 12px;
}
.exercise-card-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.2;
}
.exercise-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.date {
  background: #0c0f10;
  border-radius: 10px;
  width: 55px;
  height: 55px;
  display: grid !important;
  place-content: center;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
}
.date small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.status {
  color: var(--lime);
  font-size: 12px;
}
.empty {
  text-align: center;
  margin-top: 25px;
}
.profile {
  text-align: center;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  font-size: 30px;
  margin: auto;
}
.profile hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.profile dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.profile dt {
  color: var(--muted);
}
.profile dd {
  font-weight: 700;
}
.secondary {
  display: block;
  background: var(--surface2);
  color: #fff;
  margin-top: 22px;
}
.danger-link {
  display: block;
  color: var(--danger);
  margin: 25px;
}
.install {
  max-width: 620px;
}
.install pre {
  overflow: auto;
  background: #090b0c;
  padding: 18px;
  border-radius: 10px;
  color: var(--lime);
  line-height: 1.6;
}
.install button {
  margin-top: 20px;
}
code {
  color: var(--lime);
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.create-workout-button {
  width: auto;
  white-space: nowrap;
  margin-bottom: 8px;
}
.workout-library {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workout-card {
  min-height: 128px;
}
.workout-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(200, 255, 71, 0.12);
  color: var(--lime);
  font-size: 22px;
  transition: transform 0.3s ease;
}
.workout-card:hover .workout-icon {
  transform: rotate(-7deg) scale(1.08);
}
.workout-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workout-card-actions form,
.workout-card-actions button {
  width: auto;
  margin: 0;
}
.workout-card-actions .delete-workout {
  display: grid;
  width: 45px;
  height: 45px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.workout-card-actions .view-workout {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.workout-card-actions .view-workout:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 71, 0.08);
  color: var(--lime);
  transform: translateY(-2px);
}
.workout-card-actions .delete-workout:hover {
  border-color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  transform: translateY(-2px);
}
.workout-builder {
  --bs-offcanvas-width: min(620px, 100vw);
  background: #111517;
  border-left: 1px solid var(--line) !important;
}
.last-performance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 17px 0;
  padding: 14px;
  border: 1px solid rgba(200, 255, 71, 0.18);
  border-radius: 12px;
  background: rgba(200, 255, 71, 0.045);
}
.last-performance > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.last-performance > div:first-child i {
  color: var(--lime);
  font-size: 20px;
}
.last-performance > div:first-child span {
  display: grid;
}
.last-performance small,
.plan-history > small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.5px;
}
.performance-sets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.performance-sets > span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #0d1012;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.performance-sets > span small {
  color: var(--lime);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
}
.back-link:hover {
  color: var(--lime);
}
.plan-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.plan-detail-heading form button {
  width: auto;
  white-space: nowrap;
}
.plan-exercise-list {
  display: grid;
  gap: 12px;
}
.plan-exercise-card {
  display: grid;
  align-items: center;
  grid-template-columns: 34px 64px minmax(180px, 1fr) minmax(210px, auto);
  gap: 15px;
}
.plan-exercise-card > img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.plan-exercise-placeholder {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 22px;
}
.exercise-order {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 255, 71, 0.1);
  color: var(--lime);
  font-weight: 800;
}
.plan-exercise-info h2 {
  margin: 3px 0;
}
.plan-exercise-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.plan-history {
  display: grid;
  justify-items: end;
  gap: 7px;
}
.no-history {
  color: var(--muted);
  font-size: 12px;
}
.workout-builder .offcanvas-header {
  padding: 28px 30px 16px;
  border-bottom: 1px solid var(--line);
}
.builder-form {
  padding: 10px 30px 100px;
}
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
}
.search-box input {
  padding-left: 42px;
}
.builder-count {
  margin: 20px 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.builder-count b {
  color: var(--lime);
}
.builder-exercises {
  display: grid;
  gap: 10px;
}
.builder-exercise {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}
.builder-exercise.selected {
  border-color: rgba(200, 255, 71, 0.55);
  background: rgba(200, 255, 71, 0.05);
}
.exercise-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 15px;
  cursor: pointer;
}
.exercise-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.exercise-choice > span:last-child {
  display: grid;
  gap: 3px;
}
.exercise-choice small {
  color: var(--muted);
  font-weight: 400;
}
.choice-check {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #3b4346;
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.25s ease;
}
.selected .choice-check {
  background: var(--lime);
  border-color: var(--lime);
  color: #10140c;
  transform: rotate(45deg);
}
.exercise-settings {
  display: grid;
  max-height: 0;
  padding: 0 15px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.25s ease;
}
.selected .exercise-settings {
  max-height: 130px;
  padding: 0 15px 15px;
  opacity: 1;
}
.exercise-settings label {
  margin: 0;
  font-size: 10px;
}
.exercise-settings input {
  padding: 8px;
  margin-top: 5px;
}
.builder-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 30px;
  background: rgba(17, 21, 23, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.builder-footer button {
  width: 100%;
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s ease var(--reveal-delay),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.reveal.revealed:hover {
  transform: translateY(-3px);
}
.app-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(200, 255, 71, 0.4);
  border-radius: 999px;
  background: rgba(26, 34, 23, 0.95);
  color: #efffce;
  box-shadow: 0 15px 40px #0008;
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
  transition: all 0.3s ease;
}
.app-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.app-toast.is-danger {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(55, 27, 27, 0.96);
  color: #ffd1d1;
}
.admin-stats {
  display: grid;
  margin: 30px 0 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.admin-stats article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(28, 33, 36, 0.75);
}
.admin-stats i {
  color: var(--lime);
  font-size: 22px;
}
.admin-stats div {
  display: grid;
}
.admin-stats b {
  font-size: 22px;
}
.admin-stats span {
  color: var(--muted);
  font-size: 12px;
}
.admin-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(330px, 0.8fr) minmax(400px, 1.2fr);
  gap: 18px;
}
.admin-form-card {
  position: sticky;
  top: 90px;
}
.form-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form-heading h2 {
  margin: 0;
}
.admin-form textarea {
  resize: vertical;
}
.form-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}
.input-icon {
  position: relative;
}
.input-icon i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--lime);
  transform: translateY(-50%);
}
.input-icon input {
  padding-left: 42px;
}
.cancel-edit {
  display: block;
  padding: 13px;
  text-align: center;
}
.media-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.upload-field {
  min-width: 0;
}
.upload-field > span {
  display: block;
  margin-bottom: 7px;
}
.upload-field > span i {
  margin-right: 5px;
  color: var(--lime);
}
.upload-field > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.media-preview {
  display: grid;
  overflow: hidden;
  min-height: 120px;
  margin-top: 9px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed #465054;
  border-radius: 13px;
  background: #101315;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.media-preview:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200, 255, 71, 0.04);
}
.media-preview > i {
  font-size: 25px;
}
.media-preview img,
.media-preview video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.exercise-letter img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.library-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.library-toolbar .search-box {
  flex: 1;
}
.library-toolbar > span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.admin-exercise-list {
  display: grid;
  gap: 8px;
}
.admin-exercise-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: all 0.25s ease;
}
.admin-exercise-item:hover {
  border-color: rgba(200, 255, 71, 0.3);
  background: var(--surface2);
  transform: translateX(3px);
}
.exercise-letter {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(200, 255, 71, 0.1);
  color: var(--lime);
  font-size: 18px;
  font-weight: 800;
}
.admin-exercise-item > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.admin-exercise-item h3 {
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-exercise-item p {
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-actions {
  display: flex;
  gap: 6px;
}
.item-actions a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.item-actions a:hover {
  border-color: var(--lime);
  color: var(--lime);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
@media (max-width: 560px) {
  main {
    padding-top: 26px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .today {
    padding: 23px;
  }
  .row {
    align-items: flex-start;
  }
  .row form button {
    padding: 10px;
  }
  .status {
    display: none;
  }
  .exercise {
    padding: 18px;
  }
  .set-form {
    grid-template-columns: 20px 1fr 1fr 40px;
  }
  .set-form label:nth-of-type(3) {
    grid-column: 2 / 4;
  }
  .set-form button {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .prescription {
    gap: 10px;
  }
  .exercise-list {
    min-height: 145px;
    padding: 12px;
    grid-template-columns: 112px minmax(0, 1fr) 38px;
    gap: 12px;
  }
  .exercise-card-media {
    width: 112px;
    height: 112px;
    border-radius: 11px;
  }
  .exercise-card-copy .muscle {
    margin-bottom: 8px;
    font-size: 9px;
  }
  .exercise-card-copy h2 {
    margin-bottom: 5px;
    font-size: 16px;
  }
  .exercise-card-copy p {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .exercise-open {
    width: 38px;
    height: 38px;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .create-workout-button {
    width: 100%;
  }
  .workout-library {
    grid-template-columns: 1fr;
  }
  .workout-card {
    align-items: center;
  }
  .workout-builder .offcanvas-header,
  .builder-form {
    padding-right: 18px;
    padding-left: 18px;
  }
  .exercise-settings {
    grid-template-columns: repeat(2, 1fr);
  }
  .selected .exercise-settings {
    max-height: 220px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-card {
    position: static;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .running-copy {
    display: none;
  }
  .running-workout {
    padding: 7px 9px;
  }
  .running-workout strong {
    padding-left: 7px;
    font-size: 11px;
  }
  .workout-title-row {
    align-items: stretch;
    flex-direction: column;
  }
  .workout-elapsed {
    margin-bottom: 5px;
  }
  .media-upload-grid {
    grid-template-columns: 1fr;
  }
  .last-performance {
    align-items: flex-start;
    flex-direction: column;
  }
  .performance-sets {
    justify-content: flex-start;
  }
  .plan-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .plan-detail-heading form button {
    width: 100%;
  }
  .plan-exercise-card {
    grid-template-columns: 30px 52px 1fr;
    padding: 16px;
  }
  .plan-exercise-card > img,
  .plan-exercise-placeholder {
    width: 52px;
    height: 52px;
  }
  .plan-history {
    grid-column: 2 / -1;
    justify-items: start;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.exercise-open {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.exercise-list:hover .exercise-open {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateX(3px);
}
.exercise-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  margin-bottom: 52px;
}
.exercise-detail-media {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #080a0b;
}
.exercise-detail-media video,
.exercise-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exercise-media-empty {
  display: grid;
  height: 100%;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}
.exercise-media-empty i {
  color: var(--lime);
  font-size: 52px;
  opacity: 0.55;
}
.exercise-detail-copy h1 {
  margin-top: 12px;
}
.exercise-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}
.exercise-meta > span {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.exercise-meta i {
  margin-bottom: 8px;
  color: var(--lime);
}
.exercise-meta small {
  color: var(--muted);
  font-size: 10px;
}
.exercise-meta b {
  margin-top: 2px;
  font-size: 13px;
}
.execution-copy {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.execution-copy p {
  color: #bec6c2;
  line-height: 1.7;
}
.execution-copy .content-attribution {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}
.exercise-progress-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.exercise-records {
  display: flex;
  gap: 9px;
}
.exercise-records > span {
  display: grid;
  min-width: 125px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.exercise-records small {
  color: var(--muted);
  font-size: 9px;
}
.exercise-records b {
  color: var(--lime);
}
.exercise-history-list {
  display: grid;
  gap: 10px;
}
.exercise-history-session {
  display: grid;
  align-items: center;
  grid-template-columns: 60px 1fr 36px;
  gap: 16px;
}
.history-date {
  display: grid;
  justify-items: center;
  padding-right: 15px;
  border-right: 1px solid var(--line);
}
.history-date b {
  font-size: 23px;
}
.history-date span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}
.history-date small {
  color: var(--muted);
  font-size: 9px;
}
.history-session-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-session-sets > span {
  display: grid;
  min-width: 115px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #0d1012;
}
.history-session-sets small {
  color: var(--muted);
  font-size: 8px;
}
.history-session-sets b {
  font-size: 12px;
}
.history-session-sets em {
  margin-top: 3px;
  font-size: 9px;
  font-style: normal;
}
.exercise-history-session > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}
.exercise-history-session > a:hover {
  border-color: var(--lime);
  color: var(--lime);
}
@media (max-width: 700px) {
  .exercise-detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .exercise-detail-media,
  .exercise-media-empty {
    min-height: 250px;
  }
  .exercise-progress-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .exercise-records > span {
    min-width: 0;
    flex: 1;
  }
  .exercise-history-session {
    grid-template-columns: 48px 1fr;
    padding: 15px;
  }
  .exercise-history-session > a {
    display: none;
  }
}
