.sw-body {
  gap: 14px;
}
.sw-live {
  gap: 10px;
  background: #f8f8f1;
}
.sw-position {
  display: grid;
  gap: 7px;
}
.sw-position-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--pl-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sw-position-text strong {
  color: var(--pl-ink);
}
.sw-finish-early {
  min-height: 44px;
  margin-inline-start: auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px !important;
  font-weight: 650 !important;
}
.sw-finish-early:hover {
  background: var(--pl-light);
}
.sw-position progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #dce5d7;
  accent-color: var(--pl-ink);
}
.sw-position progress::-webkit-progress-bar { background: #dce5d7; }
.sw-position progress::-webkit-progress-value { background: var(--pl-ink); }
.sw-position progress::-moz-progress-bar { background: var(--pl-ink); }
.sw-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 16px;
  border: 1px solid var(--pl-line);
  border-radius: 13px;
  background: var(--pl-sage);
}
.sw-summary p {
  font-size: 14px;
}
.sw-summary .sw-date {
  margin-bottom: 4px;
  color: var(--pl-muted);
  font-size: 12px;
}
.sw-summary strong {
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.training-feedback {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--pl-line, #dce1d5);
  border-radius: 13px;
  background: var(--pl-light, #f3f4eb);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.training-feedback h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.training-feedback [hidden] {
  display: none;
}
.training-feedback-status:empty {
  position: absolute;
}
.training-feedback p {
  margin: 0;
}
.training-feedback-caution,
.training-feedback [data-feedback-disclosure],
.training-feedback-status {
  color: var(--pl-muted, #53635a);
  font-size: 13px;
}
.training-feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 8px 12px;
  margin-top: 9px;
  border: 1px solid var(--pl-line, #dce1d5);
  border-radius: 8px;
  background: var(--pl-paper, #fffefa);
  color: var(--pl-ink, #173d32);
  font: inherit;
  font-weight: 650 !important;
  cursor: pointer;
}
.training-feedback-button:hover:not(:disabled) {
  background: var(--pl-sage, #e3edd7);
}
.training-feedback-button:disabled {
  opacity: .65;
  cursor: default;
}
.training-feedback-chat {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 0;
  padding-inline: 2px;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.training-feedback-result ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 18px;
}
.sw-workout-guide {
  margin-top: 0;
}
.sw-workout-guide p,
.sw-card details p {
  color: var(--pl-muted);
  font-size: 14px;
}
.sw-card {
  min-width: 0;
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  padding: 14px 15px 10px;
}
.sw-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sw-card-head p,
.sw-card .sw-last-date {
  color: var(--pl-muted);
  font-size: 13px;
}
.sw-card-head p {
  margin-top: 3px;
}
.sw-active-card {
  padding: 14px;
  background: var(--pl-paper);
}
.pl-dialog .sw-active-card h3 {
  font-size: clamp(21px, 4vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sw-active-card h3:focus {
  outline: none;
}
.sw-figure {
  margin-block: 10px;
}
.sw-figure .sd-exercise-pose svg {
  height: clamp(100px, 34vw, 164px);
}
.sw-figure .sd-exercise-illustration figcaption {
  font-size: 13px;
}
.sw-rest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 8px;
  margin-block: 10px;
  padding: 4px 7px 4px 11px;
  border-radius: 10px;
  background: var(--pl-sage);
  font-size: 13px;
}
.sw-rest[hidden] { display: none; }
.sw-rest-time, .sw-rest-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.sw-rest-time output {
  margin-inline-start: 2px;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.sw-rest-actions button {
  min-height: 42px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: #ffffffa8;
  font-size: 12px !important;
  font-weight: 650 !important;
}
.sw-rest-actions button:hover { background: #fff; }
.sw-thumbnail {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  height: 50px;
  border: 1px solid var(--pl-line);
  border-radius: 9px;
  background: var(--pl-light);
}
.sw-thumbnail svg {
  width: 100%;
  height: 46px;
}
.sw-card .pl-exercise-figure + .sw-last-date {
  margin-top: 9px;
}
.sw-card .sw-load-cue {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 650;
}
.sw-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.sw-table th,
.sw-table td {
  padding: 3px 5px;
  text-align: center;
}
.sw-table thead th {
  color: var(--pl-muted);
  font-size: 12px;
  font-weight: 600;
}
.sw-table th:first-child {
  width: 32px;
}
.sw-table .sw-action-col {
  width: 48px;
}
.sw-table .sw-history-col {
  width: 25%;
}
.sw-live .sw-table .sw-history-col {
  width: 22%;
}
.sw-table tbody th,
.sw-table tbody td {
  border-top: 1px solid var(--pl-line);
}
.sw-table tbody .sw-set-done {
  background: #f0f4e9;
}
.sw-table tbody .sw-target-row td {
  border-top: 0;
  padding-bottom: 7px;
  text-align: left;
}
.sw-target-line {
  color: var(--pl-muted);
  font-size: 12px;
}
.sw-target-line span {
  display: block;
  line-height: 1.4;
}
.sw-target-line strong {
  color: var(--pl-ink);
  font-weight: 650;
}
.sw-table tbody th {
  font-weight: 600;
}
.sw-previous span {
  display: block;
}
.sw-previous {
  color: var(--pl-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sw-table input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 5px 3px;
  background: #fff;
  border: 1px solid var(--pl-line);
  border-radius: 8px;
  color: var(--pl-ink);
  font-size: 16px;
  text-align: center;
}
.sw-table input[aria-invalid="true"] {
  border-color: #9b392b;
}
.sw-live .sw-table input {
  background: var(--pl-light);
}
.sw-live .sw-table input:focus {
  background: #fff;
}
.sw-check,
.sw-remove {
  display: inline-grid;
  width: 100%;
  min-width: 36px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--pl-line);
  background: #fff;
}
.sw-check:not(:disabled):hover,
.sw-remove:hover {
  background: var(--pl-light);
}
.pl-dialog .sw-check[aria-pressed="true"] {
  border-color: var(--pl-ink);
  color: white;
  background: var(--pl-ink);
}
.pl-dialog .sw-check:disabled {
  background: var(--pl-light);
  color: #7a867e;
  cursor: default;
}
.sw-remove {
  border-color: transparent;
  background: transparent;
}
.sw-check-cell > svg {
  vertical-align: middle;
}
.sw-add {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  gap: 6px;
  padding: 5px 8px;
  margin: 3px 0 0 -4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px !important;
  font-weight: 650 !important;
}
.sw-add:hover {
  background: var(--pl-light);
}
.sw-active-card .sw-add {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 8px 0 0;
  border: 1px solid var(--pl-line);
  background: var(--pl-light);
}
.sw-active-card .sw-add:hover {
  background: var(--pl-sage);
}
.sw-card .sw-no-sets {
  margin-top: 10px;
  color: var(--pl-muted);
  font-size: 14px;
}
.sw-suggestion {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--pl-light);
  font-size: 14px;
}
.sw-suggestion h4 {
  margin: 0 0 3px;
  color: var(--pl-muted);
  font-size: 12px;
}
.sw-suggestion p {
  margin-top: 3px;
  color: var(--pl-muted);
  font-size: 13px;
}
.sw-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.sw-footer [hidden] {
  display: none;
}
.sw-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sw-live-actions > button {
  justify-content: center;
  min-height: 44px;
}
.sw-live-actions > .pl-btn-primary {
  flex: 1;
}
.sw-live-actions > .sw-previous-action {
  flex: 0 0 44px;
  padding-inline: 0;
}
.sw-status {
  color: #8d3124;
  font-size: 13px;
}
.sw-confirm {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
@media (max-width: 620px) {
  .sw-summary {
    flex-wrap: wrap;
  }
  .sw-card {
    padding: 12px 9px 8px;
  }
  .sw-card-head,
  .sw-card .pl-exercise-figure,
  .sw-card .sw-last-date,
  .sw-card .sw-load-cue,
  .sw-card .sw-no-sets {
    margin-inline: 3px;
  }
  .sw-table th,
  .sw-table td {
    padding-right: 3px;
    padding-left: 3px;
  }
  .sw-table th:first-child {
    width: 27px;
  }
  .sw-table .sw-action-col {
    width: 43px;
  }
  .sw-footer-actions > button {
    flex: 1;
  }
}
@media (max-width: 480px) {
  .pl-dialog[open]:has(.sw-live) {
    display: flex;
    flex-direction: column;
    margin: 0;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .pl-dialog:has(.sw-live) .pl-dialog-head {
    flex: none;
    padding: max(9px, env(safe-area-inset-top)) 13px 9px;
  }
  [data-strength-workout]:has(.sw-live) {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
  }
  .sw-live {
    align-content: start;
    flex: 1;
    padding: 10px 10px 16px;
  }
  .sw-live .sw-table th,
  .sw-live .sw-table td {
    padding-inline: 2px;
  }
  .sw-live .sw-table .sw-action-col {
    width: 43px;
  }
  .sw-live-actions {
    gap: 6px;
  }
  .sw-live-actions > .pl-btn {
    min-width: 0;
    padding-inline: 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  .sw-live-actions > .pl-btn-soft {
    flex: 0 1 auto;
  }
  .sw-live-actions > .sw-previous-action {
    flex: 0 0 44px;
  }
}
