:root{color-scheme:light;--ink:#142331;--ink2:#36424d;--paper:#f5f3ee;--white:#fff;--gold:#af9772;--line:#e7e1d7;--muted:#73808a;--shadow:0 24px 72px rgba(16,27,41,.075)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #977a49;outline-offset:3px}
.shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 100% 3%,rgba(175,151,114,.105),transparent 31%),var(--paper)}
.site-header{width:min(1280px,calc(100% - 64px));margin:0 auto;min-height:100px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ded8cc}
.brand{text-decoration:none;display:flex;align-items:center;gap:13px}.brand-mark{display:flex;align-items:center;gap:2px;justify-content:center;width:47px;height:47px;background:var(--ink);color:#d9c7a6;font-family:Georgia,serif;font-size:19px;letter-spacing:-.06em}.brand-rule{width:1px;height:24px;background:#b89f77;margin:0 3px}.brand-name{display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1;letter-spacing:.25em}.brand-name b{font-weight:650}.brand-name span{font-size:10px;letter-spacing:.45em;color:#ad936a}.top-nav{display:flex;gap:32px;align-items:center}.top-nav a{text-decoration:none;font-size:12px;letter-spacing:.05em;transition:color .2s}.top-nav a:hover{color:#947449}.top-nav span{color:#a68e66}
.main{width:min(900px,calc(100% - 40px));margin:0 auto;flex:1}.intro{padding:60px 16px 36px;text-align:center}.eyebrow{color:#987e57;font-size:10px;letter-spacing:.24em;font-weight:700;display:flex;gap:12px;align-items:center;justify-content:center}.small-rule{width:22px;height:1px;background:#aa8d61}.intro h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(35px,5vw,55px);line-height:1.13;letter-spacing:-.045em;margin:23px 0 14px}.intro h1 em{font-weight:400;color:#9a8059}.intro p{color:#67717c;font-size:14px;line-height:1.8;margin:0 auto;max-width:600px}
.chat{overflow:hidden;background:#fff;border:1px solid #ddd7cb;border-radius:15px;box-shadow:var(--shadow)}.chat-head{background:#fcfbf8;padding:17px 25px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.chat-identity{display:flex;align-items:center;gap:12px;min-width:0}.chat-seal{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;background:var(--ink);color:#d8c7a8;font:17px Georgia,serif;border-radius:10px}.chat-name{font-size:13px;font-weight:650;color:#172635}.chat-sub{font-size:11px;color:#8b9197;margin-top:4px}.chat-head-actions{display:flex;gap:14px;align-items:center}.live-status{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:#82909a}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#c6b69c}.live-status.ready .status-dot{background:#6a9978}.live-status.error .status-dot{background:#b57d71}.reset-btn{font-size:25px;font-weight:300;line-height:1;width:32px;height:32px;border:1px solid transparent;background:none;color:#697583;border-radius:6px}.reset-btn:hover{background:#eeeae3}
.chat-body{padding:30px clamp(17px,4vw,42px);height:345px;min-height:320px;overflow-y:auto;scrollbar-color:#c8c0b6 transparent;display:flex;flex-direction:column;gap:24px;overscroll-behavior:contain}.message{display:flex;gap:11px;max-width:93%;align-items:flex-start;animation:rise .24s ease-out}.message.assistant{align-self:flex-start}.message.user{align-self:flex-end}.message-avatar{flex:none;display:grid;place-items:center;background:#eae5db;color:#8d744d;border-radius:8px;font:18px Georgia,serif;width:28px;height:28px}.message-content{font-size:14px;line-height:1.77;overflow-wrap:anywhere;white-space:pre-wrap;color:#293644}.assistant .message-content{max-width:680px;padding-top:2px}.message-content p{margin:10px 0 0}.user .message-content{background:#142331;color:#fff;padding:13px 19px;border-radius:15px 15px 3px 15px;max-width:580px}.message.error .message-content{color:#944f47}.message.loading .message-content{color:#9b8b73;font-style:italic}.source-list{display:flex;flex-direction:column;gap:5px;margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.source-label{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#8d939a;font-weight:700}.source-list a{font-size:12px;color:#725a36;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d8c7a6;white-space:normal}.source-list a:hover{color:#142331}.source-status{font-size:11px;color:#8b6c44;margin-top:8px}
.chat-compose{background:#fff;padding:18px clamp(17px,4vw,42px) 20px;border-top:1px solid var(--line)}#chat-form{display:flex;align-items:flex-end;background:#faf9f7;border:1px solid #d8d1c6;border-radius:12px;padding:5px 5px 5px 12px;transition:border-color .2s}#chat-form:focus-within{border-color:#ac936a;box-shadow:0 0 0 2px #ac936a22}#message{width:100%;min-height:57px;max-height:144px;resize:vertical;outline:0;border:0;background:transparent;padding:13px 8px;color:#142331;font-size:14px;line-height:1.6}#message::placeholder{color:#92979a}.send-btn{flex:none;width:45px;height:45px;background:#172837;color:#fff;border:0;border-radius:9px;display:grid;place-items:center;margin:0 1px 1px 0}.send-btn:hover{background:#2b4558}.send-btn:disabled{opacity:.45}.compose-under{display:flex;gap:12px;justify-content:space-between;font-size:10px;line-height:1.5;color:#94989c;padding-top:12px}.key-hint{white-space:nowrap}.bottom-note{font-size:11px;line-height:1.6;color:#92969c;text-align:center;max-width:760px;margin:22px auto 52px}.bottom-note a{text-decoration:underline;text-underline-offset:2px}.site-footer{width:min(1280px,calc(100% - 64px));margin:0 auto;border-top:1px solid #ded8cc;padding:25px 0;display:flex;justify-content:space-between;gap:15px;color:#92979e;font-size:10px;letter-spacing:.16em}
.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}@keyframes rise{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.site-header{min-height:75px;width:calc(100% - 32px)}.top-nav{gap:15px}.top-nav a{font-size:11px}.brand-name{font-size:10px}.brand-mark{width:39px;height:39px;font-size:16px}.main{width:calc(100% - 22px)}.intro{padding:37px 12px 23px}.intro h1{font-size:clamp(30px,8vw,41px)}.intro p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:.12em}.chat-head{padding:13px 14px}.chat-body{height:min(51vh,450px);min-height:280px;padding:22px 15px}.message{max-width:100%}.message-content{font-size:13px}.chat-head-actions{gap:5px}.live-status{font-size:0}.live-status .status-dot{width:8px;height:8px}.chat-compose{padding:12px 13px 16px}.compose-under{font-size:9px}.key-hint{display:none}.site-footer{width:calc(100% - 30px);flex-direction:column;gap:8px;align-items:center;text-align:center;padding:18px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
body.embedded{background:var(--paper)}body.embedded .site-header,body.embedded .site-footer,body.embedded .intro,body.embedded .bottom-note{display:none}body.embedded .main{width:100%;max-width:none;margin:0;padding:0}body.embedded .chat{border-radius:12px;box-shadow:none;border-color:#dcd5c9}body.embedded .chat-body{height:490px}body.embedded .shell{background:transparent}body.embedded{margin:0}
