@import url(/molds.css);
/* 멀티 AI 공통 스타일 */
@font-face { font-family: Pretendard; font-weight: 500; src: url(/fonts/Pretendard-Medium.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Pretendard; font-weight: 700; src: url(/fonts/Pretendard-Bold.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Pretendard; font-weight: 800; src: url(/fonts/Pretendard-ExtraBold.woff2) format('woff2'); font-display: swap; }
/* 색은 회색 바탕 + 포인트 색 하나(코발트 블루, 2026-11-20 사용자 퍼스널 컬러에 맞춰 주황에서 바꿈. 값은 아래 --acc 계열에만). 빛 번짐·그라데이션 글씨·유리 흐림·결은 쓰지 않는다(AI 티 가이드).
   카드는 테두리로만 구분하고 그림자는 떠 있는 것(팝업·메뉴·알림)에만 쓴다. */
:root {
  color-scheme: dark;
  --bg: #121212; --panel: #1a1a1a; --panel2: #232323; --line: #2c2c2c; --line2: #3b3b3b;
  --text: #ececec; --muted: #9b9b9b; --soft: #c9c9c9; --acc: #5181f0; --acc2: #9ebafa; --acc-rgb: 81,129,240; --acc-hi: #6791f4; --on-acc: #0a101f; --acc-deep: #1f49ad;
  --blue: #4aa8ff; --green: #3ccf87; --red: #ff6464; --yellow: #f6c120;
  --field: #0f0f0f;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #3b3b3b transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: Pretendard, "Malgun Gothic", "맑은 고딕", system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.5; word-break: keep-all; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(var(--acc-rgb),.4); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }   /* 아래 규칙의 display 가 hidden 을 이겨서 숨긴 것이 보이던 일(시키기 미리보기 칸) 방지 */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.field:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible { outline: none; }
.ic { vertical-align: -3px; flex-shrink: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .sp { flex: 1; }

header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
header.top .brand { display: flex; align-items: center; gap: 9px; font-size: 16px; }
header.top .brand .bmk { width: 24px; height: 24px; border-radius: 6px; display: block; }
header.top .brand b { font-weight: 800; }
header.top nav { display: flex; gap: 2px; }
header.top nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
header.top nav a:hover { color: var(--text); background: var(--panel2); }
header.top nav a.on { color: var(--text); background: var(--panel2); font-weight: 700; }
header.top .crumb { color: var(--muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 14px; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.btn:hover { background: #2b2b2b; border-color: #4b4b4b; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 700; }
.btn.primary:hover { background: var(--acc-hi); border-color: var(--acc-hi); }
.btn.small { padding: 4px 10px; font-size: 12.5px; border-radius: 6px; }
.btn.big { padding: 11px 20px; font-size: 15.5px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.field, select { width: 100%; background: var(--field); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 12px; outline: none; transition: border-color .12s; }
.field:focus, select:focus { border-color: var(--acc); }
.field::placeholder, textarea::placeholder { color: #7d7d7d; }
select option { background: var(--panel); }
textarea.field { resize: vertical; line-height: 1.55; }
label.lb { display: block; color: var(--muted); font-size: 12.5px; margin: 12px 0 5px; }
.seg { display: inline-flex; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: transparent; border: 0; border-radius: 6px; padding: 5px 12px; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel2); color: var(--text); font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--acc); }

/* 팝업 · 알림 (dialog.js) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.modal .card { width: 100%; max-width: 440px; }
.dlg { z-index: 30; animation: dlgFade .14s ease-out; }
.dlg .card { max-width: 480px; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 20px; background: #1f1f1f; border: 0; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: dlgUp .2s cubic-bezier(.16,1,.3,1); }
.dlg .dlg-title { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.dlg .dlg-ic { display: inline-flex; color: var(--acc); }
.dlg .dlg-ic.danger { color: var(--red); }
.dlg .dlg-body { color: var(--soft); white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; }
.dlg textarea.field { min-height: 120px; }
.dlg .dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.field.shake { border-color: var(--red); animation: dlgShake .3s; }
@keyframes dlgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dlgShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); background: #f2f2f2; color: #111; font-weight: 700; padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.16,1,.3,1); z-index: 40; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--red); color: #fff; }
.toast.act { display: flex; align-items: center; gap: 14px; } .toast.act.show { pointer-events: auto; }
.toast-act { background: transparent; border: 0; padding: 0; color: var(--acc-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* 이용권: 머리줄의 체험 남은 날·쿠폰 칩, 잠긴 화면, 잠김 창 (common.js) */
.tierchip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--soft); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tierchip.trial { border-color: rgba(var(--acc-rgb),.55); color: var(--acc2); }
.tierchip:hover { border-color: var(--acc); color: var(--text); }
.lockpage { max-width: 560px; margin: 0 auto; padding: 12vh 20px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lockpage .lp-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); color: var(--acc); }
.lockpage h1 { font-size: 24px; } .lockpage p { color: var(--soft); line-height: 1.7; margin: 0; }
.lockdlg .lock-btns .btn { flex: 1; }
.hb-lock { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #161616; border: 1px solid var(--line2); color: var(--soft); font-size: 12px; font-weight: 700; }

/* 홈: 큰 입력칸 하나 + 도구 목록(줄로 나눈 목록, 카드 격자 아님) */
.home { max-width: 1040px; margin: 0 auto; padding: 48px 24px 90px; }
.hero { margin-bottom: 52px; }
.home h1 { font-size: 30px; line-height: 1.3; }
.home .lead { color: var(--soft); margin: 10px 0 22px; font-size: 15px; line-height: 1.7; max-width: 640px; }
.home-ask { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 12px 10px; transition: border-color .12s; }
.home-ask:focus-within { border-color: var(--acc); }
.home-ask textarea { width: 100%; background: transparent; border: 0; outline: none; resize: none; font-size: 16px; line-height: 1.6; padding: 4px 6px; }
.qchips { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; margin-top: 12px; font-size: 13px; }
.qchips > span { color: var(--muted); }
.qchips button { background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.qchips button:hover { color: var(--text); text-decoration-color: var(--acc); }
.shelf h2 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; }
.shelf h2 small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.grp { margin-top: 40px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px 10px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: left; transition: border-color .12s, background-color .12s; }
a.tool:hover, button.tool:hover { border-color: #555; }
.tool .ti { grid-column: 1; grid-row: 1; display: flex; align-items: center; height: 22px; color: var(--acc); }
.tool h3 { grid-column: 2; grid-row: 1; font-size: 15.5px; line-height: 22px; display: flex; align-items: center; gap: 8px; }
.tool .go { grid-column: 3; grid-row: 1; color: var(--line2); display: flex; align-items: center; }
a.tool:hover .go { color: var(--acc); }
.tool p { grid-column: 2 / 4; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tool .need { grid-column: 2 / 4; font-size: 12px; color: var(--soft); display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tools.rows { grid-template-columns: 1fr 1fr; gap: 0 36px; }
.tools.rows .tool { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 6px 18px; }
.tools.rows a.tool:hover, .tools.rows button.tool:hover { background: var(--panel); border-color: var(--line); }
.soonline { margin-top: 2px; padding: 12px 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.soonline b { color: var(--soft); font-weight: 700; margin-right: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--soft); }
.tag.on { color: var(--green); border-color: rgba(60,207,135,.4); } .tag.soon { color: var(--muted); }
.tag.new { color: var(--acc2); border-color: rgba(var(--acc-rgb),.55); font-size: 11.5px; font-weight: 700; padding: 0 7px; }
.tool.soon { opacity: .5; }
@media (max-width: 760px) {
  .home { padding: 28px 16px 70px; } .home h1 { font-size: 24px; } .home .lead { font-size: 14.5px; } .hero { margin-bottom: 36px; }
  .home-ask .rowb .seg { width: 100%; overflow-x: auto; scrollbar-width: none; } .home-ask .rowb .seg button { flex-shrink: 0; } .home-ask .rowb .btn { width: 100%; }
  .tools.rows { grid-template-columns: 1fr; }
}

/* 영상 넣기 */
.drop { max-width: 760px; margin: 48px auto; padding: 0 20px; }
.dropzone { border: 2px dashed var(--line2); border-radius: 18px; padding: 54px 24px; text-align: center; background: var(--panel); transition: .15s; }
.dropzone.over { border-color: var(--acc); background: rgba(var(--acc-rgb),.06); }
.dropzone h2 { font-size: 22px; margin: 14px 0 6px; } .dropzone p { color: var(--muted); margin: 0 0 20px; }
.dropzone .big-ic { color: var(--acc); }
.kinds { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.notes { margin: 18px 4px 0; color: var(--muted); font-size: 13px; line-height: 1.7; padding-left: 18px; }
.recent { margin-top: 26px; } .recent h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.recent .row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--panel); color: var(--soft); font-size: 13px; }

/* 진행 */
.steps { max-width: 560px; margin: 60px auto; padding: 0 20px; }
.steps h2 { font-size: 20px; margin-bottom: 4px; } .steps .file { color: var(--muted); margin-bottom: 22px; overflow-wrap: anywhere; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.step.on .dot { border-color: var(--acc); color: var(--acc); } .step.done .dot { border-color: var(--green); background: var(--green); color: #111; }
.step .nm { flex: 1; } .step.on .nm { font-weight: 700; }
.step .pc { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.bar { height: 4px; background: var(--panel2); border-radius: 2px; overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.errbox { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,92,92,.5); background: rgba(255,92,92,.08); border-radius: 10px; color: #ffc9c9; line-height: 1.6; }

/* 작업 화면 */
.work { display: grid; grid-template-columns: 330px minmax(300px, 1fr) 400px; height: calc(100vh - 56px); }
.work > section { min-height: 0; display: flex; flex-direction: column; }
.col-l { border-right: 1px solid var(--line); } .col-r { border-left: 1px solid var(--line); }
.col-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col-h h2 { font-size: 15px; }
.scroll { overflow: auto; flex: 1; min-height: 0; }
.cand { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cand:hover { background: var(--panel); } .cand.on { background: var(--panel2); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb),.55); }
.cand .t1 { font-weight: 700; } .cand .t1 .y { color: var(--yellow); }
.cand .meta { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; align-items: center; }
.cand .hook { color: var(--soft); font-size: 12.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.score { color: var(--green); font-weight: 700; } .warnc { color: var(--acc2); }
.empty { padding: 26px 18px; color: var(--muted); line-height: 1.7; }
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: #0c0c0c; }
.stage canvas { max-width: 100%; max-height: 100%; border-radius: 10px; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.transport { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.transport .now { font-variant-numeric: tabular-nums; color: var(--soft); min-width: 96px; }
.track { flex: 1; height: 8px; background: var(--panel2); border-radius: 4px; position: relative; cursor: pointer; } .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acc); border-radius: 4px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 11px 6px; color: var(--muted); }
.tabs button.on { color: var(--text); border-bottom-color: var(--acc); font-weight: 700; }
.tabs button:not(.on):hover { color: var(--soft); }
.pane { padding: 14px; }
.chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.chip { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; line-height: 1.4; }
.chip:hover { border-color: var(--acc); } .chip .y { color: var(--yellow); }
.ln { display: flex; gap: 8px; padding: 6px 12px 6px 8px; border-bottom: 1px solid rgba(255,255,255,.04); align-items: flex-start; }
.ln .tm { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 44px; padding-top: 2px; cursor: pointer; }
.ln .tm:hover { color: var(--acc); }
.ln .tx { flex: 1; line-height: 1.75; }
.ln.out { opacity: .38; } .ln.cut .tx { text-decoration: line-through; color: var(--muted); }
.tg { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); padding: 1px 7px; font-size: 12px; white-space: nowrap; }
.tg:hover { border-color: var(--acc); color: var(--text); }
.w { cursor: pointer; border-radius: 3px; padding: 0 1px; } .w:hover { background: rgba(var(--acc-rgb),.25); }
.w.off { text-decoration: line-through; color: var(--muted); } .w.off[data-r=retake] { color: #b08cff; } .w.off[data-r=filler], .w.off[data-r=stutter] { color: #6fb7ff; } .w.off[data-r=user] { color: var(--red); }
.edge { display: flex; gap: 6px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.cardrow { display: flex; gap: 8px; align-items: center; padding: 5px 12px; }
.cardrow .tm { color: var(--muted); font-size: 12px; min-width: 40px; font-variant-numeric: tabular-nums; cursor: pointer; }
.cardrow input { flex: 1; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; outline: none; }
.cardrow input:focus { border-color: var(--acc); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.legend b { font-weight: 500; text-decoration: line-through; }
.prog { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 25; display: flex; align-items: center; justify-content: center; padding: 16px; }
.prog .card { width: 100%; max-width: 460px; } .prog h2 { font-size: 18px; margin-bottom: 4px; } .prog .big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 10px 0 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 12px; color: var(--soft); font-size: 13px; } .kv span:nth-child(odd) { color: var(--muted); }
.set { max-width: 680px; margin: 0 auto; padding: 30px 20px 60px; } .set h1 { font-size: 22px; margin-bottom: 18px; }
.set section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; } .set h2 { font-size: 16px; margin-bottom: 6px; } .set p { color: var(--muted); margin: 0 0 6px; font-size: 13px; line-height: 1.65; }
.rowb { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 1100px) { .work { grid-template-columns: 1fr; height: auto; } .work > section { min-height: 60vh; } header.top .crumb { display: none; } }
/* 휴대폰 쇼츠: 세로 미리보기가 두 화면 길이가 되지 않게 화면 절반 높이로, 칸마다 필요한 만큼만 */
@media (max-width: 760px) {
  .work > section { min-height: 0; }
  .work .col-c { scroll-margin-top: 56px; }   /* 후보를 누르면 미리보기로 내려갈 때 위 머리줄에 가리지 않게 */
  .work .col-l #cands { max-height: 46vh; }
  .work .stage { flex: none; height: 54vh; height: 54dvh; padding: 10px; }
  .work .stage canvas { height: 100%; width: auto; }
  .work .transport { position: sticky; bottom: 0; z-index: 3; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .work .col-r #pane { min-height: 40vh; }
  .work .col-l .col-h { flex-wrap: wrap; } .work .col-l .col-h #bAsk { flex: 1 1 100% !important; }
}

/* 시키기(작업창) */
.ask { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100vh - 56px); }   /* minmax(0,…): 긴 줄(갈래 버튼)이 화면을 넓혀 휴대폰이 통째로 축소되던 일 방지 */
.ask > section { min-width: 0; }
.ask.split { grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr); }
.ask-main { display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 900px; margin: 0 auto; }
.ask.split .ask-main { max-width: none; }
.ask-top { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ask #log { padding: 18px 16px; }
.ask-empty { text-align: center; padding: 8vh 10px 0; } .ask-empty h2 { font-size: 22px; margin-bottom: 6px; } .ask-empty .chip { text-align: center; }
.msg { display: flex; flex-direction: column; margin-bottom: 18px; } .msg.me { align-items: flex-end; }
.bub { max-width: 100%; line-height: 1.75; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 9px 14px; max-width: 85%; }
.msg.ai .bub p { margin: 0 0 10px; } .msg.ai .bub h3, .msg.ai .bub h4, .msg.ai .bub h5 { margin: 16px 0 6px; font-size: 15.5px; } .msg.ai .bub h3 { font-size: 17px; color: var(--acc2); }
.msg.ai .bub ul, .msg.ai .bub ol { margin: 0 0 10px; padding-left: 22px; } .msg.ai .bub li { margin: 2px 0; } .msg.ai .bub hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.msg.ai .bub code { background: var(--panel2); border-radius: 4px; padding: 1px 5px; font-family: Consolas, monospace; font-size: 13px; }
.msg.ai .bub a { color: var(--acc2); text-decoration: underline; }
.tbl { overflow: auto; margin: 0 0 10px; } .tbl table { border-collapse: collapse; font-size: 13.5px; } .tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; } .tbl th { background: var(--panel2); white-space: nowrap; }
.code { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 10px; background: var(--field); }
.code-h { display: flex; gap: 6px; align-items: center; padding: 6px 8px 6px 12px; background: var(--panel2); color: var(--muted); font-size: 12.5px; }
.code pre { margin: 0; padding: 12px; max-height: 260px; overflow: auto; font: 12.5px/1.55 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.acts { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 12.5px; flex-wrap: wrap; }
img.gen { max-width: 380px; width: 100%; border-radius: 10px; cursor: pointer; display: block; }
.composer { padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.chipsrow { display: flex; gap: 6px; flex-wrap: wrap; } .chipsrow:not(:empty) { margin-bottom: 8px; }
.xbtn { background: transparent; border: 0; color: var(--muted); padding: 0 0 0 2px; display: inline-flex; } .xbtn:hover { color: var(--red); }
.ask-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pv { flex: 1; min-height: 0; background: #262626; display: flex; justify-content: center; overflow: auto; }
.pv iframe { border: 0; height: 100%; background: #fff; } .pv img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }
@media (max-width: 1000px) { .ask.split { grid-template-columns: 1fr; height: auto; } .ask-side { height: 80vh; border-left: 0; border-top: 1px solid var(--line); } .ask-main { height: calc(100vh - 56px); } }
/* 휴대폰: 메신저처럼 입력 칸은 화면 맨 아래에 붙고, 미리보기는 볼 것이 생길 때만 화면 전체로 뜬다 */
@media (max-width: 760px) {
  .ask, .ask-main { height: calc(100vh - 56px); height: calc(100dvh - 56px); }
  .ask-top { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .ask-top .seg { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; } .ask-top .seg::-webkit-scrollbar { display: none; }
  .ask-top .seg button { flex-shrink: 0; }
  .ask-top .sp, .ask-top #engine { display: none; }
  .ask-top #engine.freecnt { display: inline-flex; flex-shrink: 0; white-space: nowrap; font-size: 11.5px; }   /* 무료 회원은 남은 횟수를 휴대폰에서도 보여 준다 */
  .ask #log { padding: 14px 12px; }
  .ask-empty { padding: 3vh 4px 0; } .ask-empty h2 { font-size: 19px; }
  .composer { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .composer .kbd-hint { display: none; }
  .msg.me .bub { max-width: 92%; }
  .ask-side { position: fixed; inset: 0; z-index: 26; height: auto !important; border: 0 !important; background: var(--bg); }
  .ask-side .col-h { padding: 8px 8px 8px 14px; } .ask-side #pvX { width: 44px; height: 44px; }
}
@media (pointer: coarse) { .composer .kbd-hint { display: none; } }

/* SNS 마케팅 › 스레드 자동화 */
.th { max-width: 1060px; margin: 0 auto; padding: 18px 20px 90px; }
.av { --h: 20; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; font-weight: 800; color: #111; background: hsl(var(--h) 70% 72%); }
.warnc { color: var(--acc2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.lnk { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; cursor: pointer; } .lnk:hover { color: var(--text); }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: thSpin .8s linear infinite; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.spin.dark { border-color: rgba(0,0,0,.25); border-top-color: #111; } .spin.big { width: 26px; height: 26px; border-width: 3px; }
@keyframes thSpin { to { transform: rotate(360deg); } }
.tchip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--soft); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tchip:hover { border-color: var(--line2); color: var(--text); } .tchip.on { border-color: var(--acc); color: var(--acc2); background: rgba(var(--acc-rgb),.08); }
.field.mini { width: auto; padding: 5px 8px; }
.tag.bad { color: var(--red); border-color: rgba(255,92,92,.45); } .tag.warn { color: var(--acc2); border-color: rgba(var(--acc-rgb),.45); }
.btn.danger { color: var(--red); }

/* 계정 고르기 */
.th-accs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.th-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; color: var(--soft); }
.th-chip:hover { border-color: var(--line2); } .th-chip.on { border-color: var(--acc); color: var(--text); font-weight: 700; }
.th-chip.add { padding: 4px 12px; color: var(--muted); border-style: dashed; }
.th-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); } .th-chip .dot.ok { background: var(--green); } .th-chip .dot.bad { background: var(--red); }

/* 머리 + 이번 주 시간표 */
.th-top { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.th-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px; }
.th-who { min-width: 0; } .th-who h1 { font-size: 19px; line-height: 1.3; } .th-who .muted { font-size: 13px; margin-top: 2px; }
.th-conn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.th-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(52,199,123,.45); background: rgba(52,199,123,.08); color: var(--green); }
.th-pill:hover { background: rgba(52,199,123,.14); }
.board { border-top: 1px solid var(--line); padding: 12px 18px 14px; }
.bh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .bh > .ic { color: var(--acc); } .bh b { font-size: 14px; } .bh .muted { font-size: 12.5px; margin-left: 4px; }
.bg { display: grid; gap: 5px; }
.bd { text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.25; padding-bottom: 2px; } .bd b { display: block; color: var(--soft); font-size: 12.5px; } .bd.today b { color: var(--acc); }
.bt { font-size: 12px; color: var(--muted); display: flex; align-items: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.bc { min-height: 48px; min-width: 0; border-radius: 9px; border: 1px solid transparent; background: transparent; padding: 6px 7px; font-size: 11.5px; line-height: 1.38; text-align: left; display: flex; align-items: flex-start; gap: 4px; overflow: hidden; color: var(--soft); position: relative; }
.bc > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bc .bdot { display: none; }
.bc.past { background: rgba(255,255,255,.018); } .bc.void { background: transparent; }
.bc.free { border: 1px dashed var(--line2); color: var(--line2); align-items: center; justify-content: center; transition: .12s; }
.bc.free:hover { border-color: var(--acc); color: var(--acc); background: rgba(var(--acc-rgb),.07); }
.bc.free.next { border-color: rgba(var(--acc-rgb),.65); color: var(--acc2); gap: 3px; } .bc.free.next span { font-size: 11px; font-weight: 700; }
.bc.scheduled { background: rgba(var(--acc-rgb),.13); border-color: rgba(var(--acc-rgb),.42); }
.bc.publishing { background: rgba(62,166,255,.12); border-color: rgba(62,166,255,.45); }
.bc.published { background: rgba(52,199,123,.09); border-color: rgba(52,199,123,.32); color: var(--muted); } .bc.published .ic { color: var(--green); margin-top: 1px; }
.bc.failed { background: rgba(255,92,92,.1); border-color: rgba(255,92,92,.45); } .bc.failed .ic { color: var(--red); margin-top: 1px; }
.bc.scheduled:hover, .bc.published:hover, .bc.failed:hover, .bc.publishing:hover { border-color: var(--soft); }
.bc em { position: absolute; right: 5px; bottom: 3px; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--acc2); }
.flash { animation: thFlash 1.4s cubic-bezier(.16,1,.3,1); }   /* 방금 넣은 칸: 배경만 잠깐 밝혔다가 제 색으로 */
@keyframes thFlash { from { background-color: rgba(var(--acc-rgb),.42); } }
.bhint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 시작하기 (처음 계정만) */
.th-setup { margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.th-setup .su-h { display: flex; flex-direction: column; min-width: 64px; } .th-setup .su-h .muted { font-size: 12px; }
.th-setup ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.th-setup li { flex: 1; min-width: 180px; }
.th-setup li button { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; text-align: left; }
.th-setup li button:hover { border-color: var(--line2); }
.th-setup .n { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.th-setup .tx { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; } .th-setup small { color: var(--muted); font-size: 11.5px; }
.th-setup .go { color: var(--acc); display: inline-flex; }
.th-setup li.done .n { background: var(--green); border-color: var(--green); color: #111; } .th-setup li.done b { color: var(--muted); }
.th-setup li.cur button { border-color: var(--acc); background: rgba(var(--acc-rgb),.06); } .th-setup li.cur .n { border-color: var(--acc); color: var(--acc); }

/* 탭 */
.th-tabs { margin-top: 12px; position: sticky; top: 56px; background: var(--bg); z-index: 5; }
.th-tabs .num { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--panel2); color: var(--soft); font-size: 11.5px; align-items: center; justify-content: center; font-weight: 700; }
.th-tabs .num.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; background: var(--acc); vertical-align: 2px; }
.th-pane { padding-top: 16px; }
.th-pane .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 1px dashed var(--line2); border-radius: 14px; margin: 12px 0; } .th-pane .empty > .ic { color: var(--acc); }

/* 글 만들기 */
.mk { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.mk-target { display: flex; align-items: center; gap: 10px; background: rgba(var(--acc-rgb),.1); border: 1px solid rgba(var(--acc-rgb),.4); color: var(--acc2); border-radius: 10px; padding: 8px 10px 8px 12px; margin-bottom: 14px; font-size: 13px; } .mk-target span { flex: 1; color: var(--soft); } .mk-target b { color: var(--acc2); }
.mk-q { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mk-in { display: flex; gap: 8px; } .mk-in .field { flex: 1; min-width: 0; } .mk-in .btn { min-width: 168px; }
.field.big { font-size: 15.5px; padding: 11px 13px; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mk-opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.gen-msg { display: flex; align-items: center; gap: 10px; margin: 18px 2px 0; color: var(--soft); font-size: 13px; }
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.pick-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; } .pick-bar > div { display: flex; flex-direction: column; gap: 1px; } .pick-bar .muted { font-size: 12.5px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; transition: border-color .15s; display: flex; flex-direction: column; min-width: 0; }
.post:focus-within { border-color: var(--line2); } .post.busy { opacity: .75; }
.post-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; } .post-t b { font-size: 15px; } .post-t .why { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.chain { display: flex; flex-direction: column; }
.cpart { display: flex; gap: 11px; }
.crail { display: flex; flex-direction: column; align-items: center; width: 30px; flex-shrink: 0; } .crail i { flex: 1; width: 2px; background: var(--line2); margin: 6px 0 2px; border-radius: 1px; min-height: 14px; }
.cbody { flex: 1; min-width: 0; padding-bottom: 12px; }
.cmeta { display: flex; gap: 8px; align-items: center; font-size: 13px; min-height: 22px; } .cnt { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; } .cnt.bad { color: var(--red); font-weight: 700; }
.ctext { display: block; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin-left: -6px; line-height: 1.65; font-size: 14.5px; resize: none; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
textarea.ctext { cursor: text; } textarea.ctext:hover { border-color: var(--line); } textarea.ctext:focus { border-color: var(--acc); background: var(--field); }
textarea.ctext::selection { background: rgba(var(--acc-rgb),.45); }
.addpart { align-self: flex-start; margin-left: 41px; background: transparent; border: 0; color: var(--muted); font-size: 12.5px; padding: 0 0 8px; } .addpart:hover { color: var(--acc); }
.post .warn { color: var(--acc2); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; } .post .warn:not(:empty), .qrow .warn:not(:empty) { margin: 0 0 10px 41px; }
.qrow .warn { color: var(--acc2); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.post .errbox, .qrow .errbox { margin: 0 0 10px 41px; font-size: 13px; padding: 10px 12px; }
.pick { border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.split { display: flex; } .split .go { flex: 1; border-radius: 9px 0 0 9px; padding: 10px 12px; font-size: 14px; } .split .more { border-radius: 0 9px 9px 0; padding: 10px 9px; border-left-color: rgba(0,0,0,.28); }
.split .btn.fix { background: rgba(var(--acc-rgb),.08); color: var(--acc2); border-color: rgba(var(--acc-rgb),.5); } .split .more.fix { border-left-color: rgba(var(--acc-rgb),.3); }
.pick-sub { display: flex; justify-content: center; gap: 22px; } .pick-sub .lnk { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; } .pick-sub .lnk:hover { color: var(--acc2); }
.busy-msg { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.post.skel, .post.live { min-height: 230px; gap: 12px; }
.sk-row { display: flex; gap: 11px; } .sk-row > div { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sk-av { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); flex-shrink: 0; }
.sk-l { height: 11px; border-radius: 6px; background: var(--panel2); animation: thSk 1.4s ease-in-out infinite alternate; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes thSk { to { background-color: #2e2e2e; } }
@media (prefers-reduced-motion: reduce) { .sk-l, .spin { animation-duration: 3s; } .flash { animation: none; } }

/* 올릴 글 */
.q-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; } .q-note b { color: var(--soft); }
h2.sec { font-size: 15px; margin: 24px 0 8px; display: flex; gap: 8px; align-items: baseline; } h2.sec .muted { font-size: 12.5px; font-weight: 500; }
h3.day { font-size: 12.5px; color: var(--acc2); margin: 14px 0 6px; }
.qrow { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 8px; overflow: hidden; transition: border-color .15s; }
.qrow.open { border-color: var(--line2); }
.qh { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; } .qh:hover { background: var(--panel2); }
.qt { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--acc2); min-width: 50px; }
.qx { flex: 1; min-width: 0; } .q1 { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; } .q2 { font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
.chev { color: var(--muted); display: inline-flex; transition: transform .15s; } .qrow.open .chev { transform: rotate(180deg); }
.qb { padding: 14px 14px 12px; border-top: 1px solid var(--line); }
.qb .acts { border-top: 1px solid var(--line); padding-top: 10px; }

/* 올린 글 */
.done-list { display: flex; flex-direction: column; gap: 8px; }
article.done { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.done-t { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; } .done-t .ok { color: var(--green); display: inline-flex; }
.done-x { line-height: 1.65; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* 페르소나 */
.pf { display: flex; flex-direction: column; gap: 12px; }
.pf .lb { font-weight: 700; color: var(--soft); margin-top: 12px; } .pf .help { color: var(--muted); font-size: 12.5px; margin: 0 0 6px; line-height: 1.55; } .fld .help { margin-top: -2px; }
.pf-fresh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(52,199,123,.4); background: rgba(52,199,123,.07); } .pf-fresh > div { display: flex; flex-direction: column; } .pf-fresh .muted { font-size: 12.5px; }
.okc { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #111; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-ai { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; }
.pf-ai summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; } .pf-ai summary::-webkit-details-marker { display: none; } .pf-ai summary .ic { color: var(--acc); }
.pf-ai[open] summary { margin-bottom: 10px; } .pf-ai .rowb { margin-top: 8px; }
.pf-sec { border-top: 1px solid var(--line); padding: 26px 0 8px; }   /* 묶음은 상자 대신 선과 여백으로 나눈다 */
.pf-sec h2 { font-size: 16px; }
.pf-sec > .help { margin: 6px 0 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .pf-grid > div { min-width: 0; }
.pf-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pf-save { position: sticky; bottom: 14px; z-index: 6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: var(--panel2); border: 1px solid var(--acc); border-radius: 10px; color: var(--acc2); font-size: 13px; } .pf-save > span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.pf-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; } .pf-wait p { margin: 0 0 8px; max-width: 520px; } .pf-wait .sk-l { width: 100%; max-width: 520px; }

/* 작은 창 · 메뉴 */
.th-sd .lb2 { font-weight: 700; font-size: 13.5px; margin-top: 2px; } .th-sd .lb2 .muted { font-weight: 500; font-size: 12px; }
.th-sd .help { color: var(--muted); font-size: 12.5px; margin: -4px 0 0; line-height: 1.55; } .th-sd .help.warnc { color: var(--acc2); }
.slots { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .slots .tag { font-size: 13.5px; padding: 3px 6px 3px 11px; font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.sp-item { display: flex; flex-wrap: wrap; gap: 4px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .sp-item:hover { border-color: var(--acc); }
.sp-x { width: 100%; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; line-height: 1.5; }
.th-menu { position: fixed; z-index: 35; background: #262626; border-radius: 10px; padding: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.55); display: flex; flex-direction: column; min-width: 190px; animation: dlgFade .1s ease-out; }
.th-menu button { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-radius: 7px; padding: 9px 11px; text-align: left; white-space: nowrap; } .th-menu button:hover { background: var(--panel); } .th-menu .danger { color: var(--red); }
.th-cn .guide { font-size: 13px; color: var(--soft); } .th-cn .guide summary { cursor: pointer; color: var(--muted); } .th-cn .guide ol { padding-left: 20px; margin: 8px 0 0; line-height: 1.7; } .th-cn .guide a { color: var(--acc2); text-decoration: underline; }
.th-cn .btn.big { width: 100%; }

/* 첫 화면 */
.th-welcome { max-width: 860px; margin: 0 auto; padding: 6vh 0 0; }
.th-welcome h1 { font-size: 28px; line-height: 1.35; }
.th-welcome .lead { color: var(--soft); font-size: 15px; line-height: 1.7; margin: 8px 0 0; }
.tw-box { margin-top: 22px; padding: 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; transition: border-color .12s; } .tw-box:focus-within { border-color: var(--acc); }
.tw-box.shake { animation: dlgShake .3s; border-color: var(--red); }
.tw-box textarea { width: 100%; background: transparent; border: 0; outline: none; resize: none; font-size: 16px; line-height: 1.6; padding: 4px 6px 10px; }
.tw-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .tw-row > .muted { font-size: 12.5px; margin: 0 2px 0 4px; }
/* 순서가 실제로 의미 있는 3단계라 번호를 둔다. 상자 대신 위쪽 선 */
.th-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.th-steps li { border-top: 2px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.th-steps li:first-child { border-top-color: var(--acc); }
.th-steps b { font-size: 14.5px; } .th-steps b i { font-style: normal; color: var(--acc); margin-right: 8px; font-variant-numeric: tabular-nums; }
.th-steps span { color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
  .th { padding: 12px 14px 90px; }
  .th-head { flex-wrap: wrap; padding: 14px 14px 12px; gap: 10px; } .th-head .sp { display: none; } .th-who { flex: 1; min-width: 0; }
  .th-conn { width: 100%; justify-content: flex-start; } .th-conn .btn { flex: 1; }
  .board { padding: 10px 10px 12px; --bt: 38px; } .bg { gap: 3px; } .bt { font-size: 11px; }
  .bc { min-height: 36px; padding: 0; align-items: center; justify-content: center; } .bc > span, .bc.free.next span { display: none; }
  .bc .bdot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); } .bc em { right: 2px; bottom: 1px; font-size: 9.5px; }
  .th-setup { gap: 8px; } .th-setup li { min-width: 100%; }
  .th-tabs button { font-size: 13px; padding: 10px 2px; }
  .mk { padding: 14px; } .mk-in { flex-direction: column; } .mk-in .btn { width: 100%; }
  .drafts { grid-template-columns: 1fr; }
  .post { padding: 14px 12px 10px; } .post .warn:not(:empty), .post .errbox, .qrow .warn:not(:empty), .qrow .errbox { margin-left: 0; }
  .qh { flex-wrap: wrap; gap: 8px 10px; padding: 12px; } .qm { max-width: none; justify-content: flex-start; } .qh > .btn { order: 9; width: 100%; } .qb { padding: 12px; }
  .pf-grid, .th-steps { grid-template-columns: 1fr; } .th-steps { gap: 16px; }
  .th-welcome { padding-top: 4vh; } .th-welcome h1 { font-size: 22px; } .tw-row .btn.big { width: 100%; margin-top: 6px; }
}
/* ── 휴대폰(폭 760 이하) ──
   위: 로고 · 지금 갈래 이름 · 회원가입(로그인 전) · 메뉴 버튼. 메뉴는 아래에서 올라오는 판(엄지로 누르기 쉬운 52px 줄, 계정도 여기).
   팝업은 아래에서 올라오는 판, 누르는 것은 40px 이상, 입력 칸 글자는 16px(아이폰이 입력할 때 확대하지 않게) */
header.top .mtitle, .mnav-btn { display: none; }
header.top nav { flex-shrink: 0; } header.top nav a { white-space: nowrap; }
/* 갈래 8개로 메뉴가 길어져서(11/22): 중간 폭은 메뉴 간격을 줄이고 이름표를 숨기고, 더 좁으면 휴대폰처럼 메뉴 버튼으로 접는다 */
@media (min-width: 761px) and (max-width: 1100px) {
  header.top { gap: 12px; }
  header.top nav a { padding: 6px 8px; }
  header.top .acct span.tag { display: none; }
}
@media (min-width: 761px) and (max-width: 960px) {
  header.top .brand b, header.top nav { display: none; }
  header.top .mtitle { display: block; flex: 1; min-width: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mnav-btn { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; border-radius: 10px; color: var(--text); }
}
@media (max-width: 760px) {
  header.top { gap: 8px; padding: 0 4px 0 14px; }
  header.top .brand b, header.top nav { display: none; }
  header.top .mtitle { display: block; flex: 1; min-width: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  header.top .acct { flex-shrink: 0; display: flex; gap: 6px; }
  header.top .acct .tag, header.top #bIn, header.top #bOut, header.top #bWorks { display: none; }
  header.top .acct .btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .mnav-btn { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; border-radius: 10px; color: var(--text); -webkit-tap-highlight-color: transparent; }
  .mnav-btn:active { background: var(--panel2); }

  .modal { align-items: flex-end; padding: 0; }
  .modal .card, .dlg .card { max-width: none !important; width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; overflow: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheetUp .3s cubic-bezier(.16,1,.3,1); }
  .dlg .dlg-btns .btn { flex: 1; min-height: 46px; font-size: 15px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100vw - 28px); }
}
@media (max-width: 760px), (pointer: coarse) {
  .btn { min-height: 40px; -webkit-tap-highlight-color: transparent; }
  .btn.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
  .seg button { padding: 8px 14px; min-height: 38px; }
  .lnk { padding: 8px 0; }
  .field, select, textarea, input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input:not([type]) { font-size: 16px !important; }
  .th-chip, .th-pill { min-height: 40px; } .tchip { min-height: 38px; } .chip { min-height: 40px; } .field.mini { min-height: 38px; }
  header.top .brand { padding: 8px; margin-left: -8px; }
  .bt, .bd { font-size: 12px; }
}
@keyframes sheetUp { from { transform: translateY(36px); opacity: .5; } to { transform: none; opacity: 1; } }
.msheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; background: rgba(0,0,0,0); transition: background-color .26s; }
.msheet-wrap.open { background: rgba(0,0,0,.62); }
.msheet { width: 100%; max-height: 88vh; overflow: auto; background: #1d1d1d; border-radius: 20px 20px 0 0; padding: 4px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.5); transform: translateY(100%); transition: transform .3s cubic-bezier(.16,1,.3,1); overscroll-behavior: contain; }
.msheet-wrap.open .msheet { transform: none; }
.msheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #4a4a4a; margin: 8px auto 10px; }
.msheet-nav { display: flex; flex-direction: column; gap: 2px; }
.msheet-nav a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: 12px; color: var(--soft); font-size: 16px; font-weight: 700; -webkit-tap-highlight-color: transparent; }
.msheet-nav a span { flex: 1; }
.msheet-nav a > .ic:last-child { color: #555; }
.msheet-nav a.on { background: var(--panel2); color: var(--text); } .msheet-nav a.on > .ic:first-child { color: var(--acc); }
.msheet-nav a:active { background: #2a2a2a; }
.msheet-acct { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 14px 4px 2px; border-top: 1px solid var(--line); }
.msheet-acct .btn { flex: 1; min-height: 48px; font-size: 15px; }
.msheet-me { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 8px 4px; color: var(--soft); }

/* 무료 엔진 결과 안내 (쇼츠 후보·롱폼 구성안) */
.engnote { padding: 10px 14px; font-size: 12.5px; line-height: 1.6; color: var(--soft); background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; margin: 10px 12px; }
.side .engnote { margin: 0 0 14px; }
.engnote .lnk { color: var(--acc2); font-size: 12.5px; }
.set table.eng { width: 100%; font-size: 13px; } .set table.eng th, .set table.eng td { border: 0; border-top: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; line-height: 1.55; }
/* 휴대폰: 세 칸 표 대신 항목마다 '무료 엔진 / 클로드 키' 두 줄로 쌓는다(settings.html 칸의 data-l 이름표) */
@media (max-width: 560px) {
  .set table.eng thead { display: none; }
  .set table.eng, .set table.eng tbody, .set table.eng tr, .set table.eng th, .set table.eng td { display: block; width: auto !important; }
  .set table.eng tr { border-top: 1px solid var(--line); padding: 10px 0 8px; }
  .set table.eng th, .set table.eng td { border: 0 !important; padding: 2px 0 !important; }
  .set table.eng tbody th { font-size: 14px; margin-bottom: 4px; }
  .set table.eng td::before { content: attr(data-l); display: inline-block; min-width: 64px; margin-right: 8px; color: var(--soft); font-weight: 700; font-size: 12px; }
  .set { padding: 20px 14px 50px; } .set section { padding: 16px; }
}
.set table.eng thead th { border-top: 0; background: none; color: var(--muted); font-weight: 700; } .set table.eng tbody th { color: var(--soft); white-space: normal; width: 30%; background: none; } .set table.eng td { color: var(--muted); }

/* ── 화면 사이 원 효과 (common.js leaveTo · <head> 의 짧은 글 · hub.js) ──
   색 없이: 지금 화면은 어두워지고, 누른 자리부터 원이 커지며 그 안에 다음 화면이 나온다. 위 메뉴 줄은 그대로 있다.
   크롬·웨일·엣지·새 사파리는 브라우저의 페이지 전환 기능으로(앞 화면이 원 바깥에 남는다), 나머지는 아래 가림막으로. */
@view-transition { navigation: auto; }
header.top { view-transition-name: site-top; }
::view-transition-group(site-top), ::view-transition-old(site-top), ::view-transition-new(site-top) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@property --rr { syntax: '<length>'; inherits: true; initial-value: 0px; }
html.rv::after { content: ''; position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: 9000; pointer-events: none; background: #070707;
  -webkit-mask: radial-gradient(circle at var(--rx) calc(var(--ry) - 56px), transparent var(--rr), #000 calc(var(--rr) + .5px));
  mask: radial-gradient(circle at var(--rx) calc(var(--ry) - 56px), transparent var(--rr), #000 calc(var(--rr) + .5px)); }
html.rv.go { animation: rvOpen .76s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes rvOpen { 0% { --rr: 0px; } 100% { --rr: var(--rmax); } }
.rv-cover { position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: 9000; background: #070707; pointer-events: none; }

/* ── 홈: 큰 갈래 타일 (hub.js, 시안 B) ── */
.hb-view { min-height: calc(100vh - 56px); background: var(--bg); }
.hb-view.moving { position: fixed; top: 56px; left: 0; right: var(--sbw, 0px); bottom: 0; overflow-y: auto; overflow-x: hidden; z-index: 8; scrollbar-width: none; }
.hb-view.moving::-webkit-scrollbar { display: none; }
/* 원 효과 동안 뒤 화면을 어둡게 하는 검은 막. 큰 화면에 밝기 필터를 걸면 그래픽 카드가 다 못 그린 곳이 하얗게 비어 보여서
   (사용자 웨일, [← 홈] 때) 필터 대신 이 막의 투명도만 바꾼다. 앞 화면(z 8) 아래, 뒤 화면 위 */
.hb-dim { position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: 7; background: #000; opacity: 0; pointer-events: none; }
.hb-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 28px 120px; }
.hb-hero h1 { font-size: 36px; line-height: 1.25; }
.hb-hero p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.hb-grid { display: grid; gap: 20px; margin-top: 40px; }
.hb-grid.g5 { grid-template-columns: repeat(6, 1fr); }
.hb-grid.g5 > :nth-child(-n+3) { grid-column: span 2; }
.hb-grid.g5 > :nth-child(n+4) { grid-column: span 3; }
/* 홈 갈래 8개(2026-11-22): 4개씩 두 줄로 PC 한 화면에 다 보이게(사용자: "스크롤 해야 아래가 보여").
   그림 높이는 화면 높이에 맞춰 줄고(위 머리줄·제목·글자 칸을 뺀 나머지의 절반), 글자 칸은 짧게(sd 한두 줄).
   '말로 시키기' 칸은 제목 옆으로 올렸다. 폭 1000px 아래는 2개씩, 860px 아래는 1개씩(아래 휴대폰 규칙) */
.hb-top { display: flex; align-items: flex-end; gap: 32px; }
.hb-top .hb-hero { flex: 1; min-width: 0; }
.hb-top .hb-ask { flex-shrink: 0; margin-top: 0; }
.hb-grid.cats { grid-template-columns: repeat(4, 1fr); }
.hb-grid.cats .hb-d .nw { white-space: nowrap; }   /* 도구 이름 중간에서 줄이 끊기지 않게, '·' 다음에서만 줄바꿈 */
/* PC(폭 1000px 이상): 화면 크기에 맞춰 통째로 커진다(사용자: "화면 크기에 맞게, 너무 작아" — 큰 모니터에서 1200px 고정이라 작았다).
   --u = 1440×900 화면에서 1px. 더 큰 화면이면 폭·높이 중 덜 늘어난 쪽만큼 키운다(최대 1.7배). 글자·여백·칸이 모두 --u 의 배수.
   홈은 화면 높이(머리줄 뺀 만큼)에 딱 맞는 상자이고, 갈래 두 줄이 남은 높이를 반씩 나눠 가진다. 글자 칸을 뺀 나머지는 전부 그림 자리 */
@media (min-width: 1000px) {
  .hb-home { --u: clamp(1px, min(100vw / 1440, 100vh / 900), 1.7px); max-width: clamp(1200px, 84vw, 2400px); padding: calc(32 * var(--u)) 28px calc(32 * var(--u));
    display: flex; flex-direction: column; height: calc(100vh - 56px); }
  .hb-home .hb-grid.cats { flex: 1 1 0; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .hb-grid.cats .hb-tile { min-height: 0; }
  .hb-grid.cats .hb-art { flex: 1 1 0; height: auto; min-height: 0; position: relative; }
  .hb-grid.cats .hb-art svg { position: absolute; inset: 0; }
  .hb-home .hb-hero h1 { font-size: calc(36 * var(--u)); }
  .hb-home .hb-hero p { font-size: calc(16 * var(--u)); margin-top: calc(10 * var(--u)); }
  .hb-top .hb-ask { width: calc(420 * var(--u)); padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(20 * var(--u)); border-radius: calc(16 * var(--u)); }
  .hb-top .hb-ask input { font-size: calc(15.5 * var(--u)); padding: calc(10 * var(--u)) 0; }
  .hb-top .hb-ask button { font-size: calc(15 * var(--u)); padding: calc(11 * var(--u)) calc(20 * var(--u)); border-radius: calc(11 * var(--u)); }
  .hb-grid.cats { gap: calc(16 * var(--u)); margin-top: calc(24 * var(--u)); }
  .hb-grid.cats .hb-tile { border-radius: calc(18 * var(--u)); }
  .hb-grid.cats .hb-tx { gap: calc(10 * var(--u)); padding: calc(15 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)); }
  .hb-grid.cats .hb-tile h2 { font-size: calc(21 * var(--u)); }
  .hb-grid.cats .hb-d { font-size: calc(13.5 * var(--u)); line-height: 1.5; margin-top: calc(4 * var(--u)); text-wrap: balance; }
  .hb-grid.cats .hb-meta { font-size: calc(12 * var(--u)); margin-top: calc(6 * var(--u)); }
  .hb-grid.cats .hb-go { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
  .hb-grid.cats .hb-go svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
  .hb-grid.cats .hb-soon, .hb-grid.cats .hb-lock { font-size: calc(12 * var(--u)); }
}
/* 낮은 화면(노트북 1366×768 등): 설명 줄을 빼고 제목을 줄여 그림 자리를 번다 */
@media (min-width: 1000px) and (max-height: 720px) {
  .hb-home { padding-top: 22px; }
  .hb-home .hb-hero h1 { font-size: 30px; } .hb-home .hb-hero p { display: none; }
  .hb-grid.cats { margin-top: 18px; }
}
/* 아주 낮은 화면: 그림이 너무 작아지면 화면 맞춤을 풀고 그림 높이를 지켜 스크롤하게 둔다 */
@media (min-width: 1000px) and (max-height: 600px) {
  .hb-home { height: auto; } .hb-home .hb-grid.cats { flex: none; grid-template-rows: none; }
  .hb-grid.cats .hb-art { flex: none; height: 96px; }
}
@media (min-width: 1000px) and (max-width: 1200px) { .hb-top .hb-ask { width: 360px; }
  /* '앱 개발 및 출시 자동화'(가장 긴 이름)가 좁은 노트북에서 두 줄로 넘어가지 않게 폭 따라 살짝 줄임 */
  .hb-grid.cats .hb-tile h2 { font-size: clamp(16px, 1.7vw, 21px); } }
@media (max-width: 999px) {
  .hb-home { padding-top: 32px; }
  .hb-top { flex-direction: column; align-items: stretch; gap: 18px; } .hb-top .hb-ask { width: auto; }
  .hb-grid.cats { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; } .hb-grid.cats .hb-art { height: 180px; }
  .hb-grid.cats .hb-tx { gap: 10px; padding: 15px 16px 16px; } .hb-grid.cats .hb-tile h2 { font-size: 21px; }
  .hb-grid.cats .hb-d { font-size: 13.5px; line-height: 1.5; margin-top: 4px; } .hb-grid.cats .hb-meta { margin-top: 6px; font-size: 12px; }
}
.hb-grid.sub { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-top: 36px; }
.hb-tile { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--text);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, background-color .3s; -webkit-tap-highlight-color: transparent; }
.hb-tile:not(.soon):hover { transform: translateY(-7px); border-color: #444; background: #1d1d1d; }
.hb-tile:not(.soon):active { transform: translateY(-2px) scale(.985); transition-duration: .18s; }
.hb-art { height: 270px; background: #161616; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hb-grid.g5 > :nth-child(-n+3) .hb-art { height: 240px; }
.hb-grid.sub .hb-art { height: 210px; }
.hb-art svg { width: 100%; height: 100%; display: block; }
.hb-tx { display: flex; align-items: flex-end; gap: 16px; padding: 22px 24px 24px; }
.hb-tx > div { flex: 1; min-width: 0; }
.hb-tile h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.hb-grid.sub .hb-tile h2 { font-size: 20px; }
.hb-d { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 6px 0 0; }
.hb-meta { color: #777; font-size: 12.5px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.hb-go { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--soft); transition: background-color .3s, border-color .3s, color .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hb-tile:not(.soon):hover .hb-go { background: var(--acc); border-color: var(--acc); color: var(--on-acc); transform: translateX(2px); }
/* 원이 열린 직후: 가만히 있는 마우스 밑에 새 타일이 오면 '올림' 모양(밝은 테두리·떠오름)이 저절로 켜져 테두리처럼 보인다.
   마우스를 실제로 움직이기 전까지는 올림 모양을 끈다(hub.js hb-still) */
.hb-still .hb-tile:not(.soon):hover { transform: none; border-color: var(--line); background: var(--panel); }
.hb-still .hb-tile:not(.soon):hover .hb-go { background: none; border-color: var(--line2); color: var(--soft); transform: none; }
.hb-tile.soon { cursor: default; }
.hb-tile.soon .hb-art, .hb-tile.soon .hb-tx > div { opacity: .42; }
.hb-tile.soon .hb-go { display: none; }
.hb-soon { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #232323; color: var(--soft); border: 1px solid var(--line2); }
.hb-wrap.enter .hb-tile { animation: hbIn .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
@keyframes hbIn { from { opacity: 0; transform: translateY(18px); } }
.hb-ask { display: flex; gap: 10px; align-items: center; margin-top: 28px; padding: 8px 8px 8px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.hb-ask:focus-within { border-color: var(--acc); }
.hb-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15.5px; padding: 10px 0; }
.hb-ask input::placeholder { color: #7d7d7d; }
.hb-ask button { background: var(--acc); color: var(--on-acc); border: 0; border-radius: 11px; padding: 11px 20px; font-weight: 800; }
.hb-ask button:hover { background: var(--acc-hi); }
.hb-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px 7px 10px; color: var(--soft); font-size: 14px; transition: border-color .2s, color .2s; }
.hb-back:hover { border-color: #555; color: var(--text); }
.hb-cathead { margin-top: 28px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hb-cathead h1 { font-size: 44px; letter-spacing: -.03em; line-height: 1.15; }
.hb-cathead p { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 640px; line-height: 1.65; }
.hb-count { margin-left: auto; color: #777; font-size: 13.5px; font-variant-numeric: tabular-nums; }
/* 타일 그림: 쉬는 모습 = 다 그려진 모습, .hb-play = 처음부터 다시 그림
   - 움직임은 기준점이 필요 없는 것만: 나타나기(opacity)·옮기기(translate)·선 그리기(stroke-dashoffset).
     키우기(scale)·돌리기(rotate)는 기준점에 기대므로 쓰지 않는다.
     자라는 막대는 arts.js 가 굵은 선(.ha-draw)으로 그리고, 기울기는 SVG transform 속성으로 그린다.
   - 채우기는 backwards: 끝나면 아무것도 붙잡지 않고 쉬는 모습으로 돌아간다
   - 클래스 이름은 꼭 ha- 를 붙인다. 브라우저 확장 프로그램이 모든 사이트에 넣는 CSS가 흔한 이름을 건드린다
     (실제 사례 2026-11-21: 'Vimeo Downloader 및 ChatGPT 비디오 요약' 확장이 .pop 에 translate(-50%,-50%)를 넣어 조각이 반 칸씩 밀림) */
.hb-art .ha-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hb-art .ha-gone { opacity: 0; }
.hb-art .ha-scroll { transform: translateY(var(--y, -60px)); }
.hb-art .ha-sweep { transform: translateX(var(--x, 0px)); }
.hb-play .hb-art .ha-draw { animation: aDraw var(--t, .5s) cubic-bezier(.65, 0, .35, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-pop { animation: aPop .55s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-fade { animation: aFade .5s ease-out var(--d, 0s) backwards; }
.hb-play .hb-art .ha-drop { animation: aDrop .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-slide { animation: aSlide var(--t, .6s) cubic-bezier(.65, 0, .35, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-gone { animation: aGone var(--t, .45s) cubic-bezier(.65, 0, .35, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-fan { animation: aFan .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) backwards; }
.hb-play .hb-art .ha-scroll { animation: aScroll var(--t, 1.6s) cubic-bezier(.65, 0, .35, 1) var(--d, .3s) backwards; }
.hb-play .hb-art .ha-sweep { animation: aSweep var(--t, 1.5s) cubic-bezier(.45, 0, .55, 1) var(--d, 0s) backwards; }
@keyframes aDraw { from { stroke-dashoffset: 1; } }
@keyframes aPop { from { opacity: 0; transform: translateY(10px); } }
@keyframes aFade { from { opacity: 0; } }
@keyframes aDrop { from { opacity: 0; transform: translateY(var(--y, -40px)); } }
@keyframes aSlide { from { transform: translateX(var(--x, 40px)); } }
@keyframes aGone { from { opacity: 1; } to { opacity: 0; } }
@keyframes aFan { from { opacity: 0; transform: translateY(18px); } }
@keyframes aScroll { from { transform: translateY(0); } }
@keyframes aSweep { from { transform: translateX(0); } }
@media (max-width: 860px) {
  .hb-wrap { padding: 28px 16px 100px; }
  .hb-hero h1 { font-size: 27px; } .hb-hero p { font-size: 14.5px; }
  .hb-grid.g5, .hb-grid.cats, .hb-grid.sub { grid-template-columns: 1fr; } .hb-grid.g5 > *, .hb-grid.cats > * { grid-column: auto !important; }
  .hb-art, .hb-grid.g5 > :nth-child(-n+3) .hb-art, .hb-grid.cats .hb-art { height: 210px; } .hb-grid.sub .hb-art { height: 180px; }
  .hb-tile h2 { font-size: 22px; } .hb-tx { padding: 18px 18px 20px; }
  .hb-cathead h1 { font-size: 32px; } .hb-count { margin-left: 0; }
}
/* 타일 바운스·그림 움직임·원 효과는 브라우저가 '움직임 줄이기'를 알려도 그대로 둔다(사용자 결정, 2026-11-20).
   사용자의 웨일이 윈도 애니메이션이 켜져 있는데도 '줄이기'를 알려 와서 원 효과가 통째로 빠졌었다. */

/* ── 관리자 화면 (/admin, js/admin.js) ── 한눈에 · 회원 · 쿠폰 · 설정 */
.adm2 { max-width: 1120px; margin: 0 auto; padding: 24px 20px 80px; }
.adm2-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .adm2-top h1 { font-size: 22px; margin-right: auto; }
.adm2-load { display: grid; place-items: center; padding: 80px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.st { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.st b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; } .st span { color: var(--soft); font-size: 13px; } .st em { font-style: normal; color: var(--muted); font-size: 12px; }
.adm2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; min-width: 0; }
.box h2 { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; } .box h2 .muted { font-size: 12px; font-weight: 500; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--soft); }
.bar-row i { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .bar-row i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--acc); border-radius: 4px; }
.bar-row b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.kv-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; } .kv-row:first-of-type { border-top: 0; }
.kv-row code, .cp code, .urow code { font-family: Consolas, monospace; font-size: 12.5px; } .kv-row b { margin-left: auto; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adm2-tools { margin-top: 16px; }
.adm2-bulk { position: sticky; top: 64px; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--acc); border-radius: 10px; }
.ulist { margin-top: 10px; border-top: 1px solid var(--line); }
.urow { display: grid; grid-template-columns: 28px minmax(0, 2.4fr) 1.4fr 1fr .8fr .7fr; gap: 10px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.urow:hover { background: var(--panel); } .urow.uhead { cursor: default; color: var(--muted); font-size: 12.5px; } .urow.uhead:hover { background: none; }
.urow input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acc); }
.u-who { display: flex; flex-direction: column; min-width: 0; } .u-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .u-memo { color: var(--acc2); font-size: 12px; }
.tag.bad { color: var(--red); border-color: rgba(255,92,92,.45); }
.ud-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .btn.danger { color: var(--red); }
.cp-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin-bottom: 12px; }
.cp-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; } .cp-form .seg { align-self: flex-start; }
.cplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.cp { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.cp-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cp-h code { font-size: 15px; font-weight: 700; color: var(--text); }
.cp-uses { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
label.sw { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.6; } label.sw input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--acc); }
@media (max-width: 760px) {
  .adm2 { padding: 16px 14px 60px; } .adm2-grid, .cp-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; } .st b { font-size: 22px; }
  .adm2-top .seg { width: 100%; overflow-x: auto; } .adm2-top .seg button { flex: 1; }
  .urow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "c w t" "c m m"; row-gap: 4px; }
  .urow > input { grid-area: c; } .urow .u-who { grid-area: w; } .urow > span:nth-of-type(2) { grid-area: t; }
  .urow > span:nth-of-type(n+3) { display: none; } .urow.uhead > span:nth-of-type(n+2) { display: none; }
  .adm2-bulk { top: 60px; }
  .bar-row { grid-template-columns: 70px 1fr auto; }
}

/* ── 기획 자동화 (/plan, js/plan.js): 오늘 뜨는 주제 · 터진 콘텐츠 분해 · 기획안 점수 ── */
.pl { max-width: 1040px; margin: 0 auto; padding: 26px 20px 90px; }
.pl-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .pl-top h1 { font-size: 24px; margin-right: auto; }
.pl-tabs button { display: inline-flex; gap: 6px; align-items: center; }
.pl-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 12px; min-width: 0; }
.pl-box h2 { font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pl-box h2 .muted { font-size: 12.5px; font-weight: 500; }
.pl-box h3 { font-size: 14px; color: var(--soft); margin: 18px 0 8px; } .pl-box h3:first-child { margin-top: 4px; }
.pl-biz .field { flex: 1; min-width: 220px; }
.pl-busy { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 10px; color: var(--soft); text-align: center; }
.pl-src { color: var(--muted); font-size: 12.5px; margin: 4px 2px 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-res { margin-top: 4px; } .pl-eng { font-size: 12px; margin: 6px 2px 0; }
.pl-sum { font-size: 15.5px; line-height: 1.7; margin: 0 2px 12px; color: var(--text); }
.pl-h2 { font-size: 17px; margin: 22px 2px 10px; }
.pl-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-ul { margin: 0; padding-left: 20px; color: var(--soft); line-height: 1.75; }
.pl blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--acc); background: var(--field); border-radius: 0 8px 8px 0; color: var(--text); line-height: 1.65; }
.tr-list { display: flex; flex-direction: column; }
.tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 2px; border-top: 1px solid var(--line); } .tr:first-child { border-top: 0; }
.tr.dim { opacity: .55; } .tr-n { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 800; padding-top: 2px; }
.tr-kw { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tr-kw b { font-size: 15.5px; } .tr-kw .muted { font-size: 12.5px; }
.tr-why { color: var(--soft); font-size: 13.5px; margin-top: 3px; }
.tr-news { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; } .tr-news a { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tr-news a:hover { color: var(--text); }
.tr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .spk { display: block; }
.fit { display: inline-flex; gap: 3px; } .fit i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; } .fit i.on { background: var(--acc); }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.yt { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .yt img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.yt b { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .yt .muted { font-size: 12px; }
.pk { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; } .pk:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pk-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; } .pk-h b { font-size: 15.5px; } .pk-h .muted { font-size: 13px; }
.ag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); }
.ag-main b { display: block; line-height: 1.55; } .ag-main .muted { font-size: 13px; line-height: 1.6; margin-top: 2px; }
.ag-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: b; }
.beats li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; } .beats li .tag { justify-self: start; } .beats li .muted { font-size: 13px; margin-top: 2px; }
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mv { display: flex; flex-direction: column; gap: 8px; margin: 0; } .mv-t { font-size: 15.5px; }
.mv details summary { cursor: pointer; color: var(--acc2); font-size: 13px; } .mv-s { line-height: 1.8; color: var(--soft); margin-top: 8px; white-space: normal; }
.mv .rowb { margin-top: auto; }
.pl-intake .drop, .pl-intake .steps { margin: 12px 0 0; }
.sc-head { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; }
.sc-total b { font-size: 54px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; } .sc-total span { color: var(--muted); margin-left: 4px; }
.sc-grade { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 800; border: 2px solid var(--line2); }
.sc-grade.g-S, .sc-grade.g-A { border-color: var(--acc); color: var(--acc2); } .sc-grade.g-D { border-color: var(--red); color: var(--red); }
.sc-head p { margin: 0; line-height: 1.7; }
.sc-it { padding: 12px 0; border-top: 1px solid var(--line); } .sc-it:first-of-type { border-top: 0; padding-top: 0; }
.sc-row { display: grid; grid-template-columns: 96px 1fr 64px; gap: 12px; align-items: center; margin-bottom: 6px; }
.sc-bar { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--acc); border-radius: 4px; }
.sc-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-it .soft { font-size: 13.5px; line-height: 1.65; } .sc-fix { color: var(--acc2); font-size: 13.5px; margin-top: 6px; line-height: 1.6; }
@media (max-width: 760px) {
  .pl { padding: 16px 14px 70px; } .pl-top h1 { font-size: 21px; } .pl-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; } .pl-tabs button { flex-shrink: 0; }
  .pl-box { padding: 14px; } .pl-2 { grid-template-columns: 1fr; }
  .pl-biz .btn { width: 100%; }
  .tr-news a { display: flex; align-items: center; min-height: 40px; padding: 0; } .tr-news { gap: 0; }
  .tr { grid-template-columns: 22px minmax(0, 1fr); } .tr-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .ag { grid-template-columns: 1fr; } .ag > .tag { justify-self: start; } .ag-acts { justify-content: flex-start; }
  .beats li { grid-template-columns: 1fr; gap: 4px; }
  .sc-head { grid-template-columns: auto auto; } .sc-head p { grid-column: 1 / -1; } .sc-total b { font-size: 44px; }
  .sc-row { grid-template-columns: 84px 1fr 54px; }
}

/* ── 카드뉴스 만들기 (/cards, js/cards.js) ── */
.cd { max-width: 1120px; margin: 0 auto; padding: 26px 20px 90px; }
.cd-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .cd-top h1 { font-size: 24px; }
.cd-opts, .cd-style { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: flex-end; }
.cd-opts { margin: 12px 0 4px; } .cd-opts label, .cd-style label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; } .cd-opts label:first-child { flex: 1; min-width: 220px; }
.sw5 { display: flex; gap: 8px; } .sw5 button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line2); cursor: pointer; } .sw5 button.on { border-color: var(--bg); outline: 2px solid var(--text); }
/* 2판(2026-11-21): 한 세트·여러 세트 · 사진 · AI 작업 연출 · 디자인 화면 */
.cd-mode { margin-bottom: 12px; } .cd-src { margin-bottom: 10px; }
.cd-in textarea { resize: vertical; }
.cd-style { margin-top: 12px; }
.cd-go { margin-top: 16px; gap: 14px; flex-wrap: wrap; align-items: center; }
.cd-chk { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); font-size: 13.5px; cursor: pointer; min-height: 36px; } .cd-chk input { width: 18px; height: 18px; accent-color: var(--acc); }
.cd-hint { font-size: 12.5px; }
.cd-trl { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 2px; }
.cd-trh { font-size: 12.5px; margin: 2px 0 8px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; background: var(--field); border: 1px solid var(--line2); border-radius: 18px; color: var(--soft); }
.cd-chips button em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cd-chips button.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .14); color: var(--text); font-weight: 700; }
.ce-tpl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 260px; }
.ce-tpl button { min-height: 36px; padding: 6px 8px; background: var(--field); border: 1px solid var(--line2); border-radius: 8px; color: var(--soft); white-space: nowrap; }
.ce-tpl button.on { border-color: var(--acc); color: var(--text); font-weight: 700; background: rgba(var(--acc-rgb), .12); }
.sw5 { flex-wrap: wrap; }
/* 목록: 세트마다 한 줄 */
#cBoard { position: relative; }
.cb { margin-top: 18px; }
.cb-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 2px 12px; } .cb-top b { font-size: 16px; } .cb-top .muted { font-size: 13px; }
.cb-sets { display: flex; flex-direction: column; gap: 12px; }
.cb-set { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; transition: border-color .3s; }
.cb-set.ok { border-color: rgba(var(--acc-rgb), .45); }
.cb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cb-tag { background: var(--acc); color: var(--on-acc); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.cb-title { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.cb-st { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cb-st.done { color: var(--green); } .cb-st.error { color: var(--red); }
.cb-warn { color: var(--yellow); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.cb-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cb-thb { flex: 0 0 auto; padding: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.cb-th { display: block; width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #1e1e1e; }
.cb.one .cb-th { width: 240px; }
.cb-th.sk { animation: cbSk 1.1s ease-in-out infinite alternate; }
@keyframes cbSk { from { background: #1c1c1c; } to { background: #262626; } }
.cb-thb:hover .cb-th, .cb-thb:focus-visible .cb-th { border-color: var(--acc); }
/* AI 작업 연출: 이름표 커서 */
.cs-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.cs-cur { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; transition: transform .62s cubic-bezier(.6, 0, .3, 1), opacity .3s; opacity: .0; will-change: transform; }
.cs-cur.on { opacity: 1; }
.cs-cur span { margin-top: 16px; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid rgba(255,255,255,.25); }
.cs-tap { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c); animation: csTap .6s ease-out forwards; }
@keyframes csTap { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.6; } }
/* 디자인 화면 */
.ce { max-width: 1400px; margin: 0 auto; padding: 14px 16px 60px; }
.ce-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ce-name { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.ce-main { display: grid; grid-template-columns: 140px minmax(0, 1fr) 320px; grid-template-areas: 'pages center props'; gap: 16px; align-items: start; }
.ce-center { grid-area: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.ce-stage { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.ce-stage canvas { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); cursor: default; }
.ce-sel { position: absolute; border: 2px solid var(--acc); border-radius: 2px; pointer-events: none; }
.ce-sel.img { border-style: dashed; } .ce-sel.img .ce-h { display: none; }
.ce-h { position: absolute; right: -9px; bottom: -9px; width: 16px; height: 16px; background: #fff; border: 2px solid var(--acc); border-radius: 3px; pointer-events: auto; cursor: nwse-resize; }
.ce-tip { font-size: 12px; text-align: center; }
.ce-pages { grid-area: pages; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 2px; }
.ce-pg { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.ce-pg canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
.ce-pg span { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.ce-pg.on { border-color: var(--acc); }
.ce-pgact { display: flex; flex-wrap: wrap; gap: 5px; } .ce-pgact .btn { flex: 1 1 auto; }
.ce-props { grid-area: props; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ce-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ce-sec-h { display: flex; align-items: center; gap: 8px; } .ce-sec-h b { font-size: 14.5px; } .ce-sec-h .muted { font-size: 12.5px; }
.ce-f { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; } .ce-f b { color: var(--soft); font-weight: 700; }
.ce-f .seg { flex-wrap: wrap; }
.ce-sw { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.ce-sw button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.ce-sw button.on { outline: 2px solid var(--text); outline-offset: 2px; }
.ce-sw input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line2); border-radius: 8px; background: var(--field); cursor: pointer; }
.ce-note { font-size: 12.5px; margin: 0; } .ce-note a { color: var(--acc2); }
.ce-ord { margin: 2px 0 0; }
.ce-layers { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ce-layers button { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 8px; align-items: center; min-height: 36px; padding: 4px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--soft); text-align: left; }
.ce-layers button:hover { background: var(--panel2); }
.ce-layers em { font-style: normal; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 사진 고르기 창 */
.cp-modal .card.cp { max-width: 720px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.cp-head { display: flex; align-items: center; gap: 10px; } .cp-head h2 { font-size: 18px; flex: 1; }
.cp-tabs { align-self: flex-start; }
.cp-q { display: flex; gap: 8px; } .cp-q .field { flex: 1; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cp-ph { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field); aspect-ratio: 3 / 4; cursor: pointer; }
.cp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-ph span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.62); color: #ddd; font-size: 11px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cp-ph:hover, .cp-ph:focus-visible { border-color: var(--acc); }
.cp-more { grid-column: 1 / -1; }
.cp-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; border: 2px dashed var(--line2); border-radius: 12px; text-align: center; cursor: pointer; color: var(--soft); }
.cp-drop.over { border-color: var(--acc); background: rgba(var(--acc-rgb), .06); }
.cp-prev { display: block; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); margin: 4px 0 8px; }
.cp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; color: var(--muted); text-align: center; }
.cp-note { font-size: 12.5px; } .cp-note a { color: var(--acc2); }
@media (max-width: 1100px) { .ce-main { grid-template-columns: 120px minmax(0, 1fr) 280px; } }
@media (max-width: 860px) {
  .ce { padding: 10px 12px 60px; }
  .ce-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'center' 'pages' 'props'; gap: 12px; }
  .ce-pages { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: 4px; }
  .ce-pg { flex: 0 0 76px; } .ce-pgact { flex: 0 0 auto; flex-direction: column; flex-wrap: nowrap; } .ce-pgact .btn { min-height: 36px; }
  .ce-top .btn.small { min-height: 36px; } .ce-name { flex-basis: 100%; order: -1; max-width: none; }
  .ce-h { width: 26px; height: 26px; right: -13px; bottom: -13px; }
  .ce-sw button { width: 38px; height: 38px; } .ce-layers button { min-height: 40px; }
}
@media (max-width: 760px) {
  .cd { padding: 16px 14px 70px; } .cd-top h1 { font-size: 21px; } .cd-top .muted { font-size: 13px; }
  .cd-style { gap: 12px; } .sw5 button { width: 40px; height: 40px; } .cd-style .seg { overflow-x: auto; } .ce-tpl { min-width: 0; width: 100%; } .cd-style label { width: 100%; }
  .cb-set { padding: 12px; } .cb-th, .cb.one .cb-th { width: 150px; } .cb-title { max-width: 100%; flex-basis: 100%; order: 2; } .cb-acts { order: 3; width: 100%; } .cb-acts .btn { flex: 1; min-height: 36px; }
  .cp-modal .card.cp { padding: 14px; } .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 내 작업 보관함 (/works, js/works.js) ── */
.wk { max-width: 900px; margin: 0 auto; padding: 26px 20px 90px; }
.wk-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; } .wk-top h1 { font-size: 24px; } .wk-top .muted { font-size: 13.5px; }
.wk-tools { margin-bottom: 12px; } .wk-tools .field { flex: 1; min-width: 180px; }
.wk-list { border-top: 1px solid var(--line); }
.wk-row { display: grid; grid-template-columns: 36px 24px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.wk-row:hover { background: var(--panel); }
.wk-star { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: #4a4a4a; } .wk-star.on { color: var(--yellow); } .wk-star:hover { background: var(--panel2); }
.wk-ic { color: var(--acc); display: grid; place-items: center; }
.wk-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 6px 4px; text-align: left; min-width: 0; color: var(--text); }
.wk-main b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; } .wk-main .muted { font-size: 12.5px; }
.wk-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; color: var(--muted); text-align: center; } .wk-empty .ic { color: var(--line2); }
@media (max-width: 760px) {
  .wk { padding: 16px 14px 70px; } .wk-top h1 { font-size: 21px; }
  .wk-row { grid-template-columns: 36px minmax(0, 1fr) auto; } .wk-ic { display: none; } .wk-row > .btn.small:not(.ghost) { display: none; }
}
