﻿/* Fullscreen active workout polish and compact logger overrides */

/* Active workout minimal list experiment */
body.workout-mode .active-workout-panel {
  background:
    radial-gradient(circle at 14% 0%, rgba(96,212,244,0.08), transparent 30%),
    linear-gradient(180deg, #10101a 0%, #090a0f 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.workout-mode .active-workout-head {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px !important;
  background: rgba(12,13,20,0.72) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.workout-mode .active-workout-label {
  font-size: 8px;
  letter-spacing: 2.6px;
}
body.workout-mode .active-workout-title {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 22px !important;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.4px;
}
body.workout-mode .active-workout-inline {
  gap: 6px;
}
body.workout-mode .active-summary-pill,
body.workout-mode .active-workout-timer-pill,
body.workout-mode .active-auto-rest-btn,
body.workout-mode .active-rest-pill-btn {
  border-radius: 14px !important;
  background: rgba(255,255,255,0.055) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
}
body.workout-mode .active-workout-timer-pill {
  color: var(--green);
  background: rgba(77,255,160,0.08) !important;
  border-color: rgba(77,255,160,0.18) !important;
}
body.workout-mode .active-workout-exercises {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 4px 18px 18px !important;
  gap: 0 !important;
}
body.workout-mode .active-ex-card {
  position: relative;
  padding: 17px 0 18px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.075) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.workout-mode .active-ex-card:first-child {
  border-top-color: transparent !important;
}
body.workout-mode .active-ex-card::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 19px;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(96,212,244,0.95), rgba(232,244,77,0.42));
  opacity: .32;
}
body.workout-mode .active-ex-card.done::before {
  background: var(--green);
  opacity: .65;
  box-shadow: 0 0 16px rgba(77,255,160,0.25);
}
body.workout-mode .active-ex-card.done {
  background: linear-gradient(90deg, rgba(77,255,160,0.055), transparent 48%) !important;
}
body.workout-mode .active-ex-top {
  align-items: flex-start;
  margin-bottom: 8px !important;
}
body.workout-mode .active-ex-title {
  font-size: 16px !important;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.2px;
}
body.workout-mode .active-ex-sub {
  margin-top: 3px !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.42) !important;
}
body.workout-mode .active-tag-row {
  margin: 0 0 8px !important;
  gap: 5px;
}
body.workout-mode .active-chip-soft {
  padding: 4px 7px !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  letter-spacing: .65px !important;
  background: rgba(255,255,255,0.045) !important;
}
body.workout-mode .active-set-table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
}
body.workout-mode .active-set-head,
body.workout-mode .active-set-line {
  grid-template-columns: 30px minmax(92px,1fr) minmax(66px,.62fr) minmax(62px,.58fr) 34px !important;
  gap: 8px !important;
}
body.workout-mode .active-set-head {
  padding: 0 0 6px !important;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
body.workout-mode .active-set-head span {
  font-size: 7.5px !important;
  letter-spacing: 1.2px !important;
  color: rgba(255,255,255,0.34) !important;
}
body.workout-mode .active-set-line {
  min-height: 44px;
  padding: 6px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.055) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.workout-mode .active-set-line.done {
  border-radius: 13px !important;
  padding: 6px 7px !important;
  margin: 2px -7px !important;
  background: linear-gradient(90deg, rgba(77,255,160,0.16), rgba(77,255,160,0.045)) !important;
  border-bottom-color: rgba(77,255,160,0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(77,255,160,0.08) !important;
}
body.workout-mode .active-set-label {
  color: rgba(255,255,255,0.72);
  font-size: 11px !important;
  justify-content: center;
}
body.workout-mode .active-set-prev-btn,
body.workout-mode .active-set-prev-empty,
body.workout-mode .active-set-input {
  min-height: 32px !important;
  border-radius: 11px !important;
  font-size: 10px !important;
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(255,255,255,0.085) !important;
}
body.workout-mode .active-set-prev-btn {
  color: var(--blue) !important;
  background: rgba(96,212,244,0.075) !important;
  border-color: rgba(96,212,244,0.18) !important;
}
body.workout-mode .active-set-input:focus {
  border-color: rgba(232,244,77,0.38) !important;
  box-shadow: 0 0 0 3px rgba(232,244,77,0.055);
}
body.workout-mode .active-set-complete {
  width: 30px !important;
  height: 30px !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.055) !important;
}
body.workout-mode .active-set-complete.done {
  background: var(--green) !important;
  color: #06110b !important;
  box-shadow: 0 0 18px rgba(77,255,160,0.18);
}
body.workout-mode .active-add-set,
body.workout-mode .active-repeat-prev {
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px dashed rgba(255,255,255,0.13) !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.workout-mode .active-repeat-prev {
  color: var(--blue);
  border-top-color: rgba(96,212,244,0.18) !important;
}
body.workout-mode .active-workout-finish-row {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  background: rgba(10,11,17,0.86);
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media(max-width:430px){
  body.workout-mode .active-workout-head {
    padding: calc(11px + env(safe-area-inset-top, 0px)) 12px 10px !important;
  }
  body.workout-mode .active-workout-title {
    font-size: 19px !important;
  }
  body.workout-mode .active-workout-exercises {
    padding: 2px 14px 14px !important;
  }
  body.workout-mode .active-ex-card {
    padding: 14px 0 15px !important;
  }
  body.workout-mode .active-ex-card::before {
    left: -7px;
    top: 16px;
    height: 30px;
  }
  body.workout-mode .active-set-head,
  body.workout-mode .active-set-line {
    grid-template-columns: 24px minmax(72px,1fr) minmax(54px,.62fr) minmax(50px,.58fr) 28px !important;
    gap: 5px !important;
  }
  body.workout-mode .active-set-prev-btn,
  body.workout-mode .active-set-prev-empty,
  body.workout-mode .active-set-input {
    min-height: 29px !important;
    font-size: 8.5px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  body.workout-mode .active-set-complete {
    width: 27px !important;
    height: 27px !important;
  }
}
