/* AI 상담 창(개발문의 도우미, 2026-11-17) — ai-chat.js 가 만든다. 메인·서브 모든 페이지 공통.
   이 파일은 두 곳에서 읽힌다: ① 문서(맨 아래 html.uc-on 바닥글 여백만 해당) ② ai-chat.js 의 Shadow DOM 안(나머지 전부 — 운영 배포본의
   input·textarea·p 규칙이 스며들지 않게). 이름은 모두 uc-, 글꼴·움직임 곡선만 shell.css 의 --u-* 를 이어받는다.
   밝은 창 + 'AI 느낌' 테마(대표 2026-11-17 "ai 창의 테마색은 꼭 홈페이지랑 일치할 필요는 없어", "C2 로 가자. 아니면 매번 로딩될때마다
   랜덤하게") — 색은 아래 .uc[data-theme="c1"~"c6"] 변수 묶음으로만 바꾼다(테마 고르기는 ai-chat.js 의 THEME). 시안: /design/chat-ai.html
   구조: 반짝임 표지 머리줄 · AI 말은 이름표 + 본문 · 방문자 말은 오른쪽 말풍선 · 둥근 입력 칸 · 확인 카드의 등록 단추는 창 아래에 붙음.
   초록 점은 '상담 가능'에만. 움직임은 창 열기 한 번과 답변 작성 표시뿐, '동작 줄이기'면 모두 멈춘다. */

.uc {
  /* 기본(C2 인디고 라벤더) — data-theme 이 없거나 모르는 값이어도 이 색 */
  --uc-accent: #4f46e5; --uc-ring: rgba(79, 70, 229, .16); --uc-dot: #6366f1;
  --uc-bg: #fff; --uc-edge: rgba(49, 46, 129, .12); --uc-ink: #1e1b4b; --uc-ink-2: #4b4a6b; --uc-ink-3: #6b6a8a;
  --uc-line: rgba(49, 46, 129, .08); --uc-line-2: rgba(49, 46, 129, .16); --uc-hover: rgba(49, 46, 129, .06);
  --uc-head-bg: #fff; --uc-head-ink: #1e1b4b; --uc-head-ink-2: #4b4a6b; --uc-head-ink-3: #6b6a8a; --uc-head-line: rgba(49, 46, 129, .08); --uc-head-hover: rgba(49, 46, 129, .06);
  --uc-mark-bg: #eef2ff; --uc-mark-ink: #4f46e5; --uc-mark-edge: rgba(79, 70, 229, .2); --uc-lamp-ring: #fff;
  --uc-log-bg: #fafaff; --uc-who: #4f46e5; --uc-me-bg: #eef2ff; --uc-me-ink: #312e81; --uc-me-line: rgba(79, 70, 229, .18);
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(49, 46, 129, .16); --uc-send-bg: #4f46e5; --uc-send-ink: #fff;
  --uc-card-bg: #fff; --uc-card-line: rgba(79, 70, 229, .22); --uc-c-head-bg: #f5f5ff; --uc-in-bg: #fff; --uc-in-line: rgba(49, 46, 129, .16);
  --uc-notice-bg: #eef2ff; --uc-notice-ink: #312e81;
  --uc-btn-bg: #4f46e5; --uc-btn-ink: #fff; --uc-launch-bg: #fff; --uc-launch-ink: #312e81; --uc-launch-edge: rgba(79, 70, 229, .25);
  --uc-run: #22c55e; --uc-off: #a3a3b8; --uc-neg: #c2410c;

  position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; /* 머리줄(100)·휴대폰 메뉴 아래 */
  display: flex; flex-direction: column; align-items: flex-end;
  color-scheme: light; color: var(--uc-ink); font: 400 14px/22px var(--u-font); letter-spacing: 0; text-align: left; text-transform: none;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}

/* ═════ 테마 — 시안 /design/chat-ai.html 의 C1~C6 ═════ */
/* C1 일렉트릭 블루 */
.uc[data-theme="c1"] { --uc-accent: #2563eb; --uc-ring: rgba(37, 99, 235, .16); --uc-dot: #2563eb;
  --uc-bg: #fff; --uc-edge: rgba(15, 23, 42, .1); --uc-ink: #0f172a; --uc-ink-2: #475569; --uc-ink-3: #64748b; --uc-line: rgba(15, 23, 42, .07); --uc-line-2: rgba(15, 23, 42, .14); --uc-hover: rgba(15, 23, 42, .05);
  --uc-head-bg: #fff; --uc-head-ink: #0f172a; --uc-head-ink-2: #475569; --uc-head-ink-3: #64748b; --uc-head-line: rgba(15, 23, 42, .07); --uc-head-hover: rgba(15, 23, 42, .05);
  --uc-mark-bg: #2563eb; --uc-mark-ink: #fff; --uc-mark-edge: transparent; --uc-lamp-ring: #fff;
  --uc-log-bg: #f8fafc; --uc-who: #2563eb; --uc-me-bg: #2563eb; --uc-me-ink: #fff; --uc-me-line: transparent;
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(15, 23, 42, .14); --uc-send-bg: #2563eb; --uc-send-ink: #fff;
  --uc-card-bg: #fff; --uc-card-line: rgba(37, 99, 235, .25); --uc-c-head-bg: #eff6ff; --uc-in-bg: #fff; --uc-in-line: rgba(15, 23, 42, .14); --uc-notice-bg: #eff6ff; --uc-notice-ink: #1e3a8a;
  --uc-btn-bg: #2563eb; --uc-btn-ink: #fff; --uc-launch-bg: #2563eb; --uc-launch-ink: #fff; --uc-launch-edge: rgba(255, 255, 255, .2); --uc-off: #94a3b8; }
/* C2 인디고 라벤더 — 기본값과 같음(이름으로도 고를 수 있게) */
.uc[data-theme="c2"] { --uc-accent: #4f46e5; }
/* C3 블루 → 바이올렛 그라데이션 — 머리줄·방문자 말풍선·보내기·주 단추에만 그라데이션 */
.uc[data-theme="c3"] { --uc-grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --uc-accent: #6d28d9; --uc-ring: rgba(124, 58, 237, .16); --uc-dot: #7c3aed;
  --uc-bg: #fff; --uc-edge: rgba(76, 29, 149, .12); --uc-ink: #111827; --uc-ink-2: #4b5563; --uc-ink-3: #6b7280; --uc-line: rgba(17, 24, 39, .07); --uc-line-2: rgba(17, 24, 39, .14); --uc-hover: rgba(17, 24, 39, .05);
  --uc-head-bg: var(--uc-grad); --uc-head-ink: #fff; --uc-head-ink-2: rgba(255, 255, 255, .85); --uc-head-ink-3: rgba(255, 255, 255, .8); --uc-head-line: transparent; --uc-head-hover: rgba(255, 255, 255, .14);
  --uc-mark-bg: rgba(255, 255, 255, .18); --uc-mark-ink: #fff; --uc-mark-edge: rgba(255, 255, 255, .28); --uc-lamp-ring: #4f46e5;
  --uc-log-bg: #fbfaff; --uc-who: #6d28d9; --uc-me-bg: var(--uc-grad); --uc-me-ink: #fff; --uc-me-line: transparent;
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(17, 24, 39, .14); --uc-send-bg: var(--uc-grad); --uc-send-ink: #fff;
  --uc-card-bg: #fff; --uc-card-line: rgba(124, 58, 237, .25); --uc-c-head-bg: #f5f3ff; --uc-in-bg: #fff; --uc-in-line: rgba(17, 24, 39, .14); --uc-notice-bg: #f5f3ff; --uc-notice-ink: #4c1d95;
  --uc-btn-bg: var(--uc-grad); --uc-btn-ink: #fff; --uc-launch-bg: var(--uc-grad); --uc-launch-ink: #fff; --uc-launch-edge: rgba(255, 255, 255, .18); --uc-off: rgba(255, 255, 255, .6); }
/* C4 청록(테크 민트) */
.uc[data-theme="c4"] { --uc-accent: #0d9488; --uc-ring: rgba(13, 148, 136, .16); --uc-dot: #14b8a6;
  --uc-bg: #fff; --uc-edge: rgba(15, 23, 42, .1); --uc-ink: #0f172a; --uc-ink-2: #475569; --uc-ink-3: #64748b; --uc-line: rgba(15, 23, 42, .07); --uc-line-2: rgba(15, 23, 42, .14); --uc-hover: rgba(15, 23, 42, .05);
  --uc-head-bg: #fff; --uc-head-ink: #0f172a; --uc-head-ink-2: #475569; --uc-head-ink-3: #64748b; --uc-head-line: rgba(15, 23, 42, .07); --uc-head-hover: rgba(15, 23, 42, .05);
  --uc-mark-bg: #ccfbf1; --uc-mark-ink: #0f766e; --uc-mark-edge: rgba(13, 148, 136, .25); --uc-lamp-ring: #fff;
  --uc-log-bg: #f6fafa; --uc-who: #0f766e; --uc-me-bg: #0d9488; --uc-me-ink: #fff; --uc-me-line: transparent;
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(15, 23, 42, .14); --uc-send-bg: #0d9488; --uc-send-ink: #fff;
  --uc-card-bg: #fff; --uc-card-line: rgba(13, 148, 136, .28); --uc-c-head-bg: #f0fdfa; --uc-in-bg: #fff; --uc-in-line: rgba(15, 23, 42, .14); --uc-notice-bg: #f0fdfa; --uc-notice-ink: #134e4a;
  --uc-btn-bg: #0f766e; --uc-btn-ink: #fff; --uc-launch-bg: #0f766e; --uc-launch-ink: #fff; --uc-launch-edge: rgba(255, 255, 255, .18); --uc-off: #94a3b8; }
/* C5 흑백 */
.uc[data-theme="c5"] { --uc-accent: #0a0a0a; --uc-ring: rgba(10, 10, 10, .1); --uc-dot: #0a0a0a;
  --uc-bg: #fff; --uc-edge: rgba(0, 0, 0, .1); --uc-ink: #0a0a0a; --uc-ink-2: #404040; --uc-ink-3: #737373; --uc-line: rgba(0, 0, 0, .07); --uc-line-2: rgba(0, 0, 0, .13); --uc-hover: rgba(0, 0, 0, .05);
  --uc-head-bg: #fff; --uc-head-ink: #0a0a0a; --uc-head-ink-2: #404040; --uc-head-ink-3: #737373; --uc-head-line: rgba(0, 0, 0, .07); --uc-head-hover: rgba(0, 0, 0, .05);
  --uc-mark-bg: #0a0a0a; --uc-mark-ink: #fff; --uc-mark-edge: transparent; --uc-lamp-ring: #fff;
  --uc-log-bg: #fff; --uc-who: #0a0a0a; --uc-me-bg: #f4f4f5; --uc-me-ink: #0a0a0a; --uc-me-line: transparent;
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(0, 0, 0, .13); --uc-send-bg: #0a0a0a; --uc-send-ink: #fff;
  --uc-card-bg: #fff; --uc-card-line: rgba(0, 0, 0, .13); --uc-c-head-bg: #fafafa; --uc-in-bg: #fff; --uc-in-line: rgba(0, 0, 0, .13); --uc-notice-bg: #f4f4f5; --uc-notice-ink: #0a0a0a;
  --uc-btn-bg: #0a0a0a; --uc-btn-ink: #fff; --uc-launch-bg: #0a0a0a; --uc-launch-ink: #fff; --uc-launch-edge: rgba(255, 255, 255, .16); --uc-off: #a3a3a3; }
/* C6 남색 + 하늘 */
.uc[data-theme="c6"] { --uc-accent: #0284c7; --uc-ring: rgba(14, 165, 233, .18); --uc-dot: #0ea5e9;
  --uc-bg: #fff; --uc-edge: rgba(11, 18, 32, .14); --uc-ink: #0b1220; --uc-ink-2: #475569; --uc-ink-3: #64748b; --uc-line: rgba(11, 18, 32, .07); --uc-line-2: rgba(11, 18, 32, .14); --uc-hover: rgba(11, 18, 32, .05);
  --uc-head-bg: #0b1220; --uc-head-ink: #e2e8f0; --uc-head-ink-2: #cbd5e1; --uc-head-ink-3: #94a3b8; --uc-head-line: #0b1220; --uc-head-hover: rgba(226, 232, 240, .1);
  --uc-mark-bg: #0ea5e9; --uc-mark-ink: #0b1220; --uc-mark-edge: transparent; --uc-lamp-ring: #0b1220;
  --uc-log-bg: #f7f9fc; --uc-who: #0284c7; --uc-me-bg: #0b1220; --uc-me-ink: #e2e8f0; --uc-me-line: transparent;
  --uc-foot-bg: #fff; --uc-field-bg: #fff; --uc-field-line: rgba(11, 18, 32, .14); --uc-send-bg: #0ea5e9; --uc-send-ink: #0b1220;
  --uc-card-bg: #fff; --uc-card-line: rgba(14, 165, 233, .3); --uc-c-head-bg: #f0f9ff; --uc-in-bg: #fff; --uc-in-line: rgba(11, 18, 32, .14); --uc-notice-bg: #f0f9ff; --uc-notice-ink: #0c4a6e;
  --uc-btn-bg: #0b1220; --uc-btn-ink: #fff; --uc-launch-bg: #0b1220; --uc-launch-ink: #e2e8f0; --uc-launch-edge: rgba(14, 165, 233, .45); --uc-off: #64748b; }
.uc[data-theme="c6"] :is(.uc-btn, .uc-primary) .uc-spark { color: #38bdf8; }

.uc[hidden], .uc [hidden] { display: none !important; }
/* 기본값 되돌리기는 :where 로 낮게(아래 uc- 규칙이 이기도록) */
:where(.uc) *, :where(.uc) *::before, :where(.uc) *::after { box-sizing: border-box; }
:where(.uc) p { margin: 0; padding: 0; }
:where(.uc) :is(button, input, select, textarea) { margin: 0; font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
:where(.uc) button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.uc :focus-visible { outline: 2px solid var(--uc-accent); outline-offset: 2px; }
.uc-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.uc-spark { width: 18px; height: 18px; flex: none; fill: currentColor; stroke: none; }
.uc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 가동 표시등 — 상담 가능할 때만 초록, 끝남·쉬는 중은 흐린 점 */
.uc-lamp { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--uc-off); }
.uc.is-live .uc-head .uc-lamp, .uc-done-title .uc-lamp { background: var(--uc-run); }
.uc-link { color: var(--uc-accent); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; transition: color .15s var(--u-ease); }
.uc-link:hover { color: var(--uc-ink); }

/* ── 여는 단추 ── */
.uc-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 13px;
  border: 0; border-radius: 23px; background: var(--uc-launch-bg); color: var(--uc-launch-ink);
  font: 600 14px/20px var(--u-font); white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 1px var(--uc-launch-edge), 0 10px 28px rgba(0, 0, 0, .26);
  transition: transform .12s var(--u-ease), box-shadow .15s var(--u-ease), filter .15s var(--u-ease);
  animation: uc-in .2s var(--u-ease);
}
.uc-btn .uc-spark { width: 20px; height: 20px; }
.uc-btn:hover { filter: brightness(1.04); box-shadow: 0 0 0 1px var(--uc-launch-edge), 0 12px 32px rgba(0, 0, 0, .3); }
.uc-btn:active { transform: scale(.98); }
.uc.is-open .uc-btn { display: none; }

/* ── 창 ── */
.uc-panel {
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 48px));
  height: min(680px, calc(100vh - 112px)); height: min(680px, calc(100dvh - 112px));
  background: var(--uc-bg); color: var(--uc-ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--uc-edge), 0 24px 56px rgba(0, 0, 0, .28), 0 4px 12px rgba(0, 0, 0, .1);
}
.uc-panel.is-in { animation: uc-in .2s var(--u-ease); }
@keyframes uc-in { from { opacity: 0; transform: translateY(8px); } }

.uc-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 16px; background: var(--uc-head-bg); color: var(--uc-head-ink); border-bottom: 1px solid var(--uc-head-line); }
.uc-mark { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--uc-mark-bg); color: var(--uc-mark-ink); box-shadow: inset 0 0 0 1px var(--uc-mark-edge); }
.uc-mark .uc-spark { width: 20px; height: 20px; }
.uc-mark .uc-lamp { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--uc-lamp-ring); }
.uc-hd { flex: 1 1 auto; min-width: 0; }
.uc-title { font: 600 15px/20px var(--u-font); color: var(--uc-head-ink); }
.uc-sub { margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--uc-head-ink-3); }
.uc-x { flex: none; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--uc-head-ink-2); cursor: pointer; transition: background-color .15s var(--u-ease), color .15s var(--u-ease); }
.uc-x:hover { background: var(--uc-head-hover); color: var(--uc-head-ink); }

.uc-note { flex: none; display: grid; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--uc-line); background: var(--uc-bg); font-size: 12px; line-height: 18px; color: var(--uc-ink-3); }

/* ── 대화록: AI 말은 이름표(반짝임) + 본문, 방문자 말은 오른쪽 말풍선 ── */
.uc-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 16px; background: var(--uc-log-bg); scrollbar-width: thin; scrollbar-color: var(--uc-line-2) transparent; }
.uc-log { display: flex; flex-direction: column; gap: 18px; }
.uc-m { display: grid; gap: 6px; }
.uc-who { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--u-font); color: var(--uc-who); }
.uc-who .uc-spark { width: 14px; height: 14px; }
.uc-text { font-size: 15px; line-height: 24px; color: var(--uc-ink); white-space: pre-wrap; }
.uc-m-me { justify-items: end; }
.uc-m-me .uc-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 화면에는 안 보이고 읽어 주기에는 '문의' */
.uc-m-me .uc-text { max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--uc-me-bg); color: var(--uc-me-ink); box-shadow: inset 0 0 0 1px var(--uc-me-line); font-size: 14px; line-height: 22px; }
.uc-m.is-pending { opacity: .6; }
.uc-m-sys { display: flex; align-items: center; gap: 12px; }
.uc-m-sys::before, .uc-m-sys::after { content: ""; flex: 1 1 16px; min-width: 16px; height: 1px; background: var(--uc-line-2); }
.uc-m-sys .uc-text { flex: 0 1 auto; font-size: 12px; line-height: 16px; color: var(--uc-ink-3); text-align: center; }
.uc-status { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--uc-ink-3); }
.uc-status:empty { display: none; }
.uc-dots { display: inline-flex; align-items: center; gap: 4px; height: 22px; color: var(--uc-dot); }
.uc-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .3; animation: uc-dot 1.2s var(--u-ease) infinite; }
.uc-dots i:nth-child(2) { animation-delay: .15s; }
.uc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes uc-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* ── 아래 칸 ── */
.uc-foot { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--uc-line); background: var(--uc-foot-bg); }
.uc-warn { margin: 0 6px 8px !important; font-size: 12px; line-height: 16px; color: var(--uc-neg); }
.uc-retry { padding: 0; border: 0; background: none; color: var(--uc-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.uc-field { display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 22px; background: var(--uc-field-bg); box-shadow: inset 0 0 0 1px var(--uc-field-line); transition: box-shadow .15s var(--u-ease); }
.uc-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--uc-accent), 0 0 0 4px var(--uc-ring); }
.uc-ta { flex: 1 1 auto; min-width: 0; height: 36px; min-height: 36px; max-height: 132px; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: var(--uc-ink); font-size: 14px; line-height: 22px; resize: none; outline: none; box-shadow: none; caret-color: var(--uc-accent); }
.uc .uc-ta:focus-visible { outline: none; }
.uc-ta::placeholder, .uc-in::placeholder { color: var(--uc-ink-3); opacity: 1; }
.uc-send { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--uc-send-bg); color: var(--uc-send-ink); cursor: pointer; transition: filter .15s var(--u-ease), transform .12s var(--u-ease), opacity .15s var(--u-ease); }
.uc-send:hover { filter: brightness(1.08); }
.uc-send:active { transform: scale(.96); }
.uc-send:disabled { opacity: .38; cursor: default; transform: none; filter: none; }
.uc-meta { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-top: 4px; padding-inline: 6px; font-size: 12px; line-height: 16px; color: var(--uc-ink-3); }
.uc-meta:has(.uc-count:empty):has(.uc-end[hidden]) { display: none; }
.uc-count { font-family: var(--u-mono); font-variant-numeric: tabular-nums; }
.uc-count.is-over { color: var(--uc-neg); }
.uc-end { margin-left: auto; min-height: 28px; padding: 0 4px; border: 0; background: none; color: var(--uc-ink-3); font-size: 12px; line-height: 16px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--uc-line-2); text-underline-offset: 3px; transition: color .15s var(--u-ease); }
.uc-end:hover { color: var(--uc-ink); text-decoration-color: currentColor; }
.uc-box { display: grid; gap: 12px; padding: 4px; }
.uc-hint { font-size: 13px; line-height: 20px; color: var(--uc-ink-2); }

/* ── 버튼 두 가지: 주 행동(테마 강조색) · 조용한 테두리 ── */
.uc-primary, .uc-again { display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--uc-btn-bg); color: var(--uc-btn-ink); font-weight: 600; font-size: 14px; line-height: 20px; cursor: pointer; transition: filter .15s var(--u-ease), transform .12s var(--u-ease); }
.uc-primary .uc-spark { width: 16px; height: 16px; }
.uc-again { height: 40px; }
.uc-primary:hover, .uc-again:hover { filter: brightness(1.08); }
.uc-primary:active, .uc-again:active { transform: scale(.98); }
.uc-primary[aria-disabled="true"] { opacity: .72; cursor: progress; transform: none; filter: none; }
.uc-end[aria-disabled="true"] { opacity: .6; cursor: progress; }
.uc-quiet { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--uc-line-2); color: var(--uc-ink-2); font-size: 13px; line-height: 20px; cursor: pointer; transition: background-color .15s var(--u-ease), color .15s var(--u-ease); }
.uc-quiet:hover { background: var(--uc-hover); color: var(--uc-ink); }
.uc-quiet:disabled { opacity: .5; cursor: default; }

/* ── 개발문의 확인 카드 ── */
.uc-card { margin-top: 18px; border-radius: 14px; background: var(--uc-card-bg); box-shadow: inset 0 0 0 1px var(--uc-card-line); }
.uc-card-head { display: flex; gap: 10px; align-items: flex-start; padding: 16px 16px 12px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--uc-line); background: var(--uc-c-head-bg); }
.uc-card-head > .uc-spark { margin-top: 1px; color: var(--uc-accent); }
.uc-card-title { font: 600 15px/20px var(--u-font); color: var(--uc-ink); }
.uc-card-sub { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--uc-ink-3); }
.uc-card-body { display: grid; gap: 16px; padding: 16px 16px 0; }
.uc-card-part { display: grid; gap: 12px; }
.uc-pair { display: grid; gap: 12px; }
.uc-card-part + .uc-card-part { padding-top: 16px; border-top: 1px solid var(--uc-line); }
.uc-notice { padding: 10px 12px; border-radius: 10px; background: var(--uc-notice-bg); font-size: 13px; line-height: 20px; color: var(--uc-notice-ink); }
.uc-f { display: grid; gap: 4px; min-width: 0; }
.uc-f-label { font: 500 12px/16px var(--u-font); color: var(--uc-ink-2); }
.uc-f-hint { font-size: 12px; line-height: 16px; color: var(--uc-ink-3); }
.uc-f-err { font-size: 12px; line-height: 16px; color: var(--uc-neg); }
.uc-in { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--uc-in-bg); color: var(--uc-ink); font-size: 14px; line-height: 22px; outline: none; box-shadow: inset 0 0 0 1px var(--uc-in-line); transition: box-shadow .15s var(--u-ease); }
.uc .uc-in:focus-visible { outline: none; }
.uc-in:focus { box-shadow: inset 0 0 0 1.5px var(--uc-accent), 0 0 0 3px var(--uc-ring); }
.uc-in[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--uc-neg); }
.uc-msg { min-height: 132px; max-height: 280px; resize: vertical; font-size: 13px; line-height: 20px; }
.uc-sel { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--uc-in-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6a8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.uc-sel option { background: #fff; color: #111; }
.uc-drop { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px; border: 1px dashed var(--uc-line-2); border-radius: 10px; background: var(--uc-in-bg); color: var(--uc-ink-2); font-size: 13px; line-height: 20px; cursor: pointer; transition: border-color .15s var(--u-ease), background-color .15s var(--u-ease); }
.uc-drop .uc-i { grid-row: span 2; color: var(--uc-ink-3); }
.uc-drop-sub { font-size: 12px; line-height: 16px; color: var(--uc-ink-3); }
.uc-drop:hover, .uc-drop.is-over { border-color: var(--uc-accent); background: var(--uc-hover); }
.uc-files { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.uc-files:empty { display: none; }
.uc-files li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--uc-line-2); font-size: 13px; line-height: 20px; }
.uc-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-file-size { flex: none; font-family: var(--u-mono); font-size: 12px; color: var(--uc-ink-3); font-variant-numeric: tabular-nums; }
.uc-files li.is-big .uc-file-size { color: var(--uc-neg); }
.uc-file-rm { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--uc-ink-3); cursor: pointer; }
.uc-file-rm .uc-i { width: 16px; height: 16px; }
.uc-file-rm:hover { background: var(--uc-hover); color: var(--uc-ink); }
/* 등록 단추 줄 — 카드를 보는 동안 대화 칸 아래에 붙어 있다(카드가 길어도 스크롤 없이 누를 수 있게) */
.uc-card-actions { position: sticky; bottom: -16px; z-index: 1; /* 대화 칸 아래 안쪽 여백(16px)까지 덮어 바닥에 붙인다 */ display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 -16px; padding: 12px 16px 16px; border-radius: 0 0 14px 14px; background: var(--uc-card-bg);
  box-shadow: inset 0 1px 0 var(--uc-line), inset 1px 0 0 var(--uc-card-line), inset -1px 0 0 var(--uc-card-line), inset 0 -1px 0 var(--uc-card-line), 0 -8px 16px -12px rgba(0, 0, 0, .18); }
.uc-card-msg { display: grid; gap: 4px; padding-bottom: 16px; font-size: 13px; line-height: 20px; color: var(--uc-neg); }
.uc-card-fold { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; font-size: 13px; line-height: 20px; color: var(--uc-ink-3); }
.uc-card-fold .uc-quiet { flex: none; }
.uc-card-done { display: grid; gap: 4px; padding: 16px; }
.uc-done-title { display: flex; align-items: center; gap: 8px; font: 600 14px/20px var(--u-font); color: var(--uc-ink); }
.uc-done-sub { font-size: 13px; line-height: 20px; color: var(--uc-ink-2); }
.uc-done-msg { margin-top: 8px !important; font-size: 13px; line-height: 20px; color: var(--uc-ink-2); white-space: pre-line; }

/* 단추가 바닥글 맨 아래 줄(저작권·링크)을 가리지 않게 */
html.uc-on .us-foot { padding-bottom: 96px; }

/* ── 휴대폰: 아래에서 올라오는 창, 자판이 올라오면 그 위로 ── */
@media (max-width: 760px) {
  .uc { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .uc.is-open { left: 0; right: 0; bottom: var(--uc-kb, 0px); }
  .uc-panel { width: 100%; height: min(680px, calc(100vh - 56px)); height: min(680px, calc(var(--uc-vh, 100dvh) - 56px)); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 0 0 1px var(--uc-edge), 0 -8px 32px rgba(0, 0, 0, .3); }
  .uc-note { padding-inline: 16px; }
  .uc-scroll { padding: 16px 16px 12px; }
  .uc-card-actions { bottom: -12px; }
  .uc-foot { padding-inline: 12px; }
  .uc-ta, .uc-in { font-size: 16px; } /* iOS 가 입력 칸을 확대하지 않게 */
  html.uc-on .us-foot { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc, .uc * { animation: none !important; transition: none !important; }
  .uc-dots i { opacity: .7; }
}
.uc:lang(ja) { word-break: normal; line-break: strict; } /* 일본어는 낱말 사이 공백이 없어 keep-all 이면 줄이 안 바뀐다 */
