:root{--bg: #0f1115;--stage: #1a1d24;--panel: #ffffff;--text: #1a1d24;--muted: #6b7280;--line: #e6e8ec;--brand: #4f46e5;--brand-2: #7c3aed;--user-bubble: #4f46e5;--ai-bubble: #f1f3f7;--shadow: 0 12px 40px rgba(0, 0, 0, .18);--radius: 16px;font-family:Noto Sans KR,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:#fff}.app{display:flex;flex-direction:column;height:100vh;height:100dvh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#0f1115eb;border-bottom:1px solid rgba(255,255,255,.08);flex:0 0 auto}.topbar-left{display:flex;align-items:baseline;gap:10px;min-width:0}.topbar-name{font-weight:700;font-size:17px;color:#fff;letter-spacing:-.01em}.topbar-role{font-size:12.5px;color:#9aa2b1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-links{display:flex;align-items:center;gap:8px;flex:0 0 auto}.topbar-links a{color:#c7cbd4;text-decoration:none;font-size:13.5px;padding:6px 10px;border-radius:8px}.topbar-links a:hover{color:#fff;background:#ffffff12}.topbar-links .btn-ghost{border:1px solid rgba(255,255,255,.18)}.pdf-stage{flex:1 1 auto;min-height:0;background:var(--stage);padding:16px}.pdf-object{width:100%;height:100%;border:none;border-radius:10px;background:#2a2e37;box-shadow:var(--shadow)}.pdf-fallback{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#c7cbd4;text-align:center;padding:24px}.btn-primary{display:inline-block;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;text-decoration:none;padding:12px 22px;border-radius:10px;font-weight:600}.fab{position:fixed;right:22px;bottom:22px;z-index:50;display:inline-flex;align-items:center;gap:10px;padding:14px 20px;border:none;cursor:pointer;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border-radius:999px;font-size:15px;font-weight:700;font-family:inherit;box-shadow:0 10px 30px #4f46e580;transition:transform .18s ease,box-shadow .18s ease}.fab:hover{transform:translateY(-2px);box-shadow:0 14px 36px #4f46e599}.fab-icon{font-size:20px;line-height:1}.fab-label{white-space:nowrap}.fab-open{padding:16px}.fab-x{font-size:20px;line-height:1}.fab-ping{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:999px;box-shadow:0 0 #7c3aed8c;animation:fab-ping 2.2s cubic-bezier(.4,0,.6,1) infinite}@keyframes fab-ping{0%{box-shadow:0 0 #7c3aed80}70%{box-shadow:0 0 0 18px #7c3aed00}to{box-shadow:0 0 #7c3aed00}}.chat-panel{position:fixed;right:22px;bottom:92px;z-index:49;width:390px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100dvh - 120px);background:var(--panel);color:var(--text);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(16px) scale(.98);pointer-events:none;transition:opacity .2s ease,transform .2s ease}.chat-panel.open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.chat-head{display:flex;align-items:center;gap:10px;padding:14px 16px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;flex:0 0 auto}.chat-head-dot{width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px #4ade804d;flex:0 0 auto}.chat-head-text{display:flex;flex-direction:column;line-height:1.3;flex:1 1 auto}.chat-head-text strong{font-size:14.5px}.chat-head-text span{font-size:12px;opacity:.85}.chat-head-close{background:transparent;border:none;color:#fff;font-size:16px;cursor:pointer;opacity:.85;padding:4px 6px;border-radius:6px}.chat-head-close:hover{opacity:1;background:#ffffff26}.chat-scroll{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}.chat-welcome{color:var(--muted)}.chat-welcome-title{font-size:15px;font-weight:700;color:var(--text);margin:4px 0 6px}.chat-welcome-sub{font-size:13px;line-height:1.55;margin:0 0 14px}.chat-chips{display:flex;flex-direction:column;gap:8px}.chat-chip{text-align:left;padding:10px 12px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:13px;color:var(--text);cursor:pointer;font-family:inherit;transition:border-color .15s,background .15s}.chat-chip:hover{border-color:var(--brand);background:#f5f4ff}.bubble{max-width:84%;padding:10px 13px;border-radius:14px;font-size:13.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.bubble.user{align-self:flex-end;background:var(--user-bubble);color:#fff;border-bottom-right-radius:4px}.bubble.ai{align-self:flex-start;background:var(--ai-bubble);color:var(--text);border-bottom-left-radius:4px}.bubble.ai a{color:var(--brand);text-decoration:underline}.typing{display:inline-flex;gap:4px;padding:2px 0}.typing i{width:6px;height:6px;border-radius:50%;background:#9aa2b1;animation:blink 1.2s infinite both}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.chat-input{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--line);flex:0 0 auto}.chat-input textarea{flex:1 1 auto;resize:none;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13.5px;font-family:inherit;line-height:1.4;max-height:120px;color:var(--text);background:#fff;outline:none}.chat-input textarea:focus{border-color:var(--brand)}.chat-send{flex:0 0 auto;width:38px;height:38px;border-radius:10px;border:none;cursor:pointer;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-size:18px;font-weight:700;transition:opacity .15s}.chat-send:disabled{opacity:.45;cursor:default}@media(max-width:480px){.topbar-role,.fab-label{display:none}.fab{padding:16px}.chat-panel{right:12px;left:12px;bottom:84px;width:auto;height:calc(100dvh - 104px)}}
