@font-face{font-family:Pretendard;src:url('/luna/assets/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{font-family:Pretendard,system-ui,"Malgun Gothic",sans-serif;color:#171b21;background:#f6f8fb;font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible{outline:2px solid #0066ff;outline-offset:3px}button:disabled{cursor:default}button,textarea{touch-action:manipulation}[hidden]{display:none!important}
.app{display:flex;flex-direction:column;width:100%;max-width:760px;height:100dvh;min-height:320px;margin:0 auto;background:#fff;border-left:1px solid #e7ebf0;border-right:1px solid #e7ebf0}
.app-header{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:16px 20px 14px;min-height:78px;border-bottom:1px solid #e1e5eb}.brand-logo{width:44px;height:44px;flex-shrink:0;object-fit:cover;border-radius:15px}.brand-copy{min-width:0;flex:1}.brand-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}h1{margin:0;font-size:20.8px;font-weight:700;letter-spacing:-.55px;line-height:1.3}.test-badge{display:inline-block;padding:3px 6px;border-radius:5px;background:#e7f6f2;color:#187665;font-size:10px;font-weight:650;white-space:nowrap}.brand-copy>p{margin:4px 0 0;color:#697585;font-size:12px;line-height:1.4}.new-chat{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:36px;padding:7px 9px;border:1px solid #e1e5eb;border-radius:10px;background:#fff;color:#526070;font-size:12px}.new-chat:hover{background:#f5f7fa}.new-chat svg{flex-shrink:0}.test-notice{flex-shrink:0;margin:0;padding:10px 20px;background:#f7f9fc;color:#647184;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 22px;scrollbar-width:thin;scrollbar-color:#dce1e8 transparent}.chat-day{display:table;margin:14px auto 18px;padding:4.8px 12px;border-radius:999px;background:#f0f2f6;color:#526070;font-size:13.2px;line-height:1.5;text-align:center}.assistant-label{display:block;margin:0 0 6px;color:#607084;font-size:12px;font-weight:550}.welcome-bubble{display:table;max-width:83%;margin:0;background:#f0f2f6;border-radius:14px;padding:11px 14px;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.message{margin:18px 0;min-width:0}.message.mine .message-line{flex-direction:row-reverse}.message-line{display:flex;align-items:flex-end;gap:6px;width:100%;min-width:0}.message-bubble{margin:0;max-width:83%;min-width:0;padding:10px 14px;border-radius:14px;background:#f0f2f6;color:#171b21;font-size:16px;font-weight:400;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}.message.mine .message-bubble{background:#36dafa;color:#111}.message-time{display:block;flex-shrink:0;white-space:nowrap;padding-bottom:2px;color:#607084;font-size:11px;line-height:1.2}.message.mine.failed .message-bubble{outline:1px solid #e5acac;outline-offset:1px}.failed-label{margin:5px 1px 0;text-align:right;color:#a95959;font-size:11px}.handoff-note{max-width:83%;margin:8px 0 0;color:#697585;font-size:12px;line-height:1.6}.message-bubble a{color:#1263a8;text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.thinking{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;margin:14px 0 0;padding:11px 14px;border-radius:14px;background:#f7f8fa;color:#718094;font-size:13px;line-height:1.5}.thinking-dots{display:flex;align-items:center;gap:3px;height:15px}.thinking-dots i{width:4px;height:4px;border-radius:50%;background:#9da8b6;animation:thinking 1.2s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinking{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.composer-wrap{flex-shrink:0;padding:9px 12px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f1f3f6}.entry{display:flex;align-items:flex-end;gap:4px;min-height:48.4px;padding:5px;background:#f5f6f8;border-radius:24.2px}.entry textarea{display:block;flex:1;min-width:0;min-height:38.4px;max-height:128px;resize:none;margin:0;padding:7px 10px;border:0;background:transparent;color:#171b21;font-size:17px;font-weight:400;line-height:24px;overflow-y:auto;scrollbar-width:none;border-radius:16px}.entry textarea::-webkit-scrollbar{display:none}.entry textarea::placeholder{color:#929ba7;opacity:1}.entry textarea:focus{outline:none;box-shadow:none}.clear-draft,.send{display:grid;place-items:center;flex-shrink:0;align-self:flex-end;width:37.4px;height:37.4px;padding:0;border:0;border-radius:50%}.clear-draft{background:transparent;color:#7b8490}.clear-draft>span{display:grid;place-items:center;width:27.2px;height:27.2px;background:#fff;border-radius:50%}.clear-draft svg,.send svg{display:block}.send{background:#35ddf4;color:#111}.send:disabled{background:#e3e8ec;color:#b3bdc7}.send:not(:disabled):hover{background:#28cfe9}.input-hint{margin:7px 0 0;text-align:center;color:#9ba4b0;font-size:10px;line-height:1.4}.network-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 8px 12px;color:#a55950;font-size:12px;line-height:1.6}.network-status>span{min-width:0;overflow-wrap:anywhere}.network-status button{flex-shrink:0;padding:7px 9px;border:1px solid #e9d9d6;border-radius:7px;background:#fff;color:#955f55;font-size:12px}
@media(max-width:670px){:root{background:#fff}.app{max-width:none;border:0}.app-header{gap:10px;min-height:74px;padding:14px 14px 12px}.brand-logo{width:40px;height:40px;border-radius:14px}h1{font-size:19px;letter-spacing:-.7px}.brand-title{gap:5px}.test-badge{font-size:9px;padding:2px 4px}.brand-copy>p{font-size:11px}.new-chat{padding:6px 7px;gap:3px;font-size:11px}.new-chat svg{width:17px;height:17px}.test-notice{padding:9px 16px;font-size:11.5px}.history{padding:2px 14px 20px}.message-bubble,.welcome-bubble{max-width:83%}.input-hint{display:none}.composer-wrap{padding-left:10px;padding-right:10px;padding-top:7px}.network-status{padding-left:5px;padding-right:5px}}
@media(max-width:370px){.app-header{gap:8px;padding-left:12px;padding-right:12px}.brand-logo{width:36px;height:36px;border-radius:12px}h1{font-size:17px}.brand-copy>p{font-size:10px}.new-chat>span{display:none}.new-chat{width:34px;height:34px;padding:0}.test-notice{padding-left:14px;padding-right:14px}.message-bubble,.welcome-bubble{font-size:16px;padding:9px 12px}.message-time{font-size:10px}.message-line{gap:5px}}
@media(prefers-reduced-motion:reduce){.thinking-dots i{animation:none}}
.assistant-label.is-ai{display:flex;align-items:center;gap:7px}.assistant-avatar{position:relative;display:block;flex:0 0 32px;width:32px;height:32px;overflow:hidden}.assistant-avatar>img{position:absolute;display:block;width:40px;height:40px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%);object-fit:contain}
.composer-wrap{position:relative}.entry{gap:3px}.entry textarea{padding-left:7px;padding-right:5px}.attach{display:grid;place-items:center;flex-shrink:0;align-self:flex-end;width:37.4px;height:37.4px;padding:0;border:0;border-radius:50%;background:#fff;color:#171b21}.attach:hover:not(:disabled){background:#edf1f5}.attach:disabled{opacity:.45}.attach[aria-expanded=true]{background:#e7f0f8;color:#22679f}.attachment-menu{position:absolute;z-index:5;left:16px;bottom:calc(100% - 2px);display:grid;gap:3px;width:232px;padding:8px;border:1px solid #e0e6ed;border-radius:15px;background:#fff;box-shadow:0 5px 24px #26354c1c}.attachment-menu>button{display:flex;align-items:center;gap:10px;min-height:43px;padding:10px;border:0;border-radius:9px;background:#fff;color:#263241;font-size:14px;text-align:left}.attachment-menu>button:hover{background:#f2f6fa}.attachment-menu>button>svg{flex-shrink:0;color:#61758c}.attachment-menu>span{padding:5px 10px 3px;color:#8c99a9;font-size:10px;line-height:1.5}.attachment-previews{display:flex;gap:10px;overflow-x:auto;padding:4px 8px 11px;scrollbar-width:thin}.attachment-preview{position:relative;flex-shrink:0;width:72px;height:72px}.attachment-preview>img{display:block;width:72px;height:72px;object-fit:cover;border:1px solid #e3e8ee;border-radius:10px;background:#f0f2f6}.attachment-remove{position:absolute;top:-4px;right:-4px;display:grid;place-items:center;width:23px;height:23px;padding:0;border:2px solid #fff;border-radius:50%;background:#647184;color:white}.attachment-remove:disabled{opacity:.4}.attachment-remove>svg{display:block}.attachment-status{margin:0;padding:0 9px 9px;color:#69798d;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.attachment-status.is-error{color:#a55950}.message-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-width:100%;white-space:normal}.message-photos.single{grid-template-columns:minmax(0,1fr)}.message-photos>img{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:8px;background:#e7edf2}.message-photos.single>img{width:min(240px,100%);max-height:300px;object-fit:contain}.message-bubble.has-photos{width:min(270px,83%);padding:7px}.message-bubble.photo-only{background:#eef3f7}.message-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-photos+.message-text{margin:8px 5px 3px}.message-photo-placeholder{margin:0 0 5px;color:#53697d;font-size:12px;line-height:1.5;white-space:normal}.message-bubble.photo-only .message-photo-placeholder{margin:3px}.message-photo-placeholder:last-child{margin-bottom:0}
@media(max-width:370px){.entry{gap:1px}.entry textarea{padding-left:5px;padding-right:3px}.attach,.send,.clear-draft{width:34px;height:34px}.attach>svg{width:21px;height:21px}.message-bubble.has-photos{width:min(238px,80%)}.attachment-menu{left:12px}}


#thread-notice{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24dvh;overflow-y:auto}
