:root {
  /* 운동·루틴 대표 이미지 / 커버 합성 기준 (1280×720) */
  --st-content-cover-aspect-ratio: 1280 / 720;
}

.st-page {
  color: #111827;
}

.st-muted {
  color: #6b7280;
}

.st-legal-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--bs-body-color, #212529);
}

.st-admin-shell {
  --st-admin-sidebar-expanded: 15.5rem;
  --st-admin-sidebar-mini: 4.5rem;
  --st-admin-sidebar-width: var(--st-admin-sidebar-expanded);
  --st-admin-chrome-top: 4.25rem;
  --st-admin-sidebar-sticky-top: calc(var(--st-admin-chrome-top) + 0.75rem);
  --st-admin-sidebar-viewport-height: calc(100dvh - var(--st-admin-sidebar-sticky-top) - 1.25rem);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100dvh - 8.5rem);
  margin: -0.25rem -0.75rem 0;
  padding: 0;
  background: #f8fafc;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.st-admin-shell.is-sidebar-mini {
  --st-admin-sidebar-width: var(--st-admin-sidebar-mini);
}

.st-admin-shell > section {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem;
}

.st-admin-shell[data-api-key-manager] {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.st-admin-shell[data-api-key-manager] > section {
  padding: 0;
}

body.st-admin-sidebar-overlay-open {
  overflow: hidden;
}

.st-admin-sidebar {
  flex: 0 0 var(--st-admin-sidebar-width);
  width: var(--st-admin-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border-right: 1px solid #d8e0eb;
  transition: width 0.2s ease, flex-basis 0.2s ease, transform 0.2s ease;
  z-index: 1020;
}

.st-admin-sidebar__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e8edf4;
}

.st-admin-sidebar__toggle {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.st-admin-sidebar__toggle:hover {
  background: #f1f5f9;
}

.st-admin-sidebar__brand {
  overflow: hidden;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.16s ease, width 0.16s ease;
}

.st-admin-sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.45rem 0.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.st-admin-sidebar:hover .st-admin-sidebar__nav {
  scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}

.st-admin-sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.st-admin-sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

.st-admin-sidebar__nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.st-admin-sidebar:hover .st-admin-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.28);
}

.st-admin-sidebar__section {
  display: grid;
  gap: 0.15rem;
}

.st-admin-sidebar__divider {
  margin: 0.55rem 0.75rem;
  border: 0;
  border-top: 1px solid #e8edf4;
  opacity: 1;
  transition: opacity 0.16s ease;
}

.st-admin-sidebar__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.st-admin-sidebar__item:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.st-admin-sidebar__item.is-active {
  color: #0f172a;
  background: #eef2ff;
  font-weight: 750;
}

.st-admin-sidebar__item.is-active i {
  color: #ea580c;
}

.st-admin-sidebar__item i {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  font-size: 1.2rem;
  text-align: center;
}

.st-admin-sidebar__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-admin-sidebar__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: auto;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.st-admin-sidebar__badge[hidden] {
  display: none !important;
}

.st-admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1025;
  background: rgba(15, 23, 42, 0.45);
}

.st-admin-sidebar-backdrop[hidden] {
  display: none !important;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__brand {
  display: none;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__divider {
  margin-inline: 0.85rem;
  opacity: 0.65;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__item {
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4rem;
  padding: 0.5rem 0.2rem;
  text-align: center;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__item i {
  flex: 0 0 auto;
  width: auto;
  font-size: 1.28rem;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  word-break: keep-all;
}

.st-admin-shell.is-sidebar-mini .st-admin-sidebar__badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  margin-left: 0;
  font-size: 0.58rem;
}

@media (max-width: 991.98px) {
  .st-admin-shell {
    --st-admin-sidebar-width: var(--st-admin-sidebar-mini);
  }

  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    max-height: none;
    width: min(var(--st-admin-sidebar-expanded), calc(100vw - 3rem));
    flex-basis: min(var(--st-admin-sidebar-expanded), calc(100vw - 3rem));
    overflow: hidden;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18);
    z-index: 1035;
  }

  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__brand,
  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__label,
  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__badge {
    display: inline-flex;
  }

  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__badge {
    display: inline-flex;
  }

  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__item {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem;
    text-align: left;
  }

  .st-admin-shell.is-sidebar-overlay .st-admin-sidebar__divider {
    margin: 0.55rem 0.75rem;
    opacity: 1;
  }
}

@media (min-width: 992px) {
  .st-admin-shell:not(.is-sidebar-overlay) .st-admin-sidebar {
    position: sticky;
    top: var(--st-admin-sidebar-sticky-top);
    height: var(--st-admin-sidebar-viewport-height);
    max-height: var(--st-admin-sidebar-viewport-height);
    overflow: hidden;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
  }

  .st-admin-shell:not(.is-sidebar-mini) .st-admin-sidebar__head {
    padding-left: 0.75rem;
  }
}

.st-taxonomy-toolbar-actions {
  gap: 0.5rem;
}

.st-taxonomy-toolbar-actions .st-taxonomy-renumber-btn {
  margin-right: 0.75rem;
}

.st-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.st-card-body {
  padding: 1rem;
}

.st-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #eaf2ff, #eefdf5);
  border-radius: 7px;
}

.st-thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: linear-gradient(135deg, #eaf2ff, #eefdf5);
  border-radius: 7px;
  font-size: 2rem;
}

.st-filter-bar,
.st-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.st-content-search-form .form-check-label {
  font-weight: 600;
  color: #374151;
}

.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #cfe1ff;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.st-chip:hover {
  color: #0b5ed7;
  background: #dbeafe;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
}

.st-badge-primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.st-badge-success {
  background: #dcfce7;
  color: #15803d;
}

.st-badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.st-step-cue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.st-cue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 1.35rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  background: #f0f1f3;
  color: #9ca3af;
}

.st-cue-badge.is-active {
  background: #eff6ff;
  color: #2563eb;
}

.st-cue-badge__label {
  margin-right: 0.05rem;
}

.st-cue-badge__icon {
  font-size: 0.72rem;
  color: #2563eb;
}

.st-cue-badge__icon.is-off,
.st-cue-badge:not(.is-active) .st-cue-badge__icon {
  color: #c5cad3;
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.st-set-repeat-bar .st-set-repeat-btn {
  min-width: 4.25rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.st-set-repeat-bar .st-set-repeat-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.st-set-repeat-bar .st-set-repeat-btn.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.st-set-repeat-bar .st-set-repeat-custom-wrap {
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}

.st-set-repeat-bar .st-set-repeat-custom-wrap.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.st-set-repeat-bar .st-set-repeat-custom-input {
  width: 4.5rem;
}

.st-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.st-form-grid > .st-exercise-alarm-settings,
.st-form-grid > .st-exercise-tick-options {
  grid-column: 1 / -1;
}

.st-exercise-block-title {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.st-exercise-alarm-settings {
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
}

.st-exercise-alarm-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.st-exercise-alarm-settings__tts {
  grid-column: 1 / -1;
}

.st-exercise-alarm-settings__hint {
  margin-top: 0.85rem;
}

.st-exercise-tick-options {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.st-exercise-tick-options__title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.st-exercise-tick-options__lead {
  margin: 0.35rem 0 0.95rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}

.st-exercise-tick-options__switches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.25rem;
}

.st-exercise-tick-switch.form-check.form-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.st-exercise-tick-switch .form-check-input {
  width: 3em;
  height: 1.55em;
  margin: 0;
  float: none;
  flex-shrink: 0;
  cursor: pointer;
}

.st-exercise-tick-switch .form-check-label {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.st-exercise-tick-options.is-tick-off {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.st-exercise-tick-options__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #dbe3ef;
}

.st-exercise-tick-options__fields.is-details-disabled {
  opacity: 0.72;
}

#exerciseTickSecField.is-disabled {
  opacity: 0.85;
}

.st-exercise-tick-sec-input {
  max-width: 12rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.st-side-exercise-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.st-side-exercise-fields:disabled {
  opacity: 0.62;
}

.st-side-exercise-fields:disabled .st-upload-panel {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.st-side-exercise-fields:disabled .btn {
  pointer-events: none;
}

.st-option-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.4rem;
}

.st-option-pills-wrap {
  flex-wrap: wrap;
}

.st-option-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.st-option-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.st-option-pill:hover {
  border-color: #93c5fd;
  color: #0b5ed7;
  background: #f8fbff;
}

.st-option-input:focus-visible + .st-option-pill {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

.st-option-input:checked + .st-option-pill {
  border-color: #0d6efd;
  color: #0b5ed7;
  background: #eaf2ff;
}

.st-check-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
}

.st-check-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.st-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  padding: 0.36rem 0.68rem 0.36rem 0.5rem;
  color: #334155;
  background: #fff;
  border: 1px dashed #a8b4c5;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.st-check-pill:hover {
  color: #0f766e;
  border-color: #14b8a6;
  background: #f0fdfa;
}

.st-check-pill-mark {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.05rem;
  color: transparent;
  background: #fff;
  border: 1.5px solid #64748b;
  border-radius: 0.22rem;
  font-size: 0.8rem;
  line-height: 1;
}

.st-check-input:focus-visible + .st-check-pill {
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18);
}

.st-check-input:checked + .st-check-pill {
  color: #115e59;
  background: #ccfbf1;
  border-color: #0f766e;
  border-style: solid;
}

.st-check-input:checked + .st-check-pill .st-check-pill-mark {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.st-upload-panel {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.st-upload-panel-paste:focus {
  outline: none;
}

.st-upload-panel-paste.is-active .st-upload-preview {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.38);
}

.st-upload-panel-paste .st-upload-preview[data-system-image-preview] {
  cursor: pointer;
}

.st-system-image-card.has-unsaved-changes {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.st-system-image-card.has-unsaved-changes .st-upload-preview {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

.st-system-image-card.has-unsaved-changes [data-system-image-save] {
  font-weight: 600;
}

.st-upload-preview {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  aspect-ratio: var(--st-content-cover-aspect-ratio);
  height: auto;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  line-height: 0;
}

.st-upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.st-upload-preview.st-upload-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  color: #64748b;
  font-size: 1.8rem;
}

.st-hero-panel {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8fbff 0%, #eefdf5 100%);
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.st-home-page {
  display: grid;
  gap: 1.25rem;
}

.st-home-hero {
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: #fff;
  background: #172033;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.st-home-hero-content {
  max-width: 44rem;
}

.st-kicker {
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.st-home-title {
  max-width: 42rem;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.st-home-copy {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.st-quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.st-shelf-stack {
  display: grid;
  gap: 1.5rem;
}

.st-content-shelf {
  display: grid;
  gap: 0.65rem;
}

.st-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-shelf-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.st-shelf-subtitle {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.st-shelf-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.st-media-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.st-media-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.st-media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1f5f9;
}

.st-media-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #eaf2ff, #eefdf5);
}

.st-media-body {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
}

.st-media-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.28;
}

.st-media-meta,
.st-media-summary {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.35;
}

.st-step-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.3fr) minmax(8rem, 1fr) repeat(4, minmax(5rem, 0.6fr)) auto;
  gap: 0.5rem;
  align-items: end;
}

.st-routine-basic-section {
  display: grid;
  gap: 0;
}

.st-routine-basic-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1rem;
}

.st-routine-recommend-switch {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
  padding-bottom: 0.15rem;
  white-space: nowrap;
}

.st-routine-basic-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.98fr) minmax(20rem, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.st-routine-basic-media,
.st-routine-basic-fields {
  min-width: 0;
}

.st-routine-basic-media .st-upload-panel,
.st-form-grid > div .st-upload-panel {
  width: 100%;
}

.st-routine-basic-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.st-routine-basic-full {
  grid-column: auto;
}

.st-routine-basic-section .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.st-routine-basic-section .st-option-pills {
  min-height: 2rem;
}

.st-routine-basic-section .st-option-pill {
  min-height: 1.95rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.8rem;
}

.st-routine-runtime,
.st-routine-board {
  --st-routine-line: #dbe3ef;
  --st-routine-soft: #f8fafc;
  --st-routine-blue-soft: #eff6ff;
  --st-routine-blue: #2563eb;
  --st-routine-green-soft: #ecfdf3;
  --st-routine-green: #15803d;
  --st-routine-purple-soft: #f5f3ff;
  --st-routine-purple: #7c3aed;
  --st-routine-amber-soft: #fffbeb;
}

.st-routine-runtime {
  display: grid;
  gap: 0.55rem;
}

.st-routine-runtime > h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 850;
}

.st-routine-runtime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
}

.st-routine-runtime-meta strong {
  margin-left: 0.2rem;
  color: #0f172a;
  font-weight: 900;
}

.st-routine-runtime-card {
  padding: 0.8rem;
  border: 1px solid var(--st-routine-line);
  border-radius: 8px;
  background: #fff;
}

.st-routine-runtime-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.st-routine-runtime-title h3 {
  margin: 0;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 850;
}

.st-routine-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-routine-runtime-box {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--st-routine-line);
  border-radius: 8px;
  background: var(--st-routine-soft);
}

.st-routine-runtime-box h4 {
  margin: 0 0 0.55rem;
  color: #1f2937;
  font-size: 0.84rem;
  font-weight: 850;
}

.st-routine-runtime-notice {
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eaf2ff;
  font-size: 0.8rem;
  font-weight: 750;
}

.st-routine-board-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--st-routine-line);
}

.st-routine-board-summary {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.st-routine-set-row,
.st-routine-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.st-routine-set-row {
  margin-top: 0.55rem;
}

.st-routine-set-row .st-set-repeat-btn {
  min-width: 3.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.st-routine-set-row .st-set-repeat-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.st-routine-set-row .st-set-repeat-btn.active {
  border-color: var(--st-routine-blue);
  background: var(--st-routine-blue);
  color: #fff;
}

.st-routine-set-row .st-set-repeat-custom-wrap {
  min-height: 1.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.38rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
}

.st-routine-set-row .st-set-repeat-custom-wrap.is-active {
  border-color: var(--st-routine-blue);
  background: var(--st-routine-blue-soft);
}

.st-routine-set-row .st-set-repeat-custom-input {
  width: 4.25rem;
}

.st-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.st-step-card {
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--st-routine-line);
  border-radius: 8px;
}

.st-step-card--active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.st-step-card--rest-only {
  background: #fbfbfd;
}

.st-step-grid {
  display: grid;
  grid-template-columns: 2.5rem minmax(12rem, 13rem) minmax(17rem, 1.25fr) minmax(17rem, 1.05fr) 6.75rem;
  gap: 0.55rem;
  align-items: start;
}

.st-step-no {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--st-routine-blue);
  background: var(--st-routine-blue-soft);
  font-size: 1rem;
  font-weight: 900;
}

.st-step-media,
.st-step-title {
  min-width: 0;
}

.st-step-media {
  display: grid;
  gap: 0.4rem;
}

.st-step-title strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.st-step-media .st-step-title > .st-step-tag,
.st-step-media .st-step-title-tags {
  display: none;
}

.st-step-image {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: var(--st-content-cover-aspect-ratio);
  height: auto;
  border: 1px solid #dbe3ef;
  border-radius: 4px;
  background: #f8fafc;
  overflow: hidden;
  line-height: 0;
}

.st-step-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.st-step-image.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  color: var(--st-routine-blue);
  background: #f8fbff;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.st-step-title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.st-step-tag {
  min-height: 1.25rem;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-step-tag--blue {
  color: var(--st-routine-blue);
  background: var(--st-routine-blue-soft);
}

.st-step-tag--green {
  color: var(--st-routine-green);
  background: var(--st-routine-green-soft);
}

.st-step-tag--purple {
  color: var(--st-routine-purple);
  background: var(--st-routine-purple-soft);
}

.st-step-tag--amber {
  color: #b45309;
  background: var(--st-routine-amber-soft);
}

.st-step-edit-block {
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--st-routine-line);
  border-radius: 8px;
  background: var(--st-routine-soft);
}

.st-step-edit-block h3 {
  display: none;
}

.st-step-form-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
}

.st-step-form-row + .st-step-form-row {
  margin-top: 0.4rem;
}

.st-step-form-row .span-2 { grid-column: span 2; }
.st-step-form-row .span-3 { grid-column: span 3; }
.st-step-form-row .span-4 { grid-column: span 4; }
.st-step-form-row .span-5 { grid-column: span 5; }
.st-step-form-row .span-6 { grid-column: span 6; }
.st-step-form-row .span-8 { grid-column: span 8; }
.st-step-form-row .span-12 { grid-column: span 12; }

.st-step-form-row .form-label {
  margin-bottom: 0.2rem;
  color: #344054;
  font-size: 0.68rem;
  font-weight: 850;
}

.st-step-form-row .form-control-sm,
.st-step-form-row .form-select-sm {
  min-height: 1.9rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.st-step-form-row .form-control:disabled,
.st-step-form-row .form-select:disabled {
  color: #475569;
  background-color: #fff;
  opacity: 0.88;
}

.st-step-text-state {
  position: relative;
}

.st-step-text-state .form-control {
  padding-right: 3.65rem;
}

.st-step-tts-state {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  transform: translateY(-50%);
  min-width: 2.7rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--st-routine-blue);
  background: var(--st-routine-blue-soft);
  font-size: 0.66rem;
  font-weight: 900;
  pointer-events: none;
}

.st-step-tts-state.is-off {
  color: #6b7280;
  background: #f2f4f7;
}

.st-step-check {
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.st-step-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.st-step-actions-grid .btn {
  width: 100%;
  min-height: 1.8rem;
  padding-inline: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: normal;
  line-height: 1.15;
}

.st-step-action-wide {
  grid-column: span 2;
}

.st-rest-card {
  margin: 0.55rem 0 0 3.05rem;
  padding: 0.5rem;
  border: 1px solid #e4e7ec;
  border-left: 4px solid #c4b5fd;
  border-radius: 8px;
  background: #fbfbfd;
}

.st-rest-compact-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) 4.75rem;
  gap: 0.5rem;
  align-items: start;
}

.st-rest-title {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 850;
}

.st-rest-fields {
  min-width: 0;
}

.st-rest-fields .form-label {
  display: none;
}

.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(1),
.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(2),
.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(1),
.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(2) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
}

.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(1)::before,
.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(2)::before,
.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(1)::before,
.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(2)::before {
  color: #344054;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(1)::before {
  content: "부모";
}

.st-rest-fields .st-step-form-row:nth-child(1) > .span-3:nth-child(2)::before {
  content: "시작";
}

.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(1)::before {
  content: "휴식";
}

.st-rest-fields .st-step-form-row:nth-child(2) > .span-3:nth-child(2)::before {
  content: "종료";
}

.st-rest-actions {
  display: grid;
  gap: 0.35rem;
}

.st-rest-actions .btn {
  width: 100%;
  min-height: 1.9rem;
  padding-inline: 0.4rem;
  font-size: 0.72rem;
  font-weight: 750;
}

@media (max-width: 1199.98px) {
  .st-routine-runtime-grid {
    grid-template-columns: 1fr;
  }

  .st-step-grid {
    grid-template-columns: 2.5rem minmax(10rem, 0.85fr) minmax(0, 1.35fr);
  }

  .st-step-edit-block,
  .st-step-actions-grid {
    grid-column: 2 / -1;
  }

  .st-step-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .st-step-action-wide {
    grid-column: span 2;
  }
}

.st-pre {
  min-height: 12rem;
  white-space: pre-wrap;
}

.st-bulk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.st-bulk-kicker {
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.st-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.st-bulk-actions .form-select {
  width: 14rem;
}

.st-bulk-method {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.st-bulk-method-option {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
}

.st-bulk-method-option small {
  color: #6b7280;
  font-weight: 600;
}

.st-bulk-method-option.is-disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.st-bulk-mode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-bulk-choice {
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  padding: 0.85rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.st-bulk-choice.is-active {
  border-color: #0d6efd;
  background: #eff6ff;
}

.st-bulk-choice-title {
  color: #111827;
  font-weight: 800;
}

.st-bulk-choice-desc {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.st-bulk-target-grid,
.st-bulk-condition-grid,
.st-bulk-tag-grid,
.st-bulk-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.st-bulk-target,
.st-bulk-tag-group {
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.st-bulk-purpose-groups {
  display: grid;
  gap: 1rem;
}

.st-bulk-purpose-group {
  display: grid;
  gap: 0.45rem;
}

.st-bulk-subtitle {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 800;
}

.st-bulk-check-list,
.st-bulk-radio-list {
  display: grid;
  gap: 0.45rem;
}

.st-bulk-filter-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(8rem, 0.35fr));
  gap: 0.5rem;
}

.st-bulk-pool-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.st-bulk-exercise-table-wrap {
  max-height: 32rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.st-bulk-exercise-table {
  min-width: 58rem;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.st-bulk-exercise-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.st-bulk-exercise-table tbody tr.is-included td {
  background: #f0fdf4;
}

.st-bulk-exercise-table tbody tr.is-excluded td {
  background: #fff7ed;
}

.st-bulk-stimulus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.st-bulk-slider {
  display: grid;
  grid-template-columns: 5.5rem minmax(8rem, 1fr) 2rem;
  gap: 0.75rem;
  align-items: center;
  color: #374151;
  font-weight: 700;
}

.st-bulk-slider strong {
  text-align: right;
}

.st-bulk-prompt-kind-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f2937;
}

.st-bulk-prompt-kind-label--text {
  color: #dc2626;
}

.st-bulk-text-prompt-input {
  font-size: 0.95rem;
}

.st-bulk-register-actions {
  flex: 1 1 28rem;
  max-width: 100%;
  margin-left: auto;
}

.st-bulk-register-actions .alert {
  text-align: left;
}

.st-bulk-prompt,
.st-bulk-json {
  min-height: 24rem;
  line-height: 1.5;
  resize: vertical;
}

.st-bulk-json {
  min-height: 20rem;
}

.st-bulk-validation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-bulk-validation-item {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.st-bulk-validation-item i {
  margin-top: 0.15rem;
  color: #6b7280;
}

.st-bulk-validation-item strong {
  display: block;
  color: #111827;
  font-size: 0.92rem;
}

.st-bulk-validation-item p {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.4;
}

.st-bulk-validation-item.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.st-bulk-validation-item.is-ok i {
  color: #16a34a;
}

.st-bulk-validation-item.is-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.st-bulk-validation-item.is-error i {
  color: #dc2626;
}

.st-bulk-validation-item.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.st-bulk-validation-item.is-warning i {
  color: #d97706;
}

.st-bulk-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-bulk-preview-item {
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.st-bulk-preview-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  line-height: 1.35;
}

.st-bulk-preview-item p {
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.st-page--ai-import .st-ai-import-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100dvh - 11rem);
}

.st-page--ai-import .st-ai-import-editor {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.st-pre-ai-modal {
  min-height: 16rem;
  resize: vertical;
}

.st-card-actions {
  margin-top: auto;
}

.st-publish-switch {
  flex-shrink: 0;
}

.st-admin-publish-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.st-admin-bulk-bar .st-card-body {
  min-height: 0;
}

.st-admin-bulk-status-modal .modal-dialog {
  margin: 1rem auto;
}

.st-admin-bulk-status-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--st-border, #dee2e6);
  border-radius: 0.375rem;
  cursor: pointer;
  user-select: none;
}

.st-admin-bulk-status-option:has(:checked) {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.st-admin-bulk-status-option .form-check-input {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.st-admin-bulk-status-review {
  background: rgba(0, 0, 0, 0.02);
}

.st-admin-bulk-stimulus-modal .modal-dialog {
  margin: 1rem auto;
}

.st-admin-bulk-stimulus-modal [data-content-bulk-stimulus-current][hidden] {
  display: none !important;
}

.st-page--ai-import .st-pre-ai-import {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: max(24rem, calc(100dvh - 21rem));
  height: calc(100dvh - 21rem);
  resize: vertical;
}

.st-markdown {
  line-height: 1.75;
  white-space: pre-wrap;
}

.st-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
}

.st-admin-panel {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.st-content-search-form--embedded {
  margin-bottom: 0;
}

.st-admin-list-controls__select {
  width: auto;
  min-width: 9.5rem;
}

.st-admin-exercise-table a.fw-semibold {
  color: #0d6efd;
  text-decoration: none;
}

.st-admin-exercise-table a.fw-semibold:hover,
.st-card-title-link:hover {
  color: #0b5ed7;
  text-decoration: underline !important;
}

.st-card-title-link {
  color: #0d6efd;
  text-decoration: none;
}

.st-admin-exercise-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.st-admin-exercise-table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.st-admin-exercise-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.st-admin-exercise-table tbody td {
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.st-admin-exercise-table__check {
  width: 2.5rem;
}

.st-admin-exercise-table__thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eaf2ff, #eefdf5);
}

.st-admin-exercise-table__thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 1rem;
}

.st-admin-exercise-tags-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
  max-width: 24rem;
}

.st-youtube-keyword-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  padding: 0.22rem 0.5rem 0.22rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid #b91c1c;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.st-youtube-keyword-chip:hover,
.st-youtube-keyword-chip:focus-visible {
  background: #fef2f2;
  color: #111827;
  border-color: #991b1b;
  box-shadow: none;
}

.st-youtube-keyword-chip__icon {
  flex-shrink: 0;
  display: inline-flex;
  font-size: 0.95rem;
  line-height: 1;
  color: #b91c1c;
}

.st-youtube-keyword-chip__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-youtube-keyword-chip__action {
  flex-shrink: 0;
  display: inline-flex;
  font-size: 0.8rem;
  line-height: 1;
  color: #6b7280;
}

.st-youtube-keyword-chip:hover .st-youtube-keyword-chip__action,
.st-youtube-keyword-chip:focus-visible .st-youtube-keyword-chip__action {
  color: #991b1b;
}

.st-api-key-panel {
  overflow: visible;
}

.st-api-key-toolbar {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.st-api-key-search {
  width: min(100%, 28rem);
}

.st-api-key-search .input-group-text,
.st-api-key-search .form-control {
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.st-api-key-search .input-group-text {
  color: #6b7280;
}

.st-api-key-table-wrap {
  background: #fff;
  overflow: visible;
}

.st-api-key-table {
  min-width: 42rem;
}

.st-api-key-table thead th {
  padding: 0.7rem 1rem;
  color: #6b7280;
  background: #f9fafb;
  border-bottom-color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 700;
}

.st-api-key-table tbody td {
  padding: 1rem;
  border-bottom-color: #eef2f7;
}

.st-api-key-table tbody tr:last-child td {
  border-bottom: 0;
}

.st-api-key-code {
  display: inline-block;
  margin-top: 0.25rem;
  color: #64748b;
  background: transparent;
  font-size: 0.84rem;
  word-break: break-all;
}

.st-api-key-date {
  color: #374151;
  white-space: nowrap;
}

.st-api-key-more {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.st-api-key-table .dropdown-menu {
  z-index: 1080;
}

.st-api-key-count {
  padding: 0.8rem 1rem;
  color: #6b7280;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .st-exercise-alarm-settings__grid,
  .st-exercise-tick-options__fields {
    grid-template-columns: 1fr;
  }

  .st-grid,
  .st-form-grid,
  .st-routine-basic-layout,
  .st-routine-basic-fields,
  .st-shelf-track,
  .st-bulk-mode-list,
  .st-bulk-target-grid,
  .st-bulk-condition-grid,
  .st-bulk-tag-grid,
  .st-bulk-rule-grid,
  .st-bulk-validation,
  .st-bulk-preview-list {
    grid-template-columns: 1fr;
  }

  .st-grid,
  .st-shelf-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-option-pills {
    flex-wrap: wrap;
  }

  .st-step-row {
    grid-template-columns: 1fr 1fr;
  }

  .st-routine-basic-title-row,
  .st-routine-board-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .st-routine-recommend-switch,
  .st-routine-board-actions {
    justify-content: flex-start;
  }

  .st-routine-runtime-title {
    display: grid;
    justify-content: stretch;
  }

  .st-step-grid,
  .st-rest-compact-grid {
    grid-template-columns: 1fr;
  }

  .st-step-edit-block,
  .st-step-actions-grid {
    grid-column: auto;
  }

  .st-step-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .st-rest-card {
    margin-left: 0;
  }

  .st-bulk-head {
    display: grid;
  }

  .st-bulk-actions {
    justify-content: flex-start;
  }

  .st-bulk-filter-row,
  .st-bulk-stimulus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .st-card-body,
  .st-filter-bar,
  .st-section,
  .st-hero-panel {
    padding: 0.85rem;
  }

  .st-step-row {
    grid-template-columns: 1fr;
  }

  .st-step-form-row {
    grid-template-columns: 1fr;
  }

  .st-step-form-row .span-2,
  .st-step-form-row .span-3,
  .st-step-form-row .span-4,
  .st-step-form-row .span-5,
  .st-step-form-row .span-6,
  .st-step-form-row .span-8,
  .st-step-form-row .span-12 {
    grid-column: 1;
  }

  .st-step-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-step-action-wide {
    grid-column: span 2;
  }

  .st-routine-set-row .st-set-repeat-btn,
  .st-routine-set-row .st-set-repeat-custom-wrap,
  .st-routine-board-actions .btn {
    width: 100%;
  }

  .st-grid,
  .st-shelf-track {
    grid-template-columns: 1fr;
  }

  .st-home-hero {
    min-height: 17rem;
    padding: 1rem;
  }

  .st-home-title {
    font-size: 2.15rem;
  }

  .st-bulk-actions,
  .st-bulk-actions .form-select,
  .st-bulk-actions .btn {
    width: 100%;
  }

  .st-bulk-slider {
    grid-template-columns: 1fr 2rem;
  }

  .st-bulk-slider .form-range {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .st-api-key-table {
    min-width: 0;
  }

  .st-api-key-table thead th,
  .st-api-key-table tbody td {
    padding-inline: 0.55rem;
  }

  .st-api-key-date {
    font-size: 0.82rem;
    white-space: normal;
  }

}

.st-flash-auto {
  transition: opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
}

.st-flash-auto.is-dismissing {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.st-edit-actions-top {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.st-edit-actions-top .st-edit-actions-ai {
  margin-right: 1.5rem;
}

/* 커버 합성 테스트 · 일괄 재생성 — 액션/상태 카드 상단 고정 */
.st-cover-compose-toolbar {
  position: sticky;
  top: 4.25rem;
  z-index: 1020;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.st-edit-toolbar {
  position: sticky;
  top: 4.25rem;
  z-index: 1020;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin-right: -0.25rem;
  margin-left: -0.25rem;
  padding: 0.5rem 0.25rem;
  background: rgba(248, 249, 250, 0.96);
  border-bottom: 1px solid #dbe2ec;
  backdrop-filter: blur(8px);
}

@media (max-width: 767.98px) {
  .st-edit-actions-top {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .st-edit-actions-top .st-edit-actions-ai {
    margin-right: 0;
  }
}

/* 유사 콘텐츠 검토 패널 */
.st-sim-review {
  --st-sim-line: #e5e7eb;
  --st-sim-line-strong: #d8dde5;
  --st-sim-warning-bg: #fff7e6;
  --st-sim-warning-border: #ffd99a;
  --st-sim-warning-text: #7c2d12;
  --st-sim-green-bg: #ecfdf3;
  --st-sim-green-border: #a7e3b3;
  --st-sim-green-text: #16803a;
  --st-sim-blue-bg: #eff6ff;
  --st-sim-blue-border: #93c5fd;
  --st-sim-blue-text: #2563eb;
  --st-sim-amber-bg: #fff7df;
  --st-sim-amber-border: #f6c35b;
  --st-sim-amber-text: #a66500;
}

.st-sim-review__warning {
  border: 1px solid var(--st-sim-warning-border);
  background: var(--st-sim-warning-bg);
  border-radius: 10px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.st-sim-review__warning-icon {
  font-size: 30px;
  color: #ff8a00;
  line-height: 1;
  padding-top: 2px;
}

.st-sim-review__warning-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--st-sim-warning-text);
  margin-bottom: 4px;
}

.st-sim-review__warning-desc {
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}

.st-sim-candidate {
  margin-bottom: 0.5rem;
}

.st-sim-candidate__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 4px;
}

.st-sim-candidate__title-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.st-sim-candidate__title-btn:hover {
  color: #2563eb;
}

.st-sim-candidate__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.st-sim-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-sim-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

.st-sim-btn--toggle {
  width: 30px;
  min-width: 30px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.st-sim-btn--toggle .bi {
  pointer-events: none;
}

.st-sim-compare-card {
  border: 1px solid var(--st-sim-line-strong);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.st-sim-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.st-sim-compare-table col.col-item {
  width: 15%;
}

.st-sim-compare-table col.col-new,
.st-sim-compare-table col.col-old {
  width: 35%;
}

.st-sim-compare-table col.col-result {
  width: 15%;
}

.st-sim-compare-table th {
  height: 36px;
  padding: 0 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--st-sim-line);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.st-sim-compare-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--st-sim-line);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.st-sim-compare-table tr:last-child td {
  border-bottom: 0;
}

.st-sim-compare-table th:not(:last-child),
.st-sim-compare-table td:not(:last-child) {
  border-right: 1px solid var(--st-sim-line);
}

.st-sim-compare-table th.st-sim-col-verdict,
.st-sim-compare-table td.st-sim-col-verdict {
  text-align: center;
  vertical-align: middle;
}

.st-sim-col-verdict .st-sim-status {
  margin: 0 auto;
}

.st-sim-item-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 800;
  color: #1f2937;
}

.st-sim-item-icon {
  width: 18px;
  flex: 0 0 18px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.st-sim-value {
  color: #111827;
  word-break: break-word;
  white-space: pre-wrap;
}

.st-sim-markdown-preview {
  position: relative;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
  overflow: hidden;
  max-height: 70px;
  transition: max-height 0.2s ease;
}

.st-sim-markdown-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.st-sim-description-row.is-open .st-sim-markdown-preview {
  max-height: 900px;
}

.st-sim-description-row.is-open .st-sim-markdown-preview::after {
  display: none;
}

.st-sim-detail-toggle {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  padding: 0;
  cursor: pointer;
}

.st-sim-detail-toggle:hover {
  text-decoration: underline;
}

.st-sim-status {
  min-width: 52px;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.st-sim-status--same {
  color: var(--st-sim-green-text);
  background: var(--st-sim-green-bg);
  border: 1px solid var(--st-sim-green-border);
}

.st-sim-status--diff {
  color: var(--st-sim-blue-text);
  background: var(--st-sim-blue-bg);
  border: 1px solid var(--st-sim-blue-border);
}

.st-sim-status--similar {
  color: var(--st-sim-amber-text);
  background: var(--st-sim-amber-bg);
  border: 1px solid var(--st-sim-amber-border);
}

.st-sim-review__form-actions {
  margin-top: 0.25rem;
}

.st-sim-footer-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.st-sim-footer-btn--cancel {
  border: 1px solid #94a3b8;
  background: #fff;
  color: #475569;
}

.st-sim-footer-btn--verify {
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
}

.st-sim-footer-btn--register {
  border: 1px solid #15803d;
  background: #15803d;
  color: #fff;
}

.st-sim-footer-btn--force {
  border: 1px solid #eab308;
  background: #f6b000;
  color: #111827;
}

.modal .st-sim-review {
  margin-bottom: 0;
}

.modal.st-sim-modal-open .modal-body {
  padding-bottom: 4.5rem;
}

.modal.st-sim-modal-open .modal-footer.st-sim-modal-footer {
  gap: 8px;
}

.st-method-import-table .st-method-import-pre {
  max-height: 10rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}

.st-method-import-detail td {
  background: #fafafa;
}

.st-method-import-field-list ul {
  line-height: 1.65;
}

.st-method-import-field-toolbar {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.st-method-import-field-check .form-check-label {
  font-size: 0.875rem;
}

.st-method-import-prompt-panel .btn-link:hover {
  color: inherit;
}

.st-method-import-prompt {
  min-height: 14rem;
  line-height: 1.45;
  resize: vertical;
  background: #f8fafc;
}

.st-user-routine-shell {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.st-user-routine-side {
  position: sticky;
  top: 5rem;
}

.st-user-sidebar {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.st-user-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.7rem;
  color: #475569;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 700;
}

.st-user-sidebar__item:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.st-user-sidebar__item.is-active {
  color: #0f172a;
  background: #e0f2fe;
}

.st-user-sidebar__item i {
  width: 1.1rem;
  text-align: center;
}

.st-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.st-user-routine-statbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.st-user-routine-statbar span {
  min-width: 5.25rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.st-user-routine-statbar strong {
  display: block;
  color: #0f172a;
  font-size: 1.1rem;
}

.st-user-routine-readonly {
  border-radius: 8px;
}

.st-user-routine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.st-user-routine-card {
  min-width: 0;
}

.st-user-routine-card .st-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.78rem;
}

.st-user-routine-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-user-routine-card-aside {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
  align-content: center;
  padding: 0.65rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.st-user-routine-summary {
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-user-routine-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}

.st-user-routine-meta div {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #fff;
}

.st-user-routine-meta dt {
  margin: 0 0 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
}

.st-user-routine-meta dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.st-user-routine-detail-btn {
  justify-self: stretch;
}

.st-user-routine-empty {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
}

.st-user-routine-starter .st-content-shelf {
  margin-top: 0;
}

.st-user-routine-info-grid,
.st-user-routine-aux-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-user-routine-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  align-items: center;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-block: 1px solid #e5e7eb;
  background: #fbfdff;
}

.st-user-routine-info-list div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.st-user-routine-info-list dt {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.st-user-routine-info-list dt::after {
  content: ":";
  margin-left: 0.2rem;
  color: #94a3b8;
}

.st-user-routine-info-list dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.st-user-routine-aux-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.st-user-routine-timer-board {
  padding: 0.85rem;
  background: #f8fafc;
}

.st-user-routine-timer-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.st-user-routine-readonly-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0ecff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.st-user-routine-timer-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.st-user-routine-info-grid div,
.st-user-routine-aux {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.st-user-routine-info-grid span,
.st-user-routine-aux span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.st-user-routine-info-grid strong,
.st-user-routine-aux strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.st-user-routine-aux small {
  display: block;
  margin-top: 0.3rem;
  color: #64748b;
  overflow-wrap: anywhere;
}

.st-user-routine-aux--prep {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.st-user-routine-aux--prep span,
.st-user-routine-aux--prep span i {
  color: #047857;
}

.st-user-routine-aux--set-rest {
  background: #fffbeb;
  border-color: #fde68a;
}

.st-user-routine-aux--set-rest span,
.st-user-routine-aux--set-rest span i {
  color: #b45309;
}

.st-user-routine-aux--completion {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.st-user-routine-aux--completion span,
.st-user-routine-aux--completion span i {
  color: #1d4ed8;
}

.st-user-routine-aux.is-disabled {
  opacity: 0.72;
}

.st-user-routine-timer-strip .st-user-routine-aux {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.5rem;
  min-height: 3rem;
  padding: 0.48rem 0.65rem;
}

.st-user-routine-timer-strip .st-user-routine-aux span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.st-user-routine-timer-strip .st-user-routine-aux strong {
  margin-top: 0;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.st-user-routine-timer-strip .st-user-routine-aux small {
  grid-column: 1 / -1;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-user-routine-step-list {
  display: grid;
  gap: 0.45rem;
}

.st-user-routine-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) minmax(9.5rem, auto);
  gap: 0.55rem;
  align-items: center;
  min-height: 4.85rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.st-user-routine-step.is-rest {
  min-height: 2.65rem;
  padding-block: 0.42rem;
  background: #fffbeb;
  border-color: #fde68a;
  box-shadow: 0 1px 5px rgba(180, 83, 9, 0.1);
}

.st-user-routine-step-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: #2563eb;
  font-size: 1.35rem;
}

.st-user-routine-step.is-rest .st-user-routine-step-handle {
  color: #b45309;
  font-size: 1rem;
}

.st-user-routine-step-body {
  min-width: 0;
}

.st-user-routine-step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.st-user-routine-step-title {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-user-routine-step-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 900;
  vertical-align: 0.08rem;
}

.st-user-routine-step-mainline {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 0.12rem;
}

.st-user-routine-step-clock {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.98;
  white-space: nowrap;
}

.st-user-routine-step-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
  padding-bottom: 0.12rem;
}

.st-user-routine-step .st-step-cue-row {
  gap: 0.25rem;
  margin-top: 0.18rem;
}

.st-user-routine-step-cues {
  display: grid;
  gap: 0.25rem;
  align-self: center;
  justify-self: end;
  min-width: 9.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #e5edfb;
  border-radius: 8px;
  background: #f8fbff;
}

.st-cue-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.25rem;
}

.st-cue-line__label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.st-cue-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.st-cue-icon {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1;
}

.st-cue-icon.is-active {
  color: #2563eb;
}

.st-cue-icon--tts.is-active {
  color: #0f766e;
}

.st-cue-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.st-cue-tick.is-active {
  color: #2563eb;
}

.st-user-routine-step.is-rest .st-user-routine-step-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.st-user-routine-step.is-rest .st-user-routine-step-title-row {
  flex: 1 1 12rem;
}

.st-user-routine-step.is-rest .st-user-routine-step-mainline {
  flex: 0 0 auto;
  margin-top: 0;
}

.st-user-routine-step.is-rest .st-user-routine-step-clock {
  font-size: 0.95rem;
  line-height: 1;
}

.st-user-routine-step.is-rest .st-user-routine-step-tags {
  display: none;
}

.st-user-routine-step.is-rest .st-step-cue-row {
  flex: 1 1 12rem;
  margin-top: 0;
}

.st-user-routine-step.is-rest .st-cue-badge {
  min-height: 1.25rem;
}

.st-user-routine-step.is-rest .st-user-routine-step-cues {
  background: rgba(255, 255, 255, 0.65);
  border-color: #fde68a;
}

@media (max-width: 1199.98px) {
  .st-user-routine-info-grid,
  .st-user-routine-aux-grid,
  .st-user-routine-aux-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .st-user-routine-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-user-routine-side {
    position: static;
  }

  .st-user-sidebar {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }
}

@media (max-width: 575.98px) {
  .st-section-head {
    display: grid;
  }

  .st-user-routine-info-grid,
  .st-user-routine-aux-grid,
  .st-user-routine-aux-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-user-routine-info-list {
    display: grid;
    gap: 0.35rem;
  }

  .st-user-routine-info-list div {
    justify-content: space-between;
  }

  .st-user-routine-timer-board {
    padding: 0.65rem;
  }

  .st-user-routine-timer-strip {
    gap: 0.4rem;
  }

  .st-user-routine-timer-strip .st-user-routine-aux {
    padding: 0.42rem 0.5rem;
  }

  .st-user-routine-card .st-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-user-routine-statbar {
    justify-content: stretch;
  }

  .st-user-routine-statbar span {
    flex: 1 1 6rem;
  }

  .st-user-routine-step {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    padding-inline: 0.5rem;
  }

  .st-user-routine-step-cues {
    grid-column: 2;
    justify-self: stretch;
    min-width: 0;
  }

  .st-cue-line {
    justify-content: flex-start;
  }

  .st-user-routine-step-clock {
    font-size: 1.85rem;
  }
}
