.back-step-button {
  flex-shrink: 0;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-page-bg);
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.empty-text {
  margin: 0;
  padding: 12px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: 12px;
}

.warning-text {
  color: var(--color-danger);
  font-weight: 700;
}

.step-top-action-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px 0;
}

.back-step-button,
.step-usage-button {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-page-bg);
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-usage-button {
  margin-left: auto;
  border: none;
  background: var(--color-transparent);
  box-shadow: none;
  color: var(--color-text-muted);
  padding: 6px 4px;
  margin-bottom: 10px;
  font-size: 18px;
}

.selected-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.selected-song {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}
.scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -10px;
  padding: 2px 8px 24px 8px;
}
.song-section {
  margin-top: 18px;
}
.song-section:first-child {
  margin-top: 0;
}
.song-section:last-child {
  margin-bottom: 18px;
}
.song-section h2,
.youtube-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.song-list {
  display: grid;
  gap: 10px;
}
.song-button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.song-button.selected {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  font-weight: 700;
}
.spotify-skip-area {
  margin-bottom: 18px;
}
.task-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.4;
}

.daily-task-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.daily-task-title-row #dailyTaskName {
  flex: 1;
  min-width: 0;
}
.notice-box {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-page-bg);
  color: var(--color-text-sub);
  line-height: 1.7;
  white-space: pre-wrap;
  font-weight: 600;
}

.stationhead-direct-button {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

/* JSON内の \n を画面上の改行として表示する */
#dailyTaskCommentArea,
#onceTaskMessageArea {
  white-space: pre-line;
}

.copy-area {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-brand-soft);
  border: 1px solid var(--color-brand-border);
}

.copy-text {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-page-bg);
  color: var(--color-text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-preview-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 4px;
  border-radius: var(--radius-button);
  background: var(--color-page-bg);
}

.post-preview-tab {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-transparent);
  border-radius: var(--radius-button);
  background: var(--color-transparent);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.post-preview-tab.active {
  border-color: var(--color-brand);
  background: var(--color-surface);
  color: var(--color-brand);
  box-shadow: var(--shadow-card);
}

.post-preview-panel {
  margin-top: 8px;
}

.post-item-list {
  margin-bottom: 24px;
}

.post-check-card {
  margin-top: 0;
  margin-bottom: 24px;
}

.post-action-button {
  margin-top: 18px;
}

.post-check-all {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  background-color: var(--color-brand-soft);
}

.youtube-section {
  margin-top: 22px;
}

.youtube-section:first-child {
  margin-top: 0;
}

.youtube-card-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.youtube-card-item {
  position: relative;
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
}

.youtube-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-page-bg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card-soft);
  padding: .5rem;
}

.youtube-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--color-surface-media);
}

.youtube-text-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-soft);
  color: var(--color-accent-text);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.youtube-card-name {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  height: 3.8rem;
  color: var(--color-text);
}

.youtube-card-share-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--color-text);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card-soft);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.youtube-card-share-button i {
  line-height: 1;
}

