:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR","Malgun Gothic",sans-serif;color:#202124;background:#f3f4f7}*{box-sizing:border-box}body{margin:0;min-height:100vh}.card{background:#fff;border-radius:24px;box-shadow:0 14px 50px #2222}.login{width:min(90%,400px);margin:14vh auto;padding:40px 28px;text-align:center}.logo{display:inline-grid;place-items:center;background:#e51b23;color:#fff;border-radius:14px;font-weight:900;width:72px;height:54px;letter-spacing:-1px}.logo.small{width:48px;height:36px;border-radius:9px;margin-right:9px;font-size:14px}h1{margin:18px 0 5px;font-size:29px}h2{margin-top:0}.login p,dialog p{color:#74777d}.login form{display:flex;gap:8px;margin-top:28px}input,textarea{font:inherit;border:1px solid #d8d9df;border-radius:14px;padding:14px;background:#fff;outline:none}input:focus,textarea:focus{border-color:#e51b23;box-shadow:0 0 0 3px #e51b231a}.login input{min-width:0;flex:1}button{font:inherit;cursor:pointer}.login button,.composer .send,dialog button{border:0;background:#e51b23;color:#fff;font-weight:800;border-radius:14px;padding:0 18px}.error{color:#d0181f!important;min-height:20px;font-size:14px}main{min-height:100vh;padding-bottom:94px}header{position:sticky;top:0;z-index:2;height:64px;padding:10px max(16px,calc((100% - 760px)/2));display:flex;align-items:center;justify-content:space-between;background:#fffffff2;border-bottom:1px solid #e7e8eb;backdrop-filter:blur(14px)}header div{display:flex;align-items:center}header b{font-size:19px}.text-button{border:0;background:transparent;color:#b31319;font-weight:700}.status-row{font-size:12px;color:#6c7077;margin-bottom:15px}#conversation{max-width:760px;margin:auto;padding:18px 16px}.bubble{max-width:88%;margin:10px 0;padding:15px 17px;border-radius:19px;line-height:1.55;white-space:pre-wrap}.bubble.assistant{background:#fff;border-bottom-left-radius:5px;box-shadow:0 3px 12px #2221}.bubble.user{margin-left:auto;background:#e51b23;color:#fff;border-bottom-right-radius:5px}.correct-button{display:block;margin:7px 0 16px;border:0;background:transparent;color:#a4161b;font-size:13px}.sources{margin:5px 0 20px;background:#fff;border:1px solid #e3e4e8;border-radius:16px;padding:4px 14px}.sources details{border-bottom:1px solid #eee;padding:11px 0}.sources details:last-child{border:0}.sources summary{cursor:pointer;font-size:13px;font-weight:700}.sources p{font-size:13px;color:#60636a;line-height:1.5}.suggestions{display:flex;gap:8px;overflow:auto;padding:6px 0 18px}.suggestions button{white-space:nowrap;border:1px solid #e51b2340;color:#b31319;background:#fff;border-radius:18px;padding:9px 13px}.composer{position:fixed;bottom:0;left:0;right:0;display:flex;gap:9px;padding:12px max(14px,calc((100% - 760px)/2));padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #e0e1e5}.composer textarea{flex:1;resize:none;max-height:120px}.composer .send,.composer .save{width:48px;height:48px;padding:0;font-size:24px}.composer .save{border:1px solid #e51b2340;background:#fff;color:#b31319;border-radius:14px}.composer button:disabled{opacity:.45}.thinking{color:#777}dialog{width:min(92%,520px);border:0;border-radius:22px;padding:24px;box-shadow:0 20px 80px #1115}dialog::backdrop{background:#1118;backdrop-filter:blur(3px)}dialog textarea,dialog input{width:100%;margin-top:6px}dialog label{display:block;font-size:13px;font-weight:700;margin:14px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-actions button{min-height:44px}.dialog-actions .secondary{background:#eee;color:#444}.quick-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid #eee;padding:10px 0}.quick-row span{flex:1}.quick-row button{padding:7px 10px;background:#eee;color:#555;font-size:12px}hr{border:0;border-top:1px solid #ddd;margin:18px 0}@media(max-width:500px){.login{margin-top:10vh}.bubble{max-width:94%}}
.feedback-bar{display:flex;gap:7px;margin:7px 0 16px}.feedback-bar button{border:1px solid #dedfe3;background:#fff;color:#555;border-radius:15px;padding:7px 11px;font-size:12px}.feedback-bar button:hover{border-color:#e51b23;color:#b31319}.feedback-thanks{font-size:12px;color:#777;margin:7px 0 16px}
