/* 색은 전부 셀렉츠(tryselects.com) 화면에서 뽑은 값 그대로 (11-18 사장님 지시 : 모든 배경 검은색) */
:root {
  --page: #000000;
  --well: #121314;
  --card: #19191C;
  --raised: #2A2B2E;
  --active: #343439;
  --edge: #FFFFFF0E;
  --text: #FFFFFF;
  --text-80: rgba(255, 255, 255, 0.8);
  --text-70: rgba(255, 255, 255, 0.7);
  --text-55: rgba(255, 255, 255, 0.55);
  --underline: rgba(255, 255, 255, 0.3);
  --dark-ink: #17181E;
  --title: linear-gradient(186.45deg, #FFFFFF 60.79%, #193CFF 107.27%);  /* 끝 색 : 11-18 사장님이 연두 대신 회사 파랑으로 고름 */
  --r-card: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
body { font-family: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.title { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: var(--title); }

.main, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: 99px; border: 0;
  text-decoration: none; font-weight: 600; white-space: nowrap;
}
.main { background: var(--text); color: var(--dark-ink); }
.main:hover { background: var(--text-80); }
.ghost { background: var(--raised); color: var(--text); }
.ghost:hover { background: var(--active); }
.big-btn { min-height: 56px; padding: 0 34px; font-size: 18px; }

/* 위쪽 줄 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--page); border-bottom: 1px solid var(--edge); }
.brand { border: 0; background: none; font-size: 20px; font-weight: 700; padding: 6px 0; color: var(--text); }
.top-r { display: flex; gap: 8px; }
.top-r .ghost { min-height: 38px; padding: 0 14px; font-weight: 500; }

.wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }

/* 로그인 */
.login { max-width: 440px; margin: 16vh auto 0; padding: 0 16px; text-align: center; }
.login h1 { font-size: 56px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; }
.lead { font-size: 19px; font-weight: 500; color: var(--text-80); margin: 0 0 30px; }
.login-form { display: flex; gap: 8px; }
.login-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; background: var(--card); border: 1px solid var(--edge); border-radius: 99px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.login-form input::placeholder { color: var(--text-55); letter-spacing: 0; }
.login-form .main { min-height: 52px; }
.err { color: var(--text); font-weight: 600; min-height: 1.5em; }

/* 영상 넣기 */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 240px; background: var(--card); border: 1px dashed var(--active); border-radius: var(--r-card); cursor: pointer; text-align: center; padding: 24px;
}
.drop strong { font-size: 32px; font-weight: 700; -webkit-background-clip: text; background-clip: text; color: transparent; background-image: var(--title); }
.drop span { font-size: 17px; font-weight: 500; color: var(--text-55); }
.drop:hover, .drop.over { background: var(--raised); }

.list { margin-top: 24px; display: flex; flex-direction: column; border-top: 1px solid var(--edge); }
.row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 18px 6px; border: 0; border-bottom: 1px solid var(--edge); background: none; text-align: left; color: var(--text);
}
.row:hover { background: var(--card); }
.row-t { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-m { color: var(--text-55); white-space: nowrap; }
.badge { padding: 4px 12px; border-radius: 99px; background: var(--raised); color: var(--text-80); font-weight: 500; font-size: 14px; white-space: nowrap; }
.badge.ready { background: var(--text); color: var(--dark-ink); font-weight: 600; }

/* 단계 */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 16px; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-card); background: var(--card); color: var(--text-55); font-weight: 600; }
.stepper b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); font-weight: 600; }
.stepper li.cur { background: var(--active); color: var(--text); }
.stepper li.cur b { background: var(--text); color: var(--dark-ink); }
.stepper li.done { color: var(--text-80); }

.panel { background: var(--card); border-radius: var(--r-card); padding: 24px; margin-bottom: 16px; }
.panel h2 { font-size: 22px; font-weight: 600; margin: 0 0 14px; word-break: keep-all; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.now { font-size: 18px; font-weight: 600; margin: 6px 0 12px; }
.sub { color: var(--text-55); font-weight: 500; margin: 14px 0 0; }
.detail { color: var(--text-55); font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; }
.bar { height: 10px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.big { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.phrase { display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 20px; background: var(--raised); border-radius: var(--r-card); }
.phrase span { flex: 1; font-size: 19px; font-weight: 600; }
.summary { background: var(--raised); color: var(--text-80); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.make { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.font { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-80); }
.font select, .uprow select { min-height: 44px; padding: 0 14px; background: var(--raised); color: var(--text); border: 1px solid var(--edge); border-radius: 99px; font-weight: 500; }
.progress { margin-top: 4px; }
.progress .ghost { margin-top: 12px; margin-right: 8px; }

.upload { margin-top: 20px; border-top: 1px solid var(--edge); padding-top: 14px; }
.upload summary { cursor: pointer; font-weight: 600; color: var(--text-70); }
.copyrow { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.copyrow span, .copyrow pre { flex: 1; margin: 0; white-space: pre-wrap; font-family: inherit; background: var(--raised); color: var(--text-80); border-radius: 12px; padding: 10px 14px; }

.shorts { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--edge); }
.shorts li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--edge); align-items: center; }
.shorts b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--raised); font-size: 14px; font-weight: 600; }

.foot { text-align: right; }
.foot .ghost { background: none; color: var(--text-55); font-weight: 500; }
.foot .ghost:hover { color: var(--text); }

/* 연결 안내 */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; z-index: 10; }
.sheet { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 26px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }
.sheet h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.sheet p { color: var(--text-80); }
.url { display: flex; gap: 8px; align-items: center; background: var(--raised); border-radius: 12px; padding: 10px 10px 10px 14px; margin: 14px 0; }
.url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--text-80); }
.steps { padding-left: 22px; margin: 0 0 12px; color: var(--text-80); }
.steps li { margin: 6px 0; }
.steps b { color: var(--text); }
.warn { font-weight: 600; color: var(--text) !important; }
.sheet-b { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--dark-ink); padding: 12px 20px; border-radius: 99px; font-weight: 600; opacity: 0; transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 올리기 */
.upbar { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--edge); }
.uprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.up-prog { margin-top: 14px; }
.links { padding-left: 20px; margin: 12px 0 0; }
.links a { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 4px; }
.token { width: 100%; padding: 12px 14px; background: var(--raised); color: var(--text); border: 1px solid var(--edge); border-radius: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; resize: vertical; }
button:disabled { opacity: .5; cursor: default; }

.legal { margin-top: 28px; }
.legal a { color: var(--text-55); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 4px; }

@media (max-width: 640px) {
  .stepper { grid-template-columns: 1fr; }
  .phrase { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr auto; }
  .row .row-m { display: none; }
  .top { padding: 12px 16px; }
  .panel { padding: 18px; }
  .login h1 { font-size: 40px; }
}

/* 완성 단계 : 미리보기 · 보면서 고치기 */
.wrap.wide { max-width: 1040px; }
.pv-box { position: relative; background: var(--page); border-radius: 12px; overflow: hidden; display: grid; place-items: center; min-height: 200px; }
.pv-stage { position: relative; width: 100%; max-height: 62vh; margin: 0 auto; cursor: pointer; }
.pv-stage video, .pv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pv-stage video { transition: opacity .05s; }
.pv-stage canvas { pointer-events: none; }
.pv-pick { margin: 60px 0; }
.pv-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; }
.pv-play { min-width: 76px; }
.pv-time { color: var(--text-80); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-seek { flex: 1; accent-color: var(--text); min-width: 80px; }
.memo-new { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.memo-new input { flex: 1; min-height: 44px; padding: 0 16px; background: var(--raised); color: var(--text); border: 1px solid var(--edge); border-radius: 99px; }
.memo-at { font-weight: 600; font-variant-numeric: tabular-nums; }
.fixer .rows { list-style: none; padding: 0; margin: 8px 0 0; max-height: 420px; overflow: auto; border-top: 1px solid var(--edge); }
.fixer .rows li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--edge); }
.fixer .rows li.on { background: var(--raised); border-radius: 10px; }
.fixer .rows input { width: 100%; min-height: 38px; padding: 0 12px; background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 10px; }
.fixer .rows input:hover, .fixer .rows input:focus { border-color: var(--edge); background: var(--raised); outline: none; }
.fixer .t { background: none; border: 0; color: var(--text-55); font-variant-numeric: tabular-nums; padding: 6px 4px; text-align: left; }
.fixer .t:hover { color: var(--text); }
.fixer .cut, .fixer [data-add] { min-height: 34px; padding: 0 14px; font-size: 14px; }
.fixer .rm li { grid-template-columns: 90px 1fr auto; color: var(--text-55); }
.removed { margin-top: 14px; }
.removed summary { cursor: pointer; color: var(--text-70); font-weight: 600; }
.memo-list { list-style: none; padding: 0; margin: 0 0 12px; }
.memo-list li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--edge); }
.memo-list .x { background: none; border: 0; color: var(--text-55); }
.memo-list .x:hover { color: var(--text); }
.saved { font-size: 14px; }
@media (max-width: 640px) {
  .pv-bar { flex-wrap: wrap; }
  .pv-seek { order: 3; flex-basis: 100%; }
}

[hidden] { display: none !important; }

:root { color-scheme: dark; }

/* ---------- 편집 화면 : 셀렉츠와 같은 배치 (11-18) ----------
   [클로드] | 프로젝트·앱 | 미리보기 | 음성 기록·조정
   [클로드] | 타임라인 (아래 전체)
   색은 위 셀렉츠 값 + 포인트 #193CFF 만 */
body.ws-mode { overflow: hidden; }
.ws {
  display: grid; height: 100vh; gap: 6px; padding: 6px; background: var(--page);
  grid-template-columns: 300px 240px minmax(0, 1fr) 360px;
  grid-template-rows: 40px minmax(0, 1fr) 272px;
  grid-template-areas: "top top top top" "ai proj prev right" "ai tl tl tl";
}
.ws.in-app { grid-template-columns: 240px minmax(0, 1fr) 360px; grid-template-areas: "top top top" "proj prev right" "tl tl tl"; }
.ws-body { display: contents; }
.ws-top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 4px; min-width: 0; }
.ws-ai { grid-area: ai; }
.ws-proj { grid-area: proj; }
.ws-prev { grid-area: prev; }
.ws-right { grid-area: right; }
.ws-tl { grid-area: tl; }

.ws-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.ws-search { margin: 0 auto; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 99px; padding: 0 14px; height: 32px; width: min(420px, 36vw); color: var(--text-55); }
.ws-search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; color: var(--text); font-size: 14px; }
.ws-search input::placeholder { color: var(--text-55); }
.ws-acts { display: flex; gap: 8px; }
.main.sm, .ghost.sm { min-height: 32px; padding: 0 14px; font-size: 14px; }

.ic { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-80); padding: 0; }
.ic:hover { background: var(--raised); color: var(--text); }
.ic:disabled { opacity: .35; cursor: default; background: none; }
.ic.sm { width: 26px; height: 26px; font-size: 15px; }

.panel-c { background: var(--card); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.pc-head { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--edge); flex: none; }
.tab { border: 0; background: none; color: var(--text-55); padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--raised); color: var(--text); }
.pc-body { flex: 1; overflow: auto; padding: 6px; min-height: 0; }
.saved { margin-left: auto; font-size: 12px; color: var(--text-55); align-self: center; padding-right: 6px; }

/* 클로드 (웹) */
.ai-box { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ai-lead { color: var(--text-70); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.say { border: 1px solid var(--edge); background: var(--raised); border-radius: 12px; padding: 12px 14px; text-align: left; font-weight: 600; font-size: 15px; color: var(--text); }
.say:hover { background: var(--active); }
.ai-foot { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.link { border: 0; background: none; color: var(--text-55); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 3px; padding: 0; font-size: 14px; }
.link:hover { color: var(--text); }

/* 프로젝트 · 앱 */
.pj-group { font-size: 12px; color: var(--text-55); padding: 10px 8px 4px; font-weight: 600; }
.pj-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--text-80); text-align: left; font-size: 14px; }
.pj-row svg { flex: none; color: var(--text-55); }
.pj-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-row .du { color: var(--text-55); font-size: 12px; font-variant-numeric: tabular-nums; }
.pj-row:hover { background: var(--raised); }
.pj-row.on { background: var(--active); color: var(--text); }
.pj-row.on svg { color: #193CFF; }
.pj-empty { color: var(--text-55); font-size: 14px; padding: 8px; margin: 0; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app { border: 0; background: var(--raised); border-radius: 10px; padding: 12px; text-align: left; font-weight: 600; font-size: 14px; min-height: 60px; color: var(--text); }
.app:hover { background: var(--active); }

/* 미리보기 */
.ws-prev { background: var(--card); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.ws-prev .pv-box { flex: 1; min-height: 0; border-radius: 0; background: var(--page); container-type: size; }
.ws-prev .pv-stage { width: min(100cqw, calc(100cqh * var(--ar, 1.7778))); max-height: none; margin: auto; }
.pv-tools { display: flex; align-items: center; gap: 6px; padding: 6px 10px; flex: none; border-top: 1px solid var(--edge); }
.rate { border: 0; background: var(--raised); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; min-width: 48px; }
.rate:hover { background: var(--active); }
.tcode { font-variant-numeric: tabular-nums; color: var(--text-70); font-size: 13px; margin-left: 6px; }
.grow { flex: 1; }
.memo-new { display: flex; gap: 8px; align-items: center; padding: 0 10px 10px; flex: none; }
.memo-new .memo-at { color: #193CFF; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.memo-new input { flex: 1; min-width: 0; background: var(--well); border: 1px solid var(--edge); border-radius: 8px; padding: 7px 10px; color: var(--text); font-size: 14px; }

/* 음성 기록 */
.tr-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 8px; }
.tr-row:hover { background: var(--well); }
.tr-row.on { background: var(--raised); }
.tr-row .t { border: 0; background: none; color: var(--text-55); font-size: 12px; font-variant-numeric: tabular-nums; text-align: left; padding: 0; }
.tr-row .t:hover { color: var(--text); }
.tr-row input { border: 0; background: none; padding: 4px 6px; border-radius: 6px; color: var(--text-80); min-width: 0; font-size: 15px; width: 100%; }
.tr-row input:focus { background: var(--well); outline: 1px solid var(--active); color: var(--text); }
.tr-row .tx { color: var(--text-80); font-size: 15px; padding: 4px 6px; }
.tr-row .x { border: 0; background: none; color: var(--text-55); font-size: 12px; opacity: 0; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tr-row:hover .x, .tr-row:focus-within .x { opacity: 1; }
.tr-row .x:hover { background: var(--active); color: var(--text); }
.tr-ch { font-weight: 700; font-size: 13px; color: var(--text); padding: 14px 6px 4px; }
.tr-removed summary { color: var(--text-55); font-size: 14px; padding: 12px 6px 6px; cursor: pointer; }
.tr-row.rm .tx { text-decoration: line-through; color: var(--text-55); }
.tr-row.rm .x { opacity: 1; }
.tr-row.note .tx { color: var(--text); }
.tr-notes { border-top: 1px solid var(--edge); margin-top: 10px; }
.send-notes { margin: 10px 6px; }

/* 조정 */
.adj { display: flex; flex-direction: column; gap: 12px; padding: 6px; }
.adj label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-55); font-weight: 600; }
.adj label.row { flex-direction: row; justify-content: space-between; align-items: center; }
.adj input:not([type=checkbox]), .adj select { background: var(--well); border: 1px solid var(--edge); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 15px; font-weight: 500; min-width: 0; }
.adj input[type=checkbox] { accent-color: #193CFF; width: 18px; height: 18px; }
.adj-h { font-size: 13px; font-weight: 700; color: var(--text-70); margin-top: 6px; }
.rep-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; font-size: 14px; color: var(--text-80); }
.rep-row .x { border: 0; background: none; color: var(--text-55); font-size: 12px; }
.rep-add { display: flex; gap: 6px; }
.rep-add input { flex: 1; }
.adj-sum { font-size: 14px; color: var(--text-70); background: var(--well); border-radius: 8px; padding: 10px; }

/* 타임라인 */
.ws-tl { background: var(--card); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; overflow: hidden; }
.tl-tabs { display: flex; gap: 2px; padding: 5px 220px 5px 6px; border-bottom: 1px solid var(--edge); overflow-x: auto; flex: none; }
.tl-tab { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--text-55); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tl-tab:hover { color: var(--text); }
.tl-tab.on { background: var(--raised); color: var(--text); }
.tl-zoom { position: absolute; right: 8px; top: 5px; display: flex; gap: 2px; }
.tl-main { flex: 1; display: flex; min-height: 0; }
.tl-heads { width: 52px; flex: none; padding-top: 22px; border-right: 1px solid var(--edge); }
.tl-heads span { display: flex; align-items: center; padding-left: 10px; margin: 3px 0; font-size: 11px; font-weight: 700; color: var(--text-55); }
.tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; min-width: 0; }
.tl-inner { position: relative; min-width: 100%; height: 100%; user-select: none; }
.tl-ruler { position: relative; height: 22px; border-bottom: 1px solid var(--edge); cursor: pointer; overflow: hidden; }
.tk { position: absolute; top: 5px; font-size: 10px; color: var(--text-55); border-left: 1px solid var(--active); padding-left: 3px; height: 13px; line-height: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-lane { position: relative; margin: 3px 0; overflow: hidden; }
.tl-lane > span { position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; }
.h-ch { height: 20px; } .h-emp { height: 22px; } .h-cap { height: 24px; } .h-v { height: 54px; } .h-a { height: 26px; }
.ch { background: var(--raised); color: var(--text-80); font-size: 11px; font-weight: 600; padding: 0 6px; line-height: 20px; white-space: nowrap; border-right: 2px solid var(--card); }
.cap { background: var(--active); color: var(--text-80); font-size: 11px; line-height: 24px; padding: 0 4px; white-space: nowrap; border-right: 1px solid var(--card); cursor: pointer; }
.cap:hover { color: var(--text); }
.emp { background: #193CFF; color: #FFFFFF; font-size: 11px; font-weight: 600; line-height: 22px; padding: 0 4px; white-space: nowrap; cursor: pointer; }
.tl-lane > .sfx { top: 7px; bottom: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--text); transform: translateX(-4px); cursor: pointer; }
.clip { display: flex; background: var(--raised); border: 1px solid var(--active); border-radius: 6px; cursor: pointer; overflow: hidden; }
.clip:hover { border-color: var(--text-55); }
.clip i { flex: none; width: 92px; height: 52px; background-color: var(--page); background-repeat: no-repeat; border-right: 1px solid var(--page); }
.ws.portrait .clip i { width: 29px; }
.clip i:last-child { border-right: 0; }
.aud { background: var(--raised); border-right: 1px solid var(--card); }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #193CFF; pointer-events: none; transform: translateX(-1px); z-index: 3; }
.tl-playhead::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 10px; background: #193CFF; border-radius: 2px; }
.pin { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; background: #193CFF; border: 2px solid var(--text); border-radius: 50%; cursor: pointer; z-index: 4; }

/* 내보내기 */
.ex-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.ex-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--edge); background: var(--raised); border-radius: 12px; padding: 16px; font-weight: 600; text-align: left; color: var(--text); }
.ex-item span { color: var(--text-55); font-weight: 500; font-size: 14px; }
.ex-item:hover { background: var(--active); }
.ex-run { margin: 8px 0; }
.ex-note { font-size: 14px; color: var(--text-55); }

@media (max-width: 1100px) {
  .ws { grid-template-columns: 220px minmax(0, 1fr) 320px; grid-template-areas: "top top top" "proj prev right" "tl tl tl"; }
  .ws-ai { display: none; }
}
@media (max-width: 760px) {
  body.ws-mode { overflow: auto; }
  .ws, .ws.in-app { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 56vw auto 360px 260px; grid-template-areas: "top" "prev" "proj" "right" "tl"; }
  .ws-search { display: none; }
}

/* ---------- 처음 실행 : 셀렉츠와 같은 순서·배치 (11-18) ----------
   가운데 한 줄 기둥, 오른쪽 위 [건너뛰기], 색은 셀렉츠 값 + 포인트 #193CFF */
body.ob-mode { overflow: hidden; }
.ob { position: fixed; inset: 0; background: var(--page); display: grid; place-items: center; padding: 24px 16px; overflow: auto; }
.ob-skip { position: fixed; top: 14px; right: 16px; border: 0; background: none; color: var(--text-55); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.ob-skip:hover { color: var(--text); background: var(--card); }
.ob-c { width: 100%; display: grid; place-items: center; animation: obIn .45s ease both; }
.ob-c.out { animation: obOut .22s ease both; }
@keyframes obIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes obOut { to { opacity: 0; transform: translateY(-16px); } }

.ob-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.ob-h1 { font-size: 40px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
.ob-lead { font-size: 18px; font-weight: 500; color: var(--text-70); margin: 0 0 34px; }
.ob-go { min-width: 200px; min-height: 50px; font-size: 17px; }
.ob-hero .ob-err { margin-top: 14px; }
.ob-hero .ob-legal { margin-top: 18px; }

.ob-col { width: 100%; max-width: 504px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ob-col.narrow { max-width: 400px; gap: 14px; }
.ob-head { text-align: center; }
.ob-h2 { font-size: 26px; line-height: 1.35; font-weight: 700; margin: 0 0 6px; text-align: center; }
.ob-sub { font-size: 15px; font-weight: 500; color: var(--text-55); margin: 0; text-align: center; }
.ob-err { color: var(--text); font-weight: 600; min-height: 1.4em; margin: 0; font-size: 15px; }
.ob-legal { margin: 0; font-size: 14px; }
.ob-legal a { color: var(--text-55); text-decoration-color: var(--underline); text-underline-offset: 3px; }
.ob-login { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 10px; }
.ob-login input { min-height: 52px; padding: 0 18px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); text-align: center; }
.ob-login input::placeholder { color: var(--text-55); letter-spacing: 0; }
.ob-login input:focus { outline: none; border-color: #FFFFFF; }
.ob-login .main { min-height: 50px; }
.ob-next { min-width: 160px; }
.ob-next:disabled { opacity: .35; cursor: default; }

/* 어떻게 알게 됐는지 : 160×104 카드 6장 + 기타 한 줄 */
.ref-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.ref-card { position: relative; width: 160px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: var(--page); border: 1px solid var(--active); border-radius: 10px; color: var(--text); }
.ref-card:hover { border-color: var(--text-55); }
/* 고른 칸 = 흰 바탕 (11-18 사장님 B안) */
.ref-card.on { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark-ink); }
.ref-card.on .ref-d, .ref-card.on .ref-n { color: rgba(23, 24, 30, .6); }
.ref-card.wide { width: 100%; height: 48px; flex-direction: row; }
.ref-card b { font-size: 14px; font-weight: 600; }
.ref-d { font-size: 13px; color: var(--text-55); }
.ref-n { position: absolute; left: 12px; top: 10px; font-size: 13px; color: var(--text-55); font-variant-numeric: tabular-nums; }
.ref-card.wide .ref-n { top: 50%; transform: translateY(-50%); }
.q-in input { min-height: 40px; padding: 0 12px; background: var(--card); border: 1px solid var(--edge); border-radius: 8px; font-size: 15px; color: var(--text); }
.q-in input:focus { outline: none; border-color: #FFFFFF; }

/* 채팅에 쓸 AI */
.ai-rows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ai-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px; background: var(--page); border: 1px solid var(--active); border-radius: 10px; color: var(--text); text-align: left; }
.ai-row b { flex: 1; font-size: 15px; }
.ai-row .ai-t { font-size: 14px; color: var(--text-55); }
.ai-row .ref-n { position: static; }
.ai-row.on { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark-ink); }
.ai-row.on .ai-t, .ai-row.on .ref-n { color: rgba(23, 24, 30, .6); }
.ai-row:disabled { opacity: .45; cursor: default; }
.ob-status { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--text-70); display: flex; align-items: center; gap: 10px; }
.ghost.xs { min-height: 28px; padding: 0 12px; font-size: 13px; }

/* 어떤 영상을 만드는지 : 한 줄씩 묻고 답은 오른쪽 말풍선 */
.q-wrap { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.q-log { display: flex; flex-direction: column; gap: 8px; }
.q-past { margin: 0; font-size: 15px; color: var(--text-55); }
.q-ans { align-self: flex-end; max-width: 100%; border: 0; background: var(--raised); color: var(--text); border-radius: 10px; padding: 7px 12px; font-size: 15px; text-align: left; }
.q-ans:hover { background: var(--active); }
.q-now { display: flex; flex-direction: column; gap: 14px; min-height: 140px; }
.q-q { margin: 0; min-height: 36px; font-size: 26px; font-weight: 600; line-height: 1.4; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; animation: obIn .3s ease both; }
.q-opts[hidden] { display: none; }
.q-opt { min-height: 40px; padding: 0 16px 0 12px; font-weight: 600; }
.q-n { color: var(--text-55); font-size: 13px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.q-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; animation: obIn .3s ease both; }
.q-in .ob-err { grid-column: 1 / -1; font-size: 14px; }

/* 시작 화면 (셀렉츠 첫 화면처럼 : 큰 제목 + 영상 추가 + 프로젝트 카드) */
.start { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
.start-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 11vh 0 8vh; }
.start-h { font-size: 44px; line-height: 1.3; font-weight: 700; margin: 0 0 30px; }
.start-add { cursor: pointer; }
.start-hint { margin: 14px 0 0; font-size: 15px; color: var(--text-55); }
.start-list h2 { font-size: 15px; font-weight: 600; color: var(--text-70); margin: 0 0 12px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pj-card { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 0; text-align: left; color: var(--text); }
.pj-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; background-color: var(--card); background-repeat: no-repeat; border: 1px solid var(--edge); }
.pj-card:hover .pj-thumb { border-color: var(--text-55); }
.pj-t { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-m { font-size: 13px; color: var(--text-55); }
.drop-over { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); border: 2px dashed #193CFF; display: grid; place-items: center; z-index: 30; pointer-events: none; }
.drop-over p { font-size: 28px; font-weight: 700; margin: 0; }

@media (max-width: 560px) {
  .ob-h1 { font-size: 30px; }
  .ref-card { width: calc(50% - 6px); }
  .start-h { font-size: 32px; }
}

/* 업데이트 카드 (설치 프로그램) — 셀렉츠처럼 위 가운데, 흰 작은 버튼 */
.upd-card { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(340px, calc(100vw - 32px)); padding: 14px 16px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; animation: obIn .3s ease both; }
.upd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upd-top b { font-size: 14px; }
.upd-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-55); }
.upd-btn { border: 0; border-radius: 6px; background: var(--text); color: var(--dark-ink); font-size: 13px; font-weight: 600; padding: 5px 10px; white-space: nowrap; }
.upd-btn:hover { background: var(--text-80); }
.upd-btn:disabled { opacity: .6; cursor: default; }

/* ---------- 처음 실행 질문 : 화면에 하나씩 · 자막 카드 (11-18 확정 시안) ---------- */
.ob-back { position: fixed; top: 14px; left: 16px; border: 0; background: none; color: var(--text-55); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; z-index: 2; }
.ob-back:hover { color: var(--text); background: var(--card); }
.q-wrap.wide { max-width: 700px; }
.q-body { display: flex; flex-direction: column; gap: 12px; }
.q-body .ob-err { font-size: 14px; }
.cap-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.cap-card { width: 340px; display: flex; flex-direction: column; border: 1px solid var(--active); border-radius: 10px; overflow: hidden; background: var(--page); padding: 0; color: var(--text); text-align: left; }
.cap-card:hover { border-color: var(--text-55); }
.cap-card.on { border: 2px solid #FFFFFF; }
.cap-frame { position: relative; height: 112px; display: block; }
.cap-frame b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; color: #FFFFFF; font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 500; font-size: 20px; line-height: 1.2; }
.cap-frame b.cap-box { background: #000000; padding: .32em .6em .36em; }
.cap-frame b.cap-shadow { text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .7); }
.cap-nm { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 14px; font-weight: 600; background: #000000; color: #FFFFFF; }
.cap-card.light-label .cap-nm { background: #FFFFFF; color: var(--dark-ink); }
.cap-card.light-label .cap-nm .q-n { color: rgba(23, 24, 30, .6); }

/* ---------- 시작 화면 : 무엇을 만들까요? (셀렉츠처럼) ---------- */
.st-c { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 7vh 0 6vh; }
.st-h { font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.st-box { width: min(640px, 100%); background: var(--well); border: 1px solid var(--active); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.st-box:focus-within { border-color: var(--text-55); }
.st-files { display: flex; gap: 6px; flex-wrap: wrap; }
.st-files:empty { display: none; }
.st-file { display: inline-flex; align-items: center; gap: 6px; background: var(--raised); border-radius: 8px; padding: 4px 6px 4px 9px; font-size: 13px; color: var(--text); max-width: 100%; }
.st-file svg { color: var(--text-55); flex: none; }
.st-file button { border: 0; background: none; color: var(--text-55); font-size: 15px; padding: 0 4px; }
.st-file button:hover { color: var(--text); }
.st-ta { width: 100%; resize: none; border: 0; background: none; color: var(--text); font-size: 15px; line-height: 1.55; min-height: 66px; outline: none; }
.st-ta::placeholder { color: var(--text-55); }
.st-b { display: flex; align-items: center; gap: 8px; }
.st-plus { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-70); font-size: 20px; cursor: pointer; }
.st-plus:hover { background: var(--raised); color: var(--text); }
.st-send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--text); color: var(--dark-ink); display: grid; place-items: center; padding: 0; }
.st-send:hover { background: var(--text-80); }
.st-err { margin: 0; min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--text); }
.st-kinds { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.st-kind { border: 1px solid var(--active); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--page); }
.st-kind:hover { border-color: var(--text-55); }
.st-kind.on { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark-ink); }
.st-sec { width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.st-h2 { font-size: 13px; font-weight: 600; color: var(--text-55); }
.st-h2.sub { margin-top: 4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { border: 1px solid var(--active); border-radius: 10px; padding: 6px 10px; font-size: 13px; color: var(--text-80); background: var(--page); text-align: left; }
.st-chip:hover { border-color: var(--text-55); color: var(--text); }
.st-chip.on { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark-ink); }
.st-link { width: 100%; border: 1px solid var(--active); border-radius: 10px; padding: 8px 11px; font-size: 14px; color: var(--text); background: var(--well); outline: none; }
.st-link:focus { border-color: var(--text-55); }
.pj-row.static { cursor: default; }
.pj-row.static:hover { background: none; }

/* ---------- 처음 실행 질문 : 여러 개 고르기 (11-18 사장님 B안 : 시작 화면과 같은 칩) ---------- */
.q-multi { display: flex; flex-direction: column; gap: 14px; animation: obIn .3s ease both; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { border: 1px solid var(--active); border-radius: 10px; padding: 8px 13px; font-size: 15px; color: var(--text-80); background: var(--page); text-align: left; }
.q-chip:hover { border-color: var(--text-55); color: var(--text); }
.q-chip.on { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark-ink); }
.q-next { align-self: flex-start; min-width: 140px; }
/* 질문 화면은 한 번에 보이게 — 단추가 올라오는 움직임 없음 (11-18 사장님) */
.q-opts, .q-in, .q-multi, .cap-cards { animation: none; }
/* 고른 답 단추 (참고 영상 [네] → 아래 링크 칸) — 셀렉츠 B안 : 흰 바탕 검은 글씨 */
.q-opt.on { background: #FFFFFF; color: var(--dark-ink); }
.q-opt.on .q-n { color: rgba(23, 24, 30, .6); }
.q-body .q-in { margin-top: 4px; }
/* 편집 프로그램으로 보내기 (셀렉츠 핸드오프처럼, 11-18) */
.ex-sub { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text-55); }
.handoff-done { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.handoff-done p { margin: 0; color: var(--text-80); }
.handoff-done .main { align-self: flex-start; }
/* 줌 : 미리보기 영상이 화면 밖으로 넘치지 않게 */
.pv-stage { overflow: hidden; }

/* 올리기 칸 : 제목 · 설명 · 태그 · 예약 · 썸네일 (11-18) */
.up-form { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; max-width: 680px; }
.up-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-55); font-weight: 600; }
.up-form label.up-check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--text-80); font-weight: 500; }
.up-form input:not([type=checkbox]):not([type=range]), .up-form select, .up-form textarea { background: var(--well); border: 1px solid var(--edge); border-radius: 8px; padding: 9px 11px; color: var(--text); font-size: 15px; font-weight: 500; min-width: 0; }
.up-form input:focus, .up-form select:focus, .up-form textarea:focus { outline: none; border-color: #FFFFFF33; }
.up-form textarea { resize: vertical; line-height: 1.5; }
.up-form input[type=checkbox] { accent-color: #193CFF; width: 18px; height: 18px; margin: 0; }
.up-form input[type=datetime-local] { color-scheme: dark; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.th { display: flex; flex-direction: column; gap: 6px; }
.th-l { font-size: 13px; color: var(--text-55); font-weight: 600; }
.th-body { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.th-box { width: 192px; aspect-ratio: 16 / 9; flex: none; background: var(--well); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--text-55); font-size: 14px; }
.th-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 12px; }
.th-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.th input[type=range] { width: 100%; accent-color: #193CFF; }
.up-warn { color: var(--text-80); list-style: none; margin-left: -20px; }
.up-grid [data-at-wrap] { grid-column: span 2; }
/* 배경 음악 줄 (말할 때 줄어드는 곳은 아래쪽 띠만) */
.bgm { background: #193CFF33; border-radius: 4px; overflow: hidden; }
.bgm b { position: relative; z-index: 1; display: block; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 26px; color: var(--text-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm i { position: absolute; top: 0; height: 55%; background: var(--card); opacity: .55; }

/* 채널 연결 창 (11-18) */
.ch-sheet { max-width: 520px; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.ch-row b { width: 92px; flex: none; font-weight: 700; }
.ch-row span { flex: 1; min-width: 0; color: var(--text-80); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-auto { margin: 18px 0 0; }
.ch-h { margin: 0; font-weight: 700; color: var(--text); }

/* 타임라인 직접 편집 (11-18) : 고른 조각 · 양 끝 손잡이 */
.clip.sel { border-color: #FFFFFF; }
.tl-lane > .ksel { border: 2px solid #FFFFFF; border-radius: 6px; background: transparent; cursor: grab; overflow: visible; z-index: 2; }
.tl-lane > .ksel.moving { cursor: grabbing; background: rgba(255,255,255,.12); }
.kh { position: absolute; top: 0; bottom: 0; width: 8px; background: #FFFFFF; cursor: ew-resize; }
.kh.l { left: -2px; border-radius: 4px 0 0 4px; }
.kh.r { right: -2px; border-radius: 0 4px 4px 0; }
.tl-lane > .emp, .tl-lane > .sfx { cursor: grab; }
.tl-zoom { align-items: center; gap: 4px; }
.tl-zoom .ghost.sm { min-height: 26px; padding: 0 10px; font-size: 13px; }
.tl-zoom.noedit [data-tl] { display: none; }

/* 여러 카메라 (11-18) : 조각 위 카메라 번호 · 고른 조각 카메라 */
.clip { position: absolute; }
.camtag { position: absolute; left: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: #000000CC; color: #FFFFFF; font-style: normal; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.tl-cam { min-height: 26px; padding: 0 8px; background: var(--raised); color: var(--text); border: 1px solid var(--edge); border-radius: 99px; font-size: 13px; }
