/* 채널 템플릿 새 화면(2026-10-14) — 왼쪽 요소 목록 · 가운데 쇼츠 화면 · 오른쪽 고른 요소 설정.
   토큰: 판 둥글기 --radius-panel · 칸 둥글기 --radius-md · 판 사이 --layout-gap · 판 안쪽 --layout-panel-padding.
   조작 칸은 모두 높이 36px(--ct2-h) 한 줄 — 위 줄 알약 · 버튼과 오른쪽 칸이 같은 높이다. 테두리 없이 면 밝기로 나눈다 */
.ct2-main{--ct2-h:36px;--ct2-lb:64px}
.ct2-main.template-main{background:none;padding:0;border-radius:0;display:flex;flex-direction:column;gap:var(--layout-gap);overflow:visible}
/* 위 줄 */
.ct2-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:var(--ct2-h)}
.ct2-sp{flex:1}
.ct2-pick,.ct2-load{display:flex;align-items:center;min-width:0;max-width:340px}
.ct2-load{max-width:220px}
.ct2-pick .fp,.ct2-load .fp{min-width:0;height:var(--ct2-h);display:flex;align-items:center}
.ct2-pick,.ct2-load{height:var(--ct2-h)}
.ct2-top .fp-btn{height:var(--ct2-h);padding:0 12px 0 14px;border-radius:var(--radius-pill);background:var(--surface);font-family:inherit;font-size:13px;font-weight:600;color:var(--ink);gap:8px}
.ct2-top .fp-btn:hover{background:var(--hover)}
.ct2-top .fp-item{font-family:inherit;font-size:13px}
.ct2-status{font-size:12px;font-weight:600;color:var(--fine,#6A3EE8);line-height:var(--ct2-h)}
.ct2-status:empty{display:none}
.ct2-btn{display:inline-flex;align-items:center;height:var(--ct2-h);border:0;border-radius:var(--radius-pill);padding:0 14px;background:var(--surface);font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap}
.ct2-btn:hover{background:var(--hover)}
.ct2-btn.solid{background:var(--solid);color:var(--on-solid)}
.ct2-btn.ct2-clear{color:var(--secondary)}
.ct2-main .ct2-preset{margin:0;padding:0 4px;background:none;border-radius:0;font-size:12px;color:var(--secondary)}
.ct2-empty{background:var(--surface);border-radius:var(--radius-panel);padding:var(--layout-panel-padding)}
/* 세 칸 — 윗선을 맞춘다(폼 기본 스타일의 section 위 여백을 지운다) */
.ct2-ed.rt-form{background:none;padding:0;border-radius:0}
.ct2-ed>fieldset{display:grid!important;grid-template-columns:200px minmax(0,1fr) 340px;gap:var(--layout-gap);align-items:start;border:0;margin:0;padding:0;min-width:0}
.ct2-ed section,.ct2-ed aside,.ct2-ed .ct2-layers{margin:0}
.ct2-layers,.ct2-canvas,.ct2-insp{border-radius:var(--radius-panel)}
.ct2-layers,.ct2-insp{background:var(--surface)}
/* 왼쪽 요소 목록 */
.ct2-layers{padding:8px}
.ct2-layers h4{margin:0;padding:10px 10px 6px;font-size:11px;font-weight:600;color:var(--muted)}
.ct2-ly{display:flex;align-items:center;gap:10px;width:100%;height:var(--ct2-h);border:0;background:none;border-radius:var(--radius-md);padding:0 10px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;text-align:left}
.ct2-ly:hover{background:var(--hover)}
.ct2-ly i{width:22px;height:22px;border-radius:var(--radius-sm);background:var(--inset);display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;color:var(--secondary);flex:none}
.ct2-ly[aria-selected=true]{background:var(--filter-selected);color:var(--ink);font-weight:600}   /* 고른 요소 — 완성 영상 목록의 고른 카드와 같은 회색(2026-10-16 사용자) */
.ct2-ly[aria-selected=true] i{background:var(--surface);color:var(--ink)}
.ct2-ly:focus:not(:focus-visible){outline:none}
.ct2-dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
/* 가운데 화면 */
.ct2-canvas{background:var(--inset);padding:var(--layout-panel-padding);display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.ct2-cbar{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:var(--ct2-h)}
.ct2-canvas .ct-quick-seg{background:var(--surface)}
.ct2-canvas .ct-quick-seg button{height:30px;padding:0 12px}
.ct2-canvas .ct-quick-seg button[aria-selected="true"]{background:var(--solid);color:var(--on-solid)}
.ct2-ic{border:0;width:var(--ct2-h);height:var(--ct2-h);border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--secondary);cursor:pointer}
.ct2-ic[aria-pressed=true]{background:var(--solid);color:var(--on-solid)}
.ct2-stagewrap{position:relative;width:min(100%,360px);flex:none}
.ct2-canvas .shorts-preview.ct2-stage{width:100%;height:auto;max-height:none;aspect-ratio:9/16;border-radius:var(--radius-panel)}
.ct2-ass{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;border-radius:var(--radius-panel);z-index:2}
/* 화면 요소 — 누르면 고른다. 고른 것은 보라 실선(신호) */
.ct2-stage .cd-t{pointer-events:auto;cursor:pointer;z-index:1}
.ct2-stage .cd-t span{display:inline-block}
.ct2-stage .cd-tb{position:absolute;pointer-events:none;z-index:0}   /* 제목 박스 — 엔진처럼 글자와 따로 깐다 */
.ct2-stage .cd-line{z-index:3;background:transparent}
.ct2-stage .cd-line.ass span{visibility:hidden}
/* 보라 테두리는 마우스를 올렸을 때만(2026-10-16 사용자) — 고른 요소는 왼쪽 목록 · 오른쪽 판으로 알 수 있다 */
.ct2-stage .sel{outline:none!important}
.ct2-stage [data-k]:not(.cd-hd):not(.cd-rs):not(.cd-safe):hover{outline:2px solid var(--accent)!important;outline-offset:3px}
.ct2-stage .cd-safe.sel{outline:none!important;border-top-color:var(--accent)}
.ct2-canvas .ct-drag-tools{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--secondary)}
.ct2-canvas .ct-drag-tools:empty{display:none}
.ct2-canvas .ct-drag-tools button{height:30px;border:0;border-radius:var(--radius-pill);padding:0 12px;background:var(--surface);font:inherit;font-size:12px;color:var(--ink);cursor:pointer}
.ct2-canvas .ct-drag-note,.ct2-assnote{margin:0;font-size:11px;color:var(--muted);text-align:center;max-width:360px}
.ct2-canvas .ct-drag-note:empty{display:none}
.ct2-canvas .ct-real{align-self:stretch}
.ct2-canvas .ct-real summary{font-size:12px;color:var(--secondary);cursor:pointer;text-align:center}
/* 오른쪽 설정 — 줄마다 [이름 64px | 조작 칸 | 값 40px], 높이 36px. 값 칸이 없는 줄은 조작 칸이 끝까지 */
.ct2-insp{padding:0;border:solid var(--surface);border-width:26px 24px;overscroll-behavior:contain;scrollbar-width:none}.ct2-insp::-webkit-scrollbar{display:none}   /* 하얀 테두리 = 스크롤해도 사방 여백이 남아 아래가 잘려 보이지 않는다 · 스크롤바 숨김 = 내용 길이가 바뀌어도 폭이 그대로(작업 목록 판과 같은 두께 26px 24px · 2026-10-16 사용자) */
.ct2-insp .ct2-sec h2{padding-top:0}
.ct2-sec[hidden]{display:none}
.ct2-sec h2{margin:0;padding:14px 0 4px;font-size:15px;font-weight:700}
.ct2-grp{padding:12px 0;box-shadow:0 -1px 0 var(--inset)}
.ct2-sec h2+.ct2-grp{box-shadow:none;padding-top:8px}
.ct2-gh{display:flex;align-items:center;justify-content:space-between;height:24px;margin-bottom:6px;font-size:12px;font-weight:700;color:var(--ink)}
.ct2-reset{border:0;background:none;padding:0;font:inherit;font-size:11px;font-weight:600;color:var(--fine,#6A3EE8);cursor:pointer}
.ct2-reset[hidden]{display:none}
.ct2-insp label.ct2-f[hidden],.ct2-insp .ct2-r[hidden],.ct2-insp .ct2-ss[hidden],.ct2-insp [data-boxsize][hidden]{display:none!important}
.ct2-r,.ct2-insp label.ct2-f{display:grid!important;grid-template-columns:var(--ct2-lb) minmax(0,1fr) 40px;align-items:center;column-gap:8px;min-height:var(--ct2-h);margin:0 0 6px!important;font-size:12px;color:var(--secondary)}
.ct2-r>:nth-child(2),.ct2-f>:nth-child(1){grid-column:2/4}
.ct2-insp label.ct2-f>.fp,.ct2-insp label.ct2-f>select,.ct2-insp label.ct2-f>input,.ct2-insp label.ct2-f>.rt-color{grid-column:2/4;min-width:0}
.ct2-sl{height:var(--ct2-h)}
.ct2-sl>input[type=range]{grid-column:2/3!important;height:var(--ct2-h);width:100%;margin:0;accent-color:var(--accent)}
.ct2-sl>b{grid-column:3/4;text-align:right;font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.ct2-insp input:not([type=range]):not([type=hidden]):not([type=color]),.ct2-insp select,.ct2-insp .fp-btn{height:var(--ct2-h);border:0;border-radius:var(--radius-md);background:var(--inset);padding:0 10px;font:inherit;font-size:12px;color:var(--ink);min-width:0;width:100%}
.ct2-insp .rt-color{display:flex;align-items:center;gap:6px;height:var(--ct2-h)}
.ct2-insp .rt-color input[type=color]{width:var(--ct2-h);height:var(--ct2-h);padding:4px;border:0;border-radius:var(--radius-md);background:var(--inset);flex:none}
.ct2-hint{margin:2px 0 0;font-size:11px;color:var(--muted);line-height:1.5}
.ct2-insp .ct-voice-row{display:flex;gap:8px}
.ct2-insp .ct-voice-row .ct-listen{height:var(--ct2-h);border:0;border-radius:var(--radius-pill);padding:0 14px;background:var(--inset);font:inherit;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer;flex:none}
.ct2-insp .ch-logo-chips{display:flex;flex-wrap:wrap;gap:6px}
.ct2-main .ct-old{background:var(--surface);border-radius:var(--radius-panel);padding:12px var(--layout-panel-padding)}
@media(max-width:1250px){.ct2-ed>fieldset{grid-template-columns:170px minmax(0,1fr) 300px}}
@media(max-width:1000px){.ct2-ed>fieldset{grid-template-columns:1fr}.ct2-layers{position:static;display:flex;flex-wrap:wrap;gap:4px}.ct2-layers h4{display:none}.ct2-ly{width:auto}.ct2-insp{position:static;max-height:none}}
.ct2-cbtns{display:flex;gap:6px}
.ct2-canvas .ct-real:not([open]){display:none}
/* 가운데는 작업 목록 내부 검수 화면처럼 영상 칸만 — 회색 판 없이 화면 높이에 맞춘 9:16, 칸 폭 = 영상 폭(2026-10-14 사용자) */
.ct2-ed>fieldset{grid-template-columns:200px auto minmax(300px,1fr)}
.ct2-canvas{background:none;padding:0;border-radius:0;align-items:stretch}
.ct2-stagewrap{width:auto;height:max(480px,calc(100vh - 330px));aspect-ratio:9/16}
.ct2-canvas .shorts-preview.ct2-stage{width:100%;height:100%;border-radius:11px;box-shadow:none}
.ct2-ass{border-radius:11px}
.ct2-canvas .ct-drag-note,.ct2-assnote{max-width:none}
.ct2-canvas .ct-quick-seg button{white-space:nowrap}
@media(max-width:1250px){.ct2-ed>fieldset{grid-template-columns:170px auto minmax(280px,1fr)}}
@media(max-width:1000px){.ct2-ed>fieldset{grid-template-columns:1fr}.ct2-stagewrap{height:auto;width:min(100%,360px);margin:0 auto}}
/* 글자 크기 · 로고 크기 단추는 영상 아래쪽 위에 얹는다(플레이어 조작 줄처럼) */
.ct2-stagewrap>.ct-drag-tools{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:5;padding:4px 4px 4px 12px;border-radius:var(--radius-pill);background:rgba(0,0,0,.6);color:#fff;white-space:nowrap}
.ct2-stagewrap>.ct-drag-tools button{background:rgba(255,255,255,.16);color:#fff}
.ct2-stagewrap>.ct-drag-tools button:hover{background:rgba(255,255,255,.28)}
/* 오른쪽 설정 칸은 360px 로 고정 — 남는 폭은 세 칸 묶음 양옆으로(2026-10-14 사용자: 오른쪽이 쓸데없이 넓다) */
.ct2-ed>fieldset{grid-template-columns:200px auto 360px;justify-content:center}
@media(max-width:1250px){.ct2-ed>fieldset{grid-template-columns:170px auto 320px}}
@media(max-width:1000px){.ct2-ed>fieldset{grid-template-columns:1fr}}
/* 화면 폭 = 세 칸 묶음 폭 — 위 줄 오른쪽 끝(저장)과 설정 칸 오른쪽 끝이 맞는다. 왼쪽은 페이지 제목과 맞춘다 */
.ct2-ed>fieldset{justify-content:start}
@media(min-width:1001px){.ct2-main.template-main{width:fit-content;max-width:100%}}
.ct2-stagewrap>.ct-drag-tools{display:flex;flex-wrap:nowrap;width:max-content}
/* 채널 목록을 왼쪽에 다시 둔다 — 그만큼 요소 목록은 좁게(아이콘 + 이름) */
.ct2-layout .ct2-main.template-main{width:auto}
.ct2-ed>fieldset{grid-template-columns:168px auto minmax(300px,1fr)}
.ct2-ly{gap:8px;padding:0 8px}
@media(max-width:1250px){.ct2-ed>fieldset{grid-template-columns:150px auto minmax(280px,320px)}}
@media(max-width:1000px){.ct2-ed>fieldset{grid-template-columns:1fr}}
.ct2-top .ct2-q{margin-left:-2px;align-self:center;flex:none}
.ct2-ed.rt-form,.ct2-ed>fieldset{margin:0;width:100%}
/* 전체 화면 틀(layout.css '채널 목록 · 채널 템플릿'과 같은 규칙, 1251px 이상) — 페이지는 화면 높이에 딱 맞고 판마다 안에서 스크롤.
   가운데 영상 칸 크기는 칸 높이에 맞춰 스크립트(fitStage)가 정한다 */
@media(min-width:1251px){
 .ct2-main.template-main{height:100%;min-height:0;overflow:hidden}
 .ct2-main>.ct2-ed{flex:1 1 auto;min-height:0;overflow:hidden!important}
 .ct2-ed>fieldset{height:100%;grid-template-rows:minmax(0,1fr);align-items:stretch}
 .ct2-layers,.ct2-insp{min-height:0;overflow:auto}
 .ct2-canvas{min-height:0;overflow:hidden}
 .ct2-stagewrap{flex:1 1 auto;min-height:0;height:auto;width:auto}
}
/* 크기 칸 −/+ */
.ct2-step{display:grid;grid-template-columns:var(--ct2-h) minmax(0,1fr) var(--ct2-h);gap:4px}
.ct2-step>button{height:var(--ct2-h);border:0;border-radius:var(--radius-md);background:var(--inset);font:inherit;font-size:15px;color:var(--ink);cursor:pointer}
.ct2-step>button:hover{background:var(--hover)}
.ct2-insp .ct2-step>input{text-align:center}
.ct2-stage.bg-sel{outline:2px solid var(--accent);outline-offset:3px}
/* 불러오기 · 즐겨찾기 작은 창 */
.ct2-popwrap{position:relative;display:inline-flex}
.ct2-btn svg{width:12.8px;height:12.8px;margin:0 -5.2px 0 2.8px;fill:none;stroke:var(--secondary);stroke-width:2.625;flex:none}   /* 화살표 규칙(10/27): 다른 드롭다운과 같은 6.4 × 3.2 · 글자에서 6 · 끝까지 12 · 중간 회색 */
.ct2-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:380px;padding:var(--layout-panel-padding);border-radius:var(--radius-panel);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.16)}
.ct2-pop h3{margin:0 0 2px;font-size:14px}
.ct2-pop>.ct2-hint{margin:0 0 12px}
.ct2-seg{display:flex;gap:2px;padding:3px;border-radius:var(--radius-pill);background:var(--inset);margin-bottom:10px}
.ct2-seg button{flex:1;height:30px;border:0;border-radius:var(--radius-pill);background:none;font:inherit;font-size:12px;color:var(--secondary);cursor:pointer}
.ct2-seg button[aria-selected=true]{background:var(--surface);color:var(--ink);font-weight:600}
.ct2-list{display:grid;gap:2px;max-height:280px;overflow:auto}
.ct2-it{display:flex;align-items:center;gap:8px;min-height:var(--ct2-h);padding:0 10px;border-radius:var(--radius-md);font-size:13px;color:var(--ink);cursor:pointer}
.ct2-it>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct2-it:hover{background:var(--hover)}
.ct2-it[aria-selected=true]{background:color-mix(in srgb,var(--accent) 12%,transparent);font-weight:600}
.ct2-it.off{color:var(--muted);cursor:default}.ct2-it.off:hover{background:none}
.ct2-it small{font-size:11px;color:var(--muted);font-weight:500;white-space:nowrap}
.ct2-sw{display:inline-flex;gap:2px;margin-left:auto;flex:none}
.ct2-sw i{width:14px;height:14px;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.ct2-unfav{border:0;background:none;color:var(--accent);cursor:pointer;padding:2px;flex:none;display:grid;place-items:center;border-radius:50%}
.ct2-unfav:hover{opacity:.6}
.ct2-pr{margin-bottom:8px!important}
.ct2-pop select,.ct2-pop input{height:var(--ct2-h);border:0;border-radius:var(--radius-md);background:var(--inset);padding:0 10px;font:inherit;font-size:13px;color:var(--ink);min-width:0;width:100%}
.ct2-none{margin:6px 0;font-size:12px;color:var(--muted)}
.ct2-err{margin:0;font-size:12px;color:var(--danger)}.ct2-err:empty{display:none}
.ct2-pfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.ct2-pfoot .ct2-btn{background:var(--inset)}.ct2-pfoot .ct2-btn.solid{background:var(--solid)}
.ct2-pfoot .ct2-btn[disabled]{opacity:.4;cursor:default}
/* 둥근 별 — 같은 색으로 채우고 굵은 둥근 선을 둘러 꼭짓점을 동글게 */
.ct2-star{width:15px;height:15px;flex:none;fill:currentColor;stroke:currentColor;stroke-width:2.6;stroke-linejoin:round;color:var(--accent)}
.ct2-btn .ct2-star{margin-right:6px}
.ct2-seg .ct2-star{width:13px;height:13px;margin:0 5px -2px 0}
.ct2-seg button{display:inline-flex;align-items:center;justify-content:center}
.ct2-unfav:hover{background:var(--hover);opacity:1}
/* 즐겨찾기 별 — 빈 별 = 아직, 채운 별 = 즐겨찾기에 있음 */
.ct2-favbtn{display:grid;place-items:center;width:var(--ct2-h);height:var(--ct2-h);border:0;border-radius:50%;background:var(--surface);cursor:pointer;flex:none}
.ct2-favbtn:hover{background:var(--hover)}
.ct2-favbtn .ct2-star{width:18px;height:18px;fill:none;stroke-width:2}
.ct2-favbtn[aria-pressed=true] .ct2-star{fill:currentColor;stroke-width:2.6}
.ct2-favbtn[aria-pressed=false] .ct2-star{color:var(--secondary)}
/* 불러오기 창 채널 고르기 — 왼쪽 채널 목록과 같은 아이콘 */
.ct2-chanbtn{display:flex;align-items:center;gap:8px;width:100%;height:40px;border:0;border-radius:var(--radius-md);background:var(--inset);padding:0 10px;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;margin-bottom:8px}
.ct2-chanbtn:hover{background:var(--hover)}
.ct2-chanbtn>span:nth-child(2){flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct2-chanbtn svg{width:14px;height:14px;fill:none;stroke:var(--muted);stroke-width:2;flex:none}
.ct2-chanbtn[aria-expanded=true] svg{transform:rotate(180deg)}
.ct2-pop .tc-av{width:24px;height:24px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:none;background:var(--inset);font-size:11px;font-weight:700;color:var(--secondary)}
.ct2-pop .tc-av img{width:100%;height:100%;object-fit:cover}
.ct2-chans .ct2-it{gap:10px}
/* 위 줄: 단추 사이 8px(작품 관리 · 소스 칸 단추 줄과 같은 값), 위 줄 높이 = 단추 높이, 위 줄과 판 사이 = --layout-gap 하나
   (종전엔 공용 header 스타일의 16px 간격 · 아래 여백, 폼 위 여백 16px 이 더해져 판이 40px 넘게 떨어졌다) */
.ct2-main>.ct2-top{gap:8px;margin:0;padding:0;height:auto;min-height:var(--ct2-h);justify-content:flex-end}   /* 좁은 화면에서 단추가 다음 줄로 넘어가면 줄도 같이 늘어난다 — 높이 고정이라 '저장'이 아래 칸에 겹쳤다(2026-10-19) */
.ct2-main>.ct2-top .ct2-q{margin:0 8px 0 -2px}
.ct2-main>.ct2-ed{margin:0!important}
/* 저장 안 한 값이 있으면 저장 단추에 점 */
.ct2-btn.solid.dirty::after{content:"";width:6px;height:6px;margin-left:8px;border-radius:50%;background:var(--care,#E4FF1A)}
/* 끌기 막대 — 테두리 없이 면으로(지나온 쪽은 보라) */
.ct2-sl>input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;height:var(--ct2-h);cursor:pointer}
.ct2-sl>input[type=range]::-webkit-slider-runnable-track{height:6px;border:0;border-radius:var(--radius-pill);background:linear-gradient(var(--accent),var(--accent)) 0/var(--p,0%) 100% no-repeat,var(--inset)}
.ct2-sl>input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border:0;border-radius:50%;background:var(--accent);box-shadow:none}
.ct2-sl>input[type=range]::-moz-range-track{height:6px;border:0;border-radius:var(--radius-pill);background:var(--inset)}
.ct2-sl>input[type=range]::-moz-range-progress{height:6px;border-radius:var(--radius-pill);background:var(--accent)}
.ct2-sl>input[type=range]::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:var(--accent)}
.ct2-sl>input[type=range]:focus-visible{outline:none}
.ct2-sl>input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 25%,transparent)}
/* 고른 단추 초점 테두리가 잘리지 않게 — 넓은 화면 틀에서 판 밖으로 그려지는 것을 막지 않는다 */
@media(min-width:1251px){.ct2-main.template-main{overflow:visible}.ct2-main>.ct2-ed{overflow:visible!important}}
/* 미리보기의 로고 아래 문구 · 권리사 로고 자리(누르면 고른다) */
.ct2-stage .cd-cap{left:0;right:0;display:flex;align-items:center;justify-content:center;font-weight:700;white-space:nowrap;text-align:center;cursor:pointer;z-index:2}
.ct2-stage .cd-cap span{display:inline-block}
.ct2-ta{width:100%;min-height:58px;resize:vertical;border:0;border-radius:10px;background:var(--inset);padding:8px 12px;font:inherit;font-size:13px;line-height:1.5;color:var(--ink)}
.ct2-stage .cd-pf{display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.18);color:#fff;font:600 1.4cqh/1 var(--font-sans,Pretendard),sans-serif;cursor:pointer;z-index:2;overflow:hidden}
.ct2-stage .cd-pf span{padding:0 4px;white-space:nowrap}
/* 둘 중 고르기(켬/끔 · 왼쪽/오른쪽) */
.ct2-pick2>.ct2-seg2{grid-column:2/4;display:flex;gap:2px;padding:3px;border-radius:var(--radius-md);background:var(--inset);height:var(--ct2-h)}
.ct2-seg2 button{flex:1;border:0;border-radius:6px;background:none;font:inherit;font-size:12px;color:var(--secondary);cursor:pointer}
.ct2-seg2 button[aria-checked=true]{background:var(--surface);color:var(--ink);font-weight:600}
/* 권리사 로고 고르기 — 그림이 보이는 드롭다운. 투명한 곳은 연한 체크무늬(검정이면 어두운 로고가 묻힌다) */
.ct2-pfpick{position:relative}
.ct2-pfchips{position:relative;margin-bottom:8px}
.ct2-pfdd{display:flex;align-items:center;gap:10px;width:100%;height:44px;border:0;border-radius:var(--radius-md);background:var(--inset);padding:0 10px 0 6px;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
.ct2-pfdd:hover{background:var(--hover)}
.ct2-pfdd>span:nth-child(2){flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct2-pfdd svg{width:14px;height:14px;fill:none;stroke:var(--muted);stroke-width:2;flex:none}
.ct2-pfdd[aria-expanded=true] svg{transform:rotate(180deg)}
.ct2-pfth{width:72px;height:32px;flex:none;border-radius:6px;display:grid;place-items:center;overflow:hidden;
 background:repeating-conic-gradient(#a9a9b0 0 25%,#c7c7cc 0 50%) 0 0/10px 10px}
.ct2-pfth{position:relative}
.ct2-pfth img{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);object-fit:contain}
.ct2-pfmenu{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;max-height:260px;overflow:auto;padding:6px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 10px 30px rgba(0,0,0,.14)}
.ct2-pfit{display:flex;align-items:center;gap:10px;padding:6px;border-radius:var(--radius-md);font-size:13px;color:var(--ink);cursor:pointer}
.ct2-pfit:hover{background:var(--hover)}
.ct2-pfit[aria-selected=true]{background:var(--filter-selected);font-weight:600}
.ct2-stage .cd-pf.img{background:none}
.ct2-stage .cd-pf img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.ct2-insp .ct2-pfpick label.ct2-f{display:none!important}
/* 고른 표시를 안쪽으로 — 화면(영상 칸 · 배경)이 둥근 틀에 잘려 바깥 테두리가 안 보였다(2026-10-15 사용자) */
.ct2-stage [data-k]:hover{outline-offset:-2px!important}
.ct2-stage.bg-sel{outline:none;box-shadow:none}
.ct2-stagewrap:has(.ct2-stage:hover:not(:has([data-k]:hover)))::after{content:"";position:absolute;inset:0;border-radius:11px;box-shadow:inset 0 0 0 3px var(--accent);pointer-events:none;z-index:6}
/* 폭 채우기 예시 — 끔 / 켬 두 칸(지금 제목 모양 그대로, 고른 쪽은 보라 테두리) */
.ct2-fillex{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 6px}
.ct2-fx{display:flex;flex-direction:column;align-items:center;gap:4px}
.ct2-fxs{width:100%;aspect-ratio:1080/260;border-radius:var(--radius-md);container-type:inline-size;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:hidden}
.ct2-fxs>div{font-weight:800;line-height:1.05;white-space:nowrap}
.ct2-fx.on .ct2-fxs{box-shadow:inset 0 0 0 2px var(--accent)}
.ct2-fx small{font-size:11px;color:var(--muted)}
.ct2-fx.on small{color:var(--ink);font-weight:600}
.ct2-fxnote{grid-column:1/3;margin:0}
/* 영상 칸 아래 안내 자리 — 두 줄 높이로 고정(넘치면 말줄임), 폭은 영상 칸 폭 */
.ct2-notes{height:34px;width:100%;align-self:stretch;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start}
.ct2-notes p{margin:0;font-size:11px;line-height:17px;color:var(--muted);text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ct2-notes .ct-drag-note.bad{color:var(--danger)}
/* 안내는 영상 칸 폭을 넘지 않게 — 글 길이가 가운데 칸 폭을 넓히지 않도록(폭 0 + 최소 100%) */
.ct2-canvas>.ct2-notes{width:0;min-width:100%;align-self:auto}
.ct2-canvas>.ct-real{width:0;min-width:100%}
/* 저장 안 한 값 표시 — 단추 크기는 그대로, 오른쪽 위 모서리에 점을 얹는다(2026-10-15 사용자) */
.ct2-btn.solid{position:relative}
.ct2-btn.solid.dirty::after{position:absolute;top:-2px;right:-2px;width:10px;height:10px;margin:0;box-shadow:0 0 0 2px var(--page)}
/* 점은 단추 안쪽 오른쪽 위에(2026-10-15 사용자: 검정 안에) */
.ct2-btn.solid.dirty::after{top:7px;right:8px;width:7px;height:7px;box-shadow:none}
/* 알림 종의 점(alerts.css .alerts-dot)과 같은 크기 · 자리 */
.ct2-btn.solid.dirty::after{top:8px;right:9px;width:6px;height:6px}

/* 제목 줄 고르기 · 박스 모양 버튼(2026-10-16) — 누를 때마다 없음 → 둥근 → 각진 */
.ct2-tlines{margin:12px 0 0}
.ct2-boxrow{grid-column:2/4;display:flex;align-items:center;gap:6px;min-width:0}
.ct2-insp .ct2-boxcol{flex:none}.ct2-insp .ct2-boxcol[hidden]{display:none}   /* 색 네모는 다른 색 칸(.rt-color)과 같은 모양 */
.ct2-boxcyc{display:inline-flex;align-items:center;gap:8px;height:var(--ct2-h);padding:0 12px;border:0;border-radius:var(--radius-md);background:var(--inset);font:inherit;font-size:12px;color:var(--ink);cursor:pointer;justify-self:start}
.ct2-boxcyc:hover{filter:brightness(.97)}
.ct2-boxcyc i{display:block;width:20px;height:14px}
.ct2-boxcyc.none i{box-shadow:inset 0 0 0 1.5px var(--secondary);border-radius:4px;opacity:.5}
.ct2-boxcyc.round i{background:var(--boxc,#000);border-radius:5px}
.ct2-boxcyc.rect i{background:var(--boxc,#000);border-radius:0}

/* 설정 판 제목은 위에 붙고 아래 내용만 스크롤 · 제목 줄 오른쪽 끝 주의 아이콘(2026-10-16 사용자) */
.ct2-insp{display:flex;flex-direction:column;overflow:hidden!important}
.ct2-ihead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 10px;flex:none}
.ct2-ihead h2{margin:0;font-size:15px;font-weight:700}
.ct2-iscroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}.ct2-iscroll::-webkit-scrollbar{display:none}
.ct2-iscroll .ct2-sec h2{display:none}
/* 스크롤 경계를 부드럽게 — 위로 넘긴 내용이 있으면 위쪽, 아래에 더 있으면 아래쪽이 18px 동안 흐려진다(2026-10-16 사용자) */
.ct2-iscroll.fade-t{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18px);mask-image:linear-gradient(to bottom,transparent,#000 18px)}
.ct2-iscroll.fade-b{-webkit-mask-image:linear-gradient(to top,transparent,#000 18px);mask-image:linear-gradient(to top,transparent,#000 18px)}
.ct2-iscroll.fade-t.fade-b{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent)}
@media(max-width:1000px){.ct2-insp{overflow:visible!important}.ct2-iscroll{overflow:visible}}
.ct2-warn{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--secondary);cursor:help;flex:none}
.ct2-warn[hidden]{display:none}
.ct2-warn.bad{color:var(--danger)}
.ct2-warn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 끌기 막대 + −/+ 숫자(둥근 정도 · 확산) — 이름은 위 줄, 막대와 숫자는 아래 줄(2026-10-16) */
.ct2-ss{margin:0 0 8px;font-size:12px;color:var(--secondary)}
.ct2-ss>span{display:block;margin:0 0 2px}
.ct2-ssrow{display:flex;align-items:center;gap:12px;height:var(--ct2-h)}
.ct2-ssrow>input[type=range]{flex:1;min-width:0}
.ct2-ssrow>.ct2-step{flex:none;width:118px}

/* 권리사 로고 목록 맨 아래 '로고 올리기'(2026-10-16) */
.ct2-pfup{color:var(--secondary)}
.ct2-pfup .ct2-pfth{background:var(--inset)}
.ct2-pfup svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* 템플릿 텍스트(design.template_texts) — 미리보기 글자 · 가운데 안내선 · 설정 칸 목록 */
.ct2-stage .cd-tx{position:absolute;white-space:nowrap;text-align:center;line-height:1.25;font-weight:700;cursor:grab;z-index:4;pointer-events:auto}
.ct2-stage .cd-tx.sel{outline:1.5px dashed #fff;outline-offset:4px}
.ct2-stage .cd-guide{position:absolute;pointer-events:none;z-index:6;background:#7C4DFF}
.ct2-stage .cd-guide.v{left:50%;top:0;bottom:0;width:1px;margin-left:-.5px}
.ct2-stage .cd-guide.h{left:0;right:0;height:1px;margin-top:-.5px}
.ct2-txlist{display:flex;flex-wrap:wrap;gap:6px}
.ct2-txit,.ct2-txadd{max-width:100%;height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--inset);font:inherit;font-size:12px;color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.ct2-txit[aria-pressed=true]{background:var(--solid);color:var(--on-solid);font-weight:600}
.ct2-txadd{background:none;color:var(--ink);font-weight:600}
.ct2-ihead .ct2-txdel{margin-left:auto;display:grid;place-items:center;width:28px;height:28px;border:0;padding:0;background:none;color:#FF5A4E;cursor:pointer}
.ct2-ihead .ct2-txdel[hidden]{display:none}
.ct2-ihead .ct2-txdel+.ct2-warn{margin-left:4px}
.ct2-txdel svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 저장 기록(시계 단추) · 불러오기 창 안 '따로 정한 값 지우기' · 저장 확인 창(template-history.js, 2026-10-23) */
.ct2-histbtn svg{width:18px;height:18px;fill:none;stroke:var(--secondary);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ct2-histbtn[aria-expanded=true]{box-shadow:0 0 0 2px var(--accent)}
.ct2-pop.th-pop{left:0;right:auto;width:400px;max-width:calc(100vw - 32px);max-height:min(560px,calc(100dvh - 160px));display:flex;flex-direction:column}
.th-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.th-hd b{font-size:15px}
.th-hd .th-x{border:0;background:none;font-size:20px;line-height:1;color:var(--muted);cursor:pointer;padding:2px 4px}
.th-scroll{overflow:auto;min-height:0}
.th-it{padding:10px 12px;border-radius:12px;background:var(--inset);margin-top:6px}
.th-it.new{background:var(--accent-soft)}
.th-row{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--secondary)}
.th-row b{color:var(--ink);font-weight:650}
.th-list{list-style:none;margin:6px 0 0;padding:0;font-size:13px;line-height:1.7;color:var(--ink)}
.th-list .th-k{color:var(--muted)}
.th-arrow{color:var(--muted);margin:0 4px}
.th-list .tc-sw{display:inline-block;width:12px;height:12px;border-radius:4px;vertical-align:-1px;box-shadow:inset 0 0 0 1px #0000001a}
.th-list .tc-dim{color:var(--muted)}
.th-what{margin:6px 0 0;font-size:13px;color:var(--secondary)}
.th-memo{margin:6px 0 0;font-size:12.5px;color:var(--ink);background:var(--surface);border-radius:8px;padding:6px 9px;word-break:keep-all}
.th-empty,.th-foot{font-size:12px;color:var(--muted);text-align:center;margin:12px 0 4px}
.ct2-pfoot{align-items:center}
.ct2-clrlink{border:0;background:none;padding:6px 2px 6px 0;font:inherit;font-size:12.5px;font-weight:600;color:var(--danger);cursor:pointer}
.ct2-clrlink:hover{text-decoration:underline}
.th-dlg{width:min(440px,calc(100vw - 32px))}
.th-dlg .th-pp{font-style:normal;color:var(--accent)}
.th-dlg .th-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:12.5px;color:var(--secondary);margin:2px 0 12px}
.th-dlg .th-meta b{color:var(--ink);font-weight:650;margin-left:4px}
.th-dlg .th-box{margin:0 0 14px;padding:10px 12px;background:var(--inset);border-radius:12px;max-height:220px;overflow:auto}
.th-dlg .th-lab{display:block;font-size:12.5px;font-weight:650;color:var(--ink)}
.th-dlg .th-lab small{font-weight:500;color:var(--muted);margin-left:4px}
.th-dlg .th-note{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:0;border-radius:10px;background:var(--inset);padding:10px 12px;font:inherit;font-size:13px;font-weight:400;color:var(--ink)}
.th-dlg .th-note::placeholder{font-weight:400;color:var(--muted)}
.th-dlg .ask-confirm-acts{margin-top:16px}

/* 맨 윗줄은 대시보드 알약과 같은 32(10/27 사용자). 펼쳐지는 창 안 줄은 36 그대로 */
.ct2-main>.ct2-top{--ct2-h:32px}.ct2-main>.ct2-top .ct2-pop{--ct2-h:36px}
.ct2-top .fp-btn svg{width:12.8px;height:12.8px;opacity:1;stroke:var(--secondary);stroke-width:2.625;margin:0 -3.2px}
