.app {
  --bg: #121416;
  --surface: #1d2225;
  --ink: #f4f6f8;
  --accent: #c9f36a;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  color-scheme: dark;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
  font-variant-numeric: tabular-nums;
  isolation: isolate;
}
.app * {
  box-sizing: border-box;
}
.app button,
.app input,
.app select {
  font: inherit;
}
.app button {
  cursor: pointer;
  border: 0;
}
.app button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.app button:focus-visible,
.app input:focus-visible,
.app select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.app h1,
.app h2,
.app h3,
.app p {
  margin: 0;
}
.app h1 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1.2px;
  font-weight: 650;
}
.app h2 {
  font-size: 25px;
  font-weight: 600;
}
.app h3 {
  font-size: 15px;
  font-weight: 600;
}
.app small {
  font-size: 13px;
  font-weight: 400;
}
.statusbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-weight: 650;
  font-size: 14px;
}
.statusIcons {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.battery {
  width: 23px;
  height: 11px;
  border: 1px solid #8c9193;
  border-radius: 3px;
  position: relative;
}
.battery:before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #f4f6f8;
  border-radius: 1px;
}
.demo {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #8c9296;
  padding: 0 0 4px;
}
.main {
  padding: 14px 24px 18px;
}
.homeHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brandMark {
  background: var(--accent);
  color: #121416;
  border-radius: 9px;
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}
.avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #3b4144;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #bcc1c3;
}
.eyebrow {
  color: #9ba1a4;
  font-size: 13px;
  margin-bottom: 8px !important;
}
.green {
  color: var(--accent);
}
.week {
  margin: 22px 0 20px;
}
.week > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #aaaeb0;
}
.week strong {
  color: var(--accent);
  font-weight: 500;
}
.days {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
.days > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #6f767a;
  background: #23282b;
  font-size: 11px;
}
.days > .dayDone {
  background: var(--accent);
  color: #222920;
}
.plan {
  position: relative;
  overflow: hidden;
  background: #242b28;
  border: 1px solid #394338;
  border-radius: 18px;
  padding: 18px 18px 14px;
}
.planTop {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  color: #bdc9b5;
  font-size: 10px;
}
.planTop span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.planTop span:last-child {
  border: 1px solid #52604a;
  border-radius: 5px;
  padding: 1px 6px;
  color: #c9f36a;
}
.plan h2 {
  margin-top: 12px;
  font-size: 25px;
  letter-spacing: 1px;
}
.plan p {
  font-size: 12px;
  color: #bcc2bd;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.equipment {
  position: absolute;
  right: 1px;
  top: 35px;
  transform: rotate(-28deg);
  color: #78866d;
  opacity: 0.3;
}
.planFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #44503c;
  margin-top: 18px;
  padding-top: 11px;
  color: #b4bea9;
  font-size: 10px;
}
.sectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 0 10px;
}
.sectionTitle > span {
  font-size: 11px;
  color: #9ba2a6;
}
.sectionTitle > span.green {
  color: var(--accent);
  font-size: 13px;
}
.exerciseList {
  margin-bottom: 20px;
}
.exerciseRow {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #282d30;
}
.exerciseRow:last-child {
  border-bottom: 0;
}
.exerciseIcon {
  width: 38px;
  height: 38px;
  background: #23282b;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #b8bebf;
  flex-shrink: 0;
}
.exerciseRow > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.exerciseRow strong {
  font-size: 14px;
  font-weight: 500;
}
.exerciseRow div span {
  font-size: 11px;
  color: #969c9f;
}
.rowNumber {
  margin-left: auto;
  color: #686f72;
  font-size: 13px;
}
.primary {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--accent);
  color: #1c2613;
  border-radius: 13px;
  font-weight: 650 !important;
  font-size: 16px !important;
  transition: background 0.15s;
}
.primary:hover {
  background: #d5fa88;
}
.helper {
  font-size: 11px;
  color: #969da0;
  text-align: center;
  margin-top: 10px !important;
}
.nav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  background: #15191bf2;
  border-top: 1px solid #2a3032;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
  z-index: 2;
}
.nav button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  color: #81898d;
  background: none;
  font-size: 10px;
  min-width: 65px;
}
.nav button[aria-current] {
  color: var(--accent);
}
.workoutHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin: 6px 0 24px;
}
.workoutHeader button {
  padding: 5px;
  background: none;
  color: #b9bfc2;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.progressBars {
  display: flex;
  gap: 5px;
}
.progressBars span {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: #303639;
}
.workoutTitle {
  font-size: 29px !important;
  margin-top: 14px !important;
}
.subtitle {
  color: #949da1;
  font-size: 13px;
  margin-top: 8px !important;
}
.switchLabel {
  position: relative;
  color: #9da5a9;
  font-size: 11px;
}
.switchLabel select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.switchLabel:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.setTable {
  margin: 24px 0 28px;
}
.tableHead,
.tableRow {
  display: grid;
  grid-template-columns: 45px 1fr 40px 38px;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
}
.tableHead {
  font-size: 10px;
  color: #858e93;
}
.tableRow {
  font-size: 14px;
  color: #cdd3d6;
  border-bottom: 1px solid #292f32;
  min-height: 44px;
}
.tableRow > span:last-child {
  display: flex;
  justify-content: center;
  color: var(--accent);
}
.currentRow {
  background: #293323;
  border: 1px solid #455734;
  border-radius: 9px;
  color: var(--accent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.emptyDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #4b5357;
}
.inputs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.inputs label {
  padding: 14px 16px 10px;
  background: var(--surface);
  border: 1px solid #333b40;
  border-radius: 14px;
  width: 50%;
  font-size: 12px;
  color: #aeb6ba;
}
.inputs label > span {
  float: right;
  color: #7d878d;
}
.inputs input {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
  width: 100%;
  background: none;
  border: 0;
  outline: 0 !important;
  color: var(--ink);
  margin-top: 5px;
  padding: 0;
  appearance: textfield;
  min-height: 51px;
}
.inputs input::-webkit-inner-spin-button {
  appearance: none;
}
.inputs label:focus-within {
  border-color: var(--accent);
}
.rir {
  display: flex;
  gap: 8px;
}
.rir button {
  flex: 1;
  height: 42px;
  background: var(--surface);
  border: 1px solid #343b3f;
  border-radius: 10px;
  color: #c8cdd0;
  font-size: 15px;
}
.rir button[aria-pressed="true"] {
  background: var(--accent);
  color: #1c2514;
  border-color: var(--accent);
}
.restSetting {
  margin: 24px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #aeb8bd;
}
.restSetting > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.restSetting select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 0;
}
.textButton {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin: 17px auto 0;
  color: #aeb8bd;
  background: none;
  font-size: 12px !important;
  padding: 7px;
}
.note {
  margin: 24px 0;
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  color: #bac2c5;
}
.note h2,
.note h3 {
  margin: 16px 0;
  color: var(--ink);
}
.note p {
  font-size: 14px;
  line-height: 1.8;
  margin: 10px 0;
}
.note svg {
  color: var(--accent);
}
.note .primary {
  margin-top: 24px;
}
.secondary {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: #2a3135;
  color: var(--ink);
}
.restOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: #000a;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.restCard {
  max-width: 400px;
  margin: auto auto 16px;
  width: 100%;
  background: #22292d;
  border: 1px solid #3c474c;
  border-radius: 24px;
  text-align: center;
  padding: 32px 24px;
}
.restCard > svg {
  color: var(--accent);
}
.restCard h2 {
  font-size: 21px;
  margin: 16px 0 8px;
}
.countdown {
  display: block;
  font-size: 62px;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: -3px;
}
.restCard p {
  font-size: 13px;
  color: #a5afb3;
  margin: 4px 0 28px;
}
.complete {
  padding-top: 25px;
}
.finishMark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: var(--accent);
  color: #28351d;
  border-radius: 50%;
  margin: 2px 0 25px;
}
.complete h1 {
  font-size: 33px;
}
.stats {
  display: flex;
  margin: 27px 0;
  border-top: 1px solid #32383b;
  border-bottom: 1px solid #32383b;
  padding: 19px 0;
}
.stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid #343a3d;
}
.stats > div:last-child {
  border: 0;
}
.stats strong {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
.stats span {
  font-size: 11px;
  color: #a0a9ae;
}
.completedWeek {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c8d4be;
  font-size: 12px;
  background: #283124;
  padding: 16px;
  border-radius: 12px;
}
.completedWeek > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.completedWeek strong {
  font-weight: 500;
  color: var(--accent);
}
.highlight {
  margin: 16px 0;
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
}
.highlight > span {
  font-size: 11px;
  color: #a3adb2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.highlight h3 {
  margin: 12px 0 4px;
}
.highlight strong {
  font-size: 19px;
  color: var(--accent);
  font-weight: 500;
}
.chart {
  margin: 20px 0 25px;
}
.chart h3 {
  font-size: 13px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 6px 10px 0;
}
.bars > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.bars span {
  font-size: 12px;
  color: #a8b1b5;
}
.bars i {
  display: block;
  width: 100%;
  background: #3b4449;
  border-radius: 5px 5px 1px 1px;
}
.bars small {
  font-size: 10px;
  color: #828d93;
}
.dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #465057;
  border-radius: 20px;
  padding: 24px;
  width: calc(100% - 40px);
  max-width: 400px;
  max-height: 80dvh;
  overflow: auto;
  font-family: inherit;
}
.dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.dialogHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialogHead h2 {
  font-size: 20px;
}
.dialogHead button {
  background: transparent;
  color: #b7c1c5;
  display: flex;
  padding: 4px;
}
.dialog p {
  color: #b8c2c7;
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0;
}
.dialog h3 {
  margin-top: 18px;
}
.dialog .primary {
  margin-top: 24px;
}
.error {
  color: #ffbdab;
  font-size: 12px;
  padding: 8px 0;
  line-height: 1.6;
}
@media (min-width: 481px) {
  .app {
    border-left: 1px solid #292e31;
    border-right: 1px solid #292e31;
  }
}
@media (max-width: 350px) {
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app h1 {
    font-size: 30px;
  }
  .rir {
    gap: 5px;
  }
}
/* Keep the home screen's primary action within the 390 × 844 reference. */
.statusbar {
  height: 35px;
}
.homeMain {
  padding-top: 8px;
  padding-bottom: 12px;
}
.homeHeader {
  margin-bottom: 12px;
}
.homeMain h1 {
  font-size: 30px;
  line-height: 1.25;
}
.homeMain .eyebrow {
  font-size: 12px;
  margin-bottom: 6px !important;
}
.homeMain .week {
  margin: 16px 0;
}
.days {
  margin-top: 8px;
}
.days > span {
  width: 28px;
  height: 28px;
}
.plan {
  padding: 14px 16px 12px;
}
.plan h2 {
  margin-top: 8px;
  font-size: 24px;
}
.planFoot {
  margin-top: 12px;
  padding-top: 8px;
}
.homeMain .sectionTitle {
  margin: 16px 0 6px;
}
.exerciseRow {
  padding: 7px 0;
  gap: 10px;
}
.exerciseIcon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.exerciseRow > div {
  gap: 1px;
}
.exerciseRow strong {
  font-size: 15px;
}
.exerciseRow div span {
  font-size: 10px;
}
.exerciseList {
  margin-bottom: 14px;
}
.homeMain .helper {
  font-size: 10px;
  margin-top: 7px !important;
}
.workoutMain {
  padding-top: 10px;
}
.workoutHeader {
  margin-bottom: 12px;
}
.workoutMain .sectionTitle {
  margin-top: 16px;
  margin-bottom: 8px;
}
.setTable {
  margin: 16px 0;
}
.tableHead {
  padding-top: 6px;
  padding-bottom: 6px;
}
.tableRow {
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 40px;
}
.inputs label {
  padding: 10px 16px 8px;
}
.inputs input {
  font-size: 36px;
  min-height: 43px;
}
.workoutMain .restSetting {
  margin: 16px 0 12px;
}
.textButton {
  margin-top: 10px;
}
.complete {
  padding-top: 16px;
}
.finishMark {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.complete h1 {
  font-size: 30px;
}
.stats {
  margin: 20px 0;
  padding: 14px 0;
}
.highlight {
  margin: 12px 0;
  padding: 14px;
}
.chart {
  margin: 16px 0 18px;
}
.complete .sectionTitle {
  margin-top: 16px;
}
