
:root{--ink:#1d333a;--muted:#586f75;--line:#d7e2df;--teal:#194b55}*{box-sizing:border-box}
body{margin:0;background:#f5f6f2;color:var(--ink);font:15px/1.6 system-ui,-apple-system,Segoe UI,Arial,sans-serif}
a{color:#1c5662}button,textarea{font:inherit}button{cursor:pointer}
.top{background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;padding:18px max(20px,calc((100% - 1100px)/2));align-items:center;gap:15px}.top a{font:700 22px Georgia,serif;text-decoration:none;color:var(--ink)}.top span{font-size:12px;color:var(--muted)}
main{max-width:1100px;margin:42px auto;padding:0 20px}.lead small{font-size:12px;color:#2b7370;letter-spacing:1.4px;font-weight:800}.lead h1{font:500 clamp(32px,4.6vw,52px)/1.11 Georgia,serif;max-width:770px;margin:10px 0 20px}.lead p{color:var(--muted);max-width:820px;margin-bottom:29px}
.layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:22px;align-items:start}
.chat,.sidebar{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 13px 40px #17333812;overflow:hidden}
.chat-title{padding:18px 22px;background:var(--teal);display:flex;align-items:center;justify-content:space-between;gap:10px;color:white}
.chat-title strong{font:600 21px Georgia,serif}.chat-title small{font-size:11px;color:#cce1e5}
.feed{min-height:350px;max-height:55vh;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:13px}
.bubble{padding:14px 16px;border-radius:15px;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-width:92%}
.bubble.assistant{background:#f0f5f3;align-self:flex-start}.bubble.user{background:#d8efea;align-self:flex-end}
.bubble strong{display:block;margin:0 0 5px;font-size:11px;letter-spacing:1px;color:#27636c}
.source-list{margin-top:11px;border-top:1px solid #c7d6d3;padding-top:9px}.source-list a{display:block;font-size:13px;font-weight:700;margin-top:5px}
#chat-form{border-top:1px solid var(--line);padding:17px 20px 20px}#chat-form label{font-size:12px;font-weight:750;display:block;margin-bottom:9px}
#message{display:block;width:100%;min-height:108px;max-height:300px;resize:vertical;padding:13px;border:1px solid #a0bcb8;border-radius:11px;background:#fff}
#message:focus-visible{outline:3px solid #a2dad0}.send{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px}
.send small{font-size:11px;color:#64767c}.send button{background:#165662;color:white;border:0;border-radius:24px;padding:13px 22px;font-weight:750}
.send button:disabled{opacity:.55;cursor:wait}#mode{font-size:12px;color:#60787a;margin:10px 0 0}
.sidebar{padding:24px}.sidebar h2{font:500 25px Georgia,serif;margin:0 0 10px}.sidebar h3{font:500 20px Georgia,serif;margin:22px 0 12px}.sidebar p{font-size:13px;color:var(--muted)}
.sidebar .prompt{display:block;width:100%;text-align:left;border:1px solid #c9dfd9;background:#f0f7f4;border-radius:9px;color:#214d53;padding:11px 12px;margin:8px 0}
.warning{background:#fff8ed;border-left:3px solid #c48c5e;padding:13px;font-size:12px;line-height:1.6;margin-top:24px}
@media(max-width:780px){.layout{grid-template-columns:1fr}.feed{max-height:48vh;min-height:270px}.top span{display:none}}

/* Conversation progressive, user-controlled disclosure */
.chat-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
#full-answer{font-size:12px;font-weight:750;background:#fff;border:1px solid #8ab5b2;border-radius:24px;padding:11px 15px;color:#24515c;cursor:pointer}
#full-answer:hover{background:#e9f5f2}
@media(max-width:530px){.send{flex-direction:column;align-items:stretch}.chat-actions{justify-content:space-between}.chat-actions button{flex:1}}
