/* 제작 화면 정리 (2026-11-21, unslop 가벼운 정리)
 * 무채색 바탕은 그대로 두고, 연하늘색 주 버튼과 파란 선택 칩만 랜딩과 같은 밝은 흰색 버튼으로 맞춥니다.
 * readability.css 뒤에 불러와 앞선 값을 덮습니다. */
:root {
  --primary: #ededed;
  --primary-foreground: #141415;
}

/* 주 버튼: 밝은 흰색 + 어두운 글자, 위쪽에 아주 옅은 밝은 선 */
.btn-primary,
.ig-search-go {
  background: #ededed;
  color: #141415;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover,
.ig-search-go:hover { background: #ffffff; color: #141415; }

/* 마크업에 직접 적힌 파란 버튼·배지도 같은 버튼으로 */
.bg-\[\#3b82f6\].text-white {
  background-color: #ededed !important;
  color: #141415 !important;
}
.hover\:bg-\[\#2563eb\]:hover { background-color: #ffffff !important; }

/* 로고: 타일 없이 단색 표시만 */
.studio-brand-mark {
  background: transparent;
  border: 0;
  color: #ededed;
}

/* 아이콘과 글자를 함께 쓰는 버튼의 아이콘 정렬 */
.btn-primary svg,
.btn-secondary svg { flex: none; }

/* 전체 대본과 장면별 읽기 순서 */
#storyReview {
  --story-muted: #a7afbd;
  --story-line: #343943;
  box-sizing: border-box;
  padding: clamp(14px, 3vw, 22px);
  background: #14171d;
  color: #eef0f4;
  border: 1px solid #30353e;
  border-radius: 16px;
  font-variant-numeric: tabular-nums;
}
#storyReview .story-heading, #storyReview .story-count-row, #storyReview .story-scene-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
#storyReview .story-heading > label:first-child, #storyReview h3 {
  margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700;
}
#storyReview .story-duration, #storyReview .story-stepper {
  display: inline-flex; flex: none; align-items: center; background: #21252c;
  border: 1px solid var(--story-line); border-radius: 10px;
}
#storyReview .story-duration { padding: 0 10px; font-size: 13px; color: var(--story-muted); }
#storyReview input[type=number] {
  width: 3ch; min-width: 0; height: 42px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 4px; text-align: center; background: transparent;
  color: #f4f5f7; font-family: inherit; font-size: 16px; font-weight: 600;
  appearance: textfield; -moz-appearance: textfield; box-shadow: none;
}
#storyReview input::-webkit-inner-spin-button, #storyReview input::-webkit-outer-spin-button { appearance: none; margin: 0; }
#storyReview #storyText {
  display: block; box-sizing: border-box; width: 100%; margin: 10px 0 0;
  padding: 12px 14px; border: 1px solid var(--story-line); border-radius: 10px;
  background: #191c23; color: #edf0f5; font-family: inherit; font-size: 16px; line-height: 1.6;
  font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; resize: vertical;
}
#storyReview .story-count-row { padding: 17px 0; border-bottom: 1px solid var(--story-line); }
#storyReview .story-count-row label { font-size: 14px; font-weight: 600; }
#storyRecommend, #storyTarget { color: var(--story-muted); font-size: 12px; font-weight: 500; }
#storyRecommend { margin-top: 3px; }
#storyReview .story-stepper { overflow: hidden; }
#storyReview .story-stepper button {
  width: 42px; height: 42px; padding: 0; margin: 0; border: 0; background: transparent;
  color: #d9dee9; font-size: 21px; font-weight: 400; cursor: pointer;
}
#storyReview .story-stepper button:disabled { color: #757c88; }
#storyReview .story-scene-heading { margin: 21px 0 7px; }
#storyReview ol { margin: 0; padding: 0; list-style: none; }
#storyIntervals > li { position: relative; margin: 0; padding: 12px 0 13px 19px; }
#storyIntervals > li::before { content: ''; position: absolute; left: 3px; top: 20px; bottom: -20px; width: 1px; background: var(--story-line); }
#storyIntervals > li:last-child::before { display: none; }
#storyIntervals > li::after { content: ''; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #9bb5de; }
#storyReview .story-scene-meta { font-size: 12px; line-height: 1.5; font-weight: 600; color: #bdd0ed; }
#storyReview .story-scene-meta span:last-child { color: var(--story-muted); font-weight: 450; white-space: nowrap; }
#storyIntervals > li > p { margin: 5px 0 0; color: #f1f2f5; font-size: 15px; line-height: 1.65; font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; max-width: 62ch; }
#storyReview .story-detail { border-top: 1px solid var(--story-line); margin: 3px 0 0; padding: 0; }
#storyReview summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 500; color: #c4cbd7; }
#storyReview summary::-webkit-details-marker { display: none; }
#storyReview summary::after { content: ''; width: 7px; height: 7px; margin: 0 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#storyReview details[open] summary::after { transform: rotate(225deg); }
#storyReview .story-detail p, #storyReview #storyStatus { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--story-muted); font-weight: 400; }
#storyReview #storyStatus:empty { display: none; }
#storySeconds { max-height: 14rem; overflow-y: auto; }
#storySeconds > li { display: grid; grid-template-columns: 4.8em 1fr; gap: 8px; padding: 7px 0; font-size: 14px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
#storySeconds > li > span:first-child { color: var(--story-muted); font-size: 12px; }
#storyReview .story-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#storyReview .story-actions button { flex: 1 1 auto; min-height: 44px; border-radius: 10px; padding: 8px 12px; background: #dbe7fa; color: #162438; font-size: 14px; font-weight: 650; cursor: pointer; }
#storyReview .story-actions button:disabled { opacity: .6; cursor: default; }
#storyReview #storyConfirm:disabled { display: none; }
#storyReview .story-actions:has(#storyConfirm:enabled) #storyListen { background: #262c35; color: #e5e9f0; }
#storyReview :is(input,button,textarea,summary):focus-visible { outline: 2px solid #a7caff; outline-offset: -2px; }
