/* ============================================================
   WORKOUT CREATOR — Mobile-First Design System
   Scoped for in-app use inside the WCP main app.
   Inspiration: Apple Fitness · Nike Training Club · Native iOS
   ============================================================ */

/* ── 0. CSS Custom Properties (Design Tokens) ─────────────── */
:root {
  --wc-bg:              #0A0A0A;
  --wc-surface:         #121212;
  --wc-surface-elevated:#1C1C1E;
  --wc-surface-input:   #2A2A2A;
  --wc-surface-hover:   #333333;
  --wc-text-primary:    #F5F5F7;
  --wc-text-secondary:  rgba(245,245,247,.60);
  --wc-text-tertiary:   rgba(245,245,247,.35);
  --wc-text-on-accent:  #FFFFFF;
  --wc-accent:          #007BFF;
  --wc-accent-glow:     rgba(0,123,255,.25);
  --wc-accent-soft:     rgba(0,123,255,.12);
  --wc-danger:          #FF453A;
  --wc-danger-soft:     rgba(255,69,58,.10);
  --wc-success:         #30D158;
  --wc-success-soft:    rgba(48,209,88,.12);
  --wc-warning:         #FFD60A;
  --wc-warmup:          #FF9F0A;
  --wc-warmup-soft:     rgba(255,159,10,.12);
  --wc-rest:            #5E5CE6;
  --wc-rest-soft:       rgba(94,92,230,.12);
  --wc-radius-xs:       6px;
  --wc-radius-sm:       10px;
  --wc-radius-md:       14px;
  --wc-radius-lg:       20px;
  --wc-radius-xl:       24px;
  --wc-radius-pill:     999px;
  --wc-sp-1:  4px;
  --wc-sp-2:  8px;
  --wc-sp-3:  12px;
  --wc-sp-4:  16px;
  --wc-sp-5:  20px;
  --wc-sp-6:  24px;
  --wc-sp-7:  28px;
  --wc-sp-8:  32px;
  --wc-shadow-sm:   0 1px 3px rgba(0,0,0,.40);
  --wc-shadow-md:   0 4px 14px rgba(0,0,0,.55);
  --wc-shadow-lg:   0 8px 30px rgba(0,0,0,.65);
  --wc-shadow-glow: 0 0 20px var(--wc-accent-glow);
  --wc-ease-spring:  cubic-bezier(.22,1,.36,1);
  --wc-ease-out:     cubic-bezier(.16,1,.3,1);
  --wc-dur-fast:     .18s;
  --wc-dur-normal:   .3s;
  --wc-dur-sheet:    .42s;
  --wc-safe-top:    env(safe-area-inset-top, 0px);
  --wc-safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ── 1. In-App Container ──────────────────────────────────── */
.wc-app {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  color: var(--wc-text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--wc-sp-4);
}
.wc-app *, .wc-app *::before, .wc-app *::after,
.wc-sheet *, .wc-sheet *::before, .wc-sheet *::after {
  box-sizing: border-box;
}


/* ── 2. Sticky Header (standalone mode — kept for compat) ─── */
.wc-header {
  display: flex;
  align-items: center;
  gap: var(--wc-sp-2);
  padding: var(--wc-sp-3) var(--wc-sp-3);
  background: var(--wc-surface);
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: var(--wc-radius-md) var(--wc-radius-md) 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.wc-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: var(--wc-radius-sm);
  background: transparent;
  color: var(--wc-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--wc-dur-fast) ease;
}
.wc-header__back:active {
  background: var(--wc-accent-soft);
}


/* ── 2b. Creator Name Input ───────────────────────────────── */
.wc-header__title-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,.08);
  outline: none;
  background: var(--wc-surface-elevated);
  color: var(--wc-text-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 0 var(--wc-sp-4);
  border-radius: var(--wc-radius-md);
  caret-color: var(--wc-accent);
  transition: border-color var(--wc-dur-fast) ease,
              background var(--wc-dur-fast) ease,
              box-shadow var(--wc-dur-fast) ease;
}
.wc-header__title-input::placeholder {
  color: var(--wc-text-tertiary);
  font-weight: 500;
}
.wc-header__title-input:focus {
  background: var(--wc-surface-hover);
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 3px var(--wc-accent-soft);
}


/* ── 3. Quick-Add Toolbar (Aquecimento + Descanso + Exercício) ── */
.wc-quick-bar {
  display: flex;
  gap: var(--wc-sp-2);
  padding: var(--wc-sp-3) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wc-quick-bar::-webkit-scrollbar { display: none; }

.wc-quick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--wc-sp-4);
  border: none;
  border-radius: var(--wc-radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--wc-dur-fast) var(--wc-ease-spring),
              filter var(--wc-dur-fast) ease;
}
.wc-quick-btn:active {
  transform: scale(.93);
  filter: brightness(1.1);
}
.wc-quick-btn__icon {
  font-size: 16px;
  line-height: 1;
}

/* Warmup — filled orange */
.wc-quick-btn--warmup {
  background: var(--wc-warmup);
  color: #1A1A1A;
}
/* Rest — filled purple */
.wc-quick-btn--rest {
  background: var(--wc-rest);
  color: #fff;
}
/* Exercise — filled blue */
.wc-quick-btn--exercise {
  background: var(--wc-accent);
  color: #fff;
}


/* ── 4. Scrollable Canvas Body ─────────────────────────────── */
.wc-canvas {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--wc-sp-2) 0;
}
.wc-canvas__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  gap: var(--wc-sp-2);
  padding: var(--wc-sp-8) var(--wc-sp-4);
  background: var(--wc-surface-elevated);
  border-radius: var(--wc-radius-lg);
  border: 1.5px dashed rgba(255,255,255,.08);
}
.wc-canvas__empty-icon {
  font-size: 40px;
  opacity: .22;
}
.wc-canvas__empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wc-text-secondary);
  margin: 0;
}
.wc-canvas__empty-sub {
  font-size: 12px;
  color: var(--wc-text-tertiary);
  max-width: 220px;
  line-height: 1.5;
  margin: 0;
}


/* ── 5. Exercise Row (Canvas Card) ─────────────────────────── */
.wc-exercise-list {
  display: flex;
  flex-direction: column;
  gap: var(--wc-sp-2);
  counter-reset: exercise-counter;
}

.wc-exercise-row {
  counter-increment: exercise-counter;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 var(--wc-sp-2);
  background: var(--wc-surface-elevated);
  border-radius: var(--wc-radius-md);
  padding: var(--wc-sp-3);
  box-shadow: var(--wc-shadow-sm);
  border: 1px solid rgba(255,255,255,.04);
  transition: transform var(--wc-dur-fast) var(--wc-ease-spring);
  position: relative;
}

/* Rest / Warmup row color accents */
.wc-exercise-row--rest {
  border-left: 3px solid var(--wc-rest);
  background: linear-gradient(135deg, var(--wc-rest-soft), var(--wc-surface-elevated) 60%);
}
.wc-exercise-row--warmup {
  border-left: 3px solid var(--wc-warmup);
  background: linear-gradient(135deg, var(--wc-warmup-soft), var(--wc-surface-elevated) 60%);
}

/* Delete button — left */
.wc-exercise-row__delete {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--wc-radius-xs);
  background: var(--wc-danger-soft);
  color: var(--wc-danger);
  cursor: pointer;
  transition: background var(--wc-dur-fast) ease,
              transform var(--wc-dur-fast) var(--wc-ease-spring);
}
.wc-exercise-row__delete:active {
  background: rgba(255,69,58,.25);
  transform: scale(.88);
}

/* Exercise name — top center */
.wc-exercise-row__name {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--wc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: var(--wc-sp-2);
  line-height: 1.3;
}

/* Drag handle — right */
.wc-exercise-row__drag {
  grid-column: 3;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--wc-text-tertiary);
  cursor: grab;
  touch-action: none;
  border-radius: var(--wc-radius-xs);
  transition: color var(--wc-dur-fast) ease,
              background var(--wc-dur-fast) ease;
}
.wc-exercise-row__drag:active {
  cursor: grabbing;
  color: var(--wc-text-secondary);
  background: rgba(255,255,255,.04);
}

/* Input grid — bottom center */
.wc-exercise-row__inputs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: var(--wc-sp-2);
}

/* Single-input mode for rest/warmup (only duration) */
.wc-exercise-row__inputs--single {
  max-width: 140px;
}

.wc-input-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.wc-input-group__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wc-text-tertiary);
  padding-left: 2px;
}
.wc-input-group__field {
  height: 36px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  outline: none;
  background: var(--wc-surface-input);
  color: var(--wc-text-primary);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--wc-radius-xs);
  caret-color: var(--wc-accent);
  transition: border-color var(--wc-dur-fast) ease,
              background var(--wc-dur-fast) ease,
              box-shadow var(--wc-dur-fast) ease;
}
.wc-input-group__field::placeholder {
  color: var(--wc-text-tertiary);
  font-weight: 400;
  font-size: 13px;
}
.wc-input-group__field:focus {
  background: var(--wc-surface-hover);
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 2px var(--wc-accent-soft);
}


/* ── 6. FAB — Floating Action Button ──────────────────────── */
.wc-fab {
  display: none;
}


/* ── 7. Sticky Bottom Bar ──────────────────────────────────── */
.wc-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--wc-sp-3) var(--wc-sp-4);
  padding-bottom: calc(var(--wc-safe-bottom) + var(--wc-sp-3));
  background: var(--wc-surface);
  border-top: 1px solid rgba(255,255,255,.06);
  z-index: 95;
}
.wc-bottom-bar__save {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--wc-radius-md);
  background: linear-gradient(135deg, #007BFF, #0056D2);
  color: var(--wc-text-on-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--wc-dur-fast) var(--wc-ease-spring),
              opacity var(--wc-dur-fast) ease;
  box-shadow: 0 4px 16px rgba(0,123,255,.35);
}
.wc-bottom-bar__save:active {
  transform: scale(.97);
  opacity: .85;
}
.wc-bottom-bar__save:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}


/* ── 8. Bottom Sheet Overlay ───────────────────────────────── */
.wc-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wc-dur-sheet) var(--wc-ease-out),
              visibility 0s linear var(--wc-dur-sheet);
}
.wc-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--wc-dur-sheet) var(--wc-ease-out),
              visibility 0s linear 0s;
}


/* ── 9. Exercise Library Bottom Sheet ──────────────────────── */
.wc-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88vh;
  height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--wc-surface);
  border-radius: var(--wc-radius-xl) var(--wc-radius-xl) 0 0;
  z-index: 210;
  box-shadow: var(--wc-shadow-lg);
  transform: translateY(100%);
  transition: transform var(--wc-dur-sheet) var(--wc-ease-spring);
  will-change: transform;
}
.wc-sheet.is-open {
  transform: translateY(0);
}
.wc-sheet__handle {
  display: flex;
  justify-content: center;
  padding: var(--wc-sp-3) 0 var(--wc-sp-1);
  flex-shrink: 0;
}
.wc-sheet__handle::after {
  content: '';
  width: 36px;
  height: 5px;
  border-radius: var(--wc-radius-pill);
  background: rgba(255,255,255,.18);
}
.wc-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wc-sp-1) var(--wc-sp-4) var(--wc-sp-3);
  flex-shrink: 0;
}
.wc-sheet__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--wc-text-primary);
  margin: 0;
}
.wc-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--wc-surface-input);
  color: var(--wc-text-secondary);
  cursor: pointer;
  transition: background var(--wc-dur-fast) ease;
}
.wc-sheet__close:active {
  background: var(--wc-surface-hover);
}

/* Search bar */
.wc-sheet__search-wrap {
  padding: 0 var(--wc-sp-4) var(--wc-sp-3);
  flex-shrink: 0;
}
.wc-sheet__search {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255,255,255,.06);
  outline: none;
  background: var(--wc-surface-input);
  color: var(--wc-text-primary);
  font-size: 15px;
  padding: 0 var(--wc-sp-4) 0 44px;
  border-radius: var(--wc-radius-sm);
  caret-color: var(--wc-accent);
  transition: border-color var(--wc-dur-fast) ease,
              background var(--wc-dur-fast) ease,
              box-shadow var(--wc-dur-fast) ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cline x1='12.2' y1='12.2' x2='16' y2='16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
}
.wc-sheet__search::placeholder {
  color: var(--wc-text-tertiary);
}
.wc-sheet__search:focus {
  background-color: var(--wc-surface-hover);
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 2px var(--wc-accent-soft);
}

/* Category filter chips */
.wc-sheet__filters {
  display: flex;
  gap: var(--wc-sp-2);
  padding: 0 var(--wc-sp-4) var(--wc-sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wc-sheet__filters::-webkit-scrollbar { display: none; }

.wc-chip {
  flex-shrink: 0;
  height: 34px;
  padding: 0 var(--wc-sp-3);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--wc-radius-pill);
  background: transparent;
  color: var(--wc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--wc-dur-fast) ease;
}
.wc-chip:active { transform: scale(.95); }
.wc-chip.is-active {
  background: var(--wc-accent);
  border-color: var(--wc-accent);
  color: var(--wc-text-on-accent);
  box-shadow: 0 2px 10px var(--wc-accent-glow);
}

/* Exercise library list */
.wc-sheet__list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--wc-sp-4);
  padding-bottom: calc(var(--wc-safe-bottom) + var(--wc-sp-8));
}

/* Exercise library card */
.wc-lib-card {
  display: flex;
  align-items: center;
  gap: var(--wc-sp-3);
  padding: var(--wc-sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  min-height: 58px;
}
.wc-lib-card:last-child { border-bottom: none; }

.wc-lib-card__thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--wc-radius-sm);
  background: var(--wc-surface-input);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wc-lib-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-lib-card__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.wc-lib-card__thumb:hover .wc-lib-card__play-icon,
.wc-lib-card__thumb:active .wc-lib-card__play-icon {
  opacity: 1;
}
.wc-lib-card__thumb-icon {
  font-size: 18px;
  line-height: 1;
}
.wc-lib-card__info {
  flex: 1;
  min-width: 0;
}
.wc-lib-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.wc-lib-card__meta {
  font-size: 11px;
  color: var(--wc-text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-lib-card__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--wc-accent-soft);
  color: var(--wc-accent);
  cursor: pointer;
  transition: background var(--wc-dur-fast) ease,
              transform var(--wc-dur-fast) var(--wc-ease-spring);
}
.wc-lib-card__add:active {
  background: var(--wc-accent);
  color: var(--wc-text-on-accent);
  transform: scale(.85);
}


/* ── 10. Visual Polish & Animations ───────────────────────── */
.wc-exercise-row.is-just-added {
  animation: wc-pop-in .4s var(--wc-ease-spring) both;
}
@keyframes wc-pop-in {
  0%   { opacity: 0; transform: scale(.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Subtle scrollbar */
.wc-canvas::-webkit-scrollbar,
.wc-sheet__list::-webkit-scrollbar { width: 3px; }
.wc-canvas::-webkit-scrollbar-track,
.wc-sheet__list::-webkit-scrollbar-track { background: transparent; }
.wc-canvas::-webkit-scrollbar-thumb,
.wc-sheet__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.06);
  border-radius: var(--wc-radius-pill);
}


/* ── 11. Responsive ───────────────────────────────────────── */
@media (min-width: 420px) {
  .wc-header__title-input { font-size: 17px; }
  .wc-exercise-row { grid-template-columns: 40px 1fr 40px; }
  .wc-exercise-row__delete,
  .wc-exercise-row__drag { width: 40px; height: 40px; }
  .wc-input-group__field { height: 40px; }
}

@media (min-width: 768px) {
  .wc-app {
    max-width: 480px;
    margin: 0 auto;
  }
  .wc-bottom-bar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
  .wc-sheet {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }
  .wc-sheet.is-open {
    transform: translateX(-50%) translateY(0);
  }
}


/* ── 12. Tab System (.fvw-tabs) ────────────────────────────── */
.fvw-tabs {
  display: flex;
  gap: var(--wc-sp-1);
  padding: 0 0 var(--wc-sp-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fvw-tabs::-webkit-scrollbar { display: none; }

.fvw-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 var(--wc-sp-4);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--wc-radius-pill);
  background: transparent;
  color: rgba(255,255,255,.40);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--wc-dur-fast) ease;
}
.fvw-tab:active { transform: scale(.96); }
.fvw-tab--active {
  background: var(--wc-accent);
  border-color: var(--wc-accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--wc-accent-glow);
}

.fvw-tab-content {
  min-height: 200px;
}


/* ── 13. Creator Name Row (inline in tab) ─────────────────── */
.wc-creator-name-row {
  padding: var(--wc-sp-2) 0 var(--wc-sp-1);
}
.wc-name-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wc-text-tertiary);
  margin-bottom: 6px;
  padding-left: 2px;
}


/* ── 13b. Live Summary Strip ──────────────────────────────── */
.wc-summary-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem;
  margin: var(--wc-sp-2) 0 var(--wc-sp-1);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--wc-radius-md);
}
.wc-summary-chip {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.wc-summary-val {
  font-family: var(--font-destaque, 'Teko', system-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wc-accent);
  line-height: 1;
}
.wc-summary-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--wc-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.wc-summary-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.08);
}


/* ── 14. Creator Inline Save Row ─────────────────────────── */
.wc-creator-save-row {
  padding: var(--wc-sp-5) 0 var(--wc-sp-3);
}
.wc-creator-save-row .wc-bottom-bar__save {
  box-shadow: 0 4px 20px rgba(0,123,255,.30);
}
.wc-save-primary {
  background: linear-gradient(135deg, var(--cor-primaria, #e67e22), #d35400) !important;
  box-shadow: 0 4px 20px rgba(230,126,34,.30) !important;
}


/* ── 15. Saved Workouts Cards ────────────────────────────── */
.wc-saved-list {
  display: flex;
  flex-direction: column;
  gap: var(--wc-sp-3);
}
.wc-saved-card {
  display: flex;
  align-items: center;
  gap: var(--wc-sp-3);
  background: var(--wc-surface-elevated);
  border-radius: var(--wc-radius-lg);
  padding: var(--wc-sp-4);
  box-shadow: var(--wc-shadow-sm);
  border: 1px solid rgba(255,255,255,.04);
  transition: transform var(--wc-dur-fast) var(--wc-ease-spring);
  position: relative;
  overflow: hidden;
}
/* Subtle left accent bar */
.wc-saved-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--wc-accent), #0056D2);
  border-radius: 4px 0 0 4px;
}
.wc-saved-card:active {
  transform: scale(.98);
}
.wc-saved-card__body {
  flex: 1;
  min-width: 0;
  padding-left: var(--wc-sp-2);
}
.wc-saved-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--wc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}
.wc-saved-card__meta {
  display: flex;
  align-items: center;
  gap: var(--wc-sp-2);
  font-size: 12px;
  color: var(--wc-text-secondary);
  margin: 4px 0 0;
}
.wc-saved-card__preview {
  font-size: 11px;
  color: var(--wc-text-tertiary);
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.wc-saved-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--wc-sp-2);
  flex-shrink: 0;
}
.wc-saved-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--wc-radius-sm);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--wc-dur-fast) ease,
              transform var(--wc-dur-fast) var(--wc-ease-spring);
}
.wc-saved-card__btn:active {
  transform: scale(.88);
}
.wc-saved-card__btn--play {
  background: linear-gradient(135deg, var(--wc-success), #1AAA45);
  color: #fff;
  box-shadow: 0 2px 10px rgba(48,209,88,.25);
}
.wc-saved-card__btn--play:active {
  box-shadow: 0 1px 4px rgba(48,209,88,.15);
}
.wc-saved-card__btn--delete {
  background: var(--wc-danger-soft);
  color: var(--wc-danger);
}
.wc-saved-card__btn--delete:active {
  background: var(--wc-danger);
  color: #fff;
}


/* ── 16. Accessibility — Reduced Motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wc-app *, .wc-sheet * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
