/* Unified Split + Session selector card (clean iOS segmented hierarchy) */
.selector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.split-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  gap: 3px;
  border-radius: 13px;
  background: rgba(20, 33, 27, 0.065);
}
.split-btn {
  min-height: 38px;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.2;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.split-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 740;
  box-shadow: 0 1px 3px rgba(17, 32, 24, 0.12), 0 1px 1px rgba(17, 32, 24, 0.06);
}

.session-tabs {
  display: flex;
  gap: 0.45rem;
}
.day-tab {
  flex: 1 1 0;
  min-height: 38px;
  padding: 0.32rem 0.5rem;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
  -webkit-tap-highlight-color: transparent;
}
.day-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 740;
}

.session-summary {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.session-summary h1 { font-size: 1.12rem; font-weight: 760; letter-spacing: -0.02em; line-height: 1.2; }
.session-summary p { margin-top: 0.18rem; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.time-badge {
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 740;
  white-space: nowrap;
}

.today-flow { display: grid; gap: 0.85rem; }

details.flow-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.flow-warm { border-left: 3.5px solid #d97706; }
.flow-g1 { border-left: 3.5px solid #185a44; }
.flow-g2 { border-left: 3.5px solid #0c6b82; }
.flow-cool { border-left: 3.5px solid #3b5f8a; }

.flow-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.92rem 0.95rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flow-summary::-webkit-details-marker { display: none; }
.flow-head { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.flow-head h2 { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.015em; }
.flow-sub { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

.step-pill {
  padding: 0.2rem 0.56rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 740;
  white-space: nowrap;
  color: #fff;
}
.pill-warm { background: #b45309; }
.pill-g1 { background: #185a44; }
.pill-g2 { background: #0c6b82; }
.pill-cool { background: #3b5f8a; }

.flow-body {
  padding: 0.8rem 0.9rem 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}
.group-intro { font-size: 0.86rem; color: var(--text); line-height: 1.48; }
.group-rest {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.58rem 0.75rem;
  border-radius: 11px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.nested-stack { display: grid; gap: 0.7rem; }
.nested-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}
.nested-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.78rem 0.85rem;
  cursor: pointer;
}
.nested-summary::-webkit-details-marker { display: none; }
.nested-title { font-size: 0.94rem; font-weight: 730; color: var(--text); }
.mini-acl-pill {
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 760;
}
.nested-body {
  padding: 0.7rem 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.7rem;
}

.exercise-list { display: grid; gap: 0.75rem; }
.exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}
.exercise-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.exercise-card-title { font-size: 0.96rem; font-weight: 750; color: var(--text); line-height: 1.25; }
.dose-pill {
  padding: 0.18rem 0.52rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 720;
}

.exercise-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.exercise-badge {
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}
.exercise-badge[data-purpose="acl"] { background: #fef3c7; color: #92400e; border: 1px solid rgba(180, 83, 9, 0.25); }
.exercise-badge[data-purpose="balance"] { background: #e3f1f5; color: #0c6b82; border: 1px solid rgba(12, 107, 130, 0.25); }
.exercise-badge[data-purpose="posture"] { background: #e6f0eb; color: #185a44; border: 1px solid rgba(24, 90, 68, 0.22); }

.exercise-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.exercise-photos figure {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.exercise-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.exercise-photos figcaption {
  padding: 0.35rem 0.48rem;
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.3;
}
.exercise-steps { font-size: 0.85rem; color: var(--text); line-height: 1.48; }
.exercise-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.42; }
.exercise-meta.is-avoid { color: #991b1b; }

.exercise-demo iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #14211b;
}

.callout-inline {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #fff9eb;
  border: 1px solid rgba(180, 115, 10, 0.26);
  font-size: 0.82rem;
  color: var(--muted);
}
.callout-inline strong { display: block; color: var(--text); margin-bottom: 0.2rem; }
