/* v3.8.9 mobile live fixes: restore vertical scroll, compact set inputs, finish confirmation polish */
@media (max-width: 820px) {
  body[data-page="/mobile-train"] {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
  }

  body[data-page="/mobile-train"] .main.container,
  body[data-page="/mobile-train"] .mobile-live-page,
  body[data-page="/mobile-train"] .mobile-live-shell,
  body[data-page="/mobile-train"] .mobile-live-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .mobile-live-shell {
    min-height: auto !important;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-live-card,
  .mobile-live-entry-panel,
  .mobile-live-rest,
  .mobile-live-saved,
  .mobile-live-record-table,
  .mobile-live-set-list,
  .mobile-live-set-list * {
    box-sizing: border-box;
  }

  .mobile-live-entry-panel {
    padding: 11px !important;
    overflow: hidden;
  }

  .mobile-live-panel-head {
    align-items: flex-start !important;
  }

  .mobile-live-panel-head span {
    max-width: 48%;
    line-height: 1.35;
    text-align: right;
  }

  .mobile-live-set-list {
    width: 100%;
    min-width: 0;
    gap: 8px !important;
  }

  .mobile-live-set-list .set-row-with-type[data-set-row] {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    gap: 8px;
    align-items: center;
    padding: 9px !important;
    border-radius: 18px !important;
  }

  .mobile-live-set-list .set-index {
    flex: 0 0 46px;
    width: 46px !important;
    height: 44px !important;
    min-width: 0;
    border-radius: 15px !important;
  }

  .mobile-live-set-list .set-type-select {
    flex: 1 1 calc(100% - 102px);
    min-width: 0;
    max-width: calc(100% - 102px);
  }

  .mobile-live-set-list .remove-set {
    flex: 0 0 40px;
    width: 40px !important;
    height: 44px !important;
    min-width: 0;
    border-radius: 14px !important;
  }

  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .mobile-live-set-list input,
  .mobile-live-set-list select {
    width: auto !important;
    min-width: 0;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 6px !important;
    font-size: 14px !important;
    line-height: 1.1;
  }

  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"] {
    font-size: 16px !important;
  }

  .mobile-live-set-list input[name="set_rpe"] {
    flex-grow: .78;
    font-size: 13px !important;
  }

  .mobile-live-actions-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .mobile-live-small-btn {
    min-width: 0;
    padding: 0 6px;
    white-space: nowrap;
  }

  .mobile-live-dock {
    pointer-events: none;
  }

  .mobile-live-dock a {
    pointer-events: auto;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-list .set-index {
    flex-basis: 42px;
    width: 42px !important;
  }

  .mobile-live-set-list .set-type-select {
    flex-basis: calc(100% - 92px);
    max-width: calc(100% - 92px);
  }

  .mobile-live-set-list .remove-set {
    flex-basis: 34px;
    width: 34px !important;
  }

  .mobile-live-set-list input,
  .mobile-live-set-list select {
    font-size: 13px !important;
  }

  .mobile-live-actions-row {
    grid-template-columns: 1fr !important;
  }
}


/* v3.8.10 record panel clarity: readable set card, remove copy-last-exercise button */
@media (max-width: 820px) {
  .mobile-live-entry-panel { padding: 12px !important; }

  .mobile-live-set-list .set-row-with-type[data-set-row] {
    display: block !important;
    padding: 10px !important;
  }

  .mobile-live-set-top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
  }

  .mobile-live-set-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-live-set-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .mobile-live-set-fields label > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    padding-left: 2px;
  }

  .mobile-live-set-list .set-type-select,
  .mobile-live-set-list .remove-set,
  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    grid-area: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-live-set-list .set-index {
    flex: initial;
    width: 48px !important;
    height: 44px !important;
  }

  .mobile-live-set-list .set-type-select {
    flex: initial;
    max-width: none;
  }

  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    flex: initial;
    min-width: 0;
    font-size: 16px !important;
  }

  .mobile-live-set-list input[name="set_rpe"] {
    font-size: 15px !important;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-top {
    grid-template-columns: 44px minmax(0, 1fr) 36px;
  }

  .mobile-live-set-fields {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .mobile-live-set-fields label > span {
    font-size: 10px;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* v3.8.11 mobile current-record overlap fix: keep set type visible, avoid index overlap, smaller action text */
@media (max-width: 820px) {
  .mobile-live-set-list .set-row-with-type[data-set-row] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding: 10px !important;
  }

  .mobile-live-set-top {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 34px !important;
    gap: 8px !important;
    align-items: stretch !important;
    min-width: 0;
    margin-bottom: 0 !important;
  }

  .mobile-live-set-fields {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0;
  }

  .mobile-live-set-list .set-index {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .mobile-live-set-list .set-type-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    padding: 0 30px 0 10px !important;
    text-align: left !important;
    text-align-last: left !important;
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-live-set-list .remove-set {
    width: 34px !important;
    min-width: 34px !important;
    height: 42px !important;
    font-size: 20px !important;
    align-self: stretch !important;
  }

  .mobile-live-set-fields label {
    min-width: 0 !important;
  }

  .mobile-live-set-fields label > span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 15px !important;
  }

  .mobile-live-set-list input[name="set_rpe"] {
    font-size: 14px !important;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .mobile-live-small-btn {
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-top {
    grid-template-columns: 38px minmax(0, 1fr) 32px !important;
    gap: 6px !important;
  }

  .mobile-live-set-list .set-index {
    width: 38px !important;
    min-width: 38px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  .mobile-live-set-list .set-type-select,
  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .mobile-live-set-list .remove-set {
    width: 32px !important;
    min-width: 32px !important;
    height: 40px !important;
  }

  .mobile-live-small-btn {
    font-size: 10px !important;
  }
}


/* v3.8.12 mobile current-record inline row fix: merge set-type and weight/reps/rpe into one line */
@media (max-width: 820px) {
  .mobile-live-set-list .set-row-with-type[data-set-row] {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1.12fr) minmax(0, .78fr) minmax(0, .78fr) minmax(0, .68fr) 34px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 10px !important;
  }

  .mobile-live-set-top,
  .mobile-live-set-fields {
    display: contents !important;
  }

  .mobile-live-set-fields label {
    display: block !important;
    min-width: 0 !important;
  }

  .mobile-live-set-fields label > span {
    display: none !important;
  }

  .mobile-live-set-list .set-index {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .mobile-live-set-list .set-type-select,
  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .mobile-live-set-list .set-type-select {
    padding-right: 26px !important;
    text-align: left !important;
    text-align-last: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-live-set-list .remove-set {
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    font-size: 19px !important;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-live-small-btn {
    font-size: 13px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-list .set-row-with-type[data-set-row] {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, .62fr) 30px !important;
    gap: 5px !important;
    padding: 9px !important;
  }

  .mobile-live-set-list .set-index {
    width: 36px !important;
    min-width: 36px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .mobile-live-set-list .set-type-select,
  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
    padding: 0 6px !important;
  }

  .mobile-live-set-list .set-type-select {
    padding-right: 22px !important;
  }

  .mobile-live-set-list .remove-set {
    width: 30px !important;
    min-width: 30px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  .mobile-live-small-btn {
    font-size: 13px !important;
  }
}


/* v3.8.13 mobile current-record alignment fix: keep delete at far right and align to header columns */
@media (max-width: 820px) {
  .mobile-live-set-list .set-row-with-type[data-set-row] {
    display: grid !important;
    grid-template-columns: 40px minmax(108px, 1.25fr) minmax(78px, .9fr) minmax(68px, .72fr) minmax(62px, .68fr) 34px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 10px !important;
  }

  .mobile-live-set-top,
  .mobile-live-set-fields {
    display: contents !important;
  }

  .mobile-live-set-list .set-index {
    grid-column: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .mobile-live-set-list .set-type-select {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 24px 0 8px !important;
    text-align: left !important;
    text-align-last: left !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-live-set-fields label {
    display: contents !important;
  }

  .mobile-live-set-fields label > span {
    display: none !important;
  }

  .mobile-live-set-list input[name="set_weight"] { grid-column: 3 !important; }
  .mobile-live-set-list input[name="set_reps"] { grid-column: 4 !important; }
  .mobile-live-set-list input[name="set_rpe"] { grid-column: 5 !important; }

  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .mobile-live-set-list .remove-set {
    grid-column: 6 !important;
    justify-self: end !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 19px !important;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-live-small-btn {
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-list .set-row-with-type[data-set-row] {
    grid-template-columns: 36px minmax(86px, 1.12fr) minmax(72px, .86fr) minmax(62px, .66fr) minmax(56px, .60fr) 30px !important;
    gap: 5px !important;
    padding: 9px !important;
  }

  .mobile-live-set-list .set-index {
    width: 36px !important;
    min-width: 36px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .mobile-live-set-list .set-type-select,
  .mobile-live-set-list input[name="set_weight"],
  .mobile-live-set-list input[name="set_reps"],
  .mobile-live-set-list input[name="set_rpe"] {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
    padding: 0 6px !important;
  }

  .mobile-live-set-list .set-type-select {
    padding-right: 20px !important;
  }

  .mobile-live-set-list .remove-set {
    width: 30px !important;
    min-width: 30px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 17px !important;
  }

  .mobile-live-small-btn {
    font-size: 13px !important;
  }
}


/* v3.8.14 mobile current-record DOM alignment fix:
   use a flat six-column grid so index/type/weight/reps/RPE/delete always stay on one line. */
@media (max-width: 820px) {
  .mobile-live-set-list {
    overflow: visible !important;
  }

  .mobile-live-set-list .set-head.set-row-with-type {
    display: grid !important;
    grid-template-columns: 40px minmax(86px, 1.12fr) minmax(62px, .78fr) minmax(58px, .70fr) minmax(50px, .62fr) 32px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 0 10px 6px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-live-set-list .set-head.set-row-with-type span {
    min-width: 0 !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    display: grid !important;
    grid-template-columns: 40px minmax(86px, 1.12fr) minmax(62px, .78fr) minmax(58px, .70fr) minmax(50px, .62fr) 32px !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .mobile-live-flat-set-row > * {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-live-flat-set-row .set-index {
    grid-column: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    justify-self: center !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .mobile-live-flat-set-row .set-type-select {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 23px 0 9px !important;
    text-align: left !important;
    text-align-last: left !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .mobile-live-flat-set-row input[name="set_weight"] { grid-column: 3 !important; }
  .mobile-live-flat-set-row input[name="set_reps"] { grid-column: 4 !important; }
  .mobile-live-flat-set-row input[name="set_rpe"] { grid-column: 5 !important; }

  .mobile-live-flat-set-row input[name="set_weight"],
  .mobile-live-flat-set-row input[name="set_reps"],
  .mobile-live-flat-set-row input[name="set_rpe"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  .mobile-live-flat-set-row .remove-set {
    grid-column: 6 !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 40px !important;
    min-height: 40px !important;
    justify-self: end !important;
    align-self: center !important;
    font-size: 18px !important;
  }

  .mobile-live-actions-row,
  .mobile-live-actions-row.compact-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-live-small-btn {
    font-size: 13px !important;
    min-height: 42px !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-list .set-head.set-row-with-type,
  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    grid-template-columns: 36px minmax(72px, 1fr) minmax(52px, .72fr) minmax(48px, .64fr) minmax(44px, .58fr) 28px !important;
    gap: 5px !important;
  }

  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    padding: 9px !important;
  }

  .mobile-live-flat-set-row .set-index {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 16px !important;
  }

  .mobile-live-flat-set-row .set-type-select,
  .mobile-live-flat-set-row input[name="set_weight"],
  .mobile-live-flat-set-row input[name="set_reps"],
  .mobile-live-flat-set-row input[name="set_rpe"] {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .mobile-live-flat-set-row .set-type-select {
    padding-right: 19px !important;
  }

  .mobile-live-flat-set-row .remove-set {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 17px !important;
  }

  .mobile-live-small-btn {
    font-size: 13px !important;
  }
}


/* v3.8.15 mobile record type-short fix: make set-type compact so delete button is fully visible on narrow phones */
@media (max-width: 820px) {
  .mobile-live-set-list .set-head.set-row-with-type,
  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    grid-template-columns: 40px 48px minmax(70px, 1fr) minmax(60px, .84fr) minmax(54px, .72fr) 34px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    padding: 10px !important;
    overflow: hidden !important;
  }

  .mobile-live-flat-set-row .set-type-select {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px 0 9px !important;
    text-align: left !important;
    text-align-last: left !important;
    font-size: 14px !important;
    font-weight: 950 !important;
  }

  .mobile-live-flat-set-row .remove-set {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    justify-self: end !important;
  }
}

@media (max-width: 390px) {
  .mobile-live-set-list .set-head.set-row-with-type,
  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    grid-template-columns: 36px 42px minmax(60px, 1fr) minmax(52px, .78fr) minmax(46px, .66fr) 30px !important;
    gap: 5px !important;
  }

  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    padding: 9px !important;
  }

  .mobile-live-flat-set-row .set-type-select {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 15px 0 7px !important;
    font-size: 13px !important;
  }

  .mobile-live-flat-set-row .remove-set {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
  }
}

@media (max-width: 360px) {
  .mobile-live-set-list .set-head.set-row-with-type,
  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    grid-template-columns: 34px 38px minmax(54px, 1fr) minmax(48px, .76fr) minmax(42px, .64fr) 28px !important;
    gap: 4px !important;
  }

  .mobile-live-set-list .set-row-with-type.mobile-live-flat-set-row[data-set-row] {
    padding: 8px !important;
  }

  .mobile-live-flat-set-row .set-index {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }

  .mobile-live-flat-set-row .set-type-select {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 13px 0 6px !important;
    font-size: 12px !important;
  }

  .mobile-live-flat-set-row .remove-set {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  .mobile-live-flat-set-row input[name="set_weight"],
  .mobile-live-flat-set-row input[name="set_reps"],
  .mobile-live-flat-set-row input[name="set_rpe"] {
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 12px !important;
  }
}


/* v3.8.16 mobile set-type select: full option text when opened, one-character display after selection */
@media (max-width: 820px) {
  .mobile-live-flat-set-row .set-type-wrap {
    grid-column: 2 !important;
    position: relative !important;
    display: block !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .mobile-live-flat-set-row .set-type-wrap .set-type-select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    color: transparent !important;
    background-color: #fff !important;
    text-align: center !important;
    text-align-last: center !important;
    cursor: pointer;
  }

  .mobile-live-flat-set-row .set-type-wrap .set-type-select option {
    color: var(--text) !important;
    background: #fff !important;
  }

  .mobile-live-flat-set-row .set-type-short {
    position: absolute !important;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
  }
}

@media (max-width: 390px) {
  .mobile-live-flat-set-row .set-type-wrap {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
  .mobile-live-flat-set-row .set-type-short {
    left: 7px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .mobile-live-flat-set-row .set-type-wrap {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
  .mobile-live-flat-set-row .set-type-short {
    left: 6px;
    font-size: 12px;
  }
}

/* v3.8.17 iOS focus zoom fix: keep all mobile quick-record form controls at least 16px. */
@media (max-width: 820px) {
  body[data-page="/mobile-train"] input:not([type="hidden"]),
  body[data-page="/mobile-train"] select,
  body[data-page="/mobile-train"] textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }

  body[data-page="/mobile-train"] input::placeholder,
  body[data-page="/mobile-train"] textarea::placeholder {
    font-size: 16px !important;
  }

  body[data-page="/mobile-train"] .mobile-live-flat-set-row input[name="set_weight"],
  body[data-page="/mobile-train"] .mobile-live-flat-set-row input[name="set_reps"],
  body[data-page="/mobile-train"] .mobile-live-flat-set-row input[name="set_rpe"],
  body[data-page="/mobile-train"] .mobile-live-flat-set-row .set-type-wrap .set-type-select {
    font-size: 16px !important;
  }
}
