/* Account modal */
.account-panel {
  margin-top: 16px;
}

.account-panel.account-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: calc(24px + env(safe-area-inset-top)) var(--screen-x) calc(24px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  overflow-y: auto;
}

.account-panel.account-modal.hidden {
  display: none !important;
}

.account-modal-content {
  width: min(100%, 520px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 22px 60px rgba(1, 45, 237, 0.22);
}

.account-panel.account-password-mode {
  padding-top: calc(24px + env(safe-area-inset-top));
}

.account-panel.account-password-mode .account-modal-content {
  max-height: none;
  overflow: visible;
  padding: 0 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-panel.account-password-mode .account-modal-header {
  margin-bottom: 42px;
}

.account-panel.account-password-mode #accountModalTitle,
.account-panel.account-password-mode #accountPasswordView .muted {
  color: var(--main);
}

.account-panel.account-password-mode #accountPasswordView .muted {
  margin-bottom: 38px;
}

.account-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-modal-header h2 {
  margin-bottom: 0;
}

#closeAccountModalBtn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.account-section {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.account-section h3 {
  margin-bottom: 12px;
}

.account-list-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  border-radius: 18px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
}

.account-list-btn span {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-size: 13px;
  color: var(--muted-text);
}

.support-email {
  display: block;
  color: var(--muted-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-full-btn {
  width: 100%;
  margin-top: 12px;
}

#logoutBtn {
  background: var(--main);
  color: #ffffff;
  border-color: var(--main);
}

html,
body {
  min-height: 100%;
}

html.account-active,
body.account-active {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  background-color: #1c1c1c;
  overflow: hidden;
  overscroll-behavior: none;
}

body.account-active {
  position: fixed;
  inset: 0;
}

body.account-active .app {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.account-panel.account-modal.account-main-mode {
  align-items: stretch;
  padding: 0;
  background-color: var(--main);
  overflow: hidden;
}

.account-panel.account-modal.account-main-mode .account-modal-content {
  width: min(100vw, var(--app-width));
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  padding: calc(var(--space-5) + env(safe-area-inset-top)) var(--screen-x) calc(50px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--main);
  box-shadow: none;
}

.account-panel.account-modal.account-main-mode .account-modal-header {
  align-items: center;
  margin-bottom: 80px;
}

.account-panel.account-modal.account-main-mode #accountModalTitle {
  width: 134px;
  height: 18px;
  margin: 0;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  mask: url("Assets/somthingreat.svg") left center / 134px 18px no-repeat;
  -webkit-mask: url("Assets/somthingreat.svg") left center / 134px 18px no-repeat;
}

.account-panel.account-modal.account-main-mode #closeAccountModalBtn {
  min-width: 26px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.account-panel.account-modal.account-main-mode #closeAccountModalBtn::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: #ffffff;
  mask: url("Assets/x.svg") center / 26px 26px no-repeat;
  -webkit-mask: url("Assets/x.svg") center / 26px 26px no-repeat;
}

.account-panel.account-modal.account-main-mode #accountMainView {
  position: relative;
  min-height: calc(100dvh - var(--space-5) - 50px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px - 80px);
  padding-bottom: 88px;
}

.account-panel.account-modal.account-main-mode #syncStatus,
.account-panel.account-modal.account-main-mode .account-list-btn span {
  display: none;
}

.account-panel.account-modal.account-main-mode .account-section {
  padding: 0;
  border: 0;
}

.account-panel.account-modal.account-main-mode .account-section + .account-section {
  margin-top: 48px;
}

.account-panel.account-modal.account-main-mode .account-section h3 {
  margin: 0 0 3px;
  color: #b2b4b8;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.account-panel.account-modal.account-main-mode .account-list-btn,
.account-panel.account-modal.account-main-mode .support-email {
  width: auto;
  min-height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.account-panel.account-modal.account-main-mode .account-list-btn + .account-list-btn {
  margin-top: 12px;
}

.account-panel.account-modal.account-main-mode #accountEmail,
.account-panel.account-modal.account-main-mode #logoutBtn {
  position: static;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.account-panel.account-modal.account-main-mode #accountEmail {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.account-panel.account-modal.account-main-mode #logoutBtn {
  width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-submenu-panel {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background-color: #1c1c1c;
  color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
}

.account-submenu-panel.hidden {
  display: none !important;
}

.account-submenu-panel .account-submenu-panel__content {
  position: relative;
  width: min(100vw, var(--app-width));
  height: auto;
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: visible;
  padding: calc(var(--space-5) + env(safe-area-inset-top)) var(--screen-x) calc(80px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--main);
  box-shadow: none;
}

.account-submenu-panel .account-modal-header {
  align-items: center;
  margin-bottom: 48px;
}

.account-submenu-panel #accountSubmenuTitle {
  width: 134px;
  height: 18px;
  margin: 0;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  mask: url("Assets/somthingreat.svg") left center / 134px 18px no-repeat;
  -webkit-mask: url("Assets/somthingreat.svg") left center / 134px 18px no-repeat;
}

.account-submenu-panel #closeAccountSubmenuBtn {
  min-width: 26px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.account-submenu-panel #closeAccountSubmenuBtn::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: #ffffff;
  mask: url("Assets/x.svg") center / 26px 26px no-repeat;
  -webkit-mask: url("Assets/x.svg") center / 26px 26px no-repeat;
}

.account-panel.account-modal.account-main-mode .menu-close-btn,
.account-submenu-panel .menu-close-btn,
.today-recovery-modal .menu-close-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  transform: none;
}

.account-panel.account-modal.account-main-mode .menu-close-btn,
.account-submenu-panel .menu-close-btn {
  color: #ffffff;
}

.today-recovery-modal .menu-close-btn {
  color: var(--main);
}

.account-panel.account-modal.account-main-mode .menu-close-btn::before,
.account-submenu-panel .menu-close-btn::before,
.today-recovery-modal .menu-close-btn::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  place-self: center;
  transform: none;
  background: currentColor;
  mask: url("Assets/x.svg") center / 26px 26px no-repeat;
  -webkit-mask: url("Assets/x.svg") center / 26px 26px no-repeat;
}

.account-submenu-panel #accountGoalView,
.account-submenu-panel #accountEquipmentView,
.account-submenu-panel #accountRecoveryView,
.account-submenu-panel #accountPasswordView,
.account-submenu-panel #accountSupportView,
.account-submenu-panel #accountAdminView {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 20px;
  row-gap: 18px;
  color: #ffffff;
}

.account-submenu-panel #accountGoalView,
.account-submenu-panel #accountEquipmentView {
  column-gap: 20px;
  row-gap: 19px;
}

.account-submenu-panel .account-goal-options {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 19px 20px;
}

.account-submenu-panel .account-goal-options .option-row {
  grid-column: span 2;
  width: 100%;
  padding-right: 8px;
  padding-left: 8px;
}

.account-submenu-panel .account-goal-options .option-row:nth-child(n + 4) {
  grid-column: span 3;
}

.account-submenu-panel .account-view.hidden {
  display: none !important;
}

.account-submenu-panel .account-view > .text-btn {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin: 0 0 12px;
  align-self: center;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  mask: url("Assets/arrow-left.svg") center / 26px 26px no-repeat;
  -webkit-mask: url("Assets/arrow-left.svg") center / 26px 26px no-repeat;
}

.account-submenu-panel .account-view h2 {
  flex: 1 1 calc(100% - 46px);
  width: auto;
  margin: 0 0 12px;
  align-self: center;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
}

.account-submenu-panel .account-view > .muted {
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.account-submenu-panel .option-row {
  width: auto;
  min-width: 0;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  padding: 0 21px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.account-submenu-panel .option-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-submenu-panel .option-row:has(input:checked) {
  background: #ffffff;
  color: var(--main);
}

.account-submenu-panel #accountEquipmentView .option-row::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("Assets/plus.svg") center / 24px 24px no-repeat;
  -webkit-mask: url("Assets/plus.svg") center / 24px 24px no-repeat;
}

.account-submenu-panel #accountEquipmentView .option-row:has(input:checked)::after {
  mask-image: url("Assets/x.svg");
  -webkit-mask-image: url("Assets/x.svg");
}

.account-submenu-panel #accountRecoveryView .muted {
  margin-bottom: 8px;
}

.account-submenu-panel #accountRecoveryView {
  row-gap: 18px;
}

.account-submenu-panel .recovery-select {
  width: 353px;
  max-width: 100%;
  flex: 0 0 min(353px, 100%);
  height: 46px;
  padding: 0 21px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  appearance: none;
}

.account-submenu-panel .recovery-select option {
  background: #ffffff;
  color: var(--main);
}

.account-submenu-panel .recovery-select:focus,
.account-submenu-panel #accountSupportView .support-input:focus,
.account-submenu-panel .admin-users-toggle:focus,
.account-submenu-panel .option-row:focus-within,
.account-submenu-panel .account-full-btn:focus-visible,
.account-submenu-panel .active-recovery-actions button:focus-visible,
.account-submenu-panel .history-month-controls button:focus-visible {
  border-color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

.account-submenu-panel #accountSupportView .support-input:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px var(--main) inset;
}

.account-submenu-panel .recovery-mode-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-submenu-panel .recovery-mode-row .option-row {
  width: 100%;
  font-size: 16px;
}

.account-submenu-panel .active-recovery-card {
  flex: 0 0 auto;
  width: 100%;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 36px 28px calc(36px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--main);
  overflow: visible;
}

.account-submenu-panel .active-recovery-card.hidden {
  display: none !important;
}

.account-submenu-panel .active-recovery-card h3,
.account-submenu-panel .active-recovery-card strong,
.account-submenu-panel .active-recovery-card p {
  margin: 0;
  color: var(--main);
}

.account-submenu-panel .active-recovery-card h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.account-submenu-panel .active-recovery-card strong,
.account-submenu-panel .active-recovery-card p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.account-submenu-panel .active-recovery-entries,
.account-submenu-panel #additionalRecoveryEntries {
  display: grid;
  gap: 18px;
}

.account-submenu-panel .active-recovery-entry {
  display: grid;
  gap: 6px;
}

.account-submenu-panel #additionalRecoveryEntries:empty {
  display: none;
}

.account-submenu-panel #additionalRecoveryEntries .active-recovery-entry {
  padding-top: 18px;
  border-top: 1px solid rgba(1, 45, 237, 0.18);
}

.account-submenu-panel .active-recovery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.account-submenu-panel .active-recovery-actions button {
  min-height: 46px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
}

.account-submenu-panel .active-recovery-actions .secondary-btn {
  border-color: var(--main);
  background: var(--main);
  color: #ffffff;
}

.account-submenu-panel .active-recovery-actions .ghost-btn {
  border: 1px solid var(--main);
  background: transparent;
  color: var(--main);
}

.account-submenu-panel .account-submenu-panel__content.has-active-recovery #accountRecoveryView {
  flex: 0 0 auto;
  min-height: 0;
  padding-bottom: 52px !important;
}

.account-submenu-panel .account-submenu-panel__content.has-active-recovery .active-recovery-card {
  flex: 1 0 auto;
}

.account-submenu-panel .account-full-btn {
  width: 100%;
  min-height: 46px;
  margin: 33px 0 0;
  border-radius: 20px;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--main);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.account-submenu-panel #accountPasswordView .account-full-btn {
  margin-top: 33px;
}

.account-submenu-panel .auth-message {
  width: 100%;
  margin: 0;
  color: #ffffff;
}

.account-submenu-panel .auth-message:empty {
  display: none;
}

.account-submenu-panel .auth-message[data-type="error"],
.account-submenu-panel .auth-message[data-type="success"],
.account-submenu-panel .auth-message[data-type="info"],
.account-submenu-panel .sync-status {
  color: #ffffff;
}

.account-view > .text-btn {
  margin-bottom: 18px;
}

#accountHistoryView {
  padding-top: 0;
}

.history-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.history-header h3 {
  margin: 0;
  text-align: center;
}

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

.history-weekdays {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted-text);
  text-align: center;
}

.history-day {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 900;
}

.history-day span {
  font-size: 12px;
}

.history-day.has-workout {
  border-color: var(--main);
  background: var(--main);
  color: #ffffff;
}

.history-empty {
  opacity: 0;
}

.history-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.history-item {
  display: grid;
  gap: 2px;
  padding: 0 0 12px;
  border-top: 0;
}

.history-item + .history-item {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.history-item span {
  color: var(--muted-text);
  font-weight: 700;
}

.history-item-copy {
  display: grid;
  gap: 6px;
}

.history-list .muted {
  margin: 0;
}

.account-submenu-panel #accountHistoryView {
  display: block;
  color: #ffffff;
}

.account-submenu-panel #accountSupportView,
.account-submenu-panel #accountAdminView {
  color: #ffffff;
}

.account-submenu-panel #accountHistoryView.hidden,
.account-submenu-panel #accountSupportView.hidden,
.account-submenu-panel #accountAdminView.hidden {
  display: none !important;
}

.account-submenu-panel #accountHistoryView > .muted {
  margin: 24px 0 48px;
  font-size: 16px;
  line-height: 1.2;
}

.account-submenu-panel #accountSupportView > .muted {
  margin-bottom: 20px;
}

.account-submenu-panel #accountAdminView > .muted {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.45;
}

.account-submenu-panel #accountSupportView .support-input {
  flex: 0 0 100%;
  width: 100%;
  height: 46px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
}

.account-submenu-panel #accountSupportView .support-message-input {
  height: 170px;
  min-height: 170px;
  resize: none;
  padding-top: 16px;
}

.account-submenu-panel #accountSupportView .support-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.account-submenu-panel #accountSupportView .account-full-btn {
  flex: 0 0 100%;
  margin-top: 33px;
}

.account-submenu-panel .admin-users-toggle {
  flex: 0 0 100%;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 21px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  text-align: left;
}

.account-submenu-panel .admin-users-toggle.is-open {
  height: auto;
  min-height: 46px;
  padding: 24px;
  border: 1px solid #ffffff;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  color: var(--main);
  font-weight: 700;
}

.account-submenu-panel #adminDashboardMessage:empty {
  display: none;
}

.account-submenu-panel #accountAdminView.admin-users-open #adminDashboardMessage {
  display: none;
}

.account-submenu-panel .history-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin: 0 0 24px;
}

.account-submenu-panel #historyYearTitle {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
}

.account-submenu-panel .history-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
}

.account-submenu-panel .history-month-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
}

.account-submenu-panel .history-month-controls button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.account-submenu-panel .history-weekdays,
.account-submenu-panel .history-calendar {
  display: grid;
  grid-template-columns: repeat(7, 49px);
  justify-content: center;
  gap: 4px;
}

.account-submenu-panel .history-weekdays {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.account-submenu-panel .history-weekdays .is-today-weekday {
  color: #ffffff;
}

.account-submenu-panel .history-day {
  width: 49px;
  height: 49px;
  min-height: 49px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  appearance: none;
}

.account-submenu-panel .history-day:disabled {
  opacity: 1;
}

.account-submenu-panel .history-day span {
  display: none;
}

.account-submenu-panel .history-day.past-empty {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
}

.account-submenu-panel .history-day.has-workout {
  border-color: #ffffff;
  background: #ffffff;
}

.account-submenu-panel .history-day.is-today,
.account-submenu-panel .history-day.is-selected {
  border-color: #ffffff;
  background: #ffffff;
}

.account-submenu-panel .history-day.history-empty {
  visibility: hidden;
}

.account-submenu-panel .history-list {
  margin-top: 48px;
  padding: 0;
  border: 0;
}

.account-submenu-panel .history-list:empty {
  display: none;
}

.account-submenu-panel .history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

.account-submenu-panel .history-item + .history-item {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 0;
}

.account-submenu-panel .history-item strong {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}

.account-submenu-panel .history-item span {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 400;
}

.activity-screen .activity-summary-card,
.activity-screen .activity-calendar-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.activity-screen .activity-summary-card {
  padding-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.activity-screen .activity-summary-card h3 {
  margin-bottom: 12px;
}

.activity-screen .activity-summary-card h3:last-child {
  margin-bottom: 0;
}

.activity-screen .history-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin: 0 0 24px;
}

.activity-screen #historyYearTitle {
  margin: 0 0 5px;
  color: var(--main);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
}

.activity-screen .history-header h3 {
  margin: 0;
  color: var(--main);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
}

.activity-screen .history-month-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
}

.activity-screen .history-month-controls button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border: 0;
  background: var(--main);
  color: transparent;
  font-size: 0;
  line-height: 0;
  font-weight: 400;
  mask: url("Assets/arrow-left.svg") center / 26px 26px no-repeat;
  -webkit-mask: url("Assets/arrow-left.svg") center / 26px 26px no-repeat;
}

.activity-screen .history-month-controls .history-arrow-next {
  mask-image: url("Assets/arrow-right.svg");
  -webkit-mask-image: url("Assets/arrow-right.svg");
}

.activity-screen .history-weekdays,
.activity-screen .history-calendar {
  display: grid;
  grid-template-columns: repeat(7, 49px);
  justify-content: center;
  gap: 4px;
}

.activity-screen .history-weekdays {
  margin: 0 0 8px;
  color: #000000;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.activity-screen .history-weekdays .is-today-weekday {
  color: var(--main);
}

.activity-screen .history-day {
  width: 49px;
  height: 49px;
  min-height: 49px;
  padding: 0;
  border: 1px solid rgba(1, 45, 237, 0.15);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  appearance: none;
}

.activity-screen .history-day:disabled {
  opacity: 1;
}

.activity-screen .history-day span {
  display: none;
}

.activity-screen .history-day.past-empty {
  border-color: transparent;
  background: rgba(1, 45, 237, 0.15);
}

.activity-screen .history-day.has-workout {
  border-color: #000000;
  background: #000000;
}

.activity-screen .history-day.is-today,
.activity-screen .history-day.is-selected {
  border-color: var(--main);
  background: var(--main);
}

.activity-screen .history-day.history-empty {
  visibility: hidden;
}

.activity-screen .history-list {
  margin-top: 48px;
  padding: 0;
  border: 0;
}

.activity-screen .history-list:empty {
  display: none;
}

.activity-screen .history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: auto;
  align-content: start;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: var(--main);
  color: #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
  .activity-screen .history-item {
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
  }
}

.activity-screen .history-item + .history-item {
  margin-top: 19px;
  padding-top: 20px;
  border-top: 0;
}

.activity-screen .history-item strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}

.activity-screen .history-item span {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.activity-screen .history-item-header,
.activity-screen .history-item-exercises {
  grid-column: 1 / -1;
}

.activity-screen .history-item-header,
.activity-screen .history-exercise-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 15px;
}

.activity-screen .history-item-header strong,
.activity-screen .history-item-header span {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}

.activity-screen .history-item-header span,
.activity-screen .history-exercise-result {
  text-align: right;
}

.activity-screen .history-item-exercises {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.activity-screen .history-exercise-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-screen .history-exercise-result {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .activity-screen .history-item,
  .account-submenu-panel .history-item {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard */
.admin-dashboard-list {
  display: grid;
  gap: 18px;
  width: 100%;
  min-height: 438px;
  padding: 12px 24px 24px;
  border-radius: 0 0 20px 20px;
  background: var(--main);
  color: #ffffff;
}

.admin-user-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
  min-width: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.admin-user-row span {
  overflow-wrap: anywhere;
}

.account-submenu-panel .admin-dashboard-list {
  flex: 0 0 100%;
  width: 100%;
  margin-top: -19px;
  border: 1px solid #ffffff;
  border-top: 0;
  background: transparent;
}

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

.admin-user-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--main);
  font-weight: 800;
}

.compact-admin-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 10px 12px;
}

.compact-admin-row > strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--main);
  font-size: 14px;
}

.compact-admin-row .admin-user-stats {
  justify-content: flex-end;
}

@media (min-width: 700px) {
  .account-modal-content {
    width: min(100%, 680px);
    padding: var(--space-6);
  }

  .account-panel.account-password-mode .account-modal-content {
    width: min(100%, 680px);
    padding: 0;
  }
}

/* Menu and submenu tile system */
:root {
  --account-tile-gap: 0px;
  --account-header-height: 200px;
}

.account-panel.account-modal.account-main-mode,
.account-submenu-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
  background: #1c1c1c;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.account-panel.account-modal.account-main-mode .account-modal-content,
.account-submenu-panel .account-submenu-panel__content {
  width: min(100%, var(--app-width));
  height: auto;
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: #1c1c1c;
  box-shadow: none;
  overflow: visible !important;
}

.account-panel.account-modal.account-main-mode .account-tile-header,
.account-submenu-panel .account-tile-header {
  flex: 0 0 var(--account-header-height);
  width: 100%;
  height: var(--account-header-height);
  display: grid;
  grid-template-columns: minmax(0, 252fr) minmax(0, 142fr);
  gap: 0;
  margin: 0;
}

.account-header-tile {
  min-width: 0;
  height: var(--account-header-height);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.account-header-brand-tile,
.account-header-back-tile {
  background: #ffffff;
}

.account-header-action-tile {
  background: var(--main);
}

.account-menu-logo {
  display: block;
  width: min(134px, calc(100% - 48px));
  height: auto;
}

.account-panel.account-modal.account-main-mode #accountModalTitle,
.account-submenu-panel #accountSubmenuTitle {
  position: absolute;
}

.account-panel.account-modal.account-main-mode .menu-close-btn,
.account-submenu-panel .menu-close-btn,
.account-submenu-panel .account-back-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.account-panel.account-modal.account-main-mode .menu-close-btn::before,
.account-submenu-panel .menu-close-btn::before,
.account-submenu-panel .account-back-btn::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  background: currentColor;
}

.account-panel.account-modal.account-main-mode .menu-close-btn,
.account-submenu-panel .menu-close-btn {
  color: #ffffff;
}

.account-panel.account-modal.account-main-mode #closeAccountModalBtn,
.account-submenu-panel #closeAccountSubmenuBtn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  color: #ffffff;
}

.account-panel.account-modal.account-main-mode .menu-close-btn::before,
.account-submenu-panel .menu-close-btn::before {
  mask: url("Assets/x.svg") center / 34px 34px no-repeat;
  -webkit-mask: url("Assets/x.svg") center / 34px 34px no-repeat;
}

.account-panel.account-modal.account-main-mode #closeAccountModalBtn::before,
.account-submenu-panel #closeAccountSubmenuBtn::before {
  width: 34px;
  height: 34px;
  background: currentColor;
  mask: url("Assets/x.svg") center / 34px 34px no-repeat;
  -webkit-mask: url("Assets/x.svg") center / 34px 34px no-repeat;
}

.account-submenu-panel .account-back-btn {
  color: var(--main);
}

.account-submenu-panel .account-back-btn::before {
  mask: url("Assets/arrow-left.svg") center / 34px 34px no-repeat;
  -webkit-mask: url("Assets/arrow-left.svg") center / 34px 34px no-repeat;
}

.account-panel.account-modal.account-main-mode .menu-close-btn:focus-visible,
.account-submenu-panel .menu-close-btn:focus-visible,
.account-submenu-panel .account-back-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.account-panel.account-modal.account-main-mode #accountMainView,
.account-submenu-panel .account-view {
  flex: 1 0 auto;
  width: 100%;
  min-height: calc(100dvh - var(--account-header-height));
  margin: 0;
  padding: 52px 28px calc(44px + env(safe-area-inset-bottom)) !important;
  border-radius: var(--radius);
  background: var(--main);
  color: #ffffff;
  overflow: visible;
}

.account-panel.account-modal.account-main-mode #accountMainView {
  position: static;
  display: flex;
  flex-direction: column;
}

.account-panel.account-modal.account-main-mode #syncStatus,
.account-panel.account-modal.account-main-mode .account-list-btn span {
  display: none;
}

.account-panel.account-modal.account-main-mode .account-section {
  padding: 0;
  border: 0;
}

.account-panel.account-modal.account-main-mode .account-section + .account-section {
  margin-top: 48px;
}

.account-panel.account-modal.account-main-mode .account-section h3 {
  margin: 0 0 3px;
  color: #F7F3E6;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.account-panel.account-modal.account-main-mode .account-list-btn {
  width: auto;
  min-height: 36px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 500;
  text-align: left;
}

.account-panel.account-modal.account-main-mode .account-list-btn + .account-list-btn {
  margin-top: 4px;
}

.account-panel.account-modal.account-main-mode .account-menu-footer {
  position: static !important;
  width: 100%;
  margin-top: auto !important;
  padding: 72px 0 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-panel.account-modal.account-main-mode .account-menu-footer-left {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.account-panel.account-modal.account-main-mode #accountEmail,
.account-panel.account-modal.account-main-mode #logoutBtn,
.account-panel.account-modal.account-main-mode .menu-footer-link {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
}

.account-panel.account-modal.account-main-mode #accountEmail {
  max-width: 220px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.account-panel.account-modal.account-main-mode #logoutBtn {
  width: auto;
  min-height: 44px;
  margin-top: -12px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-submenu-panel .account-view {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 18px;
  row-gap: 18px;
}

.account-submenu-panel #accountEquipmentView {
  display: flex;
  flex-wrap: wrap;
}

.account-submenu-panel #accountEquipmentView .option-row {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  padding-right: 16px;
  padding-left: 16px;
  white-space: nowrap;
}

.account-submenu-panel .account-view.hidden {
  display: none !important;
}

.account-submenu-panel .account-view > .text-btn {
  display: none !important;
}

.account-submenu-panel .account-view h2 {
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
}

.account-submenu-panel .account-view > .muted {
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 26px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
}

.account-submenu-panel .account-goal-options {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-submenu-panel .account-goal-options .option-row,
.account-submenu-panel .account-goal-options .option-row:nth-child(n + 4) {
  grid-column: auto;
  width: 100%;
  padding: 0 10px;
}

.account-submenu-panel .option-row:has(input:checked),
.account-submenu-panel .custom-type-row label:has(input:checked) {
  border-color: #F7F3E6;
  background: #F7F3E6;
  color: var(--main);
}

.account-submenu-panel .account-full-btn {
  background: #F7F3E6;
  border-color: #F7F3E6;
}

.account-submenu-panel #accountTrackerView {
  display: flex;
}

.account-submenu-panel #accountTrackerView.hidden {
  display: none !important;
}

.account-submenu-panel #customChecklistForm {
  display: contents !important;
}

.account-submenu-panel #activityQuickSelect,
.account-submenu-panel #customChecklistTargetInput,
.account-submenu-panel #customChecklistMessage,
.account-submenu-panel #createCustomChecklistBtn {
  flex: 0 0 100%;
  width: 100%;
}

.account-submenu-panel #customChecklistTargetInput::placeholder {
  color: rgba(247, 243, 230, 0.72);
}

.account-submenu-panel .custom-type-row {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
}

.account-submenu-panel .custom-type-row label {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #F7F3E6 !important;
  border-radius: 20px !important;
  background: transparent !important;
  color: #F7F3E6 !important;
  font-weight: 500;
}

.account-submenu-panel .custom-type-row label:has(input:checked) {
  background: #F7F3E6 !important;
  color: var(--main) !important;
}

.account-submenu-panel #createCustomChecklistBtn {
  margin: 33px 0 0 !important;
}

@media (max-width: 350px) {
  .account-panel.account-modal.account-main-mode #accountMainView,
  .account-submenu-panel .account-view {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .account-panel.account-modal.account-main-mode .account-list-btn {
    font-size: 29px;
  }

  .account-submenu-panel .account-goal-options,
  .account-submenu-panel .custom-type-row,
  .account-submenu-panel .recovery-mode-row {
    gap: 12px !important;
  }

  .account-submenu-panel .account-goal-options .option-row {
    padding: 0 6px;
    font-size: 16px;
  }
}

/* Shared page-level tile architecture for Progress and Activity */
:root {
  --tile-header-height: 200px;
  --tile-header-main-width: 252fr;
  --tile-header-menu-width: 142fr;
}

html.tile-screen-active,
body.tile-screen-active {
  width: 100%;
  height: var(--app-viewport-height);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000000;
}

body.tile-screen-active .app {
  width: 100%;
  max-width: none;
  height: var(--app-viewport-height);
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000000;
}

body.tile-screen-active .topbar {
  display: none;
}

body.tile-screen-active .screen.active {
  width: min(100%, var(--app-width));
  height: var(--app-viewport-height);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  background: #000000;
  -webkit-overflow-scrolling: touch;
}

.tile-screen-header {
  flex: 0 0 var(--tile-header-height);
  width: 100%;
  height: var(--tile-header-height);
  display: grid;
  grid-template-columns: minmax(0, var(--tile-header-main-width)) minmax(0, var(--tile-header-menu-width));
  gap: 0;
  margin: 0;
  padding: 0;
}

.tile-screen-header__mascot,
.tile-screen-header__menu {
  min-width: 0;
  height: var(--tile-header-height);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.tile-screen-header__mascot {
  background: #ffffff;
}

.tile-screen-header__menu {
  background: var(--main);
}

.tile-screen-mascot {
  display: block;
  width: min(87.4%, 193.2px);
  height: min(87.4%, 174.8px);
  object-fit: contain;
}

.tile-screen-menu-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tile-screen-menu-btn img {
  display: block;
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.progress-screen .goal-hero,
.progress-screen .progress-insight-card,
.progress-screen .mastering-skills-card,
.activity-screen .activity-summary-card,
.activity-screen .activity-calendar-card,
.activity-screen .activity-detail-tile {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: visible;
}

.progress-screen .progress-priority-tile {
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: #ffffff;
}

.progress-priority-copy {
  min-width: 0;
}

.progress-screen .goal-hero h2 {
  margin: 0 0 12px;
  color: var(--main);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
}

.progress-screen .goal-hero h2.is-long-title {
  font-size: clamp(30px, 8.6vw, 34px);
  white-space: nowrap;
}

.progress-screen .focus-next-milestone {
  margin: 0;
  color: var(--main);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.focus-circular-progress {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
}

.focus-circular-progress svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.focus-circular-progress circle {
  fill: none;
  stroke-width: 9;
}

.focus-circular-progress .focus-progress-track {
  stroke: rgba(1, 45, 237, 0.15);
}

.focus-circular-progress .focus-progress-value {
  stroke: var(--main);
  stroke-linecap: round;
  stroke-dasharray: 100;
  transition: stroke-dashoffset 220ms ease;
}

.focus-circular-progress span {
  position: absolute;
  color: var(--main);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.progress-screen .progress-insight-card {
  min-height: 148px;
  display: flex;
  align-items: center;
  padding: 28px;
  background: var(--cream);
  color: var(--main);
}

.progress-screen .progress-insight-copy h3 {
  margin: 0 0 15px;
  color: var(--main);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.progress-screen .progress-insight-copy {
  width: 100%;
  margin: 0;
}

.progress-screen .progress-insight-copy p {
  margin: 0;
  color: var(--main);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
}

.progress-screen .mastering-skills-card {
  flex: 1 0 auto;
  min-height: 260px;
  padding: 44px 28px calc(90px + env(safe-area-inset-bottom));
  background: var(--main);
  color: #ffffff;
}

.progress-screen #levelsList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.progress-screen .level-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.progress-screen .level-row strong {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
}

.progress-screen .skill-progress-dots {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.progress-screen .skill-progress-dots .progress-dot {
  width: clamp(13px, 4.6vw, 18px);
  height: clamp(13px, 4.6vw, 18px);
  background: rgba(255, 255, 255, 0.35);
}

.progress-screen .skill-progress-dots .progress-dot.is-filled {
  background: #ffffff;
}

.activity-screen .activity-summary-card {
  flex: 0 0 168px;
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 126fr) minmax(0, 126fr) minmax(0, 141fr);
  gap: 0;
  padding: 0;
  background: transparent;
}

.activity-stat-tile {
  min-width: 0;
  height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--main);
  text-align: center;
}

.activity-energy-tile {
  background: #ffffff;
}

.activity-stat-tile strong {
  max-width: 100%;
  margin: 0 0 12px;
  color: var(--main);
  font-size: clamp(22px, 7.4vw, 30px);
  line-height: 1;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.activity-stat-tile span {
  max-width: 100%;
  color: var(--main);
  font-size: 13px;
  line-height: 1.18;
  font-weight: 400;
}

.activity-stat-label,
.activity-stat-label > span {
  display: block;
}

.activity-stat-period {
  white-space: nowrap;
}

.activity-screen .activity-calendar-card {
  flex: 1 0 auto;
  min-height: 390px;
  padding: 32px 24px calc(90px + env(safe-area-inset-bottom));
  background: #ffffff;
}

.activity-screen.has-detail .activity-calendar-card {
  flex: 0 0 auto;
  min-height: 390px;
  padding-bottom: 32px;
}

.activity-screen .history-header {
  margin-bottom: 28px;
}

.activity-screen #historyYearTitle {
  margin: 0 0 6px;
  color: var(--main);
  font-size: 18px;
}

.activity-screen .history-header h3 {
  color: var(--main);
  font-size: 40px;
  line-height: 1;
}

.activity-screen .history-weekdays,
.activity-screen .history-calendar {
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-content: stretch;
  gap: 5px;
}

.activity-screen .history-weekdays {
  color: rgba(1, 45, 237, 0.35);
  font-size: 14px;
  text-align: center;
}

.activity-screen .history-weekdays .is-today-weekday {
  color: var(--main);
}

.activity-screen .history-day {
  width: min(100%, 44px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(1, 45, 237, 0.15);
  background: transparent;
}

.activity-screen .history-day.past-empty {
  border-color: transparent;
  background: rgba(1, 45, 237, 0.15);
}

.activity-screen .history-day.has-workout {
  border-color: var(--main);
  background: var(--main);
}

.activity-screen .history-day.is-today {
  border: 2px solid var(--main);
  background: #ffffff;
}

.activity-screen .history-day.has-workout.is-today {
  border: 2px solid var(--main);
  background: var(--main);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.activity-screen .history-day.is-selected:not(.is-today) {
  border: 2px solid var(--main);
  background: rgba(1, 45, 237, 0.15);
}

.activity-screen .history-day.has-workout.is-selected:not(.is-today) {
  background: var(--main);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.activity-screen .activity-detail-tile {
  flex: 1 0 auto;
  min-height: 180px;
  margin: 0;
  padding: 28px 24px calc(90px + env(safe-area-inset-bottom));
  background: var(--main);
  color: #ffffff;
}

.activity-screen .activity-detail-tile:empty {
  display: none;
}

.activity-screen .history-item {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.activity-screen .history-item + .history-item {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 350px) {
  .progress-screen .progress-priority-tile {
    grid-template-columns: minmax(0, 1fr) 92px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .focus-circular-progress,
  .focus-circular-progress svg {
    width: 92px;
    height: 92px;
  }

  .progress-screen .goal-hero h2.is-long-title {
    white-space: normal;
  }

  .activity-stat-tile {
    padding-right: 8px;
    padding-left: 8px;
  }

  .activity-stat-tile span {
    font-size: 12px;
  }

  .activity-stat-period {
    white-space: normal;
  }
}
