* { margin: 0; padding: 0; box-sizing: border-box; }
/* 자막 폰트 — 템플릿 미리보기에 실제 글꼴 반영(family 명은 subtitles.py/템플릿 render.font 와 일치) */
@font-face { font-family: "NanumSquare Bold"; src: url("/fonts/NanumSquareB.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NanumSquareRound Bold"; src: url("/fonts/NanumSquareRoundB.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NanumMyeongjo"; src: url("/fonts/NanumMyeongjoBold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Black Han Sans"; src: url("/fonts/BlackHanSans-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Do Hyeon"; src: url("/fonts/DoHyeon-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Jua"; src: url("/fonts/Jua-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Gothic A1 Black"; src: url("/fonts/GothicA1-Black.ttf"); font-weight: 900; font-display: swap; }
:root {
  --bg: #FAFAF7; --bg2: #FFFFFF; --bg3: #F0EFEA;
  --line: #E6E4DC; --text: #16182D; --dim: #6E7180;
  --accent: #5B5BD6; --accent2: #4747C2; --grad: linear-gradient(135deg, #5B5BD6, #A05BD6);
  --ok: #1F8A5D; --warn: #B07C22; --err: #C6493A;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: none; border-radius: 10px; }
input, select { font-family: inherit; }
.hidden { display: none !important; }
a { cursor: pointer; }

/* ---------- 셸: 좌측 사이드바 + 본문 ---------- */
#shell { display: flex; min-height: 100vh; }
#topbar { display: none; }
#nav-scrim { display: none; }
#sidenav {
  width: 224px; flex: none; display: flex; flex-direction: column;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 22px 14px; position: sticky; top: 0; height: 100vh;
}
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.8px; cursor: pointer; white-space: nowrap; }
.side-brand { padding: 0 10px 18px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#sidenav nav { display: flex; flex-direction: column; gap: 3px; }
.nav-grp { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim); opacity: .7; padding: 14px 14px 5px; }
.nav-grp:first-child { padding-top: 4px; }
#sidenav nav a {
  padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  color: var(--dim); transition: all .12s;
}
#sidenav nav a:hover { background: var(--bg3); color: var(--text); }
#sidenav nav a.on { background: var(--grad); color: #fff; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.credit-badge {
  background: var(--bg3); border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: var(--dim); line-height: 1.5;
}
.credit-badge b { color: var(--accent2); font-weight: 800; }
#app { flex: 1; min-width: 0; }

/* 모바일: 상단바 + 햄버거 → 오프캔버스 서랍 */
@media (max-width: 820px) {
  #shell { flex-direction: column; }
  #topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 10px 14px;
  }
  #topbar .brand { font-size: 20px; }
  #hamburger { background: none; padding: 6px; color: var(--text); display: flex; }
  #hamburger svg { width: 24px; height: 24px; }
  #topbar #credit-badge-m { margin-left: auto; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
  #topbar .cb-name { display: none; }

  #sidenav {
    position: fixed; top: 0; left: 0; height: 100dvh; width: 268px; max-width: 82vw;
    z-index: 60; transform: translateX(-100%); transition: transform .24s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.16); padding: 20px 16px;
  }
  #shell.nav-open #sidenav { transform: translateX(0); }
  #nav-scrim {
    position: fixed; inset: 0; z-index: 50; background: rgba(10,12,24,.42);
    opacity: 0; pointer-events: none; transition: opacity .24s;
  }
  #shell.nav-open #nav-scrim { display: block; opacity: 1; pointer-events: auto; }
  #sidenav nav a { padding: 12px 14px; font-size: 15px; }
}
@media (min-width: 901px) { #topbar, #nav-scrim, #botnav { display: none !important; } }

/* 모바일 하단 고정 네비 — 어디서든 만들기/콘텐츠/내채널 한 번에 이동 */
#botnav { display: none; }
@media (max-width: 820px) {
  #botnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  #botnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 11px; font-weight: 700; color: var(--dim); }
  #botnav a svg { width: 23px; height: 23px; }
  #botnav a.on { color: var(--accent2); }
  main { padding-bottom: 86px; }
}

/* ---------- 공통 ---------- */
/* 메뉴 화면 본문은 화면을 채우는 유동 폭(전 페이지 동일 비율) — 초대형 모니터만 1720 상한.
   랜딩·로그인(사이드메뉴 없는 화면)은 .centered 로 가운데 정렬 유지 */
main { padding: 34px 48px 90px; max-width: 1720px; margin: 0; width: 100%; }
main.centered { margin: 0 auto; max-width: 1060px; padding: 34px 40px 90px; }
@media (max-width: 760px) { main { padding: 22px 16px 80px; } }
h1 { font-size: 27px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 8px;
     padding-left: 14px; border-left: 5px solid; border-image: var(--grad) 1; }
h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 14px; }
.sub { color: var(--dim); font-size: 14px; margin-bottom: 24px; line-height: 1.65; }
.primary {
  background: var(--grad); color: #fff; padding: 13px 24px; font-size: 15px; font-weight: 700;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(91,91,214,.28); transition: opacity .15s;
}
.primary:hover { opacity: .92; }
.primary:disabled { opacity: .5; cursor: default; }
.ghost {
  background: var(--bg2); color: var(--dim); border: 1px solid var(--line);
  padding: 8px 14px; font-size: 13px; border-radius: 10px;
}
.ghost:hover { color: var(--text); border-color: var(--dim); }
.danger { color: var(--err); border-color: rgba(198,73,58,.35); }
.card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 3px rgba(22,24,45,.05);
}
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, input[type=file] {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.14); background: #fff; }
/* 비밀번호 마스킹 — type=password 대신 시각적으로만 가려서, 안드로이드가 화면 캡처를 막지 않게 함 */
input.pw { -webkit-text-security: disc; text-security: disc; }
label { display: block; font-size: 13px; color: var(--dim); margin: 15px 0 6px; font-weight: 600; }

/* ---------- 로그인 ---------- */
.auth-wrap { max-width: 430px; margin: 8vh auto 0; padding: 0 16px; }
.auth-logo { text-align: center; font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.auth-logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-tag { text-align: center; color: var(--dim); font-size: 14.5px; margin-bottom: 32px; line-height: 1.6; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--dim); }
.auth-switch a { color: var(--accent2); font-weight: 700; }
.auth-wrap .primary { width: 100%; margin-top: 22px; }

/* ---------- 만들기 ---------- */
.new-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
@media (max-width: 900px) { .new-grid { grid-template-columns: 1fr; } }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bg3); font-size: 14px; }
.opt-row:last-child { border-bottom: none; }
.opt-row select { width: 140px; padding: 8px 10px; font-size: 13px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; transition: .15s; }
.slider:before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.tpl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pt-overlay { position: absolute; inset: 0; pointer-events: none; }
.pt-title { position: absolute; left: 8%; right: 8%; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.3; border-radius: 4px; padding: 2px 6px; }
.pt-sub { position: absolute; left: 4%; right: 4%; text-align: center; font-size: 12px; font-weight: 800; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.pt-chan { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-size: 9px; opacity: .9; text-shadow: 0 0 3px #000; }
.plan-tplbar { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.plan-tplbar > span { font-size: 13px; font-weight: 700; color: var(--dim); flex: none; }
.plan-tplbar .tpl-row { margin-top: 0; }
.tpl-chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--dim); font-size: 13px; cursor: pointer; transition: all .12s;
}
.tpl-chip.on { border-color: transparent; color: #fff; background: var(--grad); font-weight: 700; }
.upload-zone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 24px; text-align: center;
  color: var(--dim); font-size: 14px; cursor: pointer; margin-top: 14px; background: var(--bg2); transition: border-color .15s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); color: var(--text); }
.row2 { display: flex; gap: 10px; }
.row2 > div { flex: 1; }

/* ---------- 프로젝트 목록 ---------- */
.proj-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.proj-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 17px 20px; cursor: pointer; transition: all .15s;
}
.proj-item:hover { border-color: var(--accent); box-shadow: 0 3px 10px rgba(22,24,45,.07); }
.proj-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg3); }
.empty-thumb { display: block; }
.proj-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.proj-meta { color: var(--dim); font-size: 12.5px; }
.status { font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.st-done { background: rgba(31,138,93,.12); color: var(--ok); }
.st-error { background: rgba(198,73,58,.12); color: var(--err); }
.st-work { background: rgba(176,124,34,.12); color: var(--warn); }
.st-queued { background: var(--bg3); color: var(--dim); }

/* ---------- 프로젝트 상세 ---------- */
.back-link { color: var(--dim); font-size: 13px; cursor: pointer; margin-bottom: 14px; display: inline-block; }
.back-link:hover { color: var(--accent2); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.clip-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(22,24,45,.06); }
.clip-thumb { position: relative; aspect-ratio: 9/16; background: #101223; cursor: pointer; }
.clip-thumb img, .clip-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,.9); background: rgba(0,0,0,.08);
}
/* 진행 상태 오버레이 — 밝은 썸네일 위에서도 또렷하게 (사장님 제보: 편집중/대기중 안 보임) */
.clip-thumb .clip-state {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 9, 18, .45); backdrop-filter: blur(2px);
}
.clip-thumb .clip-state b {
  background: rgba(15, 16, 30, .92); color: #fff; font-size: 13.5px; font-weight: 800;
  padding: 8px 16px; border-radius: 999px; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.clip-score {
  position: absolute; top: 8px; right: 8px; background: rgba(16,18,35,.8); color: #FFD166;
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.clip-hot {
  position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff6b4a, #d6395b);
  color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em;
}
.clip-body { padding: 13px 15px; }
.clip-title { font-size: 13.5px; font-weight: 700; line-height: 1.45; min-height: 38px; }
.clip-meta { color: var(--dim); font-size: 12px; margin: 6px 0 10px; }
.clip-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.clip-actions .ghost { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

/* ---------- 모달 ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(16,18,35,.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { background: var(--bg2); border-radius: 18px; padding: 26px; width: 100%; max-width: 530px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(16,18,35,.3); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.player-modal { max-width: 400px; padding: 12px; background: #101223; }
.player-modal video { width: 100%; border-radius: 10px; display: block; }

/* ---------- 진행 표시 ---------- */
.progress-strip { display: flex; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.pstep { flex: 1; min-width: 92px; text-align: center; font-size: 12px; color: var(--dim); padding: 10px 4px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.pstep.on { color: #fff; border-color: transparent; background: var(--grad); animation: pulse 1.4s infinite; font-weight: 700; }
.pstep.done { color: var(--ok); border-color: rgba(31,138,93,.4); }
@keyframes pulse { 50% { opacity: .6; } }

/* ---------- 관리자/테이블 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px; }
th { text-align: left; color: var(--dim); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--bg3); }
td input { width: 70px; padding: 6px 8px; font-size: 13px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #16182D; color: #FAFAF7; padding: 13px 24px; border-radius: 12px;
  font-size: 14px; z-index: 99; box-shadow: 0 8px 30px rgba(22,24,45,.35);
}
.toast.err { background: var(--err); color: #fff; }

.empty { text-align: center; color: var(--dim); padding: 60px 0; font-size: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--dim); border-top-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ==================== 랜딩(마케팅 홈) ==================== */
.lp { max-width: 100%; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 18px 22px; }
.lp-logo { font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.lp-logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-nav-r { display: flex; gap: 14px; align-items: center; }
.lp-nav-r a { color: var(--dim); font-size: 14px; font-weight: 600; }
.lp-nav-r a:hover { color: var(--text); }
.lp-navcta { padding: 9px 18px; font-size: 14px; }

.lp-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 56px 22px 40px; }
.lp-badge { display: inline-block; background: var(--bg3); color: var(--accent2); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.lp-h1 { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 18px; border: none; padding: 0; }
.lp-h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: 17px; color: var(--dim); line-height: 1.6; max-width: 620px; margin: 0 auto 30px; }
.lp-urlbar { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 6px 24px rgba(91,91,214,.12); }
.lp-urlbar input { border: none; background: transparent; box-shadow: none; font-size: 15px; }
.lp-urlbar input:focus { box-shadow: none; background: transparent; }
.lp-urlbar .primary { white-space: nowrap; padding: 12px 22px; }
.lp-hero-note { font-size: 13px; color: var(--dim); margin-top: 14px; }
@media (max-width: 620px) { .lp-h1 { font-size: 33px; } .lp-urlbar { flex-direction: column; } }

.lp-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin: 10px auto 20px; padding: 0 22px; }
.lp-strip > div { flex: 1; min-width: 150px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.lp-strip b { display: block; font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-strip span { font-size: 13px; color: var(--dim); }

.lp-sec { max-width: 1040px; margin: 0 auto; padding: 56px 22px; }
.lp-h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; text-align: center; margin-bottom: 34px; }
.lp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .lp-feat { grid-template-columns: 1fr; } }
.lp-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(22,24,45,.05); }
.lp-chead { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.lp-ico { width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91,91,214,.12), rgba(160,91,214,.12));
  color: var(--accent); }
.lp-ico svg { width: 24px; height: 24px; }
.lp-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 0; line-height: 1.25; }
.lp-card p { font-size: 14px; color: var(--dim); line-height: 1.6; }

.lp-how { background: var(--bg2); border-radius: 24px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-steps > div { text-align: center; }
.lp-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.lp-steps h3 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
.lp-steps p { font-size: 14px; color: var(--dim); line-height: 1.55; }

.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
@media (max-width: 780px) { .lp-plans { grid-template-columns: 1fr; } }
.lp-plan { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; text-align: center; }
.lp-plan.lp-hot { border-color: var(--accent); box-shadow: 0 8px 30px rgba(91,91,214,.18); transform: translateY(-6px); }
@media (max-width: 780px) { .lp-plan.lp-hot { transform: none; } }
.lp-pbadge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.lp-pname { font-size: 15px; font-weight: 700; color: var(--dim); }
.lp-pprice { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 4px; }
.lp-pprice small { font-size: 15px; color: var(--dim); font-weight: 600; }
.lp-plan ul { list-style: none; margin: 16px 0 20px; }
.lp-plan li { font-size: 14px; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--bg3); }
.lp-plan li:last-child { border: none; }
.lp-plan button { width: 100%; }
.lp-pnote { text-align: center; font-size: 13px; color: var(--dim); margin-top: 18px; }

.lp-faq { max-width: 720px; margin: 0 auto; }
.lp-q { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.lp-q summary { cursor: pointer; font-size: 15px; font-weight: 700; padding: 14px 0; list-style: none; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: "+"; float: right; color: var(--dim); font-weight: 400; }
.lp-q[open] summary::after { content: "−"; }
.lp-q p { font-size: 14px; color: var(--dim); line-height: 1.6; padding: 0 0 16px; }

.lp-cta { text-align: center; background: var(--grad); color: #fff; max-width: 1040px; margin: 20px auto; border-radius: 24px; padding: 56px 22px; }
.lp-cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.lp-cta p { font-size: 15px; opacity: .9; margin-bottom: 24px; }
.lp-bigcta { background: #fff; color: var(--accent2); font-size: 16px; padding: 15px 32px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.lp-bigcta:hover { opacity: .92; }
.lp-foot { text-align: center; color: var(--dim); font-size: 13px; padding: 30px 22px 50px; }
.lp-foot a { color: var(--accent2); }

/* ---------- 콘텐츠 목록 (CMS 표 형태) ---------- */
.proj-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.proj-toolbar input[type=search] { max-width: 260px; padding: 10px 14px; }
.proj-toolbar select { width: auto; padding: 10px 12px; }
.proj-count { font-size: 13px; color: var(--dim); margin-left: auto; }
.proj-thead, .proj-trow { display: grid; grid-template-columns: 76px minmax(0,1fr) 64px 90px 92px 128px; gap: 12px; align-items: center; }
.proj-thead { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; padding: 4px 14px 8px; }
.proj-trow { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; transition: border-color .12s, transform .12s; }
.proj-trow:hover { border-color: var(--accent); transform: translateY(-1px); }
.proj-trow .proj-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; background: #101223; }
.pj-cell { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pj-date { color: var(--dim); font-size: 12.5px; }
.proj-pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pj-pg { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--dim); }
.pj-pg.on { background: var(--grad); color: #fff; border-color: transparent; }
.proj-count { white-space: nowrap; }
@media (max-width: 820px) {
  .proj-toolbar { flex-wrap: wrap; }
  .proj-thead { display: none; }
  .proj-trow { grid-template-columns: 76px minmax(0,1fr); }
  .proj-trow .pj-cell, .proj-trow .pj-date { display: none; }
  /* 상태 배지는 제목과 겹치지 않게 본문 아래 흐름에 배치 */
  .proj-trow > span:nth-child(5) { grid-column: 2; justify-self: start; margin-top: 2px; }
}

/* ---------- 템플릿 설정 (3패널 스튜디오) ---------- */
.tstudio { display: grid; grid-template-columns: 210px minmax(300px, 360px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .tstudio { grid-template-columns: 1fr; } }
.ts-left { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; max-height: 78vh; overflow-y: auto; }
.ts-lseg { display: flex; gap: 6px; margin-bottom: 12px; }
.seg-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--dim); cursor: pointer; background: var(--bg); }
.seg.on { background: var(--grad); color: #fff; border-color: transparent; }
.ts-left .tp-card { width: 100%; margin-bottom: 10px; }
.ts-mine { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ts-mname { font-size: 13.5px; font-weight: 700; min-width: 0; }
.ts-mname small { display: block; font-weight: 500; color: var(--dim); font-size: 11px; margin-top: 2px; }
.ts-macts { display: flex; gap: 5px; flex: none; }
.ts-macts .ghost { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }
.ts-center { background: linear-gradient(170deg, #14172b, #1b1f38 60%, #14172b); border: 1px solid #262b4a; border-radius: 16px; padding: 20px 18px; position: sticky; top: 18px; }
.ts-prevwrap { display: flex; justify-content: center; }
.ts-btnrow { display: flex; gap: 8px; }
.ts-btnrow .primary { flex: 1; }
.ts-btnrow .ghost { background: rgba(255,255,255,.08); color: #cfd5f2; border-color: rgba(255,255,255,.18); }
.ts-right { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ts-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ts-tab { padding: 8px 13px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--dim); cursor: pointer; }
.ts-tab:hover { background: var(--bg3); color: var(--text); }
.ts-tab.on { background: var(--grad); color: #fff; }
.ts-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bg3); }
.ts-row:last-child { border-bottom: none; }
.ts-lab { flex: none; width: 92px; font-size: 13px; font-weight: 600; color: var(--dim); }
.ts-row select, .ts-row input[type=text] { flex: 1; padding: 9px 12px; font-size: 13.5px; }
.ts-row input[type=range] { flex: 1; }
.ts-group { border: 1px solid var(--bg3); border-radius: 12px; padding: 4px 14px; margin: 12px 0; }
.ts-gtitle { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent2); padding: 10px 0 2px; }
.ts-note { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin-top: 10px; }
.tpl-editor { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tpl-editor { grid-template-columns: 1fr; } }
.te-sec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--bg3); }
.te-sec::before { content: ""; width: 5px; height: 14px; border-radius: 3px; background: var(--grad); }
.te-sec:first-of-type { border-top: none; padding-top: 6px; }
.te-sec > span { margin-left: auto; }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.25); }
.swatch.none { background: repeating-linear-gradient(45deg, #eee 0 6px, #fff 6px 12px); position: relative; }
.swatch.none::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; background: #C6493A; transform: rotate(-45deg); }
.te-right { position: sticky; top: 18px; }
.te-prevcard { background: linear-gradient(170deg, #14172b, #1b1f38 60%, #14172b); border-color: #262b4a; }
.te-prevcard h2 { margin-bottom: 12px; color: #e8eaf6; }
.te-preview { display: flex; flex-direction: column; align-items: center; }
.te-phone {
  position: relative; width: 262px; aspect-ratio: 9/16; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(124,92,255,.16), transparent 55%),
    radial-gradient(120% 90% at 85% 100%, rgba(255,46,126,.10), transparent 55%),
    linear-gradient(170deg, #f7f5fd, #ece7fa 55%, #f2eefb);
  border: 6px solid #16121f; box-shadow: 0 18px 44px rgba(30,20,70,.25), inset 0 0 0 1px rgba(0,0,0,.05);
}
.te-phone::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 20% 20%; pointer-events: none; opacity: 0; transition: opacity .15s; }
.te-phone:hover::after { opacity: 1; }
.te-phone [data-drag] { cursor: grab; touch-action: none; user-select: none; }
.te-phone [data-drag]:active { cursor: grabbing; }
.te-phone [data-drag] { outline: 1.5px dashed rgba(124,92,255,.45); outline-offset: 4px; border-radius: 6px; }
.te-phone [data-drag]:hover { outline: 1.5px dashed rgba(124,92,255,.9); }
.te-ptitle { position: absolute; left: 12px; right: 12px; text-align: center; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; }
.te-psub { position: absolute; left: 8px; right: 8px; text-align: center; font-weight: 800; text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000; line-height: 1.35; }
.te-pchan { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-size: 11px; opacity: .92; text-shadow: 0 0 4px #000; }
.te-pvideo { position: absolute; left: 50%; transform: translateX(-50%); aspect-ratio: 16/9; border-radius: 8px;
  background: linear-gradient(135deg, #0d1120, #1a2136); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.te-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; padding-left: 3px; }
.te-hint { margin-top: 12px; font-size: 12px; color: #8b8798; letter-spacing: .02em; text-align: center; }
.te-savebar { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.te-savebar input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #eef1ff; }
.te-savebar input::placeholder { color: #8b93b8; }
.te-savebar input:focus { background: rgba(255,255,255,.1); border-color: var(--accent); }
.te-savebar .primary { width: 100%; }
.tpl-chip.tpl-new { border-style: dashed; color: var(--accent2); }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tp-card { background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; text-align: center; transition: border-color .12s, transform .12s; }
.tp-card:hover { transform: translateY(-2px); border-color: var(--dim); }
.tp-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.18); }
.tp-mini { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; aspect-ratio: 9/12; border-radius: 10px; background: linear-gradient(160deg, #2c3e50, #4b6584 55%, #24303f); padding: 12px 6px 10px; margin-bottom: 8px; }
.tp-mini-title { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 5px; line-height: 1.3; }
.tp-mini-sub { font-size: 12px; font-weight: 800; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.tp-name { display: block; font-size: 13.5px; font-weight: 700; }
.tp-base { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* 빈 상태 / 3단계 플로우 / 계정 현황 / 피드백 팁 */
.estate { text-align: center; padding: 26px 12px 18px; color: var(--dim); }
.estate svg { width: 44px; height: 44px; stroke: var(--accent); opacity: .85; margin-bottom: 10px; }
.estate b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.estate p { font-size: 13px; line-height: 1.7; margin: 0; }
.flow3 { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--bg3); border-radius: 12px; padding: 14px 12px; margin-bottom: 16px; }
.flow3 > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text); text-align: center; }
.flow3 svg { width: 26px; height: 26px; stroke: var(--accent); }
.flow3 em { color: var(--dim); font-style: normal; font-weight: 700; }
.acct-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acct-stat { background: var(--bg2); padding: 14px 10px; text-align: center; }
.acct-stat b { display: block; font-size: 20px; letter-spacing: -.4px; color: var(--accent2); }
.acct-stat span { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.fb-tip { border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; padding: 11px 14px; font-size: 13px; line-height: 1.65; color: var(--text); margin-bottom: 10px; }
.fb-tip b { display: block; font-size: 12px; color: var(--accent2); margin-bottom: 3px; }

/* 폼 카드들을 화면 폭에 맞게 채우는 공용 그리드 */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }

/* 유튜브 채널 원클릭 연결 버튼 (구글 정식 스타일 — 흰 바탕 + G 로고) */
.yt-connect {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 16px; font-size: 15px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.yt-connect:hover { border-color: var(--dim); background: #fafafa; }
.yt-connect:disabled { opacity: .6; cursor: default; }
.g-logo {
  width: 20px; height: 20px; flex: none; display: inline-block;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>') no-repeat center / contain;
}

/* 로그인/가입 팝업 모달 */
.auth-modal { max-width: 420px; position: relative; padding: 30px 32px 26px; border-radius: 20px; }
.auth-modal h2 { font-family: inherit; font-size: 22px; letter-spacing: -.3px; margin: 0 0 4px; }
.auth-modal label { margin: 14px 0 6px; }
.auth-modal input { padding: 13px 15px; border-radius: 11px; }
/* 구글 버튼 컨테이너 — 개인화 버튼으로 교체될 때 레이아웃이 출렁이지 않게 높이 예약 */
#g-btn { min-height: 44px; }
.auth-x { position: absolute; top: 18px; right: 20px; background: transparent; border: none; color: var(--dim); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.auth-x:hover { color: var(--text); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--dim); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-modal .auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--dim); }
.auth-modal .auth-switch a { color: var(--accent2); font-weight: 700; cursor: pointer; }

/* 미리보기 확인 모달 */
.pv-card { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0 14px; }
.pv-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.pv-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.pv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.pv-meta > div { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--bg3); }
.pv-meta span { color: var(--dim); }
.pv-meta b { font-weight: 700; }
.pv-low { color: var(--err); }
.pv-warn { background: rgba(198,73,58,.08); color: var(--err); font-size: 13px; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
/* 콘텐츠 목록 그룹 헤더 */
.proj-group { font-size: 13px; font-weight: 700; color: var(--dim); margin: 18px 2px 8px; }
.proj-group:first-child { margin-top: 4px; }

/* AI 안내 배너 (프로젝트 상세) */
.ai-banner { background: linear-gradient(135deg, rgba(91,91,214,.08), rgba(160,91,214,.08)); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 13.5px; color: var(--text); line-height: 1.55; margin: 18px 0 4px; }
.ai-banner b { color: var(--accent2); }

/* ==================== 리뷰 스튜디오 (결과 상세) ==================== */
.studio { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; margin-top: 20px; }
@media (max-width: 780px) { .studio { grid-template-columns: 1fr; gap: 20px; } }

.st-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-player { position: relative; width: 100%; max-width: 320px; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #0c0e18; box-shadow: 0 12px 40px rgba(16,18,35,.22); }
.st-player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0c0e18; }
.st-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: rgba(16,18,35,.55); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; }
.st-player:hover .st-arrow { opacity: 1; }
.st-prev { left: 10px; } .st-next { right: 10px; }
.st-counter { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.st-info { padding-top: 4px; }
.st-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.st-score { text-transform: none; letter-spacing: 0; background: linear-gradient(135deg, rgba(91,91,214,.14), rgba(160,91,214,.14)); color: var(--accent2); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hot-badge { text-transform: none; letter-spacing: 0; background: linear-gradient(135deg, #ff6b4a, #d6395b); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-title { font-size: 23px; font-weight: 800; letter-spacing: -.5px; line-height: 1.3; margin: 0 0 20px; text-wrap: balance; }
.st-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 18px; }
.st-meta > div { background: var(--bg2); padding: 13px 16px; }
.st-meta dt { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.st-meta dd { font-size: 15px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.st-reason { background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 16px; font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.st-reason span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent2); margin-bottom: 5px; }
.st-metadata { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; }
.st-md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.st-md-head span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent2); }
.st-md-copy { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.st-md-desc { font-size: 13.5px; line-height: 1.65; margin: 0 0 8px; white-space: pre-wrap; }
.st-md-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-md-tags span { background: var(--bg3); border-radius: 7px; padding: 3px 9px; font-size: 12.5px; color: var(--accent2); font-weight: 600; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-actions button { padding: 11px 20px; font-size: 14px; }

.st-strip { display: flex; gap: 10px; overflow-x: auto; padding: 20px 2px 4px; margin-top: 6px; scrollbar-width: thin; }
.st-thumb { position: relative; flex: none; width: 68px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #0c0e18; cursor: pointer; padding: 0; transition: border-color .12s, transform .12s; }
.st-thumb:hover { transform: translateY(-2px); }
.st-thumb.on { border-color: var(--accent); }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.st-thumb.on img { opacity: 1; }
.st-thumb-n { position: absolute; top: 4px; left: 5px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }

/* 랜딩 푸터 법인정보 */
.lp-foot-links { margin-bottom: 14px; }
.lp-foot-links a { color: var(--accent2); }
.lp-biz { font-size: 12px; color: var(--dim); line-height: 1.7; }
.lp-copy { font-size: 12px; color: var(--dim); margin-top: 12px; }
/* 약관/방침 문서 페이지 */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 90px; line-height: 1.8; }
.doc h1 { font-size: 26px; margin-bottom: 8px; }
.doc .updated { color: var(--dim); font-size: 13px; margin-bottom: 30px; }
.doc h2 { font-size: 17px; margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: 14.5px; color: var(--text); }
.doc ul { padding-left: 20px; } .doc li { margin: 7px 0; }
.doc .biz-tbl { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.doc .biz-tbl th { text-align: left; color: var(--dim); font-weight: 600; padding: 8px 12px 8px 0; width: 130px; vertical-align: top; }
.doc .biz-tbl td { padding: 8px 0; }

/* ==================== 추천 프로그램 ==================== */
.ref-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(91,91,214,.10), rgba(160,91,214,.10));
  border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin-top: 4px; }
.ref-k { font-size: 12.5px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ref-code { font-size: 34px; font-weight: 800; letter-spacing: .12em; margin: 6px 0 14px;
  font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ref-hero-r { display: flex; gap: 26px; }
.ref-stat { text-align: center; }
.ref-stat b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ref-stat span { font-size: 12.5px; color: var(--dim); }
.ref-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ref-calc-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.ref-calc-cell span { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.ref-calc-cell b { font-size: 20px; font-weight: 800; color: var(--accent2); }
@media (max-width: 560px) { .ref-hero-r { width: 100%; justify-content: space-around; } }

/* ==================== 비디오 도구 (브라우저 처리) ==================== */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 6px; }
.tool-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s; text-align: left; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,24,45,.08); border-color: var(--accent); }
.tool-chead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tool-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91,91,214,.14), rgba(160,91,214,.14)); color: var(--accent2); }
.tool-ico svg { width: 22px; height: 22px; }
.tool-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 0; line-height: 1.25; }
.tool-card p { font-size: 13px; color: var(--dim); line-height: 1.55; }
.priv-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(31,138,93,.10);
  border: 1px solid rgba(31,138,93,.3); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.priv-note svg { width: 17px; height: 17px; flex: none; }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(91,91,214,.04); }
.drop .drop-ico { width: 44px; height: 44px; color: var(--dim); margin: 0 auto 12px; }
.drop b { font-size: 15px; } .drop span { display: block; font-size: 13px; color: var(--dim); margin-top: 6px; }
.tool-prog { height: 8px; border-radius: 999px; background: var(--bg3); overflow: hidden; margin: 16px 0 8px; }
.tool-prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seg { flex: 1; min-width: 72px; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 13px; font-weight: 600; color: var(--dim); cursor: pointer; }
.seg.on { border-color: var(--accent); background: var(--grad); color: #fff; }

/* 비디오 도구 시각 편집기 */
.tl-stage { position: relative; background: #000; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.tl-stage video { max-width: 100%; max-height: 54vh; display: block; }
.tl-cropbox { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(10,12,24,.55); border-radius: 2px; pointer-events: none; }
.tl-trim { position: relative; height: 40px; margin-top: 8px; }
.tl-track { position: absolute; top: 17px; left: 8px; right: 8px; height: 6px; background: var(--bg3); border-radius: 3px; }
.tl-sel { position: absolute; top: 0; bottom: 0; background: var(--grad); border-radius: 3px; }
.tl-range { position: absolute; top: 10px; left: 0; width: 100%; height: 20px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tl-range::-webkit-slider-runnable-track { background: none; border: none; }
.tl-range::-moz-range-track { background: none; border: none; }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 5px rgba(0,0,0,.35); cursor: grab; }
.tl-range::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 5px rgba(0,0,0,.35); cursor: grab; }
.tl-times { display: flex; justify-content: space-between; align-items: center; margin-top: 2px;
  font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tl-times .tl-len { color: var(--accent2); font-weight: 800; }

/* ==================== 미리보기: 제안 구간 선택 ==================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 6px; }
.plan-card { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(22,24,45,.05); transition: opacity .15s, border-color .15s; }
.plan-card.off { opacity: .5; border-style: dashed; }
.plan-check { position: absolute; top: 10px; left: 10px; z-index: 3; cursor: pointer; }
.plan-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-check span { display: block; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.9);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); position: relative; }
.plan-check input:checked + span { background: var(--grad); border-color: transparent; }
.plan-check input:checked + span::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan-thumb { position: relative; aspect-ratio: 16/10; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan-noimg { color: var(--dim); font-size: 13px; }
.plan-body { padding: 12px 14px 14px; }
.plan-time { font-size: 12px; color: var(--accent2); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-title { font-size: 14.5px; font-weight: 700; margin: 4px 0 6px; line-height: 1.35; }
.plan-reason { font-size: 12.5px; color: var(--dim); line-height: 1.5; margin-bottom: 10px; }
.plan-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-acts .ghost { padding: 6px 10px; font-size: 12.5px; }
.plan-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 180px; background: var(--bg2); border: 2px dashed var(--line); border-radius: 14px;
  color: var(--dim); cursor: pointer; transition: border-color .12s, color .12s, background .12s; padding: 20px; }
.plan-add:hover { border-color: var(--accent); color: var(--accent2); background: rgba(91,91,214,.04); }
.plan-add-plus { font-size: 34px; font-weight: 300; line-height: 1; }
.plan-add-t { font-size: 14.5px; font-weight: 800; }
.plan-add-d { font-size: 12px; }
.plan-bar { position: sticky; bottom: 0; margin-top: 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; background: rgba(250,250,247,.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 16px 4px; }
.plan-sum { font-size: 14.5px; }
.plan-bar .primary { padding: 12px 24px; }

/* 자막 편집 모달 */
.sub-modal { max-width: 560px; width: 94vw; }
.sub-list { max-height: 52vh; overflow-y: auto; margin: 6px -4px 4px; padding: 0 4px; }
.sub-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.sub-t { flex: none; width: 96px; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.sub-tx { flex: 1; padding: 9px 11px !important; font-size: 14px !important; }
.sub-modal .modal-actions { justify-content: space-between; align-items: center; }

/* 만들기 안내(온보딩) */
.intro-card { position: relative; background: linear-gradient(135deg, rgba(91,91,214,.07), rgba(160,91,214,.07));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 4px 0 18px; }
.intro-card h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.intro-x { position: absolute; top: 12px; right: 14px; background: none; color: var(--dim); font-size: 22px; line-height: 1; padding: 4px; }
.intro-x:hover { color: var(--text); }
.intro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .intro-steps { grid-template-columns: 1fr; gap: 12px; } }
.intro-steps > div { position: relative; padding-left: 40px; }
.intro-n { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.intro-steps b { font-size: 14.5px; }
.intro-steps p { font-size: 13px; color: var(--dim); line-height: 1.55; margin-top: 3px; }
.intro-fit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.intro-fit span { display: inline-block; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; margin: 3px 4px 0 0; font-size: 12.5px; color: var(--text); font-weight: 600; }
