:root {
  --bg: #eef8f7;
  --screen: #f6fbfc;
  --ink: #101820;
  --muted: #6f7f8c;
  --line: rgba(16, 24, 32, .08);
  --card: rgba(255, 255, 255, .86);
  --blue: #2d7587;
  --mint: #cfeae6;
  --purple: #7a67d8;
  --lilac: #dcdcff;
  --green: #9fc46b;
  --yellow: #ffc457;
  --pink: #fb3b69;
  --shadow: 0 18px 44px rgba(25, 56, 64, .12);
  --radius: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body.lify-app {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(255,255,255,.9), transparent 24rem),
    linear-gradient(135deg, #f4fbfa, #d7eeeb 52%, #edf0fb);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100dvh;
}

.web-app {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(246,251,252,.98), rgba(246,251,252,.92));
  box-shadow: 0 30px 80px rgba(45, 117, 135, .12);
}

.web-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 10%, rgba(122, 103, 216, .13), transparent 15rem),
    radial-gradient(circle at 2% 34%, rgba(45, 117, 135, .12), transparent 14rem);
}

.app-view {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 18px 104px;
}

.app-view.is-active {
  display: block;
  animation: lifyEnter .26s ease both;
}

@keyframes lifyEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 18px 14px;
  align-items: center;
  margin: -22px -18px 18px;
  padding: max(22px, env(safe-area-inset-top)) 18px 22px;
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle at 85% 8%, rgba(122,103,216,.16), transparent 12rem),
    linear-gradient(135deg, #f9ffff, #e4f4f1);
  box-shadow: 0 18px 42px rgba(45, 117, 135, .1);
}

.hero-copy {
  grid-column: 1 / -1;
}

.hero-copy p,
.screen-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.profile-greeting {
  display: flex;
  align-items: center;
}

.profile-greeting span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-greeting strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 24px rgba(16, 24, 32, .08);
}

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

.purple-button {
  color: #fff;
  background: var(--purple);
}

.progress-dashboard {
  display: grid;
  gap: 12px;
}

.calorie-card,
.weight-card,
.mini-actions article,
.meal-card,
.recipe-card,
.recipe-hero,
.ai-suggest,
.exercise-stage,
.timer-card,
.timeline-card {
  border: 1px solid rgba(255,255,255,.74);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.calorie-card {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
}

.calorie-card span,
.weight-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.calorie-card strong {
  display: block;
  margin-top: 3px;
  font-size: 45px;
  line-height: .98;
  letter-spacing: -.05em;
}

.calorie-card small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0;
}

.calorie-ring {
  position: relative;
  display: grid;
  place-items: center;
}

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

.calorie-ring circle {
  fill: none;
  stroke: rgba(45, 117, 135, .16);
  stroke-width: 10;
}

.calorie-ring .ring-progress {
  stroke: var(--blue);
  stroke-dasharray: 170 220;
  stroke-linecap: round;
  transition: stroke-dasharray .3s ease;
}

.calorie-ring b {
  position: absolute;
  display: grid;
  place-items: center;
  color: #26323b;
  font-size: 16px;
  font-weight: 950;
}

.calorie-ring small {
  margin: 1px 0 0;
  color: #78858d;
  font-size: 11px;
  font-weight: 850;
}

.weight-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
}

.weight-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.weight-card strong {
  font-size: 28px;
  line-height: 1;
}

.weight-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.weight-card label {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: center;
}

.weight-card label span {
  color: #33424c;
  font-size: 14px;
  font-weight: 850;
}

.weight-card input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #eef7f6;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  outline: none;
}

.weight-progress,
.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 32, .08);
}

.weight-progress span,
.mini-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #62cfc8);
  transition: width .3s ease;
}

.macro-row,
.mini-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.macro-row {
  grid-template-columns: repeat(3, 1fr);
}

.macro-row article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 8px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 20px rgba(16, 24, 32, .05);
}

.macro-row i {
  grid-row: 1 / 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #fff0d8;
  font-style: normal;
}

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

.macro-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.macro-row strong {
  color: #202b32;
  font-size: 12px;
  font-weight: 950;
}

.mini-actions {
  grid-template-columns: 1fr 1fr;
}

.mini-actions article {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 16px;
  border-radius: 24px;
}

.mini-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mini-actions strong {
  font-size: 30px;
}

.mini-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.section-title,
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 12px;
}

.section-title h2,
.screen-heading,
.view-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 8vw, 40px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -.045em;
}

.section-title h2 {
  font-size: 22px;
}

.section-title button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 950;
}

.meal-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 28px;
  background: #ccecf4;
}

.meal-card.lunch {
  background: #dcdcff;
}

.meal-card::before,
.recipe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background:
    radial-gradient(ellipse at 84% 12%, rgba(255,255,255,.78), transparent 7rem),
    repeating-linear-gradient(150deg, rgba(255,255,255,.24), rgba(255,255,255,.24) 10px, transparent 10px, transparent 24px);
}

.meal-card > * {
  position: relative;
  z-index: 1;
}

.meal-card-head,
.meal-item {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 12px;
  align-items: center;
}

.meal-icon,
.meal-item > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  font-size: 20px;
}

.meal-card strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
}

.meal-card small {
  display: block;
  color: #60717b;
  font-size: 12px;
  font-weight: 850;
}

.round-action,
.check-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  box-shadow: 0 12px 22px rgba(45, 117, 135, .22);
}

.round-action.is-added {
  background: var(--green);
}

.round-action.purple {
  background: #69649b;
}

.meal-item {
  margin-top: 12px;
}

.meal-item b {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.check-button {
  color: #22313a;
  background: rgba(255,255,255,.82);
  font-size: 18px;
}

.check-button.is-done,
.check-button.dark {
  color: #fff;
  background: #142229;
}

.meal-progress {
  height: 7px;
  margin: 14px 0 8px 58px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
}

.meal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.meal-progress.purple span {
  background: #69649b;
}

.meal-card p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 18px 0 15px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 26px rgba(16, 24, 32, .06);
}

.search-box svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #80909b;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.recipe-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -18px 18px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.recipe-cats::-webkit-scrollbar {
  display: none;
}

.recipe-cats button {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 70px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 950;
}

.recipe-cats span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #d9ffd5;
  font-size: 25px;
}

.recipe-cats .is-active span {
  color: #fff;
  background: var(--purple);
}

.exercise-cats span {
  background: #d9f8ee;
}

.exercise-cats .is-active span {
  background: var(--blue);
}

.recipe-list {
  display: grid;
  gap: 14px;
}

.recipe-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 26px;
}

.recipe-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
}

.recipe-card strong,
.ai-suggest strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.recipe-card span,
.ai-suggest p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.recipe-actions {
  display: grid;
  gap: 8px;
}

.recipe-actions button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #eef7f6;
  font-weight: 950;
}

.recipe-actions .is-favorite {
  color: #fff;
  background: var(--pink);
}

.recipe-actions .is-added {
  color: #fff;
  background: #31b48f;
}

.exercise-card img {
  object-position: top center;
  background: #eef7f6;
}

.recipe-hero {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 26px 22px;
  border-radius: 34px;
  background: #c6b5ff;
}

.ai-suggest {
  margin-top: 12px;
  padding: 18px;
  border-radius: 24px;
}

.view-header.centered {
  justify-content: center;
  text-align: center;
}

.planner-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.exercise-stage {
  position: relative;
  overflow: hidden;
  min-height: 456px;
  padding: 12px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.18)),
    #d9e0df;
}

.jump-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.jump-stats span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  color: #101820;
  font-size: 13px;
  font-weight: 850;
}

.jump-stats span:first-child {
  color: #fff;
  background: #0b0b0d;
}

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

.exercise-stage img {
  display: block;
  width: min(86%, 245px);
  height: 330px;
  margin: 10px auto 0;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 28px 26px rgba(16,24,32,.16));
}

.rpm-scale {
  display: flex;
  justify-content: space-between;
  margin: 2px 6px 8px;
  font-size: 11px;
  font-weight: 850;
}

.intensity-bar {
  position: relative;
  height: 36px;
  margin: 0 10px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffb9b8, #eff5f1 46%, #bdded8 58%, #c6c7cb);
}

.intensity-bar i {
  position: absolute;
  left: 30%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #0b0b0d;
}

.pause-button {
  position: absolute;
  right: 14px;
  bottom: 20px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #090b0c;
  font-size: 17px;
}

.timer-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 28px;
}

.timer-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.round-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.round-picker button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #6b7780;
  background: #f1f7f6;
  font-size: 18px;
  font-weight: 900;
}

.round-picker .is-active {
  color: #fff;
  background: #050607;
}

.timer-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.timer-card li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
}

.timer-card small {
  color: #64727b;
  font-weight: 850;
}

.start-workout {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--mint);
  font-weight: 950;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.week-strip button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  color: #8b99a2;
  font-weight: 950;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.week-strip button:active,
.task-item:active,
.round-picker button:active,
.recipe-actions button:active,
.app-nav button:active,
.mini-actions button:active,
.round-action:active {
  transform: scale(.96);
}

.week-strip span {
  font-size: 11px;
}

.week-strip b {
  font-size: 14px;
}

.week-strip .is-today {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(45,117,135,.2);
}

.timeline-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 10px;
  padding: 18px;
  border-radius: 28px;
}

.timeline-time {
  padding-top: 12px;
  color: #4c5962;
  border-right: 2px solid rgba(16,24,32,.12);
}

.timeline-time b,
.timeline-time span {
  display: block;
  font-weight: 950;
}

.timeline-time span {
  font-size: 11px;
}

.task-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 9px 10px;
  border: 0;
  border-radius: 16px;
  background: #f2f8df;
  text-align: left;
}

.task-item.blue {
  background: #eef0ff;
}

.task-item.orange {
  background: #fff4db;
}

.task-item.exercise {
  background: #e9fbf4;
}

.task-item i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  font-style: normal;
}

.task-item.blue i {
  background: #4c69d8;
}

.task-item.orange i {
  background: var(--yellow);
}

.task-item.exercise i {
  background: #31b48f;
}

.task-item b,
.task-item small {
  display: block;
}

.task-item b {
  font-size: 14px;
  font-weight: 950;
}

.task-item small {
  color: #697781;
  font-size: 11px;
  font-weight: 800;
}

.task-item em {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #d7c776;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.task-item.is-complete em {
  border-color: transparent;
  background: var(--green);
}

.task-item.is-complete.blue em {
  background: #4c69d8;
}

.task-item.is-complete.exercise em {
  background: #31b48f;
}

.app-nav {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(calc(100% - 28px), 692px);
  min-height: 66px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(16, 24, 32, .86);
  box-shadow: 0 18px 38px rgba(16,24,32,.24);
  backdrop-filter: blur(16px);
}

.app-nav button {
  display: grid;
  gap: 2px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.app-nav span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
}

.app-nav .is-active {
  color: #101820;
}

.app-nav .is-active span {
  background: #fff;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 0 20px;
  }

  .web-app {
    min-height: 100dvh;
  }

  .progress-dashboard {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  .app-view {
    padding-inline: 14px;
  }

  .home-hero {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .recipe-card {
    grid-template-columns: 82px 1fr auto;
  }

  .recipe-card img {
    width: 82px;
    height: 82px;
  }
}

.recipe-card {
  cursor: pointer;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 18, 22, .42);
  backdrop-filter: blur(10px);
}

.detail-sheet {
  position: relative;
  width: min(100%, 680px);
  max-height: min(86dvh, 760px);
  overflow: auto;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 24, 32, .28);
}

.gym-detail-sheet {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid rgba(198, 222, 219, .9);
}

.detail-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #101820;
  font-size: 28px;
  line-height: 1;
}

.detail-hero {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.detail-body {
  padding: 22px;
}

.detail-kicker,
.gym-card-head span,
.gym-detail-title span,
.gym-weekly-hero span {
  color: #4ade80;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-body h2,
.detail-body h3 {
  margin: 0;
  color: #111827;
}

.detail-body h2 {
  font-size: 28px;
  letter-spacing: 0;
}

.detail-body h3 {
  margin-top: 18px;
  font-size: 15px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.detail-metrics b {
  display: grid;
  gap: 2px;
  padding: 13px;
  border-radius: 16px;
  background: #f1f7f6;
  font-size: 18px;
  text-align: center;
}

.detail-metrics small {
  color: #64727b;
  font-size: 10px;
  text-transform: uppercase;
}

.detail-body ul,
.detail-body ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: #2f3a42;
  font-size: 14px;
  font-weight: 750;
}

.detail-tip {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: #dff8e8;
  color: #163828;
  font-size: 14px;
  font-weight: 850;
}

.gym-shell {
  display: grid;
  gap: 14px;
  width: 100%;
}

.gym-card {
  overflow: hidden;
  border: 1px solid rgba(198, 222, 219, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  box-shadow: 0 20px 52px rgba(46, 95, 91, .14);
}

.gym-day-card,
.gym-detail-card,
.gym-weekly-card {
  padding: 16px;
}

.gym-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gym-card-head h1,
.gym-detail-title h2,
.gym-weekly-hero h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.gym-card-head h1 {
  font-size: 28px;
}

.gym-card-head i,
.gym-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(63, 114, 224, .2);
  border-radius: 50%;
  background: #e8f7f1;
  color: var(--ink);
  font-style: normal;
}

.gym-icon-button {
  padding: 0;
}

.gym-weekly-card.is-home {
  width: 100%;
  margin: 0;
}

.gym-day-card {
  width: 100%;
  margin: 0;
}

.gym-week-labels,
.gym-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: center;
  text-align: center;
}

.gym-week-labels span {
  color: #91a1a8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gym-week-labels .is-active {
  color: var(--blue);
}

.gym-week {
  margin: 8px 0 18px;
}

.gym-week button {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #76868d;
  font-weight: 950;
}

.gym-week .is-active {
  background: var(--mint);
  color: #101820;
  box-shadow: 0 12px 24px rgba(74, 222, 128, .24);
}

.gym-week .is-today:not(.is-active) {
  border: 1px solid rgba(63, 114, 224, .24);
  background: #eef7f6;
  color: var(--ink);
}

.gym-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.gym-tag {
  padding: 9px 13px;
  border: 1px solid rgba(63, 114, 224, .16);
  border-radius: 999px;
  background: #eef7f6;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.gym-tag.is-rest {
  border-color: rgba(198, 222, 219, .9);
  background: #f7fbfa;
  color: #7a8a91;
}

.gym-tag-row small {
  color: #8a9aa1;
  font-weight: 850;
}

.gym-exercise-list,
.gym-weekly-list {
  display: grid;
  gap: 9px;
}

.gym-exercise-item,
.gym-weekly-list button {
  display: grid;
  width: 100%;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f6fbfa;
  color: var(--ink);
  text-align: left;
}

.gym-exercise-item {
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
}

.gym-exercise-item.is-selected,
.gym-exercise-item:hover,
.gym-weekly-list .is-active {
  border-color: rgba(63, 114, 224, .16);
  background: #edf9f5;
}

.gym-exercise-item.is-complete b {
  color: #7d8d94;
  text-decoration: line-through;
}

.gym-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #d5e3e0;
  border-radius: 50%;
  color: #05120a;
  font-size: 13px;
  font-weight: 950;
}

.gym-exercise-item.is-complete .gym-check {
  border-color: var(--mint);
  background: var(--mint);
}

.gym-exercise-item b,
.gym-weekly-list b {
  display: block;
  font-size: 14px;
}

.gym-exercise-item small,
.gym-weekly-list small {
  display: block;
  margin-top: 3px;
  color: #708089;
  font-size: 11px;
  font-weight: 850;
}

.gym-exercise-item em {
  font-style: normal;
}

.gym-progress {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #d9e6e3;
}

.gym-progress p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  color: #7d8b92;
  font-size: 12px;
  font-weight: 850;
}

.gym-progress b {
  color: var(--blue);
}

.gym-progress i,
.gym-weekly-list u {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e7efed;
}

.gym-progress i span,
.gym-weekly-list u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.gym-detail-card {
  min-height: 360px;
}

.gym-back {
  margin-bottom: 14px;
  border: 0;
  background: transparent;
  color: #718188;
  font-weight: 850;
}

.gym-detail-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gym-detail-title i {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(63, 114, 224, .14);
  border-radius: 18px;
  background: #edf9f5;
  font-style: normal;
  font-size: 28px;
}

.gym-detail-title h2 {
  font-size: 22px;
}

.gym-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.gym-metrics b {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 74px;
  padding: 10px 6px;
  border: 1px solid #d9e7e4;
  border-radius: 14px;
  background: #f7fbfa;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.gym-metrics small {
  display: block;
  margin-bottom: 4px;
  color: #7b8b92;
  font-size: 9px;
  text-transform: uppercase;
}

.gym-howto h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gym-howto ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #31424a;
  font-size: 13px;
  font-weight: 750;
}

.gym-save {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 17px;
  background: var(--mint);
  color: #101820;
  font-weight: 950;
}

.gym-empty-detail,
.gym-rest-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.gym-empty-detail strong,
.gym-rest-state strong {
  font-size: 46px;
}

.gym-empty-detail h2,
.gym-rest-state h2 {
  margin: 10px 0 4px;
  font-size: 20px;
}

.gym-empty-detail p,
.gym-rest-state p {
  max-width: 260px;
  margin: 0;
  color: #728289;
  font-size: 13px;
  font-weight: 750;
}

.gym-weekly-hero {
  min-height: 190px;
  margin: -8px -8px 14px;
  padding: 24px;
  border: 1px solid rgba(63, 114, 224, .14);
  border-radius: 24px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.18) 2px, rgba(255,255,255,.18) 4px),
    linear-gradient(135deg, #bff3df, #dff8ee 56%, #f4fbf8);
}

.gym-weekly-hero b {
  float: right;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #2c6976;
  font-size: 11px;
}

.gym-weekly-hero h2 {
  clear: both;
  padding-top: 52px;
  font-size: clamp(34px, 7vw, 48px);
  color: var(--ink);
}

.gym-weekly-list button {
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  min-height: 70px;
  padding: 12px 14px;
}

.gym-weekly-list i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: #eef7f6;
  color: #75858c;
  font-style: normal;
  font-weight: 950;
}

.gym-weekly-list .is-active i {
  background: var(--mint);
  color: #101820;
}

.gym-weekly-list strong {
  min-width: 54px;
  color: #66767d;
  font-size: 12px;
  text-align: right;
}

.gym-weekly-list strong small {
  margin-top: 5px;
}

.gym-weekly-list em {
  font-style: normal;
}

@media (min-width: 980px) {
  .gym-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gym-shell:has(.gym-weekly-card.is-home) {
    display: block;
  }

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

  .gym-weekly-list button:first-child,
  .gym-weekly-list button:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 390px) {
  .detail-overlay {
    padding: 10px;
  }

  .detail-body {
    padding: 18px;
  }

  .gym-day-card,
  .gym-detail-card,
  .gym-weekly-card {
    padding: 14px;
  }

  .gym-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
