/* Ly 채팅 위젯 · nullylab.com v3 토큰과 같은 색 체계 · 모바일 우선 */
.ly-root { --ly-bg: #0c0c14; --ly-surface: #12121c; --ly-surface-2: #181826; --ly-line: rgba(255,255,255,0.1); --ly-text: #f3f3f8; --ly-muted: #a9a9c2; --ly-dim: #7d7d96; --ly-blue: #5b8cff; --ly-purple: #b57cf2; --ly-user: #2a2f55;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; color: var(--ly-text); position: fixed; z-index: 9999; right: 16px; bottom: 16px; }
.ly-root * { box-sizing: border-box; }
.ly-fab { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--ly-line); border-radius: 999px; background: linear-gradient(135deg, #1a1a2e, #12121c); color: var(--ly-text); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.45); font: inherit; font-weight: 700; }
.ly-fab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ly-purple); }
.ly-fab.is-open span { display: none; }
.ly-fab.is-open { padding: 8px; }
.ly-panel { position: absolute; right: 0; bottom: 64px; width: 360px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--ly-bg); border: 1px solid var(--ly-line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.ly-panel[hidden] { display: none; }
.ly-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--ly-surface); border-bottom: 1px solid var(--ly-line); }
.ly-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ly-purple); }
.ly-head b { display: block; font-size: 16px; }
.ly-head small { display: block; color: var(--ly-muted); font-size: 12.5px; }
.ly-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ly-surface-2); color: var(--ly-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ly-msgs { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.ly-m { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.ly-m img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 28px; }
.ly-m p { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; word-break: break-word; overflow-wrap: anywhere; }
.ly-bot p { background: var(--ly-surface-2); border-bottom-left-radius: 6px; }
.ly-user { align-self: flex-end; }
.ly-user p { background: var(--ly-user); border-bottom-right-radius: 6px; }
.ly-m a { color: var(--ly-blue); text-decoration: underline; }
.ly-typing p { display: flex; gap: 4px; padding: 12px 14px; }
.ly-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ly-muted); animation: lyb 1s infinite ease-in-out; }
.ly-typing i:nth-child(2) { animation-delay: .15s; } .ly-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lyb { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ly-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 12px 8px; }
.ly-chips:empty { display: none; }
.ly-chips button { font: inherit; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ly-line); background: var(--ly-surface); color: var(--ly-text); cursor: pointer; }
.ly-chips button:hover { border-color: var(--ly-purple); }
.ly-form { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--ly-line); background: var(--ly-surface); }
.ly-in { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ly-line); background: var(--ly-bg); color: var(--ly-text); }
.ly-in:focus { outline: none; border-color: var(--ly-purple); }
.ly-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ly-send { font: inherit; font-weight: 700; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--ly-blue), var(--ly-purple)); color: #fff; cursor: pointer; }
.ly-send:disabled { opacity: .5; cursor: default; }
.ly-note { padding: 6px 12px 9px; font-size: 11px; color: var(--ly-dim); background: var(--ly-surface); text-align: center; }
@media (max-width: 600px) {
  .ly-root { right: 12px; bottom: 12px; }
  .ly-panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100vw; max-width: none; height: 88svh; max-height: 88svh; border-radius: 20px 20px 0 0; }
  .ly-fab.is-open { display: none; }
  .ly-in { font-size: 16px; }
}
