.cds-sheet,.cds-setup,.cds-empty-options {
  --cds-bg:#121212;
  --cds-card:#1e1e20;
  --cds-raised:#2a2a2d;
  --cds-ink:#f5f2ec;
  --cds-muted:#a9a6a0;
  --cds-accent:var(--brand-red);
  color:var(--cds-ink);
  font-family:'DM Sans',sans-serif;
}
.cds-icon {display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}
.cds-vh {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
dialog.cds-sheet {
  position:fixed;inset:auto 0 0;width:min(100%,540px);max-width:100%;max-height:90vh;max-height:90dvh;
  margin:0 auto;padding:10px 20px max(20px,env(safe-area-inset-bottom));background:#1b1b1d;
  color:var(--cds-ink);border:0;border-radius:22px 22px 0 0;overscroll-behavior:contain;overflow-y:auto;
  box-shadow:0 -10px 60px #0005;
}
dialog.cds-sheet::backdrop {background:rgb(0 0 0 / 72%)}
.cds-sheet h2,.cds-setup h2 {font:700 30px/1.16 Oswald,'Arial Narrow',sans-serif;letter-spacing:-.015em;text-transform:none;margin:0;color:var(--cds-ink)}
.cds-sheet h2 {font-size:26px}
.cds-grip {width:42px;height:5px;margin:0 auto 18px;border-radius:8px;background:#424246}
.cds-sheet>p {font-size:.9rem;color:var(--cds-muted);margin:3px 0 16px}
.cds-options,.cds-setup fieldset {border:0;padding:0;margin:0;min-width:0}
.cds-options {display:grid;gap:9px}
.cds-option {
  display:grid;position:relative;grid-template-columns:44px minmax(0,1fr) 22px;align-items:center;gap:12px;min-height:78px;
  padding:12px 14px;border-radius:16px;border:0;background:var(--cds-card);text-align:left;cursor:pointer;
}
.cds-sheet .cds-option {background:#232325}
.cds-option-icon {display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--cds-raised);color:var(--cds-ink)}
.cds-option-copy {display:grid;gap:3px;min-width:0}
.cds-option-copy strong {font-size:1rem;font-weight:700;color:var(--cds-ink);overflow-wrap:anywhere}
.cds-option-copy small {color:var(--cds-muted);font-size:.85rem;line-height:1.35;font-weight:400;overflow-wrap:anywhere}
.cds-option input {position:absolute;left:16px;top:24px;width:18px;height:18px;opacity:0}
.cds-radio {display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:2px solid #555458;justify-self:end}
.cds-option:has(:checked) {background:color-mix(in srgb, var(--brand-red) 9%, var(--panel, #1e1e20));box-shadow:inset 0 0 0 1.5px var(--cds-accent)}
.cds-option:has(:checked) .cds-option-icon {background:var(--cds-accent);color:#121212}
.cds-option:has(:checked) .cds-radio {border-color:var(--cds-accent)}
.cds-option:has(:checked) .cds-radio::after {content:'';display:block;width:9px;height:9px;background:var(--cds-accent);border-radius:50%}
.cds-option:has(:focus-visible) {outline:2px solid var(--cds-ink);outline-offset:2px}
.cds-history-note {display:flex;align-items:center;gap:10px;border:0;border-radius:14px;background:#222224;padding:12px 14px;margin:14px 0 0;color:var(--cds-muted);font-size:.85rem;line-height:1.45}
.cds-history-note .cds-icon {width:15px;height:15px;color:#b8b5af}
.cds-history-note strong {color:var(--cds-ink);font-weight:600}
.cds-buttons {display:grid;grid-template-columns:1fr 1.8fr;gap:9px;margin-top:16px}
.cds-sheet button,.cds-setup button,.cds-empty-options button {min-height:44px}
.cds-sheet .cds-cancel {border:1px solid #404043;border-radius:13px;background:transparent;color:var(--cds-ink)}
.cds-sheet .cds-primary,.cds-setup .cds-primary {border:0;background:var(--cds-accent);color:#121212;border-radius:13px;font-weight:700;gap:9px}
.cds-empty-options .cds-option {display:grid;width:100%;background:var(--cds-card);border:0;justify-self:stretch}
.cds-chevron {color:var(--cds-muted);font-size:1.45rem;justify-self:end}
.cds-setup {width:min(100%,680px);margin:0 auto;padding:0 0 8px;color:var(--cds-ink)}
.cds-setup-head {position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;margin:2px 0 16px}
.cds-setup .cds-back {position:absolute;left:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;padding:0;width:44px;height:44px;background:var(--cds-card);border:0;border-radius:50%;color:var(--cds-ink)}
.cds-for {display:flex;align-items:center;gap:9px;font-size:.93rem;font-weight:700;max-width:calc(100% - 100px);overflow-wrap:anywhere}
.cds-avatar {display:grid;place-items:center;border-radius:50%;width:31px;height:31px;flex:none;font-size:.82rem;overflow:hidden;background:color-mix(in srgb, var(--brand-red) 14%, var(--panel, #1e1e20));color:var(--cds-accent)}
.cds-avatar img {width:100%;height:100%;object-fit:cover}
.cds-setup .cds-kicker {font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;color:var(--cds-accent);font-weight:700;margin:0 0 5px}
.cds-setup form {display:grid;gap:17px;margin-top:18px}
.cds-name-label,.cds-setup legend {font-size:.95rem;font-weight:700;color:var(--cds-ink)}
.cds-setup .cds-name-label {gap:6px}
.cds-setup .cds-name-label input,.cds-setup .cds-day-name {height:46px;border:0;background:var(--cds-card);border-radius:12px;color:var(--cds-ink);font-weight:600}
.cds-schedule {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.cds-tile {min-width:0;background:var(--cds-card);border:0;border-radius:14px;padding:11px 12px 6px;display:flex;flex-direction:column;justify-content:space-between;gap:2px}
.cds-tile>span {font-size:.79rem;color:var(--cds-muted);font-weight:500}
.cds-tile input[type=date] {font:700 1rem 'DM Sans',sans-serif;width:100%;min-width:0;min-height:44px;padding:0;background:transparent;border:0;border-radius:6px;color:var(--cds-ink);color-scheme:dark}
.cds-tile input[type=date]::-webkit-date-and-time-value {text-align:left}
.cds-stepper {display:grid;grid-template-columns:minmax(36px,44px) minmax(0,1fr) minmax(36px,44px);align-items:center;gap:2px}
.cds-stepper output {font-size:.95rem;white-space:nowrap;font-weight:700;text-align:center}
.cds-stepper button {border:0;background:transparent;padding:0;border-radius:10px;color:var(--cds-ink);font-size:1.2rem}
.cds-stepper button:disabled {opacity:.4;cursor:default}
.cds-setup legend {margin:0 0 7px;padding:0}
.cds-splits legend span {font-size:.85rem;font-weight:400;color:var(--cds-muted)}
.cds-sessions>div {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.cds-splits>div {display:flex;flex-wrap:wrap;gap:6px}
.cds-sessions button,.cds-splits button {background:transparent;border:1px solid #454548;color:var(--cds-ink);font-size:.87rem;padding:7px 8px;border-radius:12px;line-height:1.25}
.cds-splits button {padding:7px 13px;border-radius:24px}
.cds-setup button[aria-pressed=true] {background:var(--cds-ink);color:#121212;border-color:transparent}
.cds-days {list-style:none;padding:0;margin:0;overflow:hidden;background:var(--cds-card);border:0;border-radius:17px}
.cds-days li {min-height:56px;padding:3px 5px 3px 13px;display:grid;grid-template-columns:29px minmax(0,1fr) auto 44px;gap:8px;align-items:center}
.cds-days li+li {border-top:1px solid #2c2c2f}
.cds-index {width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:var(--cds-raised);color:var(--cds-accent);font-weight:700;font-size:.85rem}
.cds-days strong {font-size:.95rem;line-height:1.35;overflow-wrap:anywhere}
.cds-days small {color:var(--cds-muted);font-size:.78rem;white-space:nowrap}
.cds-days .cds-pencil {width:44px;height:44px;min-height:44px;padding:0;color:var(--cds-muted);background:none;border:0}
.cds-pencil .cds-icon {width:17px;height:17px}
.cds-days .cds-day-name {padding:6px;min-width:0;width:100%;background:var(--cds-raised)}
.cds-save {position:sticky;z-index:5;bottom:calc(68px + env(safe-area-inset-bottom));display:grid;gap:5px;text-align:center;padding:9px 0;background:var(--cds-bg);border-top:1px solid #2c2c2f}
.cds-save small {color:var(--cds-muted);font-size:.8rem}
.cds-setup .cds-error {color:#f2b33d;font-size:.9rem}
.cds-primary:disabled {opacity:.65;cursor:wait}
@media (max-width:375px) {
  .cds-stepper {grid-template-columns:32px minmax(0,1fr) 32px}
  .cds-tile {padding:9px 8px 5px}
  .cds-days li {gap:5px;padding-left:9px}
  .cds-option {gap:9px;padding:10px;grid-template-columns:40px minmax(0,1fr) 20px}
  .cds-option-icon {width:40px;height:40px}
}

.pe-draft-editor .pe-draft-days {
  display:flex;
  gap:4px;
  padding:3px;
  border-radius:15px;
  background:var(--panel);
}
.pe-draft-editor .pe-draft-days button { flex:1 0 auto; background:transparent; padding-inline:10px; }
.pe-draft-editor .pe-draft-days [aria-pressed=true] { background:var(--brand-red); color:#121212; }
.pe-draft-editor .pe-draft-day-title { justify-content:space-between; margin-bottom:8px; }
.pe-draft-editor .pe-draft-day-title h3 { font-family:Oswald,sans-serif; line-height:1.2; }
.pe-draft-editor .pe-draft-exercise {
  display:flex; align-items:center; gap:3px; padding:5px 0;
  border-bottom:1px solid var(--line);
}
.pe-draft-editor .pe-draft-exercise.is-selected { outline:1px solid var(--brand-red); border-radius:10px; }
.pe-draft-editor .pe-draft-exercise>button { min-height:44px; padding:4px 6px; }
.pe-draft-editor .pe-draft-exercise .sort-grip { flex:none; min-width:36px; font-size:23px; touch-action:none; }
.pe-draft-editor .pe-draft-exercise-label { flex:1; min-width:0; border:0; text-align:left; overflow-wrap:anywhere; }
.pe-draft-editor .pe-draft-exercise-label small { display:block; }
.pe-draft-editor .pe-draft-exercise [data-edit-exercise] { flex:none; min-width:36px; border:0; }
.pe-draft-editor .pe-draft-exercise [data-edit-exercise] svg { width:18px;height:18px;vertical-align:middle; }
.pe-draft-editor .pe-draft-add { display:block; margin-top:8px; border:0; }
.pe-draft-editor .pe-bottom { justify-content:stretch; }
.pe-draft-editor .pe-bottom button:last-child { flex:1; }
.pe-draft-editor [data-redo-status] { margin:3px 0 8px; }

.pe-draft-editor .pe-draft-swipe-row {
  position:relative; display:block; overflow:hidden; padding:0; border:0; border-radius:10px;
}
.pe-draft-editor .pe-draft-swipe-row .pe-draft-exercise {
  position:relative; background:var(--panel,#1e1e20); touch-action:pan-y pinch-zoom;
  transition:transform 140ms ease-out;
}
.pe-draft-editor .pe-draft-swipe-row .pe-draft-exercise.is-selected { outline-offset:-1px; }
.pe-draft-editor .pe-draft-swipe-row.is-revealed .pe-draft-exercise { transform:translateX(-54px); }
.pe-draft-editor .pe-draft-bin {
  position:absolute; inset:0 0 0 auto; width:54px; padding:0;
  display:grid; place-items:center; visibility:hidden;
  border:0; border-radius:0; background:var(--brand-red); color:#121212;
}
.pe-draft-editor .pe-draft-bin svg { width:22px; height:22px; }
.pe-draft-editor .is-revealed .pe-draft-bin { visibility:visible; }
.pe-draft-editor .pe-draft-undo { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pe-draft-editor .pe-draft-undo button { min-height:44px; }
@media (prefers-reduced-motion:reduce) {
  .pe-draft-editor .pe-draft-swipe-row .pe-draft-exercise { transition:none; }
}
