/* Chat-first layout. Scoped to the chatbot; handbook and comparison keep their styles. */
*{box-sizing:border-box}html{height:100%}body{height:100dvh;margin:0;display:flex;flex-direction:column;overflow:hidden;color:#252a32;background:#fff;font-family:"Malgun Gothic",Arial,sans-serif;line-height:1.7}button,textarea{font:inherit}button{cursor:pointer}button,a,textarea{ -webkit-tap-highlight-color:transparent}button{border:0;background:transparent;color:inherit}a{color:inherit}button:disabled{opacity:.4;cursor:wait}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.site-header{flex-shrink:0;position:relative;z-index:3;padding:15px 28px;border-bottom:1px solid #e5e8ed;gap:18px}.site-header .site-brand{font-size:19px}.site-header .site-brand small{font-size:11px}.site-header .site-company-logo{width:42px;height:39px}.site-header .site-tabs a{font-size:15px;padding:12px 22px}.site-header .site-tabs [aria-current=page]{box-shadow:none;color:#245aa6;background:#f2f6fb;border-radius:8px}.app-shell{flex:1;min-height:0;display:grid;grid-template-columns:224px minmax(0,1fr)}.conversation-rail{background:#f7f8fa;border-right:1px solid #eceef1;display:flex;flex-direction:column;padding:28px 16px 17px;min-height:0}.rail-brand{display:flex;align-items:center;gap:10px;margin:0 10px 25px;color:#224f82;font-weight:700;font-size:19px}.rail-brand>svg{width:26px;height:26px}.rail-brand small{display:block;font-size:11px;font-weight:400;color:#818997;margin-top:3px}.new-chat{display:flex;align-items:center;gap:10px;border:1px solid #dce2e9;background:white;border-radius:9px;padding:11px 15px;font-size:14px;text-align:left}.new-chat:hover{background:#edf2f8;border-color:#b4c5da}.rail-section-label{font-size:11px;color:#8a919b;margin:29px 12px 9px}.current-chat{display:flex;align-items:center;gap:9px;padding:10px 12px;width:100%;font-size:13px;text-align:left;border-radius:8px;background:#e9eef5;color:#35516e}.current-chat svg{width:17px;height:17px}.current-chat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail-note{font-size:11px;color:#8a919c;padding:14px 12px;line-height:1.9}.rail-bottom{margin-top:auto;display:flex;flex-direction:column;gap:3px;padding-top:18px}.rail-bottom>button,.rail-bottom>a{display:flex;align-items:center;gap:10px;text-align:left;text-decoration:none;font-size:12px;padding:10px 12px;border-radius:7px;color:#606b78}.rail-bottom>button:hover,.rail-bottom>a:hover{background:#eceff3}.rail-bottom svg{width:17px;height:17px}.rail-edition{font-size:10px;color:#969da6;padding:14px 12px 0}.chat-main{min-width:0;min-height:0;display:flex;flex-direction:column}.chat-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:15px 28px;color:#727c89}.chat-name{font-size:15px;font-weight:700;color:#475565}.chat-name-detail{font-size:12px;font-weight:400;color:#9098a3;margin-left:9px}.topbar-actions{display:flex;align-items:center;gap:10px}.record-toggle{display:flex;align-items:center;gap:7px;font-size:12px;padding:6px 11px;border-radius:7px}.record-toggle:hover{background:#f2f4f7}.record-toggle svg{width:17px;height:17px}#recordCount{background:#e7eef7;color:#245aa6;font-size:10px;min-width:18px;border-radius:20px;padding:0 5px}.mobile-new{display:none}.chat-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 32px 60px;overflow-y:auto}.welcome{text-align:center;margin:0 0 27px;flex-shrink:0}.welcome-mark{width:52px;height:52px;border-radius:17px;background:#f0f5fb;color:#245aa6;margin:0 auto 15px;display:grid;place-items:center}.welcome-mark svg{width:30px;height:30px}.welcome-name{font-size:13px;color:#647990;letter-spacing:.3px;margin:0 0 9px}.welcome h1{font-size:33px;font-weight:600;letter-spacing:-1.5px;margin:0 0 13px;color:#263442}.welcome-description{font-size:13px;color:#858d98;line-height:1.9;margin:0}#messages{display:none}.composer-dock{width:min(800px,100%);flex-shrink:0}#chatForm{background:#fff;border:1px solid #d9dfe7;border-radius:19px;padding:18px 18px 12px;box-shadow:0 4px 20px #2439540a;transition:border-color .15s,box-shadow .15s}#chatForm:focus-within{border-color:#92abc9;box-shadow:0 4px 24px #24395410}#question{display:block;width:100%;background:transparent;color:#263442;border:0;outline:0;resize:none;min-height:57px;max-height:150px;line-height:1.7;font-size:15px;padding:1px 3px;overflow-y:auto}#question::placeholder{color:#9aa2ad}#question:disabled{color:#9aa2ad}.composer-actions{display:flex;align-items:center;justify-content:space-between;padding-top:9px}.composer-settings{display:flex;align-items:center;gap:6px;font-size:11px;color:#788391;padding:5px 7px;border-radius:6px}.composer-settings svg{width:16px;height:16px}.composer-settings:hover{background:#f3f5f8}.composer-right{display:flex;align-items:center;gap:13px}.keyboard-hint{font-size:10px;color:#a3abb5}#send{width:35px;height:35px;background:#245aa6;color:white;border-radius:11px;display:grid;place-items:center}#send svg{width:20px;height:20px;stroke-width:2}#send:hover{background:#19477f}.composer-caption{text-align:center;font-size:10px;color:#a0a6ae;margin:10px 0 0;line-height:1.7}.starter-section{width:min(800px,100%);margin-top:24px;flex-shrink:0}.suggestions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.suggestions button{border:1px solid #e7eaf0;border-radius:12px;padding:15px 13px;display:flex;flex-direction:column;gap:6px;text-align:left;min-width:0;transition:background .15s,border-color .15s}.suggestions button:hover{border-color:#b7c8dd;background:#f8fafc}.starter-icon{color:#7c91ab;font-size:18px;line-height:1;margin-bottom:5px}.suggestions strong{font-size:11px;font-weight:600;white-space:normal}.suggestions button>span:last-child{font-size:10px;color:#98a0ac;line-height:1.6}.connection-strip{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#a0a8b2;margin-top:24px;flex-shrink:0}.connection-dot{width:5px;height:5px;background:#9babbe;border-radius:50%}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9bb7dc;outline-offset:3px}
/* In a conversation, only the thread scrolls; the composer remains visible. */
body[data-state=conversation] .chat-stage{justify-content:flex-start;padding:0;overflow:hidden}body[data-state=conversation] .welcome,body[data-state=conversation] .starter-section,body[data-state=conversation] .connection-strip{display:none}body[data-state=conversation] #messages{display:block;flex:1;min-height:0;width:100%;overflow-y:auto;padding:20px max(28px,calc((100% - 800px)/2)) 32px;scroll-behavior:smooth;overscroll-behavior:contain}body[data-state=conversation] .composer-dock{padding:12px 0 13px;width:min(800px,calc(100% - 56px));background:white}body[data-state=conversation] .composer-caption{margin-top:7px}.message{margin:0 0 30px;overflow-wrap:anywhere;font-size:14px;line-height:1.9;clear:both}.message .who{display:block;font-weight:700;font-size:12px;color:#55718e;margin-bottom:11px}.message.assistant>.who:before{content:'\00B7\00B7\00B7';display:inline-grid;place-items:center;width:25px;height:25px;background:#edf3fa;border-radius:8px;margin-right:8px;vertical-align:middle;font-weight:700;letter-spacing:1px}.message .body{white-space:pre-wrap}.message.user{margin-left:auto;max-width:85%;width:fit-content;background:#f0f2f5;border-radius:17px 17px 4px 17px;padding:12px 18px;margin-top:6px;margin-bottom:25px}.message.user .who{display:none}.message .status{display:inline-block;font-size:10px;color:#7f8a98;border:1px solid #e5e9ee;border-radius:5px;padding:1px 7px;margin-bottom:10px}.response-notice{font-size:10px;color:#949da9;line-height:1.8;white-space:pre-wrap;margin:9px 0 13px}.message h3{font-size:13px;margin:20px 0 9px;color:#42576e}.knowledge-part{margin:9px 0;padding:10px 13px;border-left:2px solid #91adc9;background:#f7f9fc;font-size:13px}.knowledge-part.general{border-color:#b6bcc5;background:#f8f8f8}.knowledge-part.hypothesis{background:#fafafa;border-color:#d2c4a4}.kind-label{display:block;font-size:10px;color:#8e98a4;margin-bottom:4px}.inline-sources{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.inline-sources a{font-size:10px;color:#5c7ea4;text-decoration:none;border-bottom:1px solid #c6d3e2}.inline-sources a:hover{color:#245aa6}.next-check{margin-top:17px;padding:13px 16px;border:1px solid #dee6f0;border-radius:10px}.next-check h3{margin:0 0 6px;color:#315b8a}.next-check p{font-size:12px;margin:5px 0;color:#667486}.next-check details{font-size:11px;color:#8d98a5;margin-top:10px}.follow-label{font-size:13px;font-weight:600;margin:17px 0 10px;color:#43576f}.quick-answers{display:flex;flex-wrap:wrap;gap:7px}.quick-answers button{font-size:11px;padding:7px 12px;border:1px solid #ccd9e8;color:#527398;border-radius:20px;background:white}.quick-answers button:hover{background:#f1f6fb}.all-evidence{margin-top:15px;font-size:11px;color:#8b96a4}.source-card{padding:10px 12px;background:#f7f9fc;border-left:2px solid #c2d0e0;margin-top:10px}.source-card blockquote{margin:8px 0;font-size:11px;white-space:pre-wrap;max-height:170px;overflow:auto}.message small{display:block;font-size:9px;color:#b0b6bf;margin-top:9px}.message.pending .body{color:#9aa6b3;font-size:12px}.message.pending .who:before{animation:thinking 1.3s ease-in-out infinite}@keyframes thinking{50%{opacity:.35}}
/* Supporting content stays out of the first-screen task. */
dialog{color:#354354;border:1px solid #e0e5ed;box-shadow:0 12px 50px #20324b1a;padding:0;max-width:calc(100% - 28px)}dialog::backdrop{background:#22354a35}.side-dialog{height:100dvh;max-height:100dvh;width:390px;margin:0 0 0 auto;border-radius:0;border-right:0;border-top:0;border-bottom:0}.guide-dialog{width:540px;max-height:calc(100dvh - 44px);border-radius:16px}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;border-bottom:1px solid #edf0f4}.dialog-head h2{font-size:18px;margin:0;font-weight:600}.dialog-eyebrow{display:block;font-size:10px;color:#8d9aab;margin-bottom:3px}.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;color:#8391a3}.icon-button:hover{background:#f0f3f7}.dialog-body{padding:22px 24px}.side-dialog .dialog-body{height:calc(100% - 175px);overflow:auto}.dialog-footer{padding:16px 24px;border-top:1px solid #edf0f4}.dialog-footer button{width:100%;font-size:13px;padding:10px;border:1px solid #d4dfea;border-radius:8px;color:#456b95}.case-note{font-size:11px;color:#93a0af;line-height:1.9;margin:0 0 23px}.empty-record{font-size:13px;text-align:center;color:#9aa7b6;margin:55px 0}#caseRecord>strong{font-size:14px}#caseRecord dt{font-size:11px;color:#93a0b0;margin-top:18px}#caseRecord dd{font-size:13px;border-left:2px solid #d7e1ed;padding-left:10px;margin:5px 0;color:#556c86}#caseRecord h3{font-size:12px;margin-top:24px}.deferred-item{font-size:12px;color:#9b875e}#caseRecord details{font-size:11px;color:#95a0af;margin-top:24px}#caseRecord details ul{padding-left:16px}.general-option{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:23px;border-bottom:1px solid #edf0f4}.general-option strong{font-size:13px;font-weight:600}.general-option small{display:block;font-size:11px;color:#9aa5b3;margin-top:5px}.general-option input{width:19px;height:19px;accent-color:#245aa6;flex-shrink:0}.chat-rules h3{font-size:14px;margin:23px 0 12px}.chat-rules ul{font-size:12px;line-height:1.9;padding-left:18px;color:#7b8999}.chat-rules li{margin-bottom:10px}.chat-rules p{font-size:11px;color:#9aa4b2;line-height:1.9}.input-help{border-top:1px solid #edf0f4;padding-top:15px;margin-top:20px}[hidden]{display:none!important}
@media(min-height:950px){.chat-stage{padding-bottom:120px}}@media(max-width:1100px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.conversation-rail{padding:23px 12px 15px}.rail-brand{font-size:17px}.suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}.suggestions button{padding:12px;display:grid;grid-template-columns:20px 1fr;column-gap:7px;row-gap:2px}.starter-icon{grid-row:1/3;margin:4px 0}.suggestions button>span:last-child{grid-column:2}.chat-stage{padding-bottom:30px}.site-header .site-tabs a{padding:10px 15px}}@media(max-width:760px){.app-shell{display:flex}.conversation-rail{display:none}.chat-main{width:100%}.site-header{padding:10px 15px;gap:10px;flex-wrap:wrap}.site-header .site-brand{font-size:16px}.site-header .site-brand small{font-size:10px}.site-header .site-company-logo{width:33px;height:31px}.site-header .site-tabs{width:100%;align-self:auto;justify-content:center;border-top:1px solid #f0f2f5;padding-top:5px}.site-header .site-tabs a{flex:1;min-height:36px;font-size:12px;padding:8px 10px}.chat-topbar{padding:10px 16px}.chat-name{font-size:13px}.chat-name-detail{display:none}.mobile-new{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#f5f7f9}.chat-stage{padding:10px 20px 28px;justify-content:center}.welcome{margin-bottom:24px}.welcome-mark{width:45px;height:45px;border-radius:14px;margin-bottom:12px}.welcome-mark svg{width:25px;height:25px}.welcome h1{font-size:27px;letter-spacing:-1px}.welcome-description{font-size:11px}.welcome-name{font-size:12px}.composer-caption{font-size:9px}#chatForm{padding:14px 14px 10px;border-radius:16px}#question{font-size:14px;min-height:54px}.keyboard-hint{display:none}.starter-section{margin-top:19px}.suggestions{gap:8px}.suggestions button{padding:11px 10px;grid-template-columns:15px 1fr;gap:1px 6px}.suggestions strong{font-size:10px}.suggestions button>span:last-child{font-size:9px}.starter-icon{font-size:15px}.connection-strip{font-size:9px;margin-top:18px;max-width:95%;text-align:center;align-items:flex-start}body[data-state=conversation] #messages{padding:16px 20px 24px}body[data-state=conversation] .composer-dock{width:calc(100% - 28px);padding:9px 0 10px}.message{font-size:13px}.message.user{max-width:90%}.dialog-body{padding:20px}.dialog-head{padding:19px 20px}.side-dialog{width:350px}.guide-dialog{max-height:calc(100dvh - 24px)}}@media(max-height:750px) and (min-width:761px){.chat-stage{padding-top:15px;padding-bottom:20px}.welcome-mark{display:none}.welcome{margin-bottom:18px}.welcome h1{font-size:29px}.welcome-description{font-size:12px}.suggestions button{padding:10px 12px}.starter-section{margin-top:18px}.connection-strip{margin-top:15px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Readable secondary text, with safe centering on shorter phone screens. */
.welcome-description{color:#727d8b}.suggestions strong{font-size:12px}.suggestions button>span:last-child{font-size:11px;color:#7c8898}.rail-bottom>button,.rail-bottom>a{font-size:13px}.chat-stage{justify-content:flex-start}.welcome{margin-top:auto}.connection-strip{margin-bottom:auto}@media(max-width:760px){.suggestions strong{font-size:11px}.suggestions button>span:last-child{font-size:10px}.chat-stage{justify-content:flex-start}.welcome{margin-top:auto}.connection-strip{margin-bottom:auto}}

@media(max-width:760px){#question{font-size:16px}}

.message.assistant>.who:before{content:'';background:#edf3fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2355718e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 3v-3H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E") center/16px 16px no-repeat}.inline-sources a{font-size:11px;padding:1px 3px}
