.cw-workout {
  --cw-ink: #181818;
  --cw-muted: #565656;
  --cw-line: #dcdcdc;
  color: var(--cw-ink);
  background: white;
  min-width: 0;
}
.cw-workout .cw-header,
.cw-workout .cw-session-heading,
.cw-workout .cw-block-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
}
.cw-workout .cw-header {
  position: static;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: white;
  color: var(--cw-ink);
}
.cw-workout .cw-header h2, .cw-workout .cw-session-heading h3,
.cw-workout .cw-block-heading h4, .cw-workout .cw-lesson h4 {
  margin: 0;
  line-height: 1.25;
}
.cw-kicker {
  display: block;
  margin-bottom: .35rem;
  font-size: .69rem;
  letter-spacing: .12em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--cw-muted);
}
.cw-range, .cw-session-heading small, .cw-block-heading small, .cw-program-note, .cw-empty {
  color: var(--cw-muted);
}
.cw-program-note { margin: .35rem 0 .6rem; }
.cw-weeks, .cw-days { display: grid; gap: 4px; margin-top: .45rem; }
.cw-weeks { grid-template-columns: repeat(auto-fit,minmax(65px,1fr)); }
.cw-days { grid-template-columns: repeat(7,minmax(0,1fr)); }
.cw-workout .cw-weeks button, .cw-workout .cw-days button {
  appearance: none;
  border: 1px solid var(--cw-line);
  border-radius: 7px;
  background: white;
  color: var(--cw-ink);
  min-width: 0;
  margin: 0;
  padding: .55rem .2rem;
  line-height: 1.25;
  font: inherit;
  cursor: pointer;
}
.cw-workout .cw-weeks button { font-size: .84rem; font-weight: 650; }
.cw-workout .cw-days button { display: grid; justify-items: center; gap: .1rem; }
.cw-days button span, .cw-days button small { font-size: .7rem; color: inherit; }
.cw-days button strong { font-size: 1.05rem; }
.cw-workout button[aria-pressed="true"] { color: white; background: var(--cw-ink); border-color: var(--cw-ink); }
.cw-workout .cw-days [aria-current="date"] { box-shadow: inset 0 -3px 0 currentColor; }
.cw-workout button:focus-visible, .cw-workout summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}
.cw-workout button[aria-pressed="true"]:focus-visible { outline-color: var(--cw-ink); }
.cw-session-heading { margin: .85rem 0 .35rem; }
.cw-session-menu { display: grid; gap: .2rem; margin: 0; font-size: .74rem; color: var(--cw-muted); max-width: 100%; }
.cw-session-menu select {
  color: var(--cw-ink);
  background: white;
  border: 1px solid var(--cw-line);
  border-radius: 7px;
  padding: .45rem .6rem;
  font: inherit;
  font-size: .86rem;
  min-height: 38px;
  max-width: 100%;
}
.cw-workout .cw-block { margin-top: .6rem; }
.cw-workout .cw-block-heading { margin-bottom: .2rem; }
.cw-block-heading h4 { font-weight: 700; font-size: .85rem; }
.cw-block-heading small { font-size: .77rem; }
.cw-workout .cw-exercise {
  border: 1px solid var(--cw-line);
  border-radius: 9px;
  margin: .35rem 0;
  padding: 0;
  background: white;
}
.cw-workout .cw-exercise > summary {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: .8rem;
  min-height: 58px;
  list-style: none;
  cursor: pointer;
  padding: .75rem .9rem;
  border-radius: inherit;
}
.cw-exercise > summary::-webkit-details-marker { display: none; }
.cw-exercise > summary:hover { background: #f6f6f6; }
.cw-sequence { font-weight: 700; font-size: .77rem; font-variant-numeric: tabular-nums; color: var(--cw-muted); }
.cw-exercise-name { font-weight: 700; line-height: 1.32; overflow-wrap: anywhere; }
.cw-exercise-name small { display: block; color: var(--cw-muted); font-size: .74rem; font-weight: 450; margin-top: .15rem; }
.cw-dose { color: var(--cw-muted); font-size: .85rem; }
.cw-chevron { border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg); }
.cw-exercise[open] > summary > .cw-chevron { transform: rotate(225deg); }
.cw-workout .cw-lesson { padding: .9rem; border-top: 1px solid var(--cw-line); overflow-wrap: anywhere; }
.cw-workout .cw-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: .7rem; margin: 0 0 1rem; }
.cw-workout .cw-details div { min-width: 0; padding: .45rem .65rem; border-left: 2px solid var(--cw-line); }
.cw-workout .cw-details dt { font-size: .73rem; color: var(--cw-muted); }
.cw-workout .cw-details dd { margin: 0; font-weight: 600; }
.cw-lesson ol { padding-inline-start: 1.4rem; }
.cw-workout .cw-log-exercise { margin: 0 0 .65rem; padding: .4rem .75rem; border: 1px solid var(--cw-line); background: white; color: var(--cw-ink); }
.cw-workout .cw-log-workout { margin: .85rem 0 0; }
.cw-empty { margin: .75rem 0; }
@media(max-width:620px) {
  .cw-days { gap: 2px; }
  .cw-workout .cw-days button { border-radius: 4px; padding-inline: 0; min-height: 44px; }
  .cw-days button small { font-size: .62rem; overflow-wrap: anywhere; }
  .cw-workout .cw-exercise > summary { grid-template-columns: auto minmax(0,1fr) auto; gap: .2rem .65rem; }
  .cw-exercise .cw-sequence, .cw-exercise .cw-chevron { grid-row: 1 / 3; }
  .cw-exercise .cw-dose { grid-row: 2; grid-column: 2; }
  .cw-exercise .cw-chevron { grid-column: 3; }
}
