@import "https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&family=Outfit:wght@600;800&display=swap";:root{color:#0f172a;font-synthesis:none;--red:#e11d48;--gold:#f59e0b;--line:#e7e9ee;--muted:#64748b;background:#f8fafc;font-family:Noto Sans KR,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 80% 0,#fff1f2,#0000 30%),#f8fafc;min-width:320px;margin:0;overflow:hidden}button,textarea,select{font:inherit}.app{grid-template-columns:310px minmax(0,1fr);height:100dvh;display:grid}.fx{z-index:100;pointer-events:none;width:100%;height:100%;position:fixed;inset:0}.desktop-sidebar{background:#fffffff0;border-right:2px solid #ffe4e6;flex-direction:column;gap:14px;height:100dvh;padding:22px 18px;display:flex;overflow-y:auto}.brand{align-items:center;gap:11px;margin-bottom:2px;display:flex}.brand>div{color:#fff;background:linear-gradient(135deg,var(--red),#be123c);border-radius:13px;place-items:center;width:42px;height:42px;font-size:20px;font-weight:900;display:grid;transform:rotate(-4deg);box-shadow:0 8px 18px #e11d4840}.brand span{display:grid}.brand small,.eyebrow,header small{letter-spacing:.13em;color:var(--red);font:800 10px Outfit}.brand b{font-size:17px}.panel,.rank{border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px;box-shadow:0 7px 20px #0f172a0a}.rank{background:linear-gradient(135deg,#fff,#fff1f2);border:2px solid #fecdd3}.rank-row{justify-content:space-between;align-items:center;display:flex}.rank h3{margin:5px 0;font-size:19px}.rank b{color:#d97706;font-size:12px}.rank p{color:var(--muted);margin:0 0 12px;font-size:11px}.bar{background:#e9edf2;border-radius:9px;height:9px;overflow:hidden}.bar i{background:linear-gradient(90deg,var(--red),#fb7185,var(--gold));border-radius:9px;height:100%;display:block}.panel h3{margin:0 0 11px;font-size:13px}.panel-title{justify-content:space-between;display:flex}.panel-title span{color:var(--red);font-size:11px;font-weight:800}.drop{color:#172033;cursor:pointer;background:#fff8f8;border:2px dashed #fda4af;border-radius:12px;width:100%;padding:15px 8px;transition:all .2s}.drop:hover,.drop.drag{background:#fff1f2;transform:translateY(-2px);box-shadow:0 8px 20px #e11d481e}.drop strong,.drop small{display:block}.drop small{color:var(--muted);margin-top:4px;font-size:10px}.file-list{gap:6px;max-height:125px;margin-top:9px;display:grid;overflow:auto}.file{background:#f8fafc;border-radius:9px;align-items:center;gap:5px;padding:7px 8px;font-size:10px;display:flex}.file i{background:#10b981;border-radius:50%;width:6px;height:6px}.file span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vault-foot{color:var(--muted);justify-content:space-between;margin-top:10px;font-size:11px;display:flex}.vault-foot b{color:#172033}.settings label{color:var(--muted);gap:5px;font-size:10px;display:grid}select{border:1px solid var(--line);color:#172033;background:#fff;border-radius:9px;padding:8px}.sound{color:#172033;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;padding:11px 0;font-size:11px;display:flex}.sound i{background:#cbd5e1;border-radius:20px;width:34px;height:19px;padding:3px}.sound i:after{content:"";background:#fff;border-radius:50%;width:13px;height:13px;transition:all .2s;display:block}.sound.on i{background:var(--red)}.sound.on i:after{transform:translate(15px)}.reset{width:100%;color:var(--red);cursor:pointer;background:#fff1f2;border:0;border-radius:9px;padding:8px;font-size:10px;font-weight:800}main{flex-direction:column;gap:14px;min-width:0;height:100dvh;padding:20px 26px;display:flex}header{border:2px solid #fecdd3;border-left:7px solid var(--red);background:linear-gradient(135deg,#fff,#fff1f2 70%,#fffbeb);border-radius:18px;flex:none;justify-content:space-between;align-items:center;gap:15px;padding:17px 21px;display:flex;box-shadow:0 10px 25px #e11d4812}header h1{letter-spacing:-.04em;margin:2px 0;font:800 clamp(23px,2.7vw,37px) Outfit,Noto Sans KR}header p{color:var(--muted);margin:0;font-size:12px}.badges{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.badges span,.badges b{white-space:nowrap;background:#fff;border:1.5px solid #fecdd3;border-radius:20px;padding:6px 10px;font-size:10px}.badges b{color:#fff;background:linear-gradient(90deg,var(--red),#f43f5e);border:0;animation:.8s infinite alternate pulse}.workspace{flex:1;grid-template-columns:minmax(0,1fr) 245px;gap:14px;min-height:0;display:grid}.chat{background:#fff;border:2px solid #eef0f4;border-radius:20px;flex-direction:column;min-height:0;display:flex;overflow:hidden;box-shadow:0 16px 38px #0f172a0d}.messages{overscroll-behavior:contain;flex:1;padding:20px;overflow-y:auto}.welcome{text-align:center;max-width:570px;margin:max(25px,7vh) auto 0}.seal{background:linear-gradient(135deg,var(--red),#fb7185);color:#fff;border-radius:18px;place-items:center;width:57px;height:57px;margin:auto;font-size:24px;font-weight:900;display:grid;transform:rotate(-5deg);box-shadow:0 10px 24px #e11d4845}.welcome h2{margin:15px 0 7px;font-size:21px}.welcome p{color:var(--muted);font-size:12px;line-height:1.7}.prompts{grid-template-columns:1fr 1fr;gap:8px;margin-top:18px;display:grid}.prompts button{text-align:left;border:1.5px solid var(--line);cursor:pointer;background:#fff;border-radius:11px;padding:11px;font-size:10px;transition:all .2s}.prompts button:hover{border-color:var(--red);color:var(--red);transform:translateY(-2px)}.message{max-width:88%;margin-bottom:14px;font-size:13px;line-height:1.65;animation:.25s up}.message.user{color:#fff;background:linear-gradient(135deg,#1e293b,#0f172a);border-radius:15px 15px 3px;margin-left:auto;padding:12px 15px;box-shadow:0 6px 15px #0f172a2a}.message.bot{border:2px solid #fecdd3;border-left:6px solid var(--red);background:#fff;border-radius:15px 15px 15px 3px;padding:14px 16px;box-shadow:0 7px 19px #e11d4815}.who{letter-spacing:.1em;color:var(--red);margin-bottom:5px;font:800 10px Outfit}.answer{white-space:pre-wrap}.source{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;margin-top:9px;padding:8px 10px;font-size:10px}.source summary{cursor:pointer;font-weight:800}.source p{white-space:pre-wrap;margin:7px 0 0;line-height:1.5}.composer{border-top:1px solid var(--line);flex:none;padding:12px}.composer>div{background:#fff;border:2px solid #dce1e8;border-radius:14px;align-items:flex-end;gap:7px;padding:7px 7px 7px 12px;transition:all .2s;display:flex}.composer>div:focus-within{border-color:var(--red);box-shadow:0 0 0 4px #ffe4e6,0 0 25px #e11d4830}.composer textarea{resize:none;color:#172033;border:0;outline:0;flex:1;min-height:34px;max-height:90px;padding:7px 0}.composer button{background:linear-gradient(135deg,var(--red),#be123c);color:#fff;border:0;border-radius:11px;width:40px;height:40px;font-size:18px;box-shadow:0 5px 13px #e11d4855}.composer small{text-align:center;color:#94a3b8;margin-top:6px;font-size:9px;display:block}.intel{flex-direction:column;gap:12px;display:flex}.stats>div{border-bottom:1px solid #eef0f4;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.stats>div:last-child{border:0}.stats span{font-size:11px}.stats small{color:var(--muted);letter-spacing:.08em;font:700 8px Outfit;display:block}.stats b{font:800 21px Outfit}.missions p{color:#64748b;background:#f8fafc;border-radius:10px;margin:7px 0;padding:9px;font-size:10px}.missions p.done{color:#b45309;background:#fffbeb}.missions small{margin:3px 0 0 24px;display:block}.mobile-nav,.sheet-backdrop{display:none}.toast{z-index:110;background:linear-gradient(135deg,var(--red),#9f1239);color:#fff;opacity:0;pointer-events:none;border-radius:12px;padding:11px 15px;font-size:11px;font-weight:800;transition:all .25s;position:fixed;bottom:22px;right:22px;transform:translateY(20px);box-shadow:0 12px 30px #e11d4855}.toast.show{opacity:1;transform:none}@keyframes pulse{to{transform:scale(1.05);box-shadow:0 6px 18px #e11d4855}}@keyframes up{0%{opacity:0;transform:translateY(7px)}}@media (width<=900px){body{overflow:hidden}.app{display:block}.desktop-sidebar,.intel{display:none}main{gap:9px;height:calc(100dvh - 67px);padding:10px}header{border-left-width:5px;border-radius:15px;padding:11px 13px}header small,header p,.badges span{display:none}header h1{font-size:21px}.badges b{font-size:9px;display:block}.workspace{min-height:0;display:block}.chat{border-radius:16px;height:100%}.messages{padding:14px}.welcome{margin:6vh auto 0}.welcome h2{font-size:19px}.prompts{grid-template-columns:1fr;gap:7px}.prompts button{font-size:11px}.message{max-width:94%;font-size:12px}.composer{padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.composer small{display:none}.composer textarea{font-size:16px}.mobile-nav{height:67px;padding:6px 12px max(6px,env(safe-area-inset-bottom));z-index:80;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff5;border-top:1px solid #fecdd3;grid-template-columns:repeat(3,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav button{color:#64748b;background:0 0;border:0;font-size:19px;position:relative}.mobile-nav span{font-size:9px;font-weight:800;display:block}.mobile-nav button.active{color:var(--red)}.mobile-nav em{background:var(--red);color:#fff;border-radius:9px;min-width:16px;height:16px;padding:0 4px;font:8px/16px sans-serif;position:absolute;top:0;left:calc(50% + 8px)}.sheet-backdrop{z-index:90;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a66;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-height:84dvh;padding:8px 14px calc(82px + env(safe-area-inset-bottom));background:#f8fafc;border-radius:22px 22px 0 0;animation:.25s sheet;overflow-y:auto;box-shadow:0 -18px 50px #0f172a33}.sheet-grip{background:#cbd5e1;border-radius:5px;width:42px;height:5px;margin:2px auto 12px}.sheet>.panel,.sheet>.rank,.sheet>.intel{margin-bottom:10px;display:block}.sheet .intel .panel{margin-bottom:10px}.sheet-close{color:#fff;background:#0f172a;border:0;border-radius:11px;width:100%;padding:11px;font-weight:800}.toast{text-align:center;bottom:77px;left:12px;right:12px}.file-list{max-height:170px}@keyframes sheet{0%{transform:translateY(100%)}}}@media (width<=390px){header h1{font-size:18px}.badges b{padding:5px 8px}.welcome h2{font-size:17px}.seal{width:50px;height:50px}.messages{padding:11px}.message.bot{padding:12px 13px}.composer textarea{font-size:16px}}
