/* 모션 스타일 갤러리 「AI로 프롬프트 만들기」 — 상세 오른쪽 「프롬프트」 탭(js/msai.js · 2026-11-15 시안 가 「요청 칸 크게 + 설정 칩 줄」).
 * 같은 날 대표 「나 시안으로 … 버튼 색, 이름도 나안 기준으로」 → 설정은 나 시안 값 그대로(칸 8px · 회색 #f2f2f2 · 켜진 칸 연보라 — 사이트 규칙과 다른 점은 대표가 고른 모양).
 * 같은 날 「버튼 색깔 바꿉니다」 → 「AI에게 맡기기」는 사이트 채운 단추 초록(--brand-action · 모양은 나 시안 44 · 8px 그대로) · 「요청 영역 접히도록」 → 요청 · 설정 · 단추가 한 줄로 접힘(.msai-sum · .msai-inw).
 * 그 밖(되묻기 · 결과 · 목록 · 복사 뒤 안내 창)은 사이트 규칙: 단추 6px · 채운 단추는 초록 하나 · 흑백 회색.
 * 토큰 = light.css 와 같은 것(--gray-* · --t-main · --t-muted · --surface-white · --brand-*). 도구 셸이 단추를 덜 리셋하므로 여기서 직접 리셋한다(memory: 도구 CSS 는 리셋을 직접).
 */
.msai { padding: 6px 0 8px; color: var(--t-main, #111); font-size: 14px; line-height: 1.6; }
.msai *, .msai *::before, .msai *::after { box-sizing: border-box; }
.msai button, .msai input, .msai textarea, .msai select { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.msai button { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; text-transform: none; box-shadow: none; }
.msai button:disabled { cursor: default; }
.msai button:focus-visible, .msai input:focus-visible, .msai textarea:focus-visible, .msai select:focus-visible { outline: 2px solid var(--t-main, #111); outline-offset: 2px; }
.msai .msai-i { flex: none; display: block; }

/* 칸 이름 — 나 시안의 이름 줄(14.5px 굵게) · 「요청」도 같은 줄로 맞춘다 */
.msai-lab, .msai-fl { display: block; margin: 18px 0 8px; color: #141414; font-size: 14.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
/* 「요청」 줄 오른쪽 — 지우기(요청 칸에 글이 있을 때만 · 11/20) · 예제 요청 보기(요청 칸에 예제 영상에 쓴 내용을 채운다 · 11/22 — 아래 「예제 채우기」)
 *   · 스타일 프롬프트(11/25 3차 — 누르면 작은 창 · 아래 .msai-styd · 모양은 예제 단추와 같은 .msai-ex).
 *   줄 폭이 440px 아래면(휴대폰 · 좁은 창의 오른쪽 칸) 「지우기」는 그림만 · 「예제 요청 보기」의 「보기」 낱말을 걷어 한 줄에 들어가게 한다(컨테이너 = 이 줄) */
.msai-lab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 8px; min-height: 28px; container-type: inline-size; }
.msai-lab-row .msai-lab { margin: 0; }
.msai .msai-ex, .msai .msai-clr { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border-radius: 6px; color: #4b5563; font-size: 13px; font-weight: 500; white-space: nowrap; }
.msai .msai-ex:hover, .msai .msai-ex:focus-visible, .msai .msai-clr:hover, .msai .msai-clr:focus-visible { background: #f2f2f2; color: #141414; }
@container (max-width: 439px) {
	.msai .msai-clr-l, .msai .msai-sp, .msai .msai-lx { display: none; }
	.msai .msai-clr { padding: 0 6px; }
}
/* 결과가 있을 때 「요청」 줄 오른쪽 ⌃ = 요청 · 설정 다시 접기 */
.msai-lab-r { display: inline-flex; align-items: center; gap: 2px; }
.msai .msai-fold { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: #6b7280; }
.msai .msai-fold:hover, .msai .msai-fold:focus-visible { background: #f2f2f2; color: #141414; }
/* display 를 정한 단추의 hidden — 앱 바탕의 .sls-app [hidden] 과 명시도가 같아 이 파일 규칙에 진다 */
.msai .msai-ex[hidden], .msai .msai-clr[hidden], .msai .msai-fold[hidden] { display: none; }
.msai-exd { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; color: #141414; box-shadow: 0 18px 56px rgba(17, 17, 17, 0.2); }
.msai-exd::backdrop { background: rgba(17, 17, 17, 0.4); }
.msai-exd-in { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.msai-exd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msai-exd-h { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.msai .msai-exd-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: -6px; border-radius: 6px; color: #6b7280; }
.msai .msai-exd-x:hover, .msai .msai-exd-x:focus-visible { background: #f2f2f2; color: #111; }
.msai-exd-s { margin: -4px 0 0; color: #6b7280; font-size: 13px; line-height: 1.55; }
.msai-exd-f { display: flex; justify-content: flex-end; gap: 8px; }
/* 「적은 요청을 지우고 예제로 채울까요?」 — 요청 칸에 글이 있을 때 예제 요청 보기를 누르면(같은 틀 · 제목 한 줄 + [취소] [지우고 채우기]) */
.msai-exq { width: min(400px, calc(100vw - 32px)); }
.msai-exq .msai-exd-f { margin-top: 8px; }
/* 스타일 프롬프트 창(11/25 3차 대표 「[스타일 프롬프트]를 클릭하면 팝업 뜨면서 복사하기 버튼」 · js openSty) — 같은 틀 · 폭 640 · 제목 · 스타일 이름 줄 · 글 칸(옅은 회색 판 · 넘치면 칸 안에서 굴림) · [복사하기] */
.msai-styd { width: min(640px, calc(100vw - 32px)); }
.msai-styd-t {
	max-height: min(56vh, 480px); overflow: auto; padding: 14px 16px; border: 1px solid #ececec; border-radius: 8px; background: #fafafa;
	color: #1f2937; font-size: 13.5px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text;
}
.msai-styd-t:focus-visible { outline: 2px solid var(--t-main, #111); outline-offset: 2px; }
.msai-styd-t .msai-ln.h { color: #111111; }
.msai-styd .msai-exd-f { margin-top: 4px; }
.msai .msai-ta {
	display: block; width: 100%; min-height: 200px; max-height: 420px; padding: 14px 16px; resize: vertical;
	border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; background: var(--surface-white, #fff);
	font-size: 15px; line-height: 1.75; color: var(--t-main, #111);
}
.msai .msai-ta:hover { border-color: var(--gray-300, #d1d5db); }
.msai .msai-ta:focus { border-color: var(--gray-400, #9ca3af); outline: none; }
.msai .msai-ta::placeholder { color: var(--gray-400, #9ca3af); }
/* 예제 채우기 — 예제 요청 보기를 누르면 프롬프트 칸과 같은 결로 채운다(2026-11-22 대표 「코파일럿 느낌으로 박스 넣고 문장 채웁니다」 → 같은 날 2차 「현재 프롬프트 채우는 것처럼 네모난 사각형 먼저 나오고, 문자 채우는 것으로」 · js fillExample):
 *   요청 칸이 빛나며(무지갯빛 도는 테두리 ::before + 보랏빛 둘레 빛) 예제 글의 화면 줄마다 회색 막대가 먼저 서고(무지갯빛 띠가 훑는다 — 프롬프트 칸 기다림 막대 .msai-wbar)
 *   1초 뒤 무지갯빛 빛줄기(.msai-pv-beam)가 위에서 아래로 내려가며 지나간 줄마다 막대가 왼쪽부터 걷혀(.msai-bar.is-off) 글이 써진다 → 빛이 0.6초에 가라앉는다(.is-done).
 *   글은 처음부터 요청 칸에 들어 있고 불투명한 막대가 덮었다가 걷힌다 — 막대 자리는 칸과 똑같이 줄이 바뀌는 숨은 판(.msai-tam — js 가 칸의 글자 모양 · 안쪽 여백 · 글 폭을 옮긴다)으로 잰다.
 *   채우는 동안엔 접히는 칸(.msai-in)의 넘침을 잠시 보이게 해 둘레 빛이 칸 가장자리에서 잘리지 않게 한다(.msai.is-exfx — 다 가라앉은 뒤 되돌린다).
 *   그라디언트 · 되풀이 움직임은 .claude/rules/css.md 「그라디언트 · 흐려짐 · 빛」 예외(이 도구의 AI 빛 — 채우는 동안만) · 흐림 필터 · 우선 표시 없이 · 움직임 줄이기면 빛 · 막대 없이 바로 채운다 */
.msai-taw { position: relative; border-radius: 8px; transition: box-shadow 0.6s ease; }
.msai-taw::before {
	content: ""; position: absolute; z-index: 2; inset: 0; padding: 1.5px; border-radius: 8px; opacity: 0; pointer-events: none;
	background: conic-gradient(from var(--msai-a), #ff6ad5, #c774e8, #ad8cff, #8795e8, #6cc0ff, #ffb86c, #ff6ad5);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
	transition: opacity 0.6s ease;
}
.msai-taw.is-fx { box-shadow: 0 0 22px rgba(199, 116, 232, 0.32), 0 0 44px rgba(108, 160, 255, 0.18); }
.msai-taw.is-fx::before { opacity: 1; animation: msai-spin 2.4s linear infinite; }
.msai-taw.is-fx.is-done { box-shadow: none; }
.msai-taw.is-fx.is-done::before { opacity: 0; }
.msai-tam { position: absolute; z-index: 1; overflow: hidden; border-radius: 7px; pointer-events: none; }
.msai-tam-t { visibility: hidden; white-space: pre-wrap; } /* 막대 자리를 재는 숨은 글 — 보이는 글은 요청 칸 것 그대로(판 글을 보이면 끝날 때 글자 다듬기 방식이 바뀌어 번쩍인다) */
.msai.is-exfx .msai-in { overflow: visible; }

/* 설정 — 나 시안: 이름 붙은 고르는 칸 2열 + 켜고 끄는 칸(시안 값 그대로) */
.msai-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.msai-two .msai-fl { margin-top: 16px; }
.msai-sel { position: relative; }
.msai .msai-sel select {
	display: block; width: 100%; height: 42px; padding: 0 36px 0 12px; border: 0; border-radius: 8px;
	background: #f2f2f2; color: #141414; font-size: 14px; line-height: 42px; cursor: pointer;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; text-overflow: ellipsis; white-space: nowrap;
}
.msai .msai-sel select:hover { background: #ebebeb; }
.msai-sel .msai-i { position: absolute; top: 50%; right: 12px; margin-top: -8px; color: #888; pointer-events: none; }
.msai-hint { color: var(--t-muted, #6b7280); font-size: 12.5px; line-height: 1.55; }
.msai-rm { margin: 8px 0 0; }
.msai-hint a { color: var(--t-main, #111); text-decoration: underline; }
.msai-adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.msai .msai-add {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px;
	border: 1px solid #e3e3e3; border-radius: 8px; background: #fff; color: #141414; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.msai .msai-add:hover { border-color: #d2d2d2; }
.msai .msai-add.is-on { border-color: #c9c9f5; background: #f3f3ff; color: #3d3db8; }
.msai .msai-add:disabled { opacity: 0.45; }
.msai-add-i { display: inline-flex; }
.msai-add-c { display: inline-flex; margin-left: 2px; }
.msai-add-c[hidden] { display: none; }
/* 배경음악 메뉴(2026-11-19 시안 판정 「나 — 단추 안에서 고르기」) — 단추 아래에 뜨는 작은 판(흰 면 + 그림자 · 줄 40px). 자리는 js 가 화면 기준으로 놓는다(접히는 요청 칸이 넘치는 것을 자른다) */
.msai-bgm-menu { position: fixed; z-index: 6; min-width: 188px; padding: 6px; border-radius: 8px; background: var(--surface-white, #fff); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08); }
.msai .msai-bgm-menu button { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-radius: 6px; color: var(--gray-900, #181818); font-size: 14px; text-align: left; }
.msai .msai-bgm-menu button:hover, .msai .msai-bgm-menu button:focus-visible { background: var(--gray-100, #f4f4f4); outline: 0; }
.msai .msai-bgm-menu button.is-on { font-weight: 700; }
.msai-bgm-ck { display: inline-flex; flex: none; width: 16px; }
.msai-bgm-menu hr { height: 0; margin: 4px 0; border: 0; border-top: 1px solid var(--gray-200, #e5e5e5); }

/* AI에게 맡기기 — 채운 단추 초록(같은 날 「버튼 색깔 바꿉니다」 · 그 전 나 시안 회색 #f2f2f2) · 크기 · 모서리는 나 시안 그대로(위에 구분선) */
.msai-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid #e7e7e7; }
.msai .msai-gen {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; padding: 0 16px;
	border-radius: 8px; background: var(--brand-action, #059669); color: var(--brand-on-action, #fff); font-size: 15px; font-weight: 700;
}
.msai .msai-gen:hover, .msai .msai-gen:focus-visible { background: var(--brand-hover, #037450); }
.msai .msai-gen:disabled { opacity: 0.55; }
.msai-free { padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.2); font-size: 11.5px; font-weight: 600; }

/* 요청 칸 접기 — [AI에게 맡기기]를 누르면 요청 · 설정 · 단추가 「요청 + 글 첫 줄」 한 줄로 접힌다(누르면 다시 펼침 · js fold).
 * 접고 펴기 = grid 줄 높이 1fr ↔ 0fr .3초(움직임 줄이기면 바로) · 접힌 뒤엔 visibility 로 Tab 에서도 뺀다(js 는 inert 도 켠다).
 * 접히는 칸은 overflow:hidden 이라 안쪽 단추 · 고르는 칸의 초점 테가 잘리지 않게 양옆 · 아래로 4px 넓혀 둔다 */
.msai .msai-sum {
	display: none; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 12px 0 0; padding: 0 12px 0 16px;
	border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; background: var(--surface-white, #fff); text-align: left;
}
.msai.is-fold .msai-sum { display: flex; }
.msai .msai-sum:hover { border-color: var(--gray-300, #d1d5db); }
.msai-sum-k { flex: none; color: #141414; font-size: 14.5px; font-weight: 700; }
.msai-sum-t { flex: 1; min-width: 0; overflow: hidden; color: #4b5563; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.msai-sum-s { flex: none; color: var(--t-muted, #6b7280); font-size: 12.5px; white-space: nowrap; }
.msai-sum-s:empty { display: none; }
.msai .msai-sum .msai-i { color: #888; }
.msai.is-busy .msai-sum .msai-i { display: none; }
.msai-inw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s cubic-bezier(0.2, 0, 0, 1); }
.msai-in { min-height: 0; margin: 0 -4px; padding: 0 4px 4px; overflow: hidden; visibility: visible; transition: padding 0.3s, visibility 0s; }
.msai.is-fold .msai-inw { grid-template-rows: 0fr; }
.msai.is-fold .msai-in { padding-bottom: 0; visibility: hidden; transition: padding 0.3s, visibility 0s linear 0.3s; }
.msai.is-noanc { overflow-anchor: none; }
.msai.is-busy .msai-free { display: none; }
.msai-note { min-height: 0; margin: 10px 0 0; color: var(--t-muted, #6b7280); font-size: 13.5px; line-height: 1.55; }
.msai-note:empty { display: none; }

/* 되묻기 — 요청 칸 아래 질문 카드 */
.msai-ask { margin-top: 12px; padding: 16px; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; background: var(--surface-white, #fff); }
.msai-ask-n { color: var(--t-muted, #6b7280); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
/* 「이전」(질문마다 — 첫 질문에서는 요청 칸으로) — 머리 줄 오른쪽 끝의 회색 글 단추. 누르는 자리는 30px 이지만 머리 줄 높이는 그대로(바깥 여백을 당겨 둔다 — 첫 질문과 높이가 같게) */
.msai-ask-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msai .msai-ask-back { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 30px; margin: -6px -8px -6px 0; padding: 0 8px 0 4px; border-radius: 6px; color: var(--gray-500, #727272); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.msai .msai-ask-back:hover, .msai .msai-ask-back:focus-visible { background: var(--gray-100, #f4f4f4); color: var(--gray-900, #181818); }
.msai-ask-q { margin: 6px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.msai-ask-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.msai .msai-ask-op { min-height: 38px; padding: 7px 14px; border-radius: 6px; background: var(--gray-100, #f3f4f6); font-size: 13.5px; text-align: left; line-height: 1.45; }
.msai .msai-ask-op:hover { background: var(--gray-200, #e5e7eb); }
.msai .msai-ask-op.is-on { background: var(--surface-white, #fff); box-shadow: inset 0 0 0 1.5px var(--t-main, #111); font-weight: 700; }
/* 여러 개 고르는 질문(11/20 — js/msai.js paintAsk · Worker 의 q.multi) — 칩을 눌러 켜고 끈다. 켜진 칩 = 위 고른 칩 모양 + 앞에 작은 체크(글자와 같은 색) */
.msai .msai-ask-op.is-multi { display: inline-flex; align-items: center; gap: 4px; }
.msai-ask-ck { display: none; flex: none; margin-left: -3px; }
.msai .msai-ask-op.is-multi.is-on .msai-ask-ck { display: inline-flex; }
.msai-ask-ck .msai-i { stroke-width: 2.25; }
.msai-ask-ot { min-width: 0; }
.msai .msai-own { display: block; width: 100%; height: 40px; margin-top: 10px; padding: 0 12px; border: 1px dashed var(--gray-300, #d1d5db); border-radius: 6px; background: var(--surface-white, #fff); font-size: 13.5px; }
.msai .msai-own:focus { border-style: solid; border-color: var(--gray-400, #9ca3af); outline: none; }
/* 적는 질문(11/16 — js/msai.js paintAsk) — 입력칸이 먼저(실선 · 한 단 크게) · [알아서 써 주세요] · [○○ 없이 만들기]는 그 아래 */
.msai .msai-own.is-main { height: 44px; margin-top: 0; border-style: solid; font-size: 14.5px; }
.msai .msai-own.is-main:focus { border-color: var(--t-main, #181818); }
.msai-ask-ops.is-alt { margin-top: 10px; }
.msai-ask-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.msai .msai-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; background: var(--gray-100, #f3f4f6); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.msai .msai-btn:hover, .msai .msai-btn:focus-visible { background: var(--gray-200, #e5e7eb); }
.msai .msai-btn--primary { background: var(--brand-action, #059669); color: var(--brand-on-action, #fff); font-weight: 700; }
.msai .msai-btn--primary:hover, .msai .msai-btn--primary:focus-visible { background: var(--brand-hover, #037450); }

/* 복사 뒤 안내 창 — 로고 · 배경 음악 파일을 켜고 만든 프롬프트일 때 「같이 올려 주세요」(틀 = 예제 창 .msai-exd) */
.msai-cpd { width: min(420px, calc(100vw - 32px)); }
.msai-cpd-l { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.msai-cpd-it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #f5f5f5; }
.msai-cpd-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: #fff; color: #141414; }
.msai-cpd-tx { display: flex; flex-direction: column; min-width: 0; }
.msai-cpd-tx b { color: #141414; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.msai-cpd-tx small { color: #6b7280; font-size: 12.5px; line-height: 1.5; }

/* 프롬프트 칸 — 흐린 틀 · 기다림 · 새로 쓰기 · 결과. 11/16 대표 새로 쓰기 시안(아티팩트 XT9tpu2AcUw2JuETx9VXaq) 효과 1 「막대가 글로」
 *   → 같은 날 「예전에는 코파일럿 느낌 보라색으로 화려하게 변하는 게 있었는데 사라졌어요. 그 효과 다시 · 빛줄기로 전체 다시 쓰기 + 막대가 글로」(효과 4 + 효과 1):
 *   기다리는 동안 = 줄마다 막대 + 무지갯빛 띠가 위에서 아래로 막대를 물들이며 훑고, 칸 테두리가 무지갯빛으로 돌며 둘레가 보랏빛으로 빛난다.
 *   결과가 오면 = 새 글 위 막대 → 무지갯빛 빛줄기가 내려가며 지나간 줄마다 막대가 보랏빛으로 바래며 왼쪽부터 걷힌다(그동안 테두리는 계속 빛난다 · is-go).
 *   무지갯빛 테두리 · 빛줄기(그라디언트 · @property)는 .claude/rules/css.md 「그라디언트」 예외(이 칸에만) · 흐림 필터 · 우선 표시 없이 · 움직임 줄이기면 멈춘다.
 * 칸 안 색은 사이트 밝은 화면 값(흐린 글 #bdbdbd · 결과 #1f2937). 높이 = 누르면 단추가 탭 바로 아래로 올라왔을 때 화면 아래까지 */
.msai-pv {
	position: relative; display: flex; flex-direction: column; margin-top: 16px;
	height: clamp(360px, calc(100vh - 210px), 720px); height: clamp(360px, calc(100dvh - 210px), 720px);
	overflow: hidden; border: 1px solid #ececec; border-radius: 8px; background: #fafafa; transition: box-shadow 0.5s ease, height 0.35s ease;
}
.msai-pv-h { flex: none; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px 0 14px; border-bottom: 1px solid #eeeeee; }
.msai-pv-lab { color: #a1a1a1; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.msai-pv-tags { display: flex; gap: 4px; min-width: 0; margin-left: auto; overflow: hidden; }
.msai-pv-tags .msai-tag { border-color: #e8e8e8; background: #fff; color: #ababab; font-size: 11px; line-height: 18px; }
.msai-pv-body { position: relative; flex: 1; min-height: 0; }
.msai-pv-doc {
	position: absolute; inset: 0; padding: 12px 14px 60px; overflow: hidden;
	color: #bdbdbd; font-size: 13px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-user-select: none; user-select: none;
}
.msai-ln { position: relative; white-space: pre-wrap; }
.msai-ln.h { margin-top: 6px; color: #a8a8a8; font-weight: 700; }
.msai-ln.h:first-child { margin-top: 0; }
.msai-ln.e { height: 8px; }
.msai-bl { text-decoration: underline dotted #c9c9c9; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.msai-sk { height: 10px; margin-bottom: 12px; border-radius: 4px; background: #efefef; }
.msai-sk.e { height: 4px; background: none; }
.msai-pv-fade { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: 96px; background: linear-gradient(rgba(250, 250, 250, 0), #fafafa 82%); pointer-events: none; }
/* 결과 */
.msai-pv.is-res .msai-pv-doc { padding-bottom: 16px; overflow: auto; color: #1f2937; -webkit-user-select: text; user-select: text; }
.msai-pv.is-res .msai-ln.h { color: #111111; }
.msai-pv.is-res .msai-pv-fade { display: none; }
.msai-pv-t { flex: 1; min-width: 0; overflow: hidden; color: #141414; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.msai .msai-pv-ib { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: #6b7280; }
.msai .msai-pv-ib:hover, .msai .msai-pv-ib:focus-visible { background: #efefef; color: #111111; }
.msai .msai-pv-h .msai-copy { flex: none; height: 32px; margin-left: 2px; }
.msai-pv-f { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px; border-top: 1px solid #eeeeee; background: #ffffff; }
.msai .msai-edit-in { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 13.5px; }
.msai .msai-edit-in:focus { border-color: var(--gray-400, #9ca3af); outline: none; }
.msai .msai-edit-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: var(--gray-100, #f3f4f6); color: var(--gray-600, #4b5563); }
.msai .msai-edit-go:hover { background: var(--gray-200, #e5e7eb); }
.msai-pv.is-full { height: auto; }
.msai-pv.is-full .msai-pv-body { flex: none; }
.msai-pv.is-full .msai-pv-doc { position: relative; inset: auto; overflow: visible; }
/* 요청 전 · 질문을 받는 동안 — 칸을 줄이고(440px) 흐린 틀의 앞부분만 보이며 아래로 길게 흐려진다(11/16 저녁 대표 「네모로 가리니 더 어색하네요 · 아까처럼 처음 몇 문장은 보이는 게 좋다 ·
 *   그라데이션으로 앞에 일부분 7~8줄만」 → 「프롬프트 창 크기를 줄이고, 그라데이션 길이를 길게 · 글이 조금 더 보여도 좋다」(320px) → 「창 크기를 지금보다 조금 더 크게 · 보이는 프롬프트 길이가 더 많아도 괜찮다」 —
 *   그 전 잠깐 넣은 「네모 막대로 가리기」는 걷었다). 흐림은 칸 높이의 비율 — 48%(≈ 8줄)까지 또렷 → 96%(≈ 16줄)에서 사라짐 · 칸 높이를 바꿔도 같이 늘어난다.
 *   가림판(mask)이라 바탕 색과 상관없다 · 아래 흐림 덮개(.msai-pv-fade)는 겹치지 않게 감춘다.
 *   만드는 중(is-wait) · 새로 쓰기(is-go) · 결과(is-res)는 원래 높이로 늘어난다(0.35초) — 늘어나는 동안 막대가 아래까지 차도록 js waitBars 는 칸 밖 줄까지 미리 잰다 */
.msai-pv:not(.is-res):not(.is-wait):not(.is-go) { height: 440px; }
.msai-pv:not(.is-res):not(.is-wait):not(.is-go) .msai-pv-fade { display: none; }
.msai-pv:not(.is-res):not(.is-wait):not(.is-go) .msai-pv-doc:not(.is-new) {
	-webkit-mask-image: linear-gradient(180deg, #000 48%, transparent 96%);
	mask-image: linear-gradient(180deg, #000 48%, transparent 96%);
}
/* 기다리는 동안 — 보이는 화면 줄마다 그 길이만 한 막대(js waitBars · 글은 감춘다 · 잠긴 편은 회색 막대 .msai-sk)를 무지갯빛 띠가 위에서 아래로 물들이며 훑는다
 *   (화면 줄 차례 --i × 0.055초 · 한 바퀴 2.4초 · 띠 = 앞이 하늘색 → 보라 → 꼬리 분홍 · 답이 올 때까지 · 가짜 진행 글 없음) */
.msai-pv.is-wait .msai-pv-doc { overflow: hidden; } /* 막대는 보이는 화면 줄에만 — 고칠 결과를 굴려 빈 곳이 보이지 않게 */
.msai-pv.is-wait .msai-tx { color: transparent; -webkit-text-fill-color: transparent; }
.msai-pv.is-wait .msai-bl { text-decoration: none; }
.msai-wbar, .msai-pv.is-wait .msai-sk:not(.e) {
	border-radius: 4px; background: #ebebeb;
	animation: msai-band 2.4s linear infinite; animation-delay: calc(var(--i, 0) * 55ms);
}
.msai-wbar { position: absolute; pointer-events: none; }
/* 띠 색은 회색에 아주 옅게 비치는 정도(같은 날 대표 「처음에 네모로 나올 때 형광 이펙트가 너무 강합니다 · 약하게 또는 아예 빼자」 — 네 세기를 찍어 비교하고 「더 옅게」로).
 * 화려함은 테두리 · 빛줄기가 맡는다. 다시 진하게 하지 않는다 */
@keyframes msai-band {
	0%, 24%, 100% { background-color: #ebebeb; }
	5% { background-color: #dde8f2; }
	10% { background-color: #e0e1f2; }
	15% { background-color: #e7ddf2; }
	20% { background-color: #efdeec; }
}
/* 칸 테두리 — 기다리는 동안과 빛줄기가 내려가는 동안 무지갯빛으로 돌며 둘레가 빛난다(답이 와서 결과 칸이 되면 걷힌다) */
@property --msai-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.msai-pv.is-wait, .msai-pv.is-go { border-color: transparent; box-shadow: 0 0 22px rgba(199, 116, 232, 0.32), 0 0 44px rgba(108, 160, 255, 0.18); }
.msai-pv.is-wait::before, .msai-pv.is-go::before {
	content: ""; position: absolute; z-index: 3; inset: 0; padding: 1.5px; border-radius: 8px; pointer-events: none;
	background: conic-gradient(from var(--msai-a), #ff6ad5, #c774e8, #ad8cff, #8795e8, #6cc0ff, #ffb86c, #ff6ad5);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
	animation: msai-spin 2.4s linear infinite;
}
@keyframes msai-spin { to { --msai-a: 360deg; } }
/* 새로 쓰기 — 새 글 위에 화면 줄마다 얹은 막대(js rowBars)를 빛줄기(js revealTo)가 위에서 아래로 지나가며, 지나간 줄의 막대가 옅은 보랏빛으로 바래며 왼쪽부터 걷힌다.
 *   11/22 대표 「채워지는 네모 박스가 너무 딱딱합니다 · 조금 더 부드럽게 · 프롬프트 채울 때도 동일하게」 — 막대가 통째로 줄어들던 것(scaleX 0.34초 · 진한 보라 #d5a4e9)을
 *   가장자리가 흐린 가림판(mask 그라디언트 — 막대 폭의 절반만큼 번진 경계)이 왼쪽에서 오른쪽으로 0.7초에 지나가며 녹듯이 걷히게 바꿨다 · 색은 옅은 보라 · 끝 무렵 옅게 사라진다(가림판을 모르는 브라우저도 걷힌다).
 *   요청 칸 예제 채우기(.msai-tam)도 같은 막대다 · 시간을 바꾸면 js BAR_DUR(마지막 막대가 걷히길 기다리는 시간)도 같이 */
.msai-pv-doc.is-new { color: #1f2937; }
.msai-pv-doc.is-new .msai-ln.h { color: #111111; }
.msai-bar {
	position: absolute; border-radius: 4px; background: #ebebeb; pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 60%); mask-image: linear-gradient(90deg, transparent 40%, #000 60%);
	-webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: 100% 0; mask-position: 100% 0;
	transition: -webkit-mask-position 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), mask-position 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.35s ease, opacity 0.3s ease 0.4s; /* 빛줄기가 지나가면 바로 녹기 시작해 천천히 가라앉는다 */
}
.msai-bar.is-off { -webkit-mask-position: 0 0; mask-position: 0 0; background-color: #e7d8f6; opacity: 0; }
.msai-pv-beam { position: absolute; z-index: 4; top: 0; right: 0; left: 0; height: 0; pointer-events: none; }
.msai-pv-beam::before { content: ""; position: absolute; top: -24px; right: -8%; left: -8%; height: 48px; background: radial-gradient(50% 50% at 50% 50%, rgba(199, 116, 232, 0.38), rgba(108, 160, 255, 0.14) 55%, rgba(255, 255, 255, 0) 78%); }
.msai-pv-beam::after { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, #ff6ad5, #c774e8, #8795e8, #6cc0ff, #ffb86c); box-shadow: 0 0 12px rgba(199, 116, 232, 0.75); }

/* 빈 칸 — 프롬프트 안에서 바로 채운다(2026-11-19 대표 「프롬프트에서 값이 빈 부분 '코파이럿' 느낌으로 강조 → 입력창 뜨면서 채우도록 · ai로 채우기 버튼」 — js/msai.js holeChip · openHole).
 *   칩 = 켜진 칸과 같은 연보라(#f3f3ff · #c9c9f5 · #3d3db8 — 이 도구에서 대표가 고른 「AI」 색) · 입력창이 열렸거나 만들려다 막혔을 때(is-call · 두 바퀴) 무지갯빛 테두리가 돈다.
 *   입력창 = 흰 판 12px · 무지갯빛 가는 테두리(돌지 않음) + 보랏빛 둘레 빛 · [채우기]는 사이트 채운 단추 초록 · [AI로 채우기]는 연보라.
 *   무지갯빛 테두리는 위 프롬프트 칸과 같은 것(.claude/rules/css.md 「그라디언트」 예외 — 이 칸에만) · 흐림 필터 · 우선 표시 없이 · 움직임 줄이기면 돌지 않는다 */
.msai-hole {
	position: relative; display: inline-block; max-width: 100%; margin: 0 1px; padding: 0 7px 0 5px; border-radius: 6px; vertical-align: baseline;
	background: #f3f3ff; box-shadow: inset 0 0 0 1px #c9c9f5; color: #3d3db8; font-weight: 600; line-height: 1.55; white-space: normal; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.msai-hole .msai-i { display: inline-block; margin: 0 3px 0 0; vertical-align: -1px; }
.msai-hole:hover { background: #e9e9ff; }
.msai-hole:focus-visible { outline: 2px solid #3d3db8; outline-offset: 1px; }
.msai-hole::before {
	content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: 7px; opacity: 0; pointer-events: none;
	background: conic-gradient(from var(--msai-a), #ff6ad5, #c774e8, #ad8cff, #8795e8, #6cc0ff, #ffb86c, #ff6ad5);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
	transition: opacity 0.2s ease;
}
.msai-hole.is-open, .msai-hole.is-call { box-shadow: 0 0 14px rgba(199, 116, 232, 0.4); }
.msai-hole.is-open::before, .msai-hole.is-call::before { opacity: 1; }
.msai-hole.is-call::before { animation: msai-spin 1.3s linear 2; }
/* 채우는 동안 — 프롬프트는 그대로 두고 이 칩만 빛난다(빛이 칩 안을 훑고 테두리가 돈다 · 답이 올 때까지) */
.msai-hole.is-fill {
	cursor: default; pointer-events: none; box-shadow: 0 0 14px rgba(199, 116, 232, 0.4);
	background: linear-gradient(100deg, #f3f3ff 0%, #f3f3ff 30%, #dcdcff 45%, #f6e4f6 50%, #dcdcff 55%, #f3f3ff 70%, #f3f3ff 100%); background-size: 260% 100%;
	animation: msai-shim 1.5s linear infinite;
}
.msai-hole.is-fill::before { opacity: 1; animation: msai-spin 2.4s linear infinite; }
@keyframes msai-shim { from { background-position: 100% 0; } to { background-position: -60% 0; } }
/* 방금 채운 값 — 옅은 보랏빛(테두리 없음 · 칩과 구별) · 처음 그려질 때 한 번 빛난다 */
.msai-filled { padding: 1px 3px; border-radius: 4px; background: #ececff; color: inherit; }
.msai-filled.is-new { animation: msai-fillin 1.6s ease-out 1; }
@keyframes msai-fillin { 0% { background-color: #c9c9ff; box-shadow: 0 0 14px rgba(199, 116, 232, 0.55); } 100% { background-color: #ececff; box-shadow: 0 0 0 rgba(199, 116, 232, 0); } }
/* 기다리는 동안 · 새로 쓰는 동안엔 글과 같이 감춘다(줄 막대가 덮는다) */
.msai-pv.is-wait .msai-hole, .msai-pv.is-wait .msai-filled { background: none; box-shadow: none; color: transparent; }
.msai-pv.is-wait .msai-hole .msai-i { visibility: hidden; }
.msai-pv.is-wait .msai-hole::before { display: none; }
.msai-pv-doc.is-new .msai-hole { background: none; box-shadow: none; cursor: default; }
.msai-pv-doc.is-new .msai-filled { background: none; }
/* 입력창 */
.msai-hp {
	position: fixed; z-index: 7; width: min(380px, calc(100vw - 24px)); padding: 14px; border-radius: 12px; background: #fff; color: #141414;
	box-shadow: 0 0 24px rgba(199, 116, 232, 0.3), 0 14px 36px rgba(17, 17, 17, 0.18);
}
.msai-hp::before {
	content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: 12px; pointer-events: none;
	background: conic-gradient(from 200deg, #ff6ad5, #c774e8, #ad8cff, #8795e8, #6cc0ff, #ffb86c, #ff6ad5);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.msai .msai-hp-x { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: #6b7280; }
.msai .msai-hp-x:hover, .msai .msai-hp-x:focus-visible { background: #f2f2f2; color: #111; }
.msai-hp-why { margin: 0 30px 10px 0; color: #3d3db8; font-size: 13px; font-weight: 600; line-height: 1.5; }
.msai-hp-fd + .msai-hp-fd { margin-top: 12px; }
.msai-hp-l { display: block; margin: 0 30px 6px 0; color: #141414; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.msai .msai-hp-ta {
	display: block; width: 100%; height: 64px; min-height: 64px; max-height: 140px; padding: 9px 12px; resize: none; overflow: auto;
	border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; background: #fff; color: #141414; font-size: 13.5px; line-height: 1.55;
}
.msai .msai-hp-ta:focus { border-color: #ad8cff; outline: none; }
.msai .msai-hp-ta::placeholder { color: var(--gray-400, #9ca3af); }
.msai-hp-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.msai .msai-hp-ai { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; background: #f3f3ff; box-shadow: inset 0 0 0 1px #c9c9f5; color: #3d3db8; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.msai .msai-hp-ai:hover, .msai .msai-hp-ai:focus-visible { background: #e9e9ff; }
.msai .msai-hp-go { min-width: 76px; justify-content: center; }
.msai .msai-hp-ai:disabled, .msai .msai-hp-go:disabled { opacity: 0.4; }
.msai .msai-hp-go:disabled:hover { background: var(--brand-action, #059669); }
.msai .msai-hp-ai:disabled:hover { background: #f3f3ff; }

/* 내가 만든 프롬프트 — 줄 목록(누르면 위 칸에 연다) */
.msai-feed { margin-top: 26px; }
.msai-feed-h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.msai-count { color: var(--t-muted, #6b7280); font-weight: 500; }
.msai-ago { flex: none; color: var(--t-muted, #6b7280); font-size: 12px; white-space: nowrap; }
.msai-tag { padding: 1px 7px; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 6px; color: var(--gray-600, #4b5563); font-size: 11.5px; line-height: 1.6; white-space: nowrap; }
.msai-list { margin: 0; padding: 0; list-style: none; }
.msai-item { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.msai .msai-item-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 0; text-align: left; }
/* 앞 썸네일(그 스타일의 갤러리 타일 그림 · 11/16 저녁 대표 「앞에 썸네일」) · 글 두 줄(제목 / 스타일 이름) */
.msai-item-th { flex: none; display: block; width: 64px; height: 36px; border-radius: 4px; background: var(--gray-100, #f3f4f6); object-fit: cover; }
.msai-item-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.msai-item-t { min-width: 0; overflow: hidden; font-size: 13.5px; color: var(--gray-700, #374151); text-overflow: ellipsis; white-space: nowrap; }
.msai-item.is-on .msai-item-t { color: var(--t-main, #111); font-weight: 700; }
/* 줄의 스타일 이름 — 모든 스타일 한 목록(11/16 저녁 · js paintList) · 다른 스타일 줄을 누르면 그 스타일로 넘어간다 */
.msai-item-s { min-width: 0; overflow: hidden; color: var(--t-muted, #6b7280); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.msai-item-wait { padding: 14px 0; color: var(--t-muted, #6b7280); font-size: 13px; }
/* 위 5개 + [펼쳐보기] → 10개 단위 쪽(‹ 1 2 3 … ›) + [접기](11/16 저녁 대표 「상위 5개만 · 나머지는 펼쳐보기 · 페이지네이션 10개 단위」) */
.msai-feed-f { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.msai-feed-f:empty { display: none; }
.msai .msai-more { height: 36px; padding: 0 16px; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 6px; background: var(--surface-white, #fff); color: var(--gray-700, #374151); font-size: 13px; font-weight: 600; }
.msai .msai-more:hover { border-color: var(--gray-400, #9ca3af); color: var(--t-main, #111); }
.msai-pg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.msai .msai-pg-n, .msai .msai-pg-b { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--gray-600, #4b5563); font-size: 13px; font-variant-numeric: tabular-nums; }
.msai .msai-pg-n:hover, .msai .msai-pg-b:hover:not(:disabled) { background: var(--gray-100, #f3f4f6); color: var(--t-main, #111); }
.msai .msai-pg-n.is-on { background: var(--gray-100, #f3f4f6); color: var(--t-main, #111); font-weight: 700; }
.msai .msai-pg-b:disabled { opacity: 0.35; cursor: default; }
.msai-pg-gap { min-width: 16px; color: var(--t-muted, #6b7280); font-size: 13px; text-align: center; }
.msai .msai-item-b:hover .msai-item-t { color: var(--t-main, #111); }
.msai-item-tags { display: flex; gap: 4px; }
.msai .msai-del { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; color: var(--gray-400, #9ca3af); font-size: 12px; }
.msai .msai-del:hover, .msai .msai-del.is-ask { background: var(--gray-100, #f3f4f6); color: var(--t-main, #111); }

/* 휴대폰 · 좁은 칸 */
@media (max-width: 899px) {
	.msai .msai-ta { min-height: 160px; }
	.msai-pv { height: clamp(340px, calc(100vh - 200px), 620px); height: clamp(340px, calc(100dvh - 200px), 620px); }
	.msai-item-tags { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.msai-inw, .msai-in, .msai.is-fold .msai-in { transition: none; }
	.msai-pv { transition: none; }
	.msai-wbar, .msai-pv.is-wait .msai-sk:not(.e) { animation: none; }
	.msai-pv.is-wait::before, .msai-pv.is-go::before { animation: none; }
	.msai-taw, .msai-taw::before { transition: none; }
	.msai-taw.is-fx::before { animation: none; }
	.msai-hole::before { transition: none; }
	.msai-hole.is-call::before, .msai-hole.is-fill::before { animation: none; }
	.msai-hole.is-fill { animation: none; background: #e2e2ff; }
	.msai-filled.is-new { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.msai.is-busy .msai-gen .msai-i { animation: msai-pulse 1.2s ease-in-out infinite; }
	@keyframes msai-pulse { 50% { opacity: 0.35; } }
}
