body:has(#nav:not(.hidden)) .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: 10px max(14px, calc((100% - 696px) / 2));
  background: #101820;
  border-bottom: 1px solid #263442;
}

body:has(#nav:not(.hidden)) .hero :is(.hero-title, .mountains) {
  display: none;
}

body:has(#nav:not(.hidden)) .hero .brand {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: .16em;
}

body:has(#nav:not(.hidden)) .hero .tag {
  margin-top: 4px;
  color: #e4bd7c;
  font-size: 8px;
  letter-spacing: .12em;
}

.hero .journey-bar {
  align-items: flex-end;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
}

.hero #journey-date-label {
  padding-right: 2px;
  color: #aebdcb;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero .journey-bar:has(#journey-today:not(.hidden)) #journey-date-label {
  display: none;
}

.hero .journey-date-controls {
  flex-wrap: nowrap;
  gap: 4px;
}

.hero #journey-date {
  width: 128px;
  min-width: 0;
  padding-inline: 9px;
  border-color: #354555;
  border-radius: 9px;
  background: #18232e;
  color-scheme: dark;
  font-variant-numeric: tabular-nums;
}

.hero #journey-today {
  min-width: 44px;
  padding-inline: 4px;
  background: none;
  color: #e4bd7c;
}

#account .account-logout {
  margin-top: 4px;
}

body:has(#nav:not(.hidden)) main {
  padding-inline: clamp(12px, 4vw, 22px);
}

#undo-action:empty {
  display: none;
}

#app .page > .card,
.home-dashboard > .card {
  margin-bottom: 10px;
  border-radius: 14px;
}

#app .page > details.card,
.home-dashboard > details.card {
  padding: 0 14px;
}

#app .page > details.card[open],
.home-dashboard > details.card[open] {
  padding-bottom: 14px;
}

#app details.card > summary {
  min-height: 48px;
  padding: 13px 0;
  line-height: 1.35;
  font-size: 14px;
}

#app .page h2 {
  text-wrap: balance;
}

#session-controls {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #394553;
  border-radius: 0;
  background: none;
}

#session-controls .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr));
}

#workout-type {
  border-color: #88734e;
}

#app .more-tools {
  gap: 6px;
}

#app .more-tools button {
  background: #253342;
  color: #f6f4ee;
  padding: 9px 12px;
}

#food .meal-card,
#food .nutrition-water {
  padding: 14px;
  border-color: #2c3a49;
  border-radius: 17px;
  background: #18222d;
}

.meal-card h2 {
  font-size: 22px;
  letter-spacing: -.02em;
}

.meal-fields,
.water-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meal-identity {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

@media (max-width: 360px) {
  .meal-identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meal-card form label {
  margin: 9px 0 4px;
  font-size: 12px;
}

.meal-card form :is(input, select) {
  padding: 8px 9px;
  border-color: #3a4a5a;
  border-radius: 9px;
}

.meal-card form input::placeholder {
  color: #93a4b5;
  font-size: 12px;
}

.form-options {
  margin: 7px 0;
  color: #c5d1dd;
  font-size: 13px;
}

.form-options > summary {
  padding: 12px 2px;
}

.form-options[open] {
  padding-bottom: 8px;
  border-bottom: 1px solid #354454;
}

.meal-save {
  width: 100%;
}

.water-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.water-heading h2 {
  margin: 0;
  font-size: 16px;
}

.water-heading small {
  color: #c5d1dd;
  font-variant-numeric: tabular-nums;
}

.nutrition-water progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 8px 0 10px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 99px;
  background: #303f4e;
}

.nutrition-water progress::-webkit-progress-bar {
  background: #303f4e;
}

.nutrition-water progress::-webkit-progress-value {
  border-radius: 99px;
  background: #e4bd7c;
}

.nutrition-water progress::-moz-progress-bar {
  border-radius: 99px;
  background: #e4bd7c;
}

.water-actions button {
  padding: 8px;
  font-size: 13px;
}

#intClock {
  color: #eac58a;
  font-size: clamp(28px, 8vw, 44px);
  font-variant-numeric: tabular-nums;
}

#daily-report-card .reportrow {
  padding-block: 8px;
}

#app .module-tabs button {
  padding: 8px 6px;
  line-height: 1.25;
}

#nav {
  gap: 0;
  overflow: visible;
  padding: 3px 6px calc(3px + env(safe-area-inset-bottom));
}

#nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 53px;
  padding: 5px 0;
  font-size: 11px;
}

.mobile-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.home-dashboard .home-log-card {
  padding: 14px;
  border-color: #2c3a49;
  border-radius: 18px;
  background: #18222d;
}

.home-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.home-log-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.025em;
}

#weekly-plan-title {
  font-size: 19px;
}

.weekly-plan-navigation {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.weekly-plan-navigation button {
  display: grid;
  place-items: center;
  padding: 0;
}

#weekly-plan-range {
  margin: 0;
  color: #c5d1dd;
  text-align: center;
  font-size: 13px;
}

#weekly-plan-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 8px;
}

#weekly-plan-strip button {
  padding: 0;
  font-size: 11px;
}

#weekly-plan-strip [aria-current="date"] {
  box-shadow: inset 0 -2px #e4bd7c;
}

#weekly-plan-strip [aria-pressed="true"] {
  background: #e4bd7c;
  color: #171c22;
}

#weekly-plan-days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

#weekly-plan-days > li {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.weekly-plan-day {
  min-height: 110px;
  padding: 12px;
  border: 1px solid #293949;
  border-radius: 11px;
  background: #121c27;
  overflow-wrap: anywhere;
}

.weekly-plan-day time {
  color: #b8c7d6;
  font-size: 12px;
}

.weekly-plan-day h3 {
  margin: 4px 0 8px;
  font-size: 17px;
}

.weekly-plan-day button {
  padding: 8px 12px;
  font-size: 13px;
}

.weekly-plan-exercises summary {
  cursor: pointer;
  align-content: center;
  font-size: 13px;
}

.weekly-plan-exercises ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-plan-exercises li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-block: 6px;
  border-top: 1px solid #293949;
  font-size: 13px;
}

.weekly-plan-exercises small {
  white-space: nowrap;
}

#home-weekly-range {
  margin: 0;
  color: #aebdcb;
  font-size: 12px;
  text-align: end;
}

#home-open-report {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0 6px 6px;
  background: none;
  color: #eac58a;
  font-size: 12px;
  white-space: nowrap;
}

#home-open-report .mobile-icon {
  width: 15px;
  height: 15px;
}

.home-log-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(102px, calc((100% - 35px) / 6));
  gap: 7px;
  padding-bottom: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #56687b transparent;
}

.home-log-tiles dl {
  display: contents;
}

.home-log-tiles:has(#home-weekly-log) {
  grid-auto-columns: max(102px, calc((100% - 28px) / 5));
}

.home-log-tiles > button,
.home-log-tiles .home-metric {
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .home-log-tiles,
  .home-log-tiles:has(#home-weekly-log) {
    grid-auto-columns: max(102px, 34%);
  }
}

.home-metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #293949;
  border-radius: 11px;
  background: #121c27;
}

.home-metric dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c5d1dd;
  font-size: 12px;
}

.home-metric dt .mobile-icon {
  width: 16px;
  height: 16px;
  color: #e4bd7c;
}

.home-metric dd {
  min-height: 23px;
  margin: 4px 0 0;
  line-height: 1.15;
}

.home-metric dd strong {
  color: #f6f4ee;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.home-metric dd small {
  color: #aebdcb;
  font-size: 11px;
}

.home-metric-note {
  display: block;
  margin-top: 3px;
}

.home-metric-empty {
  color: #91a2b3;
  font-size: 20px;
}

#home-log-food {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 61px;
  padding: 8px;
  border: 1px solid #5f513a;
  border-radius: 11px;
  background: #2d281f;
  color: #f2cc91;
  font-size: 13px;
}

.daily-log {
  margin: 0;
}

.daily-log > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #394553;
}

.daily-log dd {
  margin: 0;
  color: #eac58a;
  font-weight: 700;
}

.lift-graph {
  margin: 14px 0 0;
}

.lift-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lift-filters select {
  font-size: 13px;
}

.lift-viewport:has(svg) svg {
  touch-action: pan-y;
}

.lift-slider {
  margin-top: 8px;
}

.lift-slider input {
  padding: 0;
  accent-color: #e4bd7c;
}

.lift-graph figcaption {
  display: grid;
  gap: 3px;
}

.lift-graph svg {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}

.lift-graph svg text {
  fill: #c3ceda;
  font-size: 12px;
}

.lift-grid {
  stroke: #394553;
  stroke-width: 1;
}

.lift-line {
  fill: none;
  stroke: #eac58a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lift-point {
  fill: #eac58a;
  stroke: #1b242e;
  stroke-width: 1.5;
}

.lift-values summary {
  color: #c3ceda;
  font-size: 13px;
}

.page-disclosure > .card,
.page-disclosure > .panel {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.compact-disclosure > .card > h2 {
  display: none;
}

.page-disclosure > summary {
  font-weight: 700;
}

.more-tools h3 {
  margin: 8px 0 0;
  color: #abb4bf;
  font-size: 13px;
}

#daily-report-card > .brand,
#daily-report-card > .tag,
#daily-report-card > .gold,
#daily-report-date {
  display: none;
}

#interval-view .row {
  justify-content: center;
}

#interval-view .page-disclosure {
  margin-bottom: 0;
}

#auth .card h2 {
  margin-bottom: 6px;
}

.home-dashboard .home-workout-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 15px;
  border-color: #514633;
  border-radius: 18px;
  background: linear-gradient(122deg, #242322, #1a2430 80%);
}

.workout-contours {
  position: absolute;
  z-index: -1;
  top: -19px;
  right: -35px;
  width: min(68%, 300px);
  height: auto;
  color: #e4bd7c;
  opacity: .24;
  stroke: currentColor;
  stroke-width: 1;
  pointer-events: none;
}

.home-workout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #edc98f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-workout-badge[data-state="running"]::before,
.home-workout-badge[data-state="paused"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9be0b7;
}

.home-workout-badge[data-state="paused"]::before {
  background: #e4bd7c;
}

#home-workout-title {
  margin: 0 0 9px;
  font-size: 23px;
  letter-spacing: -.025em;
}

#home-workout-detail {
  margin: 0 0 9px;
}

#home-workout-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 13px;
}

#home-extra > summary {
  margin-bottom: 6px;
}

#home-extra > .card {
  margin-bottom: 8px;
}

.exercise-options,
.session-options {
  margin-top: 10px;
  border-top: 1px solid #394553;
}

.exercise-options summary,
.session-options summary {
  color: #c3ceda;
  font-size: 13px;
}

@media (max-width: 450px) {
  #set-tracker .setrow9 {
    grid-template-columns: 21px minmax(0, 1fr) minmax(0, 1fr) 62px 44px;
    gap: 4px;
  }

  #set-tracker .setrow9 button {
    font-size: 11px;
  }
}

