/* IntervalCue Interactive Timer Tool Styles (scoped to .ic-tool) */
.ic-tool {
  --ic-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ic-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid #232323;
  background: #141414;
  color: #f5f5f5;
}

.ic-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic-progress-track {
  order: 0;
  width: 100%;
  height: 4px;
  background: #232323;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.ic-progress-fill {
  width: 100%;
  height: 100%;
  background: #a8965e;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 120ms linear;
  will-change: transform;
}

.ic-progress-fill.is-no-transition {
  transition: none !important;
}

.ic-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 14px 24px;
  border-bottom: 1px solid #232323;
}

/* Native radio group styled as segmented pill selector */
.ic-modes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 9999px;
  background: #0a0a0a;
  border: 1px solid #232323;
}

.ic-mode-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.ic-mode-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.ic-mode-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bdbdbd;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 7px 16px;
  border-radius: 9999px;
}

@media (hover: hover) and (pointer: fine) {
  .ic-mode-label {
    transition: background-color 150ms ease, color 150ms ease;
  }
  .ic-mode-option:hover .ic-mode-label {
    color: #f5f5f5;
  }
}

.ic-mode-radio:checked + .ic-mode-label {
  background: #202020;
  color: #f5f5f5;
}

.ic-mode-radio:focus-visible + .ic-mode-label {
  outline: 2px solid #a8965e;
  outline-offset: 2px;
}

.ic-utils {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.ic-util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #bdbdbd;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.ic-util-btn:active {
  transform: scale(0.97);
  transition: transform 80ms var(--ic-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ic-util-btn {
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
  }
  .ic-util-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f5f5f5;
  }
}

.ic-util-btn.is-on {
  color: #f5f5f5;
  border-color: rgba(168, 150, 94, 0.55);
}

.ic-more-menu {
  position: relative;
}

.ic-more-trigger {
  list-style: none;
}

.ic-more-trigger::-webkit-details-marker {
  display: none;
}

.ic-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 176px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #2e2e2e;
  background: #141414;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ic-more-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .ic-more-item:hover {
    background: #202020;
    color: #a8965e;
  }
}

.ic-wakelock-pill {
  font-size: 12px;
  line-height: 16px;
  color: #a8965e;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(168, 150, 94, 0.35);
  white-space: nowrap;
}

.ic-stage {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  text-align: center;
  border-bottom: 1px solid #232323;
  scroll-margin-top: 108px;
}

/* Single authored decorative opacity layer for Work/Rest phase handoff (driven by interruptible WAAPI) */
.ic-stage-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  will-change: opacity;
}

.ic-stage-sheen[data-sheen-phase="work"] {
  background: radial-gradient(75% 65% at 50% 0%, rgba(168, 150, 94, 0.24), rgba(168, 150, 94, 0) 75%);
}

.ic-stage-sheen[data-sheen-phase="rest"] {
  background: radial-gradient(75% 65% at 50% 0%, rgba(245, 245, 245, 0.14), rgba(245, 245, 245, 0) 75%);
}

.ic-stage > :not(.ic-stage-sheen) {
  position: relative;
  z-index: 1;
}

.ic-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 22px;
  color: #bdbdbd;
}

/* Paired foreground/background switch atomically with zero color transition so contrast never dips */
.ic-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: #202020;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ic-stage[data-ic-phase="work"] .ic-phase-badge {
  background: #a8965e;
  color: #0a0a0a;
}

.ic-stage[data-ic-phase="rest"] .ic-phase-badge {
  background: #202020;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ic-stage[data-ic-phase="done"] .ic-phase-badge {
  background: #f5f5f5;
  color: #0a0a0a;
}

.ic-round-readout,
.ic-total-readout {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* 3-2-1 critical countdown hairline pips: lit/unlit state only, zero per-second scaling */
.ic-crit-pips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 8px;
  margin-bottom: 2px;
  opacity: 0;
}

.ic-stage[data-ic-critical] .ic-crit-pips {
  opacity: 1;
}

.ic-crit-pip {
  width: 24px;
  height: 3px;
  border-radius: 9999px;
  background: #2b2b2b;
  opacity: 0.45;
}

.ic-stage[data-ic-critical="3"] .ic-crit-pip[data-ic-pip="3"],
.ic-stage[data-ic-critical="2"] .ic-crit-pip[data-ic-pip="3"],
.ic-stage[data-ic-critical="2"] .ic-crit-pip[data-ic-pip="2"],
.ic-stage[data-ic-critical="1"] .ic-crit-pip {
  background: #a8965e;
  opacity: 1;
}

/* Gym-readable display clock: ~180px on 1440px desktop, >=96px on 390px mobile.
   Per-second ticks never animate; numerals and phase colors switch atomically. */
.ic-clock {
  font-size: clamp(6rem, 12.5vw, 11.5rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #f5f5f5;
  margin: 4px 0 14px;
  user-select: none;
}

.ic-clock.is-long {
  font-size: clamp(4.25rem, 9.5vw, 8.5rem);
}

.ic-stage[data-ic-phase="work"] .ic-clock {
  color: #a8965e;
}

.ic-stage[data-ic-phase="rest"] .ic-clock {
  color: #f5f5f5;
}

.ic-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 20px;
  color: #bdbdbd;
  font-variant-numeric: tabular-nums;
}

.ic-param-summary {
  color: #d8d8d8;
  font-weight: 500;
}

.ic-edit-link {
  color: #a8965e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ic-edit-link:hover {
  color: #bca86e;
}

.ic-cue-box {
  max-width: 60ch;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid #232323;
  text-align: left;
}

.ic-cue-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ic-cue-media {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #232323;
}

.ic-cue-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ic-cue-text {
  min-width: 0;
  flex: 1;
}

.ic-cue-current {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #f5f5f5;
  margin-bottom: 6px;
}

.ic-stage[data-ic-phase="work"] .ic-cue-current {
  color: #a8965e;
}

.ic-cue-detail {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #bdbdbd;
}

.ic-cue-next {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #232323;
  font-size: 14px;
  line-height: 20px;
  color: #f5f5f5;
}

.ic-amrap-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ic-amrap-splits {
  font-size: 14px;
  color: #bdbdbd;
  font-variant-numeric: tabular-nums;
}

.ic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ic-btn:active {
  transform: scale(0.97);
  transition: transform 80ms var(--ic-ease-out);
}

.ic-btn-primary {
  min-width: 156px;
  border: 0;
  background: #a8965e;
  color: #0a0a0a;
}

.ic-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f5f5f5;
}

.ic-btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: #bdbdbd;
  padding: 0 16px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .ic-btn {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  }
  .ic-btn-primary:hover {
    background: #bca86e;
  }
  .ic-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
  }
  .ic-btn-ghost:hover {
    color: #f5f5f5;
  }
}

.ic-status-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #bdbdbd;
}

.ic-controls-section {
  padding: 20px 24px 22px;
  border-bottom: 1px solid #232323;
  scroll-margin-top: 108px;
}

.ic-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ic-inputs-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.ic-inputs-one {
  grid-template-columns: minmax(0, 260px);
}

.ic-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ic-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #bdbdbd;
}

.ic-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  background: #202020;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
}

.ic-stepper:focus-within {
  border-color: #a8965e;
}

.ic-step-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #bdbdbd;
  height: 46px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.ic-step-btn:active {
  transform: scale(0.95);
  transition: transform 80ms var(--ic-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ic-step-btn:hover {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.05);
  }
}

.ic-input,
.ic-select {
  width: 100%;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #202020;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 0 18px;
  font-variant-numeric: tabular-nums;
}

.ic-select {
  appearance: none;
  padding: 0 40px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.ic-stepper .ic-input {
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 0 6px;
}

.ic-input:focus,
.ic-select:focus {
  outline: none;
  border-color: #a8965e;
}

.ic-stepper .ic-input:focus {
  border-color: transparent;
}

.ic-presets,
.ic-saved-row,
.ic-gen-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.ic-presets-label {
  font-size: 13px;
  font-weight: 500;
  color: #bdbdbd;
  margin-right: 4px;
}

.ic-preset-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.ic-preset-pill:active {
  transform: scale(0.97);
  transition: transform 80ms var(--ic-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ic-preset-pill {
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  }
  .ic-preset-pill:hover {
    border-color: #a8965e;
  }
}

.ic-preset-pill.is-active {
  background: #a8965e;
  border-color: #a8965e;
  color: #0a0a0a;
}

.ic-saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ic-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #202020;
  border: 1px solid #232323;
  font-size: 13px;
}

.ic-saved-load {
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.ic-saved-del {
  border: 0;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  cursor: pointer;
  padding: 0 2px;
}

.ic-saved-del:hover {
  color: #f5f5f5;
}

.ic-gen-section {
  padding: 18px 24px 22px;
  scroll-margin-top: 108px;
}

/* Generator-first borders for /hiit-workout-generator (DOM order itself places generator first) */
[data-layout="generator-first"] .ic-gen-section {
  border-bottom: 1px solid #232323;
}

[data-layout="generator-first"] .ic-controls-section {
  border-bottom: 0;
}

.ic-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ic-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ic-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
  border-radius: 9999px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 180ms var(--ic-ease-in-out), border-color 180ms var(--ic-ease-in-out);
}

.ic-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #bdbdbd;
  transition: transform 180ms var(--ic-ease-in-out), background-color 180ms ease;
}

.ic-switch-input:checked + .ic-switch-track {
  background: #a8965e;
  border-color: #a8965e;
}

.ic-switch-input:checked + .ic-switch-track .ic-switch-thumb {
  transform: translateX(20px);
  background: #0a0a0a;
}

.ic-switch-input:focus-visible + .ic-switch-track {
  outline: 2px solid #a8965e;
  outline-offset: 2px;
}

.ic-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ic-switch-text strong {
  font-size: 16px;
  font-weight: 700;
  color: #f5f5f5;
}

.ic-switch-sub {
  font-size: 13px;
  color: #bdbdbd;
}

.ic-gen-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #232323;
}

.ic-gen-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ic-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #202020;
  border: 1px solid transparent;
  font-size: 13px;
  color: #f5f5f5;
  cursor: pointer;
}

.ic-filter-chip:has(input:checked) {
  border-color: #a8965e;
  color: #a8965e;
}

.ic-filter-chip input {
  accent-color: #a8965e;
  margin: 0;
}

.ic-gen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ic-gen-summary {
  font-size: 14px;
  color: #bdbdbd;
}

.ic-workout-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #232323;
}

.ic-workout-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #232323;
}

.ic-workout-item.has-thumb {
  grid-template-columns: 32px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ic-workout-thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #232323;
  flex: none;
}

.ic-workout-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ic-workout-body {
  min-width: 0;
}

.ic-workout-item.is-current {
  background: rgba(168, 150, 94, 0.08);
}

.ic-workout-num {
  font-size: 14px;
  font-weight: 700;
  color: #a8965e;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.ic-workout-name {
  font-size: 16px;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 4px;
}

.ic-workout-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #bdbdbd;
  text-transform: capitalize;
}

.ic-workout-cue {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #bdbdbd;
}

.ic-swap-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #bdbdbd;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .ic-swap-btn:hover {
    border-color: #a8965e;
    color: #f5f5f5;
  }
}

/* Full-screen Focus Mode (gym wall-clock presentation) */
.ic-tool.is-focus {
  position: fixed;
  inset: 0;
  z-index: 200;
  border: 0;
  border-radius: 0;
  background: #0a0a0a;
  justify-content: center;
  overflow-y: auto;
}

.ic-tool.is-focus .ic-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  height: 6px;
}

.ic-tool.is-focus .ic-topbar,
.ic-tool.is-focus .ic-controls-section,
.ic-tool.is-focus .ic-gen-section,
.ic-tool.is-focus .ic-summary-row {
  display: none;
}

.ic-tool.is-focus .ic-stage {
  border-bottom: 0;
  padding: 32px 24px;
}

.ic-tool.is-focus .ic-clock {
  font-size: clamp(6.5rem, 22vw, 15.5rem);
  margin: 12px 0 24px;
}

.ic-tool.is-focus .ic-cue-media {
  width: 112px;
  height: 112px;
}

.ic-tool.is-focus .ic-exit-focus-btn {
  display: inline-flex !important;
}

.ic-tool [hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .ic-topbar {
    padding: 12px 14px;
    gap: 8px;
  }
  .ic-modes {
    width: 100%;
    justify-content: space-between;
  }
  .ic-mode-option {
    flex: 1 1 0;
  }
  .ic-mode-label {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
  }
  .ic-utils {
    width: 100%;
    gap: 6px;
  }
  .ic-util-btn {
    flex: 1 1 0;
    min-height: 44px;
    height: 44px;
    padding: 0 6px;
    font-size: 12px;
    gap: 4px;
  }
  .ic-more-menu {
    flex: 1 1 0;
  }
  .ic-more-trigger {
    width: 100%;
  }
  .ic-wakelock-pill {
    display: none;
  }
  .ic-stage {
    padding: 18px 14px 16px;
  }
  .ic-stage-meta {
    gap: 6px 12px;
    font-size: 13px;
    margin-bottom: 4px;
  }
  .ic-clock {
    font-size: clamp(6rem, 24vw, 7rem);
    margin: 4px 0 10px;
  }
  .ic-clock.is-long {
    font-size: clamp(4rem, 17vw, 5.25rem);
  }
  .ic-summary-row {
    font-size: 13px;
    gap: 4px 10px;
    margin-bottom: 14px;
  }
  .ic-actions {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 10px;
  }
  .ic-btn {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
  }
  .ic-status-msg {
    margin-top: 8px;
    font-size: 13px;
  }
  .ic-controls-section,
  .ic-gen-section {
    padding: 14px;
  }
  .ic-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ic-gen-panel {
    margin-top: 12px;
    padding-top: 12px;
  }
  .ic-gen-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ic-field-focus {
    grid-column: 1 / -1;
  }
  .ic-select {
    height: 42px;
    font-size: 14px;
  }
  .ic-gen-filters {
    gap: 8px;
    margin-top: 10px;
  }
  .ic-filter-chip {
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
  .ic-gen-actions {
    margin-top: 12px;
    gap: 8px;
  }
  .ic-gen-actions .ic-btn-primary,
  .ic-gen-actions .ic-btn-secondary {
    flex: 1 1 140px;
  }
  .ic-cue-main {
    align-items: flex-start;
    gap: 12px;
  }
  .ic-cue-media {
    width: 72px;
    height: 72px;
    border-radius: 8px;
  }
  .ic-workout-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .ic-workout-item.has-thumb {
    grid-template-columns: 24px 64px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .ic-workout-thumb-wrap {
    width: 64px;
    height: 64px;
    border-radius: 8px;
  }
  .ic-swap-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
  .ic-workout-item.has-thumb .ic-swap-btn {
    grid-column: 3;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ic-progress-fill {
    transition: none;
  }
  .ic-btn:active,
  .ic-preset-pill:active,
  .ic-util-btn:active,
  .ic-step-btn:active {
    transform: none;
    transition: none;
  }
  .ic-switch-track,
  .ic-switch-thumb {
    transition: none;
  }
}
