/* 드라마 만들기(2026-11-22): 채팅처럼 한 줄로 흐른다. 만들기 화면과 같은 어두운 결(바탕 #0f1113, 면 #131517, 주 단추 연두 #d1fe17) */
body.drama { background: #0f1113; }
.dr-nav a.on { background: rgba(255,255,255,.08); color: #fff; }
.dr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dr-chat { max-width: 780px; margin: 0 auto; padding: 14px 16px calc(168px + var(--sab)); color: #f7f7f8; }
.dr-recent { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.dr-recent::-webkit-scrollbar { display: none; }
#drRecentList { display: flex; gap: 6px; }
.dr-pill { flex: none; min-height: 36px; max-width: 220px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: transparent; color: rgba(255,255,255,.82); font: inherit;
  font-size: 13.5px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-pill[aria-current="true"] { background: #fff; border-color: #fff; color: #111318; }
.dr-pill.new { border-style: dashed; }
.dr-log, #drFlow { display: grid; gap: 12px; }
#drFlow:empty { display: none; }

/* 말풍선: 왼쪽 = 안내, 오른쪽 = 내가 적은 글 */
.dr-b { min-width: 0; max-width: min(88%, 620px); padding: 14px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.dr-b p, .dr-b h2 { margin: 0; }
.dr-b.bot { justify-self: start; border-bottom-left-radius: 6px; background: #1b1e21; }
.dr-b.me { justify-self: end; border-bottom-right-radius: 6px; background: #d1fe17; color: #131517; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.dr-b h2 { font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.dr-b h2 + p { margin-top: 6px; color: rgba(255,255,255,.76); }
.dr-b.join { border: 1px solid rgba(209,254,23,.5); background: rgba(209,254,23,.08); }
.dr-b .big { font-size: 19px; line-height: 1.45; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }
.dr-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: transparent; color: #f7f7f8;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dr-btn:hover { border-color: rgba(255,255,255,.36); }
.dr-btn.fill { border-color: #d1fe17; background: #d1fe17; color: #131517; font-weight: 800; }
.dr-work { display: flex; align-items: center; gap: 12px; }
.dr-work strong { display: block; font-size: 15.5px; font-weight: 700; }
.dr-work small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.56); }
.dr-ring { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: #d1fe17; animation: drSpin .9s linear infinite; }
@keyframes drSpin { to { transform: rotate(360deg); } }
/* 인물과 장소 사진(2026-11-22 오후): 컷 목록 위, 세로 3:4 사진 칸이 옆으로 이어지고 아래에 이름 */
.dr-photos { padding: 16px; border: 1px solid rgba(217,217,217,.06); border-radius: 18px; background: #131517; }
.dr-ph-title { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.dr-ph-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dr-ph-grid::-webkit-scrollbar { display: none; }
.dr-ph { margin: 0; min-width: 0; }
.dr-ph-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #1f2226; }
.dr-ph-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dr-ph.s-failed .dr-ph-img { box-shadow: inset 0 0 0 1px rgba(255,107,107,.5); }
.dr-ph figcaption { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.35; font-weight: 600;
  text-align: center; word-break: keep-all; color: rgba(255,255,255,.82); }
@media (max-width: 560px) { .dr-ph-grid { grid-auto-columns: calc((100% - 30px) / 4); } }          /* 휴대폰: 넷이 한 줄에, 넘치면 옆으로 */
.dr-ph-note { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.56); }
.dr-bad { color: #ff8a65; font-weight: 600; }
.dr-okay { margin: 10px 0 0; font-size: 14.5px; font-weight: 700; color: #d1fe17; }

/* 컷 카드: 번호, 이름, 길이, 대사, 영상(프롬프트는 없다) */
.dr-cuts { display: grid; gap: 10px; }
.dr-cut { min-width: 0; padding: 16px; border: 1px solid rgba(217,217,217,.06); border-radius: 18px; background: #131517; }
.dr-cut-h { display: flex; align-items: center; gap: 10px; }
.dr-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #d1fe17; color: #131517; font-size: 13px; font-weight: 800; }
.dr-cut-h h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 800; }
.dr-free { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(209,254,23,.16); color: #d1fe17; font-size: 12px; font-weight: 800; }
.dr-sec-chip { flex: none; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.dr-lines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.dr-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.55; }
.dr-lines b { font-weight: 700; color: rgba(255,255,255,.56); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-video { display: block; width: min(100%, 300px); aspect-ratio: 9 / 16; margin-top: 12px; border-radius: 14px; background: #000; object-fit: cover; }
.dr-video.wide { width: min(100%, 520px); aspect-ratio: 16 / 9; }      /* 가로(16:9)로 만든 드라마의 컷(2026-11-24 휴대폰 입력부의 종횡비) */
.dr-cut .dr-work { margin-top: 14px; }
.dr-more { padding: 18px 16px; border: 1px solid rgba(209,254,23,.5); border-radius: 18px; background: rgba(209,254,23,.08); }
.dr-more.need { box-shadow: 0 0 0 3px rgba(209,254,23,.35); }
.dr-more strong { display: block; font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; }
.dr-more p { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.82); }
.dr-more small { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.56); }

/* 대본 예시(접기와 펼치기). 접은 상태는 #dr[data-ex="0"] (서버 기본값 → 브라우저가 기억한 값) */
.dr-ex { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); max-width: min(100%, 620px); }
.dr-ex-h { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 14px; }
.dr-ex-h strong { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.82); }
.dr-ex-use { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: transparent; color: #f7f7f8; font: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; }
.dr-ex-use:hover { border-color: rgba(255,255,255,.34); }
.dr-ex-tg { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer; }
.dr-ex-tg:hover { color: #fff; }
.dr-ex-tg svg { transition: transform .18s ease; }
.dr-ex-tg .off, #dr[data-ex="0"] .dr-ex-tg .on, #dr[data-ex="0"] .dr-ex-use { display: none; }
#dr[data-ex="0"] .dr-ex-tg .off { display: inline; }
#dr[data-ex="0"] .dr-ex-tg svg { transform: rotate(180deg); }
#dr[data-ex="0"] .dr-ex-box { display: none; }
.dr-ex-box { padding: 0 14px 14px; }
.dr-ex-body { margin: 0; font-family: inherit; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); white-space: pre-wrap; overflow-wrap: anywhere; }
#dr[data-state="plan"] .dr-ex, #dr[data-state="join"] .dr-ex { display: none; }      /* 드라마를 보는 동안은 예시를 치운다 */

.dr-skel { display: grid; gap: 12px; }
.dr-skel i { display: block; height: 64px; max-width: 420px; border-radius: 18px; background: rgba(255,255,255,.05); }
#dr:not([data-state="boot"]) .dr-skel { display: none; }

/* 아래에 붙은 입력 줄 */
.dr-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 18px max(16px, calc((100vw - 748px) / 2)) calc(14px + var(--sab));
  background: linear-gradient(to top, #0f1113 72%, rgba(15,17,19,0)); }
.dr-ta { position: relative; display: flex; min-width: 0; }
.dr-ta textarea { width: 100%; height: 88px; resize: none; padding: 13px 14px 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #1b1e21; color: #f7f7f8; font: inherit; font-size: 16px;
  line-height: 1.5; outline: none; }
.dr-ta textarea::placeholder { color: rgba(255,255,255,.42); }
.dr-ta textarea:focus { border-color: rgba(209,254,23,.6); }
.dr-len { position: absolute; right: 12px; bottom: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.42); font-variant-numeric: tabular-nums; pointer-events: none; }
.dr-len.over { color: #ff8a65; }
.dr-go { display: flex; align-items: center; justify-content: center; min-width: 84px; height: 88px; padding: 0 18px; border: 0; border-radius: 16px; background: #d1fe17; color: #131517; font: inherit; font-size: 16px;
  font-weight: 800; cursor: pointer; }
.dr-go:disabled { opacity: .45; cursor: default; }
/* 넘어온 글을 채워 둔 뒤 [만들기]를 살짝 짚는다(테두리 빛 두 번, 2026-11-27 대표님 "그다음 제작하기 버튼눌러야 제작되게", drama.js goPing) */
.dr-go.dr-go-ping { animation: drGoPing 1.1s ease-out 2; }
@keyframes drGoPing { 0% { box-shadow: 0 0 0 0 rgba(209,254,23,.6); } 70% { box-shadow: 0 0 0 11px rgba(209,254,23,0); } 100% { box-shadow: 0 0 0 0 rgba(209,254,23,0); } }
@media (prefers-reduced-motion: reduce) { .dr-go.dr-go-ping { animation: none; } }
.dr-err { grid-column: 1 / -1; margin: 0; font-size: 13.5px; font-weight: 600; color: #ff8a65; }

@media (max-width: 999px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .dr-nav { overflow-x: auto; scrollbar-width: none; }
  .dr-b { max-width: 94%; }
  .dr-lines li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dr-acts .dr-btn.fill { flex: 1 1 auto; }
}
/* 휴대폰: 안내 글(입력 칸 글)이 길어 세 줄까지 간다 → 안내 글만 조금 작게, 칸은 세 줄 높이로(입력 글자는 16px 그대로 = 아이폰이 화면을 키우지 않는다) */
@media (max-width: 560px) {
  .dr-chat { padding-bottom: calc(184px + var(--sab)); }
  .dr-ta textarea, .dr-go { height: 104px; }
  .dr-ta textarea::placeholder { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .dr-ring { animation-duration: 2.4s; } }

/* 가입 안내 창(2026-11-22 저녁 대표님 "로그인 창이 여기 나오는게 아니라, 팝업으로"): 구매 창과 같은 어두운 창(#131517, r24), 가운데 정렬,
   위에 연두 영화 아이콘 → 안내 한 줄(20px/800) → [무료로 시작하기][로그인] 두 칸. 휴대폰 = 아래에서 올라오는 창 + 손잡이, 단추는 위아래로 */
.dr-join-bg { background: rgba(0,0,0,.62); }
.sheet.dr-join { position: relative; max-width: 420px; padding: 30px 24px calc(24px + var(--sab)); background: #131517; color: #f7f7f8; color-scheme: dark; text-align: center;
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.55); outline: none; }
.dr-join-grip { display: none; }
.dr-join-x { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: none; color: rgba(255,255,255,.56); cursor: pointer; }
.dr-join-x:hover { background: rgba(255,255,255,.06); color: #fff; }
.dr-join-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 4px 0 16px; border-radius: 16px; background: rgba(209,254,23,.12); color: #d1fe17; }
.console .sheet.dr-join h3 { margin: 0 8px; font-size: 20px; line-height: 1.45; font-weight: 800; letter-spacing: -.02em; color: #fff; word-break: keep-all; white-space: pre-line; text-wrap: balance; }
.dr-join-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.dr-join-acts .dr-btn { min-height: 52px; }
.dr-join-acts .dr-btn:focus-visible, .dr-join-x:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
@media (max-width: 880px) {
  .sheet.dr-join { max-width: none; padding-top: 14px; border-bottom: 0; border-radius: 24px 24px 0 0; }
  .dr-join-grip { display: block; width: 40px; height: 4px; margin: 0 auto 18px; border-radius: 2px; background: rgba(255,255,255,.2); }
  .dr-join-x { top: 6px; right: 6px; }
  .dr-join-acts { grid-template-columns: minmax(0, 1fr); }
}

/* 맨 위 영상 셋(2026-11-22 저녁 대표님 "반응좋았던 우리 드라마 앞부분 3개정도 15초정도 … 이런 드라마, 힉스페이백으로 만들었어요"): 작은 회색 한 줄 + 9:16 세 칸,
   보이면 소리 없이 돌고 누르면 그 칸만 소리(오른쪽 아래 소리 표시). 드라마를 보는 동안(plan)과 가입 안내 말풍선(join)일 때는 치운다 */
.dr-clips-cap { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.62); }
.dr-clips-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 132px)); gap: 10px; }      /* 영상 수만큼 한 줄에(11/23 밤 대표님 "이거 이렇게 가로로 못넣어줘?") */
.dr-clip { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1b1e21; cursor: pointer; }
.dr-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dr-clip-snd { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.dr-clip-snd .on { display: none; }
.dr-clip.snd .dr-clip-snd { background: #d1fe17; color: #131517; }
.dr-clip.snd .dr-clip-snd .on { display: inline; }
.dr-clip.snd .dr-clip-snd .off { display: none; }
#dr[data-state="plan"] .dr-clips, #dr[data-state="join"] .dr-clips, #dr[data-state="plan"] .dr-pick { display: none; }
@media (max-width: 560px) { .dr-clips-row { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; } .dr-clip { border-radius: 10px; } }
/* 실사와 애니메이션 고르기(11/23 밤): 첫 질문 아래 알약 둘, 고른 쪽이 흰 바탕. 드라마를 보는 동안과 가입 안내일 때는 치운다 */
.dr-styles { justify-self: start; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: #131517; }
.dr-styles[hidden] { display: none; }
.dr-style { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.dr-style[aria-pressed="true"] { background: #fff; color: #111318; }
.dr-style:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
#dr[data-state="plan"] .dr-styles, #dr[data-state="join"] .dr-styles { display: none; }
/* 광고소재(11/23 밤): 유형 알약은 늘 보이고 안 골라도 된다(고른 것 = 연두 바탕) + 아래 설명 한 줄, 입력 줄의 [상품 사진 올리기]와 올린 사진 작은 칸(오른쪽 위 빼기 단추) */
.dr-genres[data-opt] .dr-genre { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.dr-genre[aria-pressed="true"] { background: #d1fe17; color: #131517; }
.dr-types-note { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
#dr[data-state="plan"] .dr-genres[data-opt], #dr[data-state="join"] .dr-genres[data-opt], #dr[data-state="plan"] .dr-types-note, #dr[data-state="join"] .dr-types-note { display: none; }
.dr-photo { grid-column: 1 / -1; order: -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-photo[hidden] { display: none; }
.dr-photobtn { flex: 1 1 auto; min-width: 0; order: 0; }
.dr-photobtn svg { color: rgba(255,255,255,.7); }
.dr-photo-chip { position: relative; flex: none; width: 44px; height: 44px; }
.dr-photo-chip[hidden] { display: none; }
.dr-photo-chip img { display: block; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #1b1e21; }
.dr-photo-chip button { position: absolute; top: -10px; right: -10px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #131517; border-radius: 50%;
  background: #f7f7f8; color: #131517; cursor: pointer; }
.dr-photo-chip button::after { content: ""; position: absolute; inset: -8px; }      /* 누르는 자리 44 */
@media (min-width: 1000px) { .dr-photo { flex: none; order: 0; } }      /* PC = 입력 칸 아래(사진, 자막, 만들기 순서) */
/* 장르 고르기(소개 페이지에서 온 손님): 고르기 전에는 입력 줄과 대본 예시를 치우고 연두 테 알약 넷, 고르면 내 말풍선(장르) + 안내 한 줄 다음에 입력 줄 */
.dr-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-genre { min-height: 46px; padding: 0 20px; border: 1px solid rgba(209,254,23,.55); border-radius: 999px; background: rgba(209,254,23,.08); color: #f7f7f8;
  font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.dr-genre:hover, .dr-genre:focus-visible { background: #d1fe17; color: #131517; outline: none; }
.dr-pick { display: grid; gap: 12px; }
.dr-pick:empty { display: none; }
#dr[data-state="pick"] .dr-ex, #dr[data-state="pick"] .dr-bar { display: none; }
html.mo .dr-genres:not([hidden]) .dr-genre { animation: drGenreIn .4s cubic-bezier(.2,.8,.2,1) both; }
html.mo .dr-genres .dr-genre:nth-child(2) { animation-delay: .06s; } html.mo .dr-genres .dr-genre:nth-child(3) { animation-delay: .12s; } html.mo .dr-genres .dr-genre:nth-child(4) { animation-delay: .18s; }
@keyframes drGenreIn { from { opacity: 0; transform: translateY(8px); } }

/* 11/22 밤: 영상 셋은 소리 표시 없이, [다른 장르 고르기], 대본 칸 위 손잡이(위로 끌면 커짐) */
.dr-clip { cursor: default; }
.dr-back { min-height: 40px; margin-top: 10px; padding: 0 14px; font-size: 13.5px; border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.78); }
.dr-back::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.dr-grip { position: absolute; z-index: 2; left: 50%; top: -11px; width: 64px; height: 22px; margin-left: -32px; cursor: ns-resize; touch-action: none; }
.dr-grip::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255,255,255,.28); }
.dr-grip:hover::before, .dr-grip:focus-visible::before { background: #d1fe17; }
.dr-grip:focus-visible { outline: none; }
.dr-ta textarea { transition: none; }

/* 제작 화면(2026-11-22 밤 대표님 "그냥 제작창으로 넘어가게. 힉스필드랑 좀 똑같이"): 내 대본 큰 말풍선과 '이야기를 읽고…' 말풍선 대신
   머리 카드(제목 + 준비 중 + 대본 보기 + '약 23:24에 완성돼요.' 막대) + 컷 자리(반짝이는 빈 카드 셋) → 다 쓰면 그 자리에 컷 카드 */
.dr-prod { padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: #131517; }
.dr-prod-top { display: flex; align-items: center; gap: 10px; }
.dr-prod-top h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.dr-prod-chip { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(209,254,23,.14); color: #d1fe17; font-size: 12px; font-weight: 800; }
.dr-prod-log { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.72); }
.dr-prod-script { margin-top: 10px; }
.dr-prod-script summary { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); cursor: pointer; list-style: none; }
.dr-prod-script summary::-webkit-details-marker { display: none; }
.dr-prod-script summary::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dr-prod-script[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.dr-prod-script p { margin: 6px 0 0; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: #1b1e21; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.8); white-space: pre-wrap; }
.dr-eta { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; color: #d1fe17; }
.dr-eta-talk { margin-top: -4px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); }      /* '완성되면 카카오톡으로 알려드릴게요.'(알림톡이 가는 계정만) */
.dr-eta-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.dr-eta-bar b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #a6d40f, #d1fe17); transition: width 1s linear; }
.dr-cut-skel { display: grid; gap: 10px; min-height: 132px; }
.dr-cut-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 100%);
  background-size: 200% 100%; animation: drShimmer 1.4s linear infinite; }
.dr-cut-skel i.s1 { width: 40%; height: 18px; } .dr-cut-skel i.s2 { width: 86%; } .dr-cut-skel i.s3 { width: 64%; }
@keyframes drShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dr-cut-skel i { animation: none; } }
/* 길이 줄과 전체 영상(2026-11-24 대표님 "만들기 누르면 예상 영상 길이 : 1분 36초~1분42초 이런식으로", "자동으로 이어붙히는기능도 만들어줘")
   길이 줄 = 머리 카드의 제목 아래 한 줄(값만 흰 글자, 줄이 바뀌면 값이 통째로 넘어간다).
   전체 영상 = 머리 카드 바로 아래 칸(컷을 이어 붙인 한 편). 세 상태가 같은 틀과 같은 크기다(이름 줄 + 영상 자리 + 단추 줄): 붙이는 중 = 영상 자리에 도는 고리와 글,
   못 붙임 = 영상 자리에 안내 + [다시 이어 붙이기], 다 됨 = 영상 + [내려받기]. 붙이는 중이다가 영상으로 바뀔 때 아래 컷들이 밀리지 않는다.
   PC(1000 이상)의 세로 영상은 영상 왼쪽 + 이름과 단추 오른쪽, 그 밖(휴대폰, 가로 영상)은 위에서 아래로 한 줄씩 */
.dr-prod-len { margin: 6px 0 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; word-break: keep-all; }
.dr-prod-len b { color: #fff; font-weight: 800; white-space: nowrap; }
.dr-film { min-width: 0; padding: 16px; border: 1px solid rgba(209,254,23,.32); border-radius: 18px; background: #131517; }
.dr-film-h { display: flex; align-items: center; gap: 10px; }
.dr-film-h strong { flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.dr-film-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 1px solid rgba(255,255,255,.06); background: #0f1113; text-align: center; }
.dr-film-ph strong { font-size: 15px; line-height: 1.45; font-weight: 700; word-break: keep-all; }
.dr-film-ph small { font-size: 13px; color: rgba(255,255,255,.56); }
.dr-film-ph .dr-bad { margin: 0; font-size: 14.5px; line-height: 1.55; word-break: keep-all; }
.dr-film .dr-acts { min-height: 46px; }
.dr-film .dr-acts .dr-btn { flex: 1 1 auto; }
@media (min-width: 1000px) {
  .dr-film .dr-acts .dr-btn { flex: 0 1 220px; }
  .dr-film:not(.wide) { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 20px; }
  .dr-film:not(.wide) .dr-video { grid-column: 1; grid-row: 1 / span 2; width: 300px; margin-top: 0; }
  .dr-film:not(.wide) .dr-film-h { grid-column: 2; grid-row: 1; }
  .dr-film:not(.wide) .dr-acts { grid-column: 2; grid-row: 2; align-self: start; }
}
/* [완성본 이어붙이기](2026-11-28 오후, '대본 먼저 확인' 계획): 컷 목록 맨 아래 한 줄 가득, 다른 큰 단추와 같은 높이 52 */
.dr-fjoin { margin-top: 0; }
.dr-fjoin .dr-btn { flex: 1 1 auto; min-height: 52px; }
/* 드라마를 보는 동안(만드는 중, 다 만든 것)은 첫 질문 말풍선도 치운다 = 바로 제작 화면 */
#dr[data-state="plan"] .dr-hello { display: none; }

/* 자막 고르기(2026-11-23 대표님 "자막옵션도 선택할수 있게 … 자막예시도 보이게"): 입력 줄의 [자막 ○○ >] 한 줄 → 예시 그림이 있는 창(PC 두 칸, 휴대폰 한 칸씩 세로).
   고른 칸 = 연두 테두리 + 체크. 만든 드라마의 머리 카드에도 같은 줄(.dr-prod-cap) */
.dr-capbtn { grid-column: 1 / -1; order: -1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #1b1e21;
  color: rgba(255,255,255,.62); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.dr-capbtn[hidden] { display: none; }
.dr-capbtn b { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #fff; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.dr-capbtn svg { flex: none; color: rgba(255,255,255,.45); }
.dr-capbtn:hover, .dr-capbtn:focus-visible { border-color: rgba(209,254,23,.6); outline: none; }
.dr-prod-cap { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 12px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: none;
  color: rgba(255,255,255,.6); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dr-prod-cap b { color: #fff; font-weight: 700; }
.dr-prod-cap::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.dr-prod-cap:hover, .dr-prod-cap:focus-visible { border-color: rgba(209,254,23,.6); outline: none; }
.sheet.dr-capsheet { max-width: 780px; text-align: left; }
.console .sheet.dr-capsheet h3 { margin: 0 44px 16px 0; font-size: 19px; white-space: normal; }
.dr-capopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: min(68dvh, 640px); overflow-y: auto; }
.dr-capopt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border: 2px solid rgba(255,255,255,.1); border-radius: 14px; background: #1b1e21; color: #f7f7f8;
  font: inherit; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; }
.dr-capopt img, .dr-capopt-none { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; background: #0f1113; }
.dr-capopt span { padding: 0 4px; }
.dr-capopt:hover, .dr-capopt:focus-visible { border-color: rgba(209,254,23,.5); outline: none; }
.dr-capopt[aria-checked="true"] { border-color: #d1fe17; }
.dr-capopt[aria-checked="true"]::after { content: "\2713"; position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: #d1fe17; color: #131517; font-size: 15px; font-weight: 900; line-height: 1; }
/* 휴대폰 = 예시 그림을 견줘 고르는 칸이라 2 x 2(한 칸씩 세로로 쌓으면 넷을 한눈에 못 견준다) */
@media (max-width: 720px) { .dr-capopts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dr-capopt { font-size: 13.5px; } }
/* PC(1000 이상) = 힉스필드 만들기 화면처럼 왼쪽 대본 칸(400, 맨 위부터 화면 높이 가득) + 오른쪽 위 작품 목록 줄 + 그 아래 결과 */
@media (min-width: 1000px) {
  .dr-chat { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; max-width: 1280px; padding: 14px 24px 40px; }
  .dr-recent { grid-column: 2; grid-row: 1; }
  .dr-log { grid-column: 2; grid-row: 2; }
  .dr-bar { position: sticky; top: 72px; grid-column: 1; grid-row: 1 / span 2; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 10px; height: calc(100dvh - 140px); min-height: 420px; padding: 14px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: #131517; }
  .dr-ta { flex: 1 1 auto; min-height: 0; }
  .dr-ta textarea { height: 100% !important; min-height: 220px; }
  .dr-go { width: 100%; min-width: 0; height: 56px !important; }
  .dr-grip { display: none; }
  .dr-capbtn { order: 0; flex: none; }
  .dr-err { order: 3; }
  .dr-cuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 휴대폰 입력부 = 힉스필드 휴대폰 만들기 화면처럼(2026-11-24 대표님 "모바일에서 영상만들때 넘불편함. 힉스필드처럼 드라마든 그냥 만들기든 모바일 제작 ui 고쳐.
   이런 드라마 힉스페이백으로 만들었어요는 하단에 넣고, 위에는 [+] < 이거 누르면 레퍼런스 넣는거 [모델] [설정버튼] [생성하기]")
   999 이하에서만(PC 는 그대로). 순서 = 내 드라마 줄 → 첫 질문(제목처럼) → 실사/애니메이션 → 입력 상자 → 대본 예시 → 만든 드라마 → 예시 영상 줄.
   입력 상자 = 둥근 카드(r24) 안에 글 칸 + 아랫줄 [+ 44 원][모델 알약][설정 44 원] … [생성하기 연두 알약]. 자막, 품질, 종횡비는 [설정] 창으로.
   예전 모양(입력 줄이 아래에 붙음) = 서버 show drama.m_bar false(main 의 data-mbar 가 빠진다) */
.dr-mb, .dr-go .m { display: none; }
.dr-menu { --cp-go: #d1fe17; position: fixed; z-index: 40; min-width: 184px; }
.dr-menu .cp-opt { min-height: 44px; font-size: 15px; }
@media (max-width: 999px) {
  #dr[data-mbar] { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(40px + var(--sab)) !important; }
  #dr[data-mbar] .dr-log { display: contents; }
  #dr[data-mbar] .dr-recent { order: 0; margin-bottom: 0; }
  #dr[data-mbar] .dr-hello { order: 1; align-self: flex-start; max-width: none; padding: 6px 2px 0; border-radius: 0; background: none; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }
  #dr[data-mbar]:not([data-state="pick"]) .dr-hello { margin-bottom: 12px; }      /* 제목과 입력 상자 사이를 더 띄운다(2026-11-24 밤 대표님 "여기 좀더 여백 띄워놔"). 고르는 목록은 그대로 */
  #dr[data-mbar] .dr-styles { order: 2; align-self: flex-start; }
  #dr[data-mbar] .dr-genres, #dr[data-mbar] .dr-types-note, #dr[data-mbar] .dr-pick { order: 2; }
  #dr[data-mbar] .dr-types-note { margin: -4px 2px 0; }
  #dr[data-mbar] .dr-bar { order: 3; position: relative; left: auto; right: auto; bottom: auto; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px;
    border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: #1b1e21; }
  #dr[data-mbar][data-state="pick"] .dr-bar { display: none; }
  #dr[data-mbar] .dr-ex, #dr[data-mbar] .dr-skel { order: 4; }
  #dr[data-mbar] .dr-ex { max-width: none; }
  #dr[data-mbar] #drFlow { order: 5; }
  #dr[data-mbar] .dr-clips { order: 6; margin-top: 8px; }
  /* 입력 상자 안 */
  #dr[data-mbar] .dr-ta { order: 0; flex: 1 1 100%; }
  #dr[data-mbar] .dr-ta textarea { height: 92px; min-height: 92px; max-height: 46dvh; padding: 10px 10px 24px; border: 0; border-radius: 16px; background: transparent; }
  #dr[data-mbar] .dr-len { right: 10px; bottom: 4px; }
  #dr[data-mbar] .dr-grip, #dr[data-mbar] #drCap, #dr[data-mbar] .dr-photobtn { display: none; }
  #dr[data-mbar] .dr-photo { display: none; order: 1; flex: 1 1 100%; padding: 6px 8px 2px; }
  #dr[data-mbar] .dr-photo.has { display: flex; }
  #dr[data-mbar] .dr-mb:not([hidden]) { order: 2; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.08); color: #fff; font: inherit; cursor: pointer; }
  #dr[data-mbar] .dr-mb:active { background: rgba(255,255,255,.16); }
  #dr[data-mbar] .dr-mb[aria-expanded="true"] { background: rgba(255,255,255,.16); }
  #dr[data-mbar] .dr-mb:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
  #dr[data-mbar] .dr-mmodel:not([hidden]) { flex: 0 1 auto; min-width: 0; width: auto; padding: 0 14px 0 12px; font-size: 14px; font-weight: 600; }
  #dr[data-mbar] .dr-mmodel svg { flex: none; }
  #dr[data-mbar] .dr-mmodel b { min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
  #dr[data-mbar] .dr-mmodel:disabled { cursor: default; opacity: 1; }
  #dr[data-mbar] .dr-go { order: 3; flex: none; min-width: 0; height: 44px; margin-left: auto; padding: 0 17px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
  #dr[data-mbar] .dr-go .pc { display: none; }
  #dr[data-mbar] .dr-go .m { display: inline; }
  #dr[data-mbar] .dr-err { order: 4; flex: 1 1 100%; padding: 2px 8px 4px; }
}
@media (max-width: 359px) {
  #dr[data-mbar] { padding-left: 12px; padding-right: 12px; }
  #dr[data-mbar] .dr-bar { gap: 4px; }
  #dr[data-mbar] .dr-mmodel:not([hidden]) { padding: 0 10px; }
  #dr[data-mbar] .dr-mmodel svg { display: none; }
  #dr[data-mbar] .dr-go { padding: 0 13px; }
}
/* 설정 창: 가입 안내 창과 같은 어두운 창(휴대폰 = 아래에서 올라옴). 고르는 칸 = 회색 통 안 흰 칸(실사/애니메이션 알약과 같은 결) */
.sheet.dr-setsheet { max-width: 460px; text-align: left; }
.console .sheet.dr-setsheet h3 { margin: 0 44px 18px 0; font-size: 19px; white-space: normal; }
.dr-set-g { display: grid; gap: 8px; margin-bottom: 16px; }
.dr-set-g[hidden] { display: none; }
.dr-set-g > span { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); }
.dr-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #1b1e21; }
.dr-seg button { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 6px; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dr-seg button[aria-checked="true"] { background: #fff; color: #111318; }
.dr-seg button:disabled { cursor: default; }
/* 칸 안의 표시([추천], [릴스, 숏츠에 적합], 2026-11-25 대표님): 연두 알약. 고른 칸(흰 바탕)에서는 어두운 알약. 자리가 모자라면 이름 아래 줄로 내려간다 */
.dr-seg-tag { flex: none; padding: 2px 6px; border-radius: 6px; background: rgba(209,254,23,.16); color: #d1fe17; font-size: 11px; line-height: 14px; font-weight: 800; font-style: normal; letter-spacing: -.01em; }
.dr-seg button[aria-checked="true"] .dr-seg-tag { background: #111318; color: #d1fe17; }
.dr-seg button:disabled:not([aria-checked="true"]) { opacity: .35; }
.dr-seg button:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
.dr-set-note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.56); }
.dr-set-note[hidden] { display: none; }
.dr-set-cap { width: 100%; min-height: 52px; }
/* PC 대본 칸의 [설정] 줄(2026-11-24): 자막 줄과 같은 모양. 휴대폰 입력부에서는 아랫줄의 단추들이 그 일을 한다 → 숨김. 설정 창의 모델 칸은 PC 에서만, 자막 줄은 휴대폰에서만(PC 는 대본 칸에 자막 줄이 있다) */
.dr-setrow[hidden] { display: none; }
.dr-seg.many { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }      /* 넷부터는 두 칸씩 */
@media (max-width: 999px) { .dr-setrow, .dr-set-model { display: none; } }
@media (min-width: 1000px) { .dr-set-cap { display: none; } }
/* 자막 위치(2026-11-24 대표님 "중앙/하단/최하단"): 자막 고르기 창 맨 위의 고르는 통(설정 창의 통과 같은 모양). PC 는 통이 너무 넓지 않게 */
.dr-cappos { margin-bottom: 14px; }
.dr-cappos .dr-seg { max-width: 380px; }
@media (max-width: 720px) { .dr-cappos .dr-seg { max-width: none; } }
@media (max-height: 700px) { .dr-capopts { max-height: 52dvh; } }
/* 고르는 목록부터 여는 휴대폰(2026-11-24 대표님 "선택하나 하면 바로 제작화면 … 실사 애니메이션 막장물 이런거 빼고"): 제작 화면에 실사, 애니메이션 알약이 없다(목록에서 골랐다). PC 는 그대로 */
@media (max-width: 999px) {
  #dr[data-mbar][data-pk] .dr-styles { display: none; }
}

/* 슈퍼 소재제작 = 레퍼런스 따라 만들기(2026-11-24 대표님 "[레퍼런스 영상 (메타 라이브러리)] 하나 넣고, 우리 회사 소개 … 추가 수정사항"): 첫 질문 아래 카드
   (이름 16.5/800 + 한 줄 + 값 안내 13.5 + [레퍼런스 넣기]) → 창에서 칸 셋을 위에서 아래로(휴대폰도 PC 도 한 줄에 하나). 넣으면 카드가 연두 테두리 + 넣은 것 알약.
   광고 영상을 보는 동안과 가입 안내일 때는 치우고, 못 만든 주문(data-fail)에서는 넣었던 것을 되돌린 채 다시 보여 준다 */
.dr-ref { justify-self: start; width: min(100%, 620px); padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #131517; }
.dr-ref[hidden] { display: none; }
.dr-ref.on { border-color: rgba(209,254,23,.5); background: rgba(209,254,23,.06); }
.dr-ref-name { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.dr-ref-sub { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.76); word-break: keep-all; }
.dr-ref-price { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.56); word-break: keep-all; }
.dr-ref-sub:empty, .dr-ref-price:empty { display: none; }
.dr-ref-sum { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.dr-ref-sum[hidden] { display: none; }
.dr-ref-sum li { min-width: 0; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: rgba(209,254,23,.14); color: #d1fe17; font-size: 12.5px; font-weight: 700; line-height: 18px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dr[data-state="plan"] .dr-ref, #dr[data-state="join"] .dr-ref { display: none; }
#dr[data-state="plan"][data-fail] .dr-ref:not([hidden]) { display: block; }
.sheet.dr-refsheet { max-width: 560px; text-align: left; }
.console .sheet.dr-refsheet h3 { margin: 0 44px 18px 0; font-size: 19px; white-space: normal; }
.dr-rf { display: grid; gap: 8px; margin-top: 20px; min-width: 0; }
.dr-refsheet h3 + .dr-rf { margin-top: 0; }
.dr-rf-l { font-size: 14.5px; font-weight: 800; color: #fff; }
.dr-rf-h { margin: -2px 0 2px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); word-break: keep-all; }
.dr-rf-h:empty { display: none; }
.dr-rf-in, .dr-rf-ta { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #1b1e21; color: #f7f7f8; font: inherit; font-size: 16px;
  line-height: 1.5; outline: none; }
.dr-rf-in { height: 48px; }
.dr-rf-in[hidden] { display: none; }
.dr-rf-in:disabled { opacity: .45; }
.dr-rf-ta { display: block; height: 96px; padding-bottom: 26px; resize: vertical; }
.dr-rf-ta.big { height: 168px; }
.dr-rf-in::placeholder, .dr-rf-ta::placeholder { color: rgba(255,255,255,.4); font-size: 14px; }
.dr-rf-in:focus, .dr-rf-ta:focus { border-color: rgba(209,254,23,.6); }
.dr-rf-box { position: relative; min-width: 0; }
.dr-rf-len { position: absolute; right: 12px; bottom: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.42); font-variant-numeric: tabular-nums; pointer-events: none; }
.dr-rf-len.over { color: #ff8a65; }
.dr-rf-file { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-rf-file[hidden] { display: none; }
/* 레퍼런스 창의 파일 올리기(2026-11-25 대표님 "영상파일 올리기는 크게해서 + 버튼으로 해줘"): 점선 큰 칸 + 연두 동그란 + → 그 아래 '또는' → 주소 칸 */
.dr-rf-file { flex-wrap: wrap; }
.dr-rf-drop { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 128px; padding: 16px 12px; border: 1.5px dashed rgba(255,255,255,.24);
  border-radius: 16px; background: rgba(255,255,255,.03); color: #fff; font: inherit; cursor: pointer; }
.dr-rf-drop:hover, .dr-rf-drop:focus-visible { border-color: rgba(209,254,23,.6); background: rgba(209,254,23,.05); outline: none; }
.dr-rf-drop:disabled { cursor: default; opacity: .7; }
.dr-rf-plus { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 2px; border-radius: 50%; background: #d1fe17; color: #111318; }
.dr-rf-drop b { font-size: 15px; line-height: 1.4; font-weight: 700; }
.dr-rf-drop small { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.5); }
.dr-rf-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.4); }
.dr-rf-or::before, .dr-rf-or::after { content: ""; flex: 1 1 0; height: 1px; background: rgba(255,255,255,.1); }
.dr-rf-or[hidden] { display: none; }
.dr-rf-file .dr-btn { flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; }
.dr-rf-file .dr-btn:disabled { opacity: .6; cursor: default; }
.dr-rf-fname { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.82); text-overflow: ellipsis; white-space: nowrap; }
.dr-rf-fname[hidden], .dr-rf-fx[hidden] { display: none; }
.dr-rf-fx { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: rgba(255,255,255,.56); cursor: pointer; }
.dr-rf-fx:hover { background: rgba(255,255,255,.06); color: #fff; }
.dr-rf-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.dr-rf-bar[hidden] { display: none; }
.dr-rf-bar b { display: block; width: 0; height: 100%; border-radius: 3px; background: #d1fe17; transition: width .2s linear; }
.dr-refsheet .dr-err { margin-top: 14px; }
.dr-rf-acts { display: grid; margin-top: 20px; }
.dr-rf-acts .dr-btn { min-height: 52px; }
.dr-rf-acts .dr-btn:disabled { opacity: .45; cursor: default; }
.dr-rf-in:focus-visible, .dr-rf-ta:focus-visible, .dr-rf-fx:focus-visible, .dr-refsheet .dr-btn:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
/* 수정 요청 카드(결과 아래): 제목 17/800 + 한 줄 + 글 칸 + [대본 고치기] + 남은 횟수 */
.dr-rev { min-width: 0; padding: 18px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #131517; }
.dr-rev strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.dr-rev > p { margin: 4px 0 12px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.7); word-break: keep-all; }
.dr-rev > p.dr-err { margin: 10px 0 0; color: #ff8a65; }
.dr-rev small { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.56); }
.dr-rev .dr-btn:disabled { opacity: .45; cursor: default; }
.dr-prod-price { font-size: 13.5px; color: rgba(255,255,255,.56); }
/* 휴대폰 입력부(위 묶음)에서 슈퍼 소재제작 카드의 자리 = 입력 상자 바로 아래(입력 상자가 맨 위라는 순서를 지킨다). 넣는 길은 아랫줄 [+] 에도 있다 */
@media (max-width: 999px) {
  #dr[data-mbar] .dr-ref { order: 4; width: 100%; }
}

/* ============ 광고소재 두 칸(2026-11-24 새벽 대표님 "광고소재 탭은 메타광고 라이브러리 링크 아니면 영상 파일 업로드 이거만 넣게하고 좀더 깔끔하게 … 중간에 + 버튼으로 하고
   우측에 우리 상품 url이랑, 소개 소구점 등등"): main 에 data-form 이 있을 때만(레퍼런스 따라 만들기가 켜진 광고소재 화면, 끄기 = 서버 show cf.form false).
   PC = [레퍼런스 영상 카드] (+) [우리 상품 카드] 한 줄 + 그 아래 [자막][설정] … [만들기] 한 줄. 휴대폰 = 카드, +, 카드, 아랫줄을 위에서 아래로.
   가운데에 있던 예시 영상 줄, 첫 질문, 유형 알약, 슈퍼 소재제작 카드와 왼쪽 글 칸은 치운다(휴대폰의 예시 영상 줄은 17차대로 맨 아래 그대로).
   카드 = 면 #131517, 선 흰 8%, r20, 안쪽 20. 제목 18/800 → 한 줄 14 흰 60% → 칸(높이 48, r12, 면 #1b1e21, 글 16). 넣은 레퍼런스가 있으면 왼쪽 카드 선이 연두 */
.cf-card { min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: #131517; }
.cf-card.on { border-color: rgba(209,254,23,.5); }
.cf-h { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.cf-sub { margin: 4px 0 16px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); word-break: keep-all; }
.cf-sub:empty { margin: 0 0 16px; }
.cf-l { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.72); }
.cf-sub + .cf-l { margin-top: 0; }
.cf-in, .cf-ta { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #1b1e21; color: #f7f7f8; font: inherit; font-size: 16px;
  line-height: 1.5; outline: none; }
.cf-in { height: 48px; }
.cf-in:disabled { opacity: .45; }
.cf-ta { height: 96px; resize: vertical; }
.cf-ta.sm { height: 72px; }
.cf-in::placeholder, .cf-ta::placeholder { color: rgba(255,255,255,.4); font-size: 14px; }
.cf-in:focus, .cf-ta:focus { border-color: rgba(209,254,23,.6); }
.cf-in:focus-visible, .cf-ta:focus-visible, .cf-drop:focus-visible, .cf-plus:focus-visible, .cf-photobtn:focus-visible, .cf-x:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
.cf-ref { display: flex; flex-direction: column; }
.cf-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.4); }
.cf-or::before, .cf-or::after { content: ""; flex: 1 1 0; height: 1px; background: rgba(255,255,255,.1); }
.cf-drop { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 132px; padding: 16px; border: 1.5px dashed rgba(255,255,255,.22);
  border-radius: 16px; background: transparent; color: rgba(255,255,255,.82); font: inherit; cursor: pointer; }
.cf-drop b { font-size: 15px; font-weight: 700; }
.cf-drop small { font-size: 12.5px; color: rgba(255,255,255,.5); }
.cf-drop small:empty { display: none; }
.cf-drop:hover, .cf-drop.over { border-color: #d1fe17; color: #fff; }
.cf-drop:disabled { cursor: default; opacity: .7; }
.cf-file { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 10px; padding: 0 4px 0 12px; border-radius: 12px; background: rgba(209,254,23,.1); color: #d1fe17; }
.cf-file span { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cf-file svg { flex: none; }
.cf-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer; }
.cf-ref .dr-rf-bar { margin-top: 10px; }
.cf-ref .dr-err { margin: 10px 0 0; }
.cf-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.5); word-break: keep-all; }
.cf-note:empty { display: none; }
.cf-plus { justify-self: center; align-self: center; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  background: #1b1e21; color: #d1fe17; cursor: pointer; }
.cf-plus:hover { background: rgba(209,254,23,.12); border-color: rgba(209,254,23,.5); }
.cf-photo { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0; }
.cf-photobtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: transparent; color: rgba(255,255,255,.82);
  font: inherit; font-size: 14px; cursor: pointer; }
.cf-photobtn b { font-weight: 700; }
.cf-photobtn:hover { border-color: rgba(255,255,255,.34); color: #fff; }
/* 치우는 것 */
#dr[data-form] .dr-hello, #dr[data-form] .dr-genres, #dr[data-form] .dr-types-note, #dr[data-form] .dr-ref, #dr[data-form] .dr-pick, #dr[data-form] .dr-ta, #dr[data-form] #drPhotoBox,
#dr[data-form] #drPlus { display: none !important; }
/* 광고 영상을 보는 동안(만드는 중, 다 만든 것)은 넣는 칸을 치우고 결과만. 못 만든 주문(data-retry)은 넣었던 것을 되돌린 칸을 안내 글 아래에 다시 보여 준다 */
#dr[data-form][data-state="plan"]:not([data-retry]) .cf-card, #dr[data-form][data-state="plan"]:not([data-retry]) .cf-plus, #dr[data-form][data-state="plan"]:not([data-retry]) .dr-bar { display: none !important; }
@media (min-width: 1000px) {
  #dr[data-form] { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-rows: auto; column-gap: 20px; row-gap: 16px; max-width: 1120px; }
  #dr[data-form] .dr-recent { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
  #dr[data-form] .cf-ref { grid-column: 1; grid-row: 2; align-self: stretch; }
  #dr[data-form] .cf-plus { grid-column: 2; grid-row: 2; }
  #dr[data-form] .cf-prod { grid-column: 3; grid-row: 2; align-self: stretch; }
  #dr[data-form] .dr-bar { grid-column: 1 / -1; grid-row: 3; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; height: auto; min-height: 0; padding: 12px; }
  #dr[data-form] .dr-bar .dr-capbtn { flex: 0 1 300px; min-width: 0; }
  #dr[data-form] .dr-go { flex: 0 0 240px; width: auto; margin-left: auto; height: 52px !important; }
  #dr[data-form] .dr-err { flex: 1 1 100%; order: 5; }
  #dr[data-form] .dr-log { grid-column: 1 / -1; grid-row: 4; }
  #dr[data-form] .dr-clips { display: none; }
  #dr[data-form][data-state="plan"][data-retry] .dr-log { grid-row: 2; }
  #dr[data-form][data-state="plan"][data-retry] .cf-card, #dr[data-form][data-state="plan"][data-retry] .cf-plus { grid-row: 3; }
  #dr[data-form][data-state="plan"][data-retry] .dr-bar { grid-row: 4; }
}
@media (max-width: 999px) {
  #dr[data-form][data-mbar] .cf-ref { order: 1; }
  #dr[data-form][data-mbar] .cf-plus { order: 2; width: 44px; height: 44px; }
  #dr[data-form][data-mbar] .cf-prod { order: 3; }
  #dr[data-form][data-mbar] .dr-bar { order: 4; }
  #dr[data-form][data-mbar][data-state="plan"][data-retry] #drFlow { order: 0; }
  #dr[data-form] .cf-card { padding: 16px; }
  #dr[data-form] .cf-drop { min-height: 112px; }
  #dr[data-form]:not([data-mbar]) .cf-card, #dr[data-form]:not([data-mbar]) .cf-plus { margin: 0 auto 12px; }
}
/* 광고소재 두 칸 화면의 휴대폰 손질(2026-11-24 대표님 "광고소재 모바일 페이지도 지금처럼 최적화 잘 해놔. 레퍼런스 링크 + 제품 url 이렇게만 넣어도 되게"):
   레퍼런스 링크 칸과 상품 주소 칸 바로 아래에 [생성하기]가 한 화면(412x915, 360x780) 안에 오게. '또는' 줄을 빼고 파일 올리기를 낮은 칸으로, 소개, 소구점, 추가 수정사항, 상품 사진은 [자세히 적기 (선택)]으로 접는다.
   PC 는 그대로(단추 없음, 상자는 display:contents 라 카드 안 배치가 예전과 같다) */
.cf-more { display: none; }
.cf-morebox { display: contents; }
@media (max-width: 999px) {
  #dr[data-form][data-mbar] .cf-card { padding: 14px 14px 16px; }
  #dr[data-form][data-mbar] .cf-h { font-size: 17px; }
  #dr[data-form][data-mbar] .cf-sub { margin-bottom: 12px; font-size: 13.5px; }
  #dr[data-form][data-mbar] .cf-or { display: none; }
  #dr[data-form][data-mbar] .cf-drop { flex: none; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; min-height: 0; margin-top: 10px; padding: 10px 12px; border-radius: 12px; }
  #dr[data-form][data-mbar] .cf-drop svg { width: 20px; height: 20px; }
  #dr[data-form][data-mbar] .cf-drop small { flex: 1 1 100%; text-align: center; }
  #dr[data-form][data-mbar] .cf-note { margin-top: 10px; }
  #dr[data-form][data-mbar] .cf-plus { margin: -2px auto; }
  #dr[data-form][data-mbar] .cf-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 2px; border: 0; background: none;
    color: rgba(255,255,255,.72); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
  #dr[data-form][data-mbar] .cf-more svg { flex: none; transition: transform .18s ease; }
  #dr[data-form][data-mbar] .cf-more .on, #dr[data-form][data-mbar] .cf-prod.open .cf-more .off { display: none; }
  #dr[data-form][data-mbar] .cf-prod.open .cf-more .on { display: inline; }
  #dr[data-form][data-mbar] .cf-prod.open .cf-more svg { transform: rotate(180deg); }
  #dr[data-form][data-mbar] .cf-more:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; border-radius: 10px; }
  #dr[data-form][data-mbar] .cf-prod:not(.open) .cf-morebox { display: none; }
  #dr[data-form][data-mbar] .cf-prod.open .cf-morebox { display: block; }
  #dr[data-form][data-mbar] .cf-morebox > .cf-l:first-child { margin-top: 4px; }
}

/* 광고소재 상품 주소 바로 확인(2026-11-24 낮 대표님 "이렇게 넣었는데 왜 못읽는다고나와 이렇게넣어도 되게해줘야지"): 주소 칸 아래 한 줄.
   읽힘 = 연두(상품 이름), 못 읽음 = 주황 안내(오류 빨강이 아니다) + 소개 칸에 '필수' 표시, 적은 것 없이 [만들기]를 누르면 한 번 흔들린다 */
.cf-urlnote { margin: 8px 0 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.55); word-break: keep-all; overflow-wrap: anywhere; }
.cf-urlnote.ok { color: #d1fe17; }
.cf-urlnote.no { color: #ffb86b; }
.cf-urlnote.fine { color: rgba(255,255,255,.6); }
.cf-urlnote.press { animation: cfNudge .34s ease; }
@keyframes cfNudge { 20% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }
.cf-prod.need label[for="cfIntro"]::after { content: attr(data-need); display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(255,184,107,.16); color: #ffb86b;
  font-size: 11.5px; font-weight: 800; vertical-align: 1px; }
.cf-prod.need #cfIntro { border-color: rgba(255,184,107,.6); }
.cf-paste { font-size: 12.5px; color: rgba(255,255,255,.5); word-break: keep-all; }
.cf-paste:empty { display: none; }
@media (max-width: 999px) { .cf-paste { display: none; } }          /* 휴대폰은 붙여넣기 단축키가 없다(사진 올리기 단추로) */
@media (prefers-reduced-motion: reduce) { .cf-urlnote.press { animation: none; } }

/* PC 우리 상품 카드: 소개, 소구점은 기본으로 접어 둔다(2026-11-24 낮 대표님 "우리상품에 소개 소구점 < 이거는 기본으로 접게 해줘"). 휴대폰과 같은 [자세히 적기 (선택)] 단추로 펼친다.
   추가 수정사항과 상품 사진은 PC 에서 그대로 보인다(휴대폰은 예전대로 넷 다 접힌다). 적어 둔 것이 있거나 주소를 못 읽으면 펼쳐진 채(drama.js formMoreAuto, formLink) */
@media (min-width: 1000px) {
  #dr[data-form] .cf-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 2px; border: 0; background: none;
    color: rgba(255,255,255,.72); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
  #dr[data-form] .cf-more:hover { color: #fff; }
  #dr[data-form] .cf-more svg { flex: none; transition: transform .18s ease; }
  #dr[data-form] .cf-more .on, #dr[data-form] .cf-prod.open .cf-more .off { display: none; }
  #dr[data-form] .cf-prod.open .cf-more .on { display: inline; }
  #dr[data-form] .cf-prod.open .cf-more svg { transform: rotate(180deg); }
  #dr[data-form] .cf-more:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; border-radius: 10px; }
  #dr[data-form] .cf-prod:not(.open) label[for="cfIntro"], #dr[data-form] .cf-prod:not(.open) #cfIntro,
  #dr[data-form] .cf-prod:not(.open) label[for="cfPoints"], #dr[data-form] .cf-prod:not(.open) #cfPoints { display: none; }
  #dr[data-form] .cf-prod.open .cf-more + .cf-morebox > .cf-l:first-child { margin-top: 4px; }
}
/* 레퍼런스 링크 칸 안내 글(대표님 글 "메타광고 라이브러리 or 인스타그램 영상 링크를 넣어주세요")이 휴대폰 칸 안에 다 보이게: 안내 글만 작게(칸의 글자 크기 16 은 그대로 = 아이폰 확대 없음) */
#cfRefUrl:placeholder-shown { text-overflow: ellipsis; }
@media (max-width: 999px) {
  #dr[data-form] #cfRefUrl::placeholder { font-size: clamp(10.5px, 3.05vw, 13px); letter-spacing: -.04em; }
}
/* 휴대폰 인증 창(2026-11-24 대표님 "무료체험인데 휴대폰인증 해야지 … 회원가입 -> 프롬프트 입력 -> 휴대폰번호 인증"): 가입 안내 창(.dr-join)과 같은 어두운 창에 칸을 넣은 것.
   안내 두 줄(14.5px 흐린 흰색) → 번호 칸(52px, 16px 글자 = 휴대폰에서 확대되지 않게) → 인증번호 칸(오른쪽 안에 남은 시간, 옆에 [다시 받기]) → 오류 한 줄 → 연두 단추(폭 가득 52px).
   휴대폰 = 아래에서 올라온 창, 자판이 뜨면 그만큼 올린다(drama.js phLift) */
.dr-phone-sub { margin: 10px 8px 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.68); white-space: pre-line; word-break: keep-all; }
.dr-phone-f { display: block; margin-top: 16px; text-align: left; }
.dr-phone-f > label, .dr-phone-l label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); }
.dr-phone-l { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.dr-phone-l button { min-height: 44px; margin: -19px -8px -6px 0; padding: 0 8px; border: 0; background: none; color: #d1fe17; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dr-phone-l button:focus-visible { outline: 2px solid #d1fe17; outline-offset: -2px; border-radius: 8px; }
.dr-phone-f input { display: block; width: 100%; height: 52px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #1b1e21; color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; outline: none; box-shadow: none; }
.dr-phone-f input::placeholder { color: rgba(255,255,255,.32); font-weight: 500; }
.dr-phone-f input:focus { border-color: #d1fe17; }
.dr-phone-f input[readonly] { color: rgba(255,255,255,.6); }
.dr-phone-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dr-phone-code .box { position: relative; }
.dr-phone-code .box input { padding-right: 62px; }
.dr-phone-code .box span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: #d1fe17; font-variant-numeric: tabular-nums; pointer-events: none; }
.dr-phone-code > button { min-height: 52px; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: transparent; color: #f7f7f8;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dr-phone-code > button:disabled { opacity: .45; cursor: default; }
.dr-phone-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); text-align: left; }
.dr-phone-err { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #ff8a65; text-align: left; word-break: keep-all; }
.dr-phone .dr-btn.fill { display: flex; width: 100%; min-height: 52px; margin-top: 6px; }
.dr-phone .dr-btn:disabled { opacity: .55; cursor: default; }
.dr-phone .dr-btn:focus-visible, .dr-phone-code > button:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }

/* 광고소재 대본 칸, 캐릭터 사진, 가운데 + (2026-11-24 오후 대표님 "자세히넣기에 대본 넣기", "캐릭터 사진 올리기 이것도 추가해줘", "가운데 + 버튼 누르면 이미지 삽입되는데, 이거 사진삽입은 빼도 될듯").
   + 는 두 재료를 합친다는 표시만(누르는 기능 없음). 대본 칸은 PC 에서도 소개, 소구점과 같이 [자세히 적기 (선택)] 안에 접힌다 */
.cf-plus { pointer-events: none; cursor: default; }
#cfChar { margin-top: 10px; }
@media (min-width: 1000px) {
  #dr[data-form] .cf-prod:not(.open) label[for="cfScript"], #dr[data-form] .cf-prod:not(.open) #cfScript { display: none; }
}
/* 수정 요청 칸의 [대본] 칸과 [바꾸고 싶은 점] 칸 이름(2026-11-24 저녁): 대본 칸에는 지금 대본이 채워져 있다 */
.dr-rev-l { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.72); }
.dr-rev-h { display: block; margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.5); word-break: keep-all; }
.dr-rev-h:empty { display: none; }

/* 드라마의 [레퍼런스] 줄(2026-11-24 오후): 자막, 설정 줄과 같은 모양. 넣어 두면 글이 연두. 휴대폰은 [+] 메뉴로 넣는다 */
.dr-refrow[hidden] { display: none; }
.dr-refrow.on b { color: #d1fe17; }
@media (max-width: 999px) { .dr-refrow { display: none; } }

/* ============ 크레딧 표시, 사진 칸마다 다시 만들기와 내 사진 올리기, 인물 사진 미리 넣기(2026-11-24 직원 피드백 "원하는 인물 사진을 직접 올리거나, 자동 생성된 인물 중
   마음에 들지 않는 인물만 다시 만들 수 있으면 … 크레딧 소모 용량을 알려주면" + 대표님 "돈을 표시하는게 아니라, 크레딧을 표시해줘")
   크레딧 = 단추 글 뒤에 조금 작고 옅게('이 컷 만들기 크레딧 $2.07'), 끄기 = 서버 show drama.btn_credit */
.dr-cr { margin-left: 8px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .64; }
.cp-opt .dr-cr { margin-left: 4px; }
.dr-btn.with-cr { flex-wrap: wrap; max-width: 100%; padding-top: 5px; padding-bottom: 5px; }      /* 좁은 화면에서 글이 길면 크레딧이 아랫줄로 내려간다(단추가 카드 밖으로 나가지 않게) */
.dr-more p.dr-more-cr { margin-top: 2px; font-weight: 700; color: #f7f7f8; }
.dr-more p.dr-bad { margin-top: 8px; font-weight: 700; color: #ff6b57; }      /* 크레딧이 모자랄 때만 뜨는 빨간 한 줄 */
/* 사진 카드: 넘치는 칸은 옆으로 넘기지 않고 아랫줄로(휴대폰은 네 칸씩). 받는 곳의 칸은 누를 수 있다: 오른쪽 아래 연필 표시, 빈 칸은 가운데 + */
.dr-photos .dr-ph-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 96px); overflow: visible; }
@media (max-width: 560px) { .dr-photos .dr-ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dr-ph.can .dr-ph-img { position: relative; cursor: pointer; }
.dr-ph.can .dr-ph-img:hover, .dr-ph.can .dr-ph-img[aria-expanded="true"] { outline: 2px solid rgba(209,254,23,.6); outline-offset: -2px; }
.dr-ph.can .dr-ph-img:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
.dr-ph-edit { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
  background: rgba(20,21,23,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
.dr-ph.can.s-none .dr-ph-img::before, .dr-ph.can.s-failed .dr-ph-img::before { content: ""; width: 22px; height: 22px; opacity: .38;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 사진 크게 보기(2026-12-01 대표님 "인물사진에서 누르면 사진 확대해서 볼수있게"): 사진 = 크게 보기, 연필 단추(누르는 자리 44) = 다시 만들기와 사진 올리기 */
.dr-ph.zoom .dr-ph-img { position: relative; cursor: zoom-in; }
.dr-ph.zoom .dr-ph-img:hover { outline: 2px solid rgba(209,254,23,.6); outline-offset: -2px; }
.dr-ph.zoom .dr-ph-img:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
button.dr-ph-edit { padding: 0; border: 0; pointer-events: auto; cursor: pointer; }
button.dr-ph-edit::after { content: ""; position: absolute; inset: -13px -5px -5px -13px; }
@media (max-width: 380px) { button.dr-ph-edit::after { inset: -9px -5px -5px -9px; } }      /* 칸이 좁은 휴대폰: 연필이 사진을 다 덮지 않게(누르는 자리 40) */
button.dr-ph-edit:hover { background-color: rgba(20,21,23,.92); }
button.dr-ph-edit:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
html.dr-pz-on { overflow: hidden; }
.dr-pz { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; padding: 60px 16px calc(18px + var(--sab, env(safe-area-inset-bottom, 0px)));
  background: rgba(0,0,0,.94); -webkit-tap-highlight-color: transparent; }
.dr-pz[hidden] { display: none; }
.dr-pz-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.dr-pz-stage img { display: block; max-width: 100%; max-height: 100%; border-radius: 14px; background: #1f2226; -webkit-user-drag: none; user-select: none; }
.dr-pz-cap { flex: none; min-height: 46px; margin-top: 14px; text-align: center; }
.dr-pz-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; color: #fff; word-break: keep-all; }
.dr-pz-count { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.dr-pz-x, .dr-pz-nav { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(32,34,38,.82) center / 20px 20px no-repeat; cursor: pointer; }
.dr-pz-x { top: 8px; right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.dr-pz-nav { top: 50%; margin-top: -42px; transition: opacity .3s; }
.dr-pz-nav[hidden] { display: none; }
.dr-pz-nav.prev { left: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.dr-pz-nav.next { right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.dr-pz.idle .dr-pz-nav:not(:focus-visible) { opacity: 0; }      /* 2초 뒤 투명하게(그래도 눌린다) */
.dr-pz-x:focus-visible, .dr-pz-nav:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
@media (min-width: 900px) { .dr-pz { padding: 64px 88px 22px; } .dr-pz-nav.prev { left: 22px; } .dr-pz-nav.next { right: 22px; } .dr-pz-x { top: 14px; right: 18px; } }
.dr-ph.s-refused .dr-ph-img { outline: 2px solid rgba(255,107,107,.85); outline-offset: -2px; }      /* 영상에 넣을 수 없었던 손님 사진 */
.dr-ph.s-refused .dr-ph-img img { opacity: .45; }
.dr-ph-note.warn { color: #ffb86b; }
.dr-cut-note { margin: 10px 0 0; font-size: 13.5px; }
.dr-phmenu { min-width: 204px; }
/* 인물 사진 미리 넣기: 대본 칸의 [인물 사진] 줄(자막, 설정 줄과 같은 모양) → 창(설정 창과 같은 어두운 창). 창 안은 사진, 이름 칸, 빼기 단추를 한 줄씩 위에서 아래로 */
.sheet.dr-castsheet { max-width: 460px; text-align: left; }
.console .sheet.dr-castsheet h3 { margin: 0 44px 6px 0; font-size: 19px; white-space: normal; }
.dr-cast-sub { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.68); word-break: keep-all; }
.dr-cast-sub[hidden], .dr-cast-hint[hidden], .dr-cast-add[hidden] { display: none; }
.dr-cast-list { display: grid; gap: 10px; }
.dr-cast-list:empty { display: none; }
.dr-cast-it { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.dr-cast-it img { display: block; width: 56px; height: 74px; border-radius: 10px; object-fit: cover; background: #1f2226; }
.dr-cast-name { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #1b1e21; color: #f7f7f8; font: inherit; font-size: 16px;
  font-weight: 600; outline: none; box-shadow: none; }
.dr-cast-name::placeholder { color: rgba(255,255,255,.4); font-weight: 500; }
.dr-cast-name:focus { border-color: rgba(209,254,23,.6); }
.dr-cast-x { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: rgba(255,255,255,.56); cursor: pointer; }
.dr-cast-x::before, .dr-cast-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.dr-cast-x::after { transform: rotate(-45deg); }
.dr-cast-x:hover { background: rgba(255,255,255,.06); color: #fff; }
.dr-cast-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 10px; padding: 0 14px; border: 1.5px dashed rgba(255,255,255,.22);
  border-radius: 14px; background: transparent; color: rgba(255,255,255,.86); font: inherit; font-size: 15px; cursor: pointer; }
.dr-cast-list:empty + .dr-cast-add { margin-top: 0; }
.dr-cast-add b { font-weight: 700; }
.dr-cast-add small { font-size: 12.5px; color: rgba(255,255,255,.5); }
.dr-cast-add:hover { border-color: #d1fe17; color: #fff; }
.dr-cast-hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.5); word-break: keep-all; }
.dr-castsheet .dr-err { margin-top: 12px; }
.dr-cast-name:focus-visible, .dr-cast-x:focus-visible, .dr-cast-add:focus-visible, .dr-castsheet .dr-btn:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
/* 휴대폰 입력부: [인물 사진] 줄은 넣은 사진이 있을 때만 입력 상자 안에 한 줄로(넣는 길은 아랫줄 [+] 창) */
@media (max-width: 999px) {
  #dr[data-mbar] .dr-castrow { display: none; }
  #dr[data-mbar] .dr-castrow.has:not([hidden]) { display: flex; order: 1; flex: 1 1 100%; min-height: 44px; margin: 2px 0 0; border-color: transparent; background: rgba(255,255,255,.06); }
}
/* ---------------------------------------------------------------- 끝까지 한 번에(2026-11-24 밤): 계획 화면의 상태 띠, [만들기] 단추의 예상 크레딧, 컷별 수정 요청 */
/* 상태 띠: 머리 카드 아래(전체 영상 칸이 있으면 그 아래). 만드는 중 = 돌아가는 고리 + 한 줄 + [멈추기], 멈춤 = 까닭 한 줄 + [이어서 만들기](크레딧이 모자라면 [충전하고 이어 만들기]도) */
.dr-auto { min-width: 0; padding: 14px 16px; border: 1px solid rgba(209,254,23,.32); border-radius: 18px; background: rgba(209,254,23,.06); }
.dr-auto.s-paused { border-color: rgba(255,184,107,.5); background: rgba(255,184,107,.07); }
.dr-auto.need { box-shadow: 0 0 0 3px rgba(209,254,23,.35); }
.dr-auto-row { display: flex; align-items: center; gap: 12px; }
.dr-auto-row .dr-ring { width: 22px; height: 22px; border-width: 3px; }
.dr-auto-row p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: #f7f7f8; }
.dr-auto .dr-acts { margin-top: 10px; }
.dr-auto .dr-acts .dr-btn { min-height: 44px; }
/* [만들기] 단추의 예상 크레딧: 글 아래 작은 한 줄. 값이 없으면(with-cr 없음) 줄이 없다. PC 글(.pc)과 휴대폰 글(.m)은 단추의 글과 같은 규칙으로 하나만 보인다 */
.dr-go .dr-go-cr { font-size: 11.5px; font-weight: 700; line-height: 1.25; opacity: .72; font-variant-numeric: tabular-nums; }
.dr-go:not(.with-cr) .dr-go-cr { display: none !important; }
.dr-go.with-cr { flex-direction: column; gap: 3px; }
/* 크레딧 그림(2026-11-25 대표님 "숫자 옆에 크레딧 아이콘"): 글의 {icon} 자리에 들어간다. 글자 크기를 따라가고 글자 색으로 그린다 */
.dr-cr-ic { flex: none; display: inline-flex; width: 1.2em; height: 1.2em; vertical-align: -.2em; }
.dr-cr-ic > * { display: block; width: 100%; height: 100%; object-fit: contain; }
.dr-go.with-cr .dr-go-cr.pc { max-width: 11em; text-align: center; }
/* PC(1000 이상, 2026-11-28 대표님 "만들기 옆에 43 크레딧 < 이렇게"): 예상 크레딧은 '만들기' 글과 같은 줄 오른쪽(사이 8px, 조금 가늘고 옅게).
   단추 안을 세 칸(빈 칸 | 글 | 크레딧)으로 나눠 크레딧이 나타나고 사라져도(글을 고치는 동안 지웠다 다시 그린다) '만들기' 글은 가운데 그대로, 단추의 높이와 폭도 그대로 */
@media (min-width: 1000px) {
  .dr-go, .dr-go.with-cr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0; }
  .dr-go > span.pc { grid-column: 2; }
  .dr-go.with-cr .dr-go-cr.pc { grid-column: 3; justify-self: start; max-width: none; margin-left: 8px; font-size: 14px; font-weight: 600; line-height: 1.2; opacity: .62; text-align: left; white-space: nowrap; }
}
@media (max-width: 999px) {
  /* 휴대폰 [생성하기] 아래 그림 + 숫자 하나: 숫자가 '생성하기' 글보다 좁아 단추 폭은 그대로(옆 여백을 줄이지 않는다) */
  #dr[data-mbar] .dr-go.with-cr { gap: 0; }
  /* 줄이 좁으면 단추가 아랫줄로 밀리지 않고 모델 이름이 줄어든다(…): 예상 크레딧이 붙은 동안만 */
  #dr[data-mbar] .dr-bar:has(.dr-go.with-cr) .dr-mmodel:not([hidden]) { flex: 1 1 0; max-width: max-content; }
  #dr[data-mbar] .dr-go.with-cr .dr-go-cr.m { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; line-height: 1.15; white-space: nowrap; }
  #dr[data-mbar] .dr-go.with-cr > span.m { line-height: 1.2; }
}
/* 컷별 수정 요청: 카드 아래 [수정 요청] → 그 카드 안에 적는 칸과 단추 */
/* 수정 요청 기록과 수정하기 전 영상(2026-11-30): 컷 카드 맨 아래. 줄이 길면 아래로 넘긴다(옆으로 밀리지 않는다) */
.dr-hist { display: grid; gap: 8px; margin-top: 10px; min-width: 0; }
.dr-hist .dr-hist-open { justify-self: start; min-height: 44px; padding: 0 14px; font-size: 14px; color: rgba(255,255,255,.82); }
.dr-hist-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dr-hist-item { padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); }
.dr-hist-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: 13px; color: rgba(255,255,255,.56); }
.dr-hist-h b { font-weight: 600; color: rgba(255,255,255,.82); }
.dr-hist-item.s-failed .dr-hist-h b { color: #ff8a80; }
.dr-hist-ask { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.9); white-space: pre-wrap; overflow-wrap: anywhere; }
.dr-olds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: 13px; }
.dr-olds-l { margin-right: 2px; color: rgba(255,255,255,.56); }
.dr-olds-a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.86); text-decoration: none; }
.dr-olds-a:hover, .dr-olds-a:focus-visible { border-color: rgba(255,255,255,.4); outline: 0; }
.dr-film > .dr-olds { margin-top: 10px; }
.dr-fix { margin-top: 12px; }
.dr-fix .dr-fix-open { min-height: 44px; padding: 0 14px; font-size: 14px; color: rgba(255,255,255,.82); }
.dr-fix-form { display: grid; gap: 10px; }
.dr-fix-form[hidden], .dr-fix .dr-fix-open[hidden] { display: none; }
.dr-fix-form textarea { display: block; width: 100%; min-height: 88px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #1b1e21; color: #f7f7f8; font: inherit;
  font-size: 16px; line-height: 1.5; resize: vertical; }
.dr-fix-form textarea::placeholder { color: rgba(255,255,255,.42); }
.dr-fix-form textarea:focus { outline: 0; border-color: #d1fe17; }
.dr-fix-form .dr-ph-note { margin: 0; }
.dr-fix-acts { display: flex; gap: 8px; flex-wrap: wrap; }      /* 컷의 단추 줄(.dr-acts)과 이름을 달리한다: 그 줄만 세는 곳에 섞이지 않게 */
.dr-fix-form .dr-btn:disabled { opacity: .45; cursor: default; }
.dr-cut.revising > .dr-acts, .dr-cut.revising > .dr-fix { display: none; }      /* 고치는 동안에는 그 컷의 단추를 숨긴다(예전 글로 만들지 않게) */
.dr-cut.revising > .dr-work { margin-top: 14px; }
/* 맡겨 둔 동안 아직 차례가 안 온 컷: [이 컷 만들기] 대신 '차례가 되면 만들어요' 한 줄 */
.dr-cut.auto-wait > .dr-acts { display: none; }
/* 설정 칸의 표시([추천], [릴스, 숏츠에 적합]) = 칸 안의 알약이 아니라 칸 위에 뜬 말풍선(2026-11-25 낮 대표님 "추천을 이렇게 박스에 넣는게 아니라, 씨댄스 2.5 위에다가 말풍선같은걸로 넣어줘").
   연두 판 + 아래 꼬리. 칸 이름의 오른쪽 위에 걸친다(칸 묶음 왼쪽 위의 이름표 글과 겹치지 않게 가운데보다 조금 오른쪽). 고른 칸이든 아니든 같은 색.
   두 줄로 쌓이는 묶음(.many)과 서버 show drama.set_tag_bubble 을 끈 곳(.tag-in)은 예전처럼 칸 안의 알약 */
.dr-seg:not(.many):not(.tag-in) button { position: relative; }
.dr-seg:not(.many):not(.tag-in) .dr-seg-tag, .dr-seg:not(.many):not(.tag-in) button[aria-checked="true"] .dr-seg-tag { position: absolute; left: 62%; bottom: calc(100% - 2px); z-index: 1; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 8px; background: #d1fe17; color: #131517; font-size: 11px; line-height: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.4); pointer-events: none; }
.dr-seg:not(.many):not(.tag-in) .dr-seg-tag::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 0 0 2px 0; background: inherit; transform: rotate(45deg); }
/* 62차(2026-11-26): 수정 요청에 붙이는 사진, 사진 다시 만들기 창.
   적는 칸 아래 [사진 첨부](높이 44) 또는 붙인 사진 한 줄(작은 그림 44, 이름, 빼기 단추 44). 컷 카드의 칸과 [이 영상 수정하기] 창의 칸이 같은 모양 */
.dr-fix-att { display: flex; align-items: center; min-width: 0; min-height: 44px; }
.dr-fix-att .dr-fix-add { gap: 6px; min-height: 44px; padding: 0 14px; font-size: 14px; color: rgba(255,255,255,.82); }
.dr-fix-att .dr-fix-add svg { flex: none; }
.dr-fix-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 3px 0 3px 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #1b1e21; }
.dr-fix-chip img { flex: none; display: block; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #fff; }
.dr-fix-chip b { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dr-fix-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.7); font: inherit; font-size: 20px; cursor: pointer; }
.dr-fix-x:hover, .dr-fix-x:focus-visible { background: rgba(255,255,255,.08); color: #fff; outline: none; }
.dr-fix-add:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
.x-body .dr-edit-hint { margin: 0 0 10px; }
/* 사진 다시 만들기 창(여러 화면이 같이 쓰는 어두운 창의 틀): 적는 칸, 그 아래 예시 한 줄과 글자 수, 값이 붙은 단추. 휴대폰과 태블릿 폭(999 이하)에서는 아래에서 올라온다 */
.dr-redo .x-body { padding-top: 8px; }
.dr-redo .x-ta { display: block; min-height: 104px; }
.dr-redo-meta { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.5; }
.dr-redo-hint { flex: 1 1 auto; min-width: 0; word-break: keep-all; }
.dr-redo-len { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-redo .x-foot .x-btn { min-width: 180px; margin-left: auto; }
.dr-redo .x-foot .x-btn .dr-cr { margin-left: 2px; color: inherit; }
@media (max-width: 999px) {
  .x-bg.dr-up { align-items: flex-end; padding: 0; }
  .x-bg.dr-up .x-sheet { max-width: none; max-height: calc(100dvh - 24px); padding: 12px 16px calc(16px + var(--sab, 0px)); border-bottom: 0; border-radius: 24px 24px 0 0; }
  .x-bg.dr-up .x-grip { display: block; flex: none; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: rgba(255,255,255,.2); }
  .x-bg.dr-up .x-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .dr-redo .x-foot .x-btn { min-width: 0; margin-left: 0; }
}
/* 63차(2026-11-26 밤): [이 영상 수정하기] 창 맨 위의 '전체 영상에서 고칠 점' 칸과 확인 화면. 칸과 단추는 높이 44 이상, 휴대폰과 태블릿 폭(999 이하)은 한 줄에 하나씩 세로로(단추는 가득 차게, 주 단추가 위) */
.dr-fx { display: grid; gap: 8px; padding: 2px 0 4px; }
.dr-fx-l { font-size: 15px; font-weight: 700; line-height: 1.45; color: #f7f7f8; word-break: keep-all; }
.dr-fx .x-ta { display: block; min-height: 96px; }
.dr-fx-len { justify-self: end; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-fx .x-err { margin: 0; }
.dr-fx-go { justify-self: end; min-width: 180px; }
.dr-fx-or { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; }
.dr-fx .dr-fx-sub { margin: -2px 0 0; line-height: 1.5; }
.dr-fx-ask { margin: 0; color: #f7f7f8; font-size: 14.5px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.x-foot .dr-fx-ok { min-width: 160px; }
@media (max-width: 999px) {
  .dr-fx-go { justify-self: stretch; min-width: 0; }
  .x-bg.dr-up .x-foot .dr-fx-ok { order: 2; min-width: 0; }
  .x-bg.dr-up .x-foot .dr-fx-no { order: 3; }
}
/* 예상 완성 시각의 둘째 줄('2차 완성은 23:50에 완성돼요.', 2026-11-28 밤): 첫 줄 아래에 같은 크기로, 한 줄씩 */
.dr-eta .dr-eta-all { display: block; margin-top: 2px; }

/* 크레딧이 모자라 못 만드는 컷의 한 줄과 '크레딧이 부족하신가요?' 칸(2026-11-29): 칸 = 분홍 테와 옅은 분홍 바탕(요금제 화면의 스텝업 패스 띠와 같은 결), 단추는 연두 */
.dr-cut .dr-cut-short { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: #ff6b57; }
.dr-boost { min-width: 0; padding: 18px 16px; border: 1px solid rgba(255,90,180,.55); border-radius: 18px; background: linear-gradient(180deg, rgba(255,46,151,.14), rgba(255,46,151,.05)); }
.dr-boost strong { display: block; font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.dr-boost p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.86); }
.dr-boost .dr-boost-cd { margin-top: 8px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ff9fd2; }
.dr-boost .dr-acts .dr-btn { min-height: 48px; }
