:root{font-family:'DM Sans','Noto Sans Thai',sans-serif;color:#111827;background:#f6f8fc}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}button{cursor:pointer}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,5vw);background:white;border-bottom:1px solid #e5e7eb}.landingLogo{display:flex;align-items:center;font-size:30px;font-weight:800;letter-spacing:-1px}.landingHeart{width:36px;height:36px;display:inline-flex}.tlpHeartSvg{width:100%;height:100%}nav{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:600}.login{padding:12px 18px;background:#f3f4f6;border-radius:12px}main{max-width:1380px;margin:auto;padding:28px}.intro{margin-bottom:24px}.intro h1{font-size:32px;margin:10px 0}.intro p{margin:0}.tag{font-size:11px;font-weight:700;color:#e92d45;background:#fff0f2;padding:7px 11px;border-radius:20px;letter-spacing:.04em}.workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:22px}aside,.chat{border:1px solid #dfe6ef;border-radius:22px;background:white;box-shadow:0 8px 35px #1d376008}aside{padding:22px}h2{font-size:17px;margin:0 0 18px}#file-count{float:right;font-size:13px;color:#2563eb}.drop{border:1px dashed #91b1f5;border-radius:16px;background:#f5f8ff;display:flex;flex-direction:column;align-items:center;padding:22px 10px;gap:8px;cursor:pointer}.drop span,.drop small{font-size:12px}.drop .upload-icon{font-size:28px;color:#2563eb;background:white;border-radius:12px;padding:2px 16px}#files{width:100%;font-size:12px;margin-top:12px}.file{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf0f6}.file span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}.file button{border:0;background:#fff1f2;color:#aa1732;border-radius:8px;padding:7px}.note,.privacy{font-size:12px;line-height:1.7}.privacy{padding-top:14px;border-top:1px solid #e5e7eb}.quota{margin-top:22px;padding:16px;background:#f5f8ff;border-radius:12px;font-size:13px}.quota b{display:flex;justify-content:space-between}.quota small{font-size:11px;line-height:1.7;display:block}progress{width:100%;height:7px;margin:14px 0;accent-color:#2563eb}.tokens{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.tokens div{padding:12px;background:#f8fafc;border:1px solid #e7edf5;border-radius:12px}.tokens span{display:block;font-size:12px}.tokens b{font-size:23px;color:#1d4ed8;overflow-wrap:anywhere}.chat{display:flex;flex-direction:column;min-width:0;min-height:680px;max-height:850px}.chat-head{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid #e5e7eb}.chat-head h2{margin:0 0 5px}.chat-head span{font-size:12px}#messages{flex:1;overflow:auto;padding:24px;min-height:220px}#welcome{text-align:center;padding:65px 8px}#welcome>span{font-size:40px;color:#2563eb}#welcome p{line-height:1.8;font-size:14px}.message{padding:16px 18px;border-radius:16px;background:#f4f7fc;margin-bottom:16px;line-height:1.8;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{background:#2563eb;color:white;margin-left:12%}.message details{white-space:normal;border-top:1px solid #dde5f0;margin-top:14px;padding-top:10px;font-size:12px}.message summary{cursor:pointer;font-weight:600}.message small{display:block;font-size:11px;margin-top:12px}#ask{padding:18px 24px 22px;border-top:1px solid #e5e7eb}#ask label{font-size:13px;font-weight:600}textarea{display:block;width:100%;resize:vertical;max-height:160px;border:1px solid #cddbf0;border-radius:12px;padding:12px;margin-top:8px;font-size:14px}textarea:focus{outline:2px solid #9ebcf7}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px}#send{border:0;background:#2563eb;color:white;border-radius:11px;padding:12px 22px;font-weight:700}button:disabled{opacity:.5;cursor:wait}#error{margin:10px 24px;padding:12px;background:#fff0f2;border-radius:10px;color:#a31c35;font-size:13px}.thinking{display:flex;align-items:center;gap:7px;font-size:13px;padding:16px;color:#174c9c}.thinking i{width:7px;height:7px;background:#2563eb;border-radius:50%;animation:pulse 1s infinite}.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}@keyframes pulse{50%{opacity:.25;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.thinking i{animation:none}}@media(max-width:800px){main{padding:18px}.workspace{grid-template-columns:1fr}.chat{min-height:620px}.intro h1{font-size:27px}header{padding:0 18px}.landingLogo{font-size:25px}nav{gap:12px}.chat-head,#ask{padding:16px}}

.landingLogo .ai,.landingLogo .pdf,.footerBrand .ai,.footerBrand .pdf{font-family:'DM Sans',sans-serif!important;font-weight:700!important;font-style:normal!important;letter-spacing:-.035em!important}

#chat-mode{display:block;width:100%;padding:10px;border:1px solid #cddbf0;border-radius:10px;background:white;font:inherit;font-size:13px;margin:8px 0 12px}.answer-score{padding:10px;background:#edf3ff;border-radius:8px;font-size:12px}
#files[hidden]{display:none!important}button.drop{width:100%;font:inherit;color:inherit;transition:background .15s,border-color .15s}.drop:hover:not(:disabled),.drop.drag-over{background:#eaf1ff;border-color:#2563eb}.drop:focus-visible,#attach-file:focus-visible{outline:3px solid #8fb6ff;outline-offset:3px}.drop strong{font-size:14px;line-height:1.6}#attach-file{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8e3f3;background:#f5f8ff;color:#174b9e;border-radius:10px;padding:9px 12px;font-size:13px;white-space:nowrap}#attach-file svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.composer-bottom{gap:10px}.composer-bottom #characters{margin-right:auto}@media(max-width:450px){#attach-file span{display:none}#attach-file{padding:10px}.composer-bottom #characters{font-size:11px}#send{padding:11px 14px}}
.example-panel{margin:16px 22px 0;border:1px solid #dbe5f4;border-radius:14px;background:#f8faff;padding:14px}.example-panel summary{font-size:14px;font-weight:700;cursor:pointer}.example-panel label{display:block;font-size:12px;margin:12px 0 6px}#example-category{width:100%;padding:9px;border:1px solid #cddbf0;border-radius:9px;background:white;font:inherit;font-size:13px}#example-questions{display:grid;gap:6px;max-height:240px;overflow:auto;margin-top:10px}#example-questions button{text-align:left;background:white;border:1px solid #e1e8f4;border-radius:10px;padding:10px 12px;font:inherit;font-size:12px;line-height:1.6}#example-questions button:hover{border-color:#739ee7;background:#edf4ff}#example-questions small{display:block;font-size:10px;color:#245cc0;margin-top:4px}#example-note{font-size:11px;line-height:1.6;margin:10px 0 0}.chat{max-height:1100px}#example-questions button:focus-visible{outline:3px solid #8fb6ff;outline-offset:1px}

/* Chat presentation only: preserve answer text and evidence pipeline. */
.message{font-size:16px;line-height:1.9;padding:18px 20px;white-space:normal}
.message-content{white-space:pre-wrap;overflow-wrap:anywhere}
.message-speaker{display:flex;align-items:center;gap:9px;margin-bottom:12px;font-size:14px;font-weight:700;line-height:1.4}
.speaker-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e2ebff;color:#174cb4;border:1px solid #ccdcfb}
.speaker-avatar svg{width:18px;height:18px}
.message.user .speaker-avatar{background:#ffffff24;color:#fff;border-color:#ffffff5c}
.message details,.answer-score{font-size:14px;line-height:1.7}
.message small{font-size:12px;line-height:1.7}
#question{font-size:16px;line-height:1.7}
@media(max-width:450px){.message{padding:15px;line-height:1.8}.message.user{margin-left:5%}.message-speaker{font-size:13px}}

/* Consistent typography and compact example picker. */
main{font-family:'DM Sans','Noto Sans Thai',Arial,sans-serif;font-size:16px;font-weight:400}
main button,main input,main select,main textarea{font-family:inherit}
main h2{font-size:20px}
.drop strong{font-size:16px}.drop span,.drop small,.file span,.note,.privacy,.quota,.quota small,.tokens span,.chat-head span,#example-note{font-size:14px;line-height:1.7}
.message,#question{font-size:16px;line-height:1.8}
.message-speaker{font-size:14px}.message details,.answer-score{font-size:15px}
.example-panel{padding:14px 16px;background:#fafcff}
.example-panel summary{font-size:16px;font-weight:600}
.example-panel label{font-size:14px;margin-top:14px}
#example-category{font-size:15px}
#example-questions{max-height:none;overflow:visible;gap:8px;margin-top:12px}
#example-questions button{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.65;padding:12px 14px;color:#111827;overflow-wrap:anywhere}
.example-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;height:26px;border-radius:8px;background:#edf3ff;color:#245ac0;font-size:13px;font-weight:600}
.example-copy{min-width:0;flex:1}
#example-questions small{font-size:12px;color:#245ac0;margin-top:4px}
#example-note{margin-top:12px;font-size:13px}
.tokens b{font-size:26px}

.typing-status{font-size:12px;font-weight:400;color:#245ac0;margin-left:auto}
.typing-content::after{content:'';display:inline-block;width:2px;height:1em;background:#2563eb;margin-left:3px;vertical-align:-.1em;animation:typing-caret .75s step-end infinite}
@keyframes typing-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.typing-content::after{animation:none}}

.answer-block{white-space:normal}.answer-block+.answer-block{margin-top:20px}.answer-block>p{white-space:pre-wrap;margin:0 0 16px}.answer-block>p:last-child{margin-bottom:0}
.claim-evidence{background:#fff;border:1px solid #dce5f2;border-radius:12px;padding:12px!important;margin:12px 0 18px!important}
.claim-evidence summary{color:#194ba5;font-size:14px}.evidence-card{margin-top:12px;padding:12px;border-radius:8px;background:#f7f9fd;overflow-wrap:anywhere}.evidence-card strong{font-size:14px}.evidence-location{font-size:13px;margin-top:4px}.evidence-card blockquote{margin:10px 0 0;padding-left:12px;border-left:3px solid #a4bff3;white-space:pre-wrap;font-size:14px;line-height:1.8}
.citation-link{font:inherit;font-size:13px;border:1px solid #bacff2;border-radius:5px;background:#edf3ff;color:#174c9c;padding:0 4px;cursor:pointer}

#ask .example-panel{margin:0 0 16px}

.document-upload-stage{margin:.75rem 0;overflow-wrap:anywhere}.document-upload-stage progress{display:block;width:100%;height:.85rem;accent-color:#13787b;margin-bottom:.35rem}
.file {display:grid;gap:6px;padding:12px 0}
.file > span {font-weight:600}
.demo-file-actions,#demo-file-download {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.file button,.demo-file-action,#demo-file-dialog button {padding:7px 10px;border-radius:8px;font-size:13px;line-height:1.35;font-weight:600}
.file button.demo-file-action,.demo-file-action,#demo-file-dialog button {color:#174c9c;background:#eef4ff;border:1px solid #d8e4fb}
.demo-file-action {display:inline-flex;align-items:center}
.demo-file-action:hover,#demo-file-dialog button:enabled:hover {background:#dfeaff}
#demo-file-dialog {width:min(740px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:clamp(16px,4vw,26px);border:1px solid #dfe6ef;border-radius:20px;color:#111827;box-shadow:0 24px 80px #14274842;overflow:auto}
#demo-file-dialog::backdrop {background:#12223899}
.demo-file-head {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.demo-file-head h2 {margin:3px 0 0;font-size:clamp(18px,4vw,23px);overflow-wrap:anywhere}
.demo-file-kicker {margin:0;color:#174c9c;font-size:13px;font-weight:700}
#demo-file-meta,#demo-file-status {font-size:13px;line-height:1.55}
#demo-file-status:empty {display:none}
.demo-file-toolbar {margin:14px 0}
#demo-file-text {white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8ff;border:1px solid #dfe6ef;border-radius:12px;padding:16px;font-size:15px;line-height:1.75}
#demo-file-text:empty {display:none}
.workspace-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.workspace-links a,.workspace-links button{padding:8px 14px;border:1px solid #d8e4fb;border-radius:10px;background:#fff;color:#174c9c;font:inherit;font-size:14px;font-weight:700;text-decoration:none}
.workspace-links a:hover,.workspace-links button:hover{background:#eef4ff}
.workspace-links [hidden],#example-panel[hidden]{display:none}
