:root{color-scheme:light;--ink:#18342c;--muted:#62746b;--line:#dfe6dc;--paper:#f8faf6;--green:#27604a;--soft:#ebf2e9;--orange:#d8994f;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.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}
.shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:31px 19px 22px;background:#18342c;color:#eaf2e9}.brand{display:flex;align-items:center;gap:13px;margin:2px 8px 49px}.brand-mark{width:46px;height:46px;border:1px solid #81978b;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:Georgia,serif;font-weight:700;font-size:18px;line-height:.82;letter-spacing:-1px;color:#f8f5e8}.brand-mark span{color:#e1ac70}.brand-copy{display:flex;flex-direction:column;gap:5px}.brand-copy strong{font-size:14px;letter-spacing:.04em}.brand-copy small{color:#9eb2a8;font-size:11px}.sidebar-section-label{padding:0 13px;margin:0 0 12px;color:#92ad9f;font-size:10px;letter-spacing:.2em}.examples-label{margin-top:39px}.nav-item,.topic,.settings-trigger{width:100%;border:0;background:transparent;color:#d7e4d9;text-align:left}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;font-size:13px}.nav-item:hover,.nav-item.active{background:#29493b;color:white}.nav-icon{font-size:18px;width:20px;text-align:center}.nav-arrow{margin-left:auto;color:#9db3a5}.topic{display:flex;align-items:center;gap:15px;padding:11px 13px;font-size:13px;border-radius:9px}.topic:hover{background:#29493b;color:#fff}.topic-symbol{font-family:Georgia,serif;font-size:13px;color:#a9c4ae}.sidebar-bottom{margin-top:auto}.source-note{display:flex;align-items:flex-start;gap:10px;border:1px solid #466253;border-radius:10px;padding:13px 11px;color:#e1eee2;font-size:11px;line-height:1.55}.source-note small{color:#9db3a5}.source-dot,.status-dot{width:7px;height:7px;border-radius:50%;background:#99cba5;display:inline-block;flex:0 0 auto;margin-top:5px}.settings-trigger{margin-top:15px;padding:11px 10px;font-size:12px;border-radius:8px}.settings-trigger:hover{background:#29493b}.settings-trigger span{font-size:17px;margin-right:10px}
.main{min-width:0;min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse 60% 45% at 55% 25%,#f0f5eb 0%,transparent 80%),var(--paper)}.topbar{height:82px;flex:0 0 auto;border-bottom:1px solid #e6ebe4;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.eyebrow{font-size:11px;font-weight:700;color:#63806b;letter-spacing:.19em}.topbar-right{display:flex;align-items:center;gap:27px;font-size:11px;color:#60776a}.topbar-right a:hover{text-decoration:underline}.topbar-status{display:flex;align-items:center;gap:7px}.topbar-status .status-dot{margin:0;width:6px;height:6px}.mobile-settings,.mobile-new-chat{display:none;border:0;background:transparent;color:#60776a;padding:0;font-size:11px}
.conversation{width:min(860px,calc(100% - 72px));margin:0 auto;flex:1;min-height:0}.welcome{padding:66px 0 36px}.welcome-emblem{height:51px;width:51px;border:1px solid #cadacb;border-radius:14px;background:#eff5ed;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:.82;color:var(--green);font:bold 19px Georgia,serif;letter-spacing:-1px;margin-bottom:25px}.welcome-emblem span:last-child{color:#bb814c}.welcome-kicker,.dialog-kicker{font-size:11px;color:#64846a;letter-spacing:.22em;font-weight:700}.welcome h1{font-size:clamp(35px,4vw,55px);line-height:1.25;letter-spacing:-.055em;margin:13px 0 18px;font-weight:650}.welcome h1 em{font-style:normal;color:#377459}.welcome p{font-size:14px;color:#64776c;line-height:1.9;max-width:585px;margin:0 0 37px}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.suggestions button{border:1px solid #dce6db;background:#fff;border-radius:12px;text-align:left;padding:20px 20px 18px;min-height:103px;display:grid;grid-template-columns:1fr auto;align-content:space-between;gap:12px;box-shadow:0 5px 20px #21413106;color:#254734}.suggestions button:hover{border-color:#80ab8d;transform:translateY(-1px)}.suggestion-category{font-size:10px;color:#799080;letter-spacing:.12em;grid-column:1/-1}.suggestions button span:nth-child(2){font-size:13px;font-weight:600}.suggestion-arrow{color:#6d9a77}
#messages{padding:25px 0 34px}.message{margin-bottom:29px}.message-meta{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;color:#66806e;margin-bottom:9px}.avatar{height:25px;width:25px;border-radius:8px;background:#e5efe6;color:#2c7650;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.message.user .avatar{background:#e9ece8;color:#50665a}.message.user .message-body{padding:14px 18px;border-radius:12px;background:#edf3ec;display:inline-block;max-width:100%;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.message.assistant .message-body{padding:21px 23px;border:1px solid var(--line);background:#fff;border-radius:13px;box-shadow:0 9px 25px #21413106}.answer{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:13px;margin:0}.message-warning{margin:14px 0 0;color:#9a612f;font-size:12px}.message-actions{display:flex;gap:13px;align-items:center;margin-top:18px;padding-top:15px;border-top:1px solid #eef1ec}.message-actions button{border:0;background:transparent;color:#657c6d;padding:0;font-size:11px}.message-actions button:hover{text-decoration:underline}.sources,.agents{margin-top:15px;border:1px solid #e7ede6;background:#fbfdf9;border-radius:9px}.sources summary,.agents summary{padding:12px 14px;font-size:11px;font-weight:700;cursor:pointer;list-style:none}.sources summary::-webkit-details-marker,.agents summary::-webkit-details-marker{display:none}.sources summary::before,.agents summary::before{content:'▸';display:inline-block;color:#70967b;margin-right:8px}.sources[open] summary::before,.agents[open] summary::before{transform:rotate(90deg)}.source-list,.agent-list{list-style:none;margin:0;padding:0 14px 13px}.source-list li,.agent-list li{padding:10px 0;border-top:1px solid #edf1eb;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;font-size:11px;line-height:1.55}.source-title{overflow-wrap:anywhere;min-width:0}.source-title a{color:#267454;text-decoration:underline;text-underline-offset:2px}.source-meta{color:#798b7e;margin-top:3px}.badge{flex:0 0 auto;border-radius:99px;padding:2px 7px;font-size:10px;background:#e6f1e8;color:#36754e}.badge.unverified,.badge.partial{background:#fff0db;color:#946027}.badge.error{background:#fce8e4;color:#ad4d3a}.agent-list li{align-items:center}.loading .message-body{color:#64816d;font-size:13px}.loading-dots::after{content:'…';animation:blink 1s infinite}@keyframes blink{50%{opacity:.25}}
.composer-wrap{width:min(860px,calc(100% - 72px));margin:0 auto;padding:11px 0 20px;position:sticky;bottom:0;background:linear-gradient(transparent 0%,var(--paper) 18%)}.composer{background:#fff;border:1px solid #cedbcf;border-radius:13px;box-shadow:0 8px 30px #25443213;padding:15px 15px 12px}.composer:focus-within{border-color:#65a078;box-shadow:0 0 0 3px #b3d4ba55,0 8px 30px #25443213}.composer textarea{border:0;outline:0;width:100%;min-height:45px;max-height:180px;resize:none;background:transparent;color:var(--ink);font-size:14px;line-height:1.6}.composer textarea::placeholder{color:#9dac9f}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-bottom>span{font-size:10px;color:#9baaa0}.composer button,.dialog-actions button{border:0;background:#276349;color:#fff;border-radius:8px;padding:10px 17px;font-size:11px;font-weight:700}.composer button:hover,.dialog-actions button:hover{background:#174e36}.composer button:disabled{opacity:.5;cursor:wait}.composer button span{margin-left:7px}.footer-note{text-align:center;font-size:10px;line-height:1.5;color:#93a397;margin:11px 5px 0}
dialog{border:1px solid #dce8dc;border-radius:15px;width:min(450px,calc(100% - 36px));padding:25px;box-shadow:0 25px 80px #142d2852;color:var(--ink)}dialog::backdrop{background:#0d211db3}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between}.dialog-head h2{font-size:22px;margin:8px 0 15px}.dialog-close{border:0;background:transparent;color:#718579;font-size:27px;line-height:1}dialog p{color:#65796b;font-size:12px;line-height:1.7;margin:0 0 22px}dialog code{font-size:11px;background:#eef3ec;padding:2px 4px;border-radius:3px}dialog label{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin:16px 0 8px}dialog label span{font-size:10px;font-weight:400;color:#93a499}dialog input{width:100%;padding:11px 12px;border:1px solid #d5e1d6;border-radius:8px;outline:0;background:#fff;color:var(--ink);font-size:13px}dialog input:focus{border-color:#579d70}.dialog-actions{display:flex;align-items:end;gap:16px;margin-top:25px}.dialog-actions span{font-size:10px;color:#93a499;line-height:1.5;flex:1}.dialog-actions button{flex:0 0 auto}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;width:100%;height:auto;padding:14px 16px;display:block}.brand{margin:0;display:inline-flex}.brand-mark{width:38px;height:38px;font-size:15px}.sidebar-section-label,.sidebar .nav-item,.sidebar .topic,.sidebar-bottom{display:none}.main{min-height:calc(100vh - 66px)}.topbar{height:55px;padding:0 20px}.topbar-status{display:none}.mobile-settings,.mobile-new-chat{display:inline-block}.conversation,.composer-wrap{width:calc(100% - 32px)}.welcome{padding:35px 0 20px}.welcome p{font-size:13px;margin-bottom:24px}.suggestions{grid-template-columns:1fr}.suggestions button{min-height:76px;padding:14px}.composer-wrap{padding-bottom:12px}.footer-note{font-size:9px}.message.assistant .message-body{padding:17px}.source-list li{display:block}.badge{display:inline-block;margin-top:5px}.topbar-right{gap:15px}.brand-copy small{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.brand-logo{width:46px;height:46px;flex:0 0 auto}.brand-copy strong{font-size:12px;white-space:nowrap}.welcome-emblem{display:block;width:51px;height:51px;background:none;border:0;border-radius:0}.timeline-wrap{min-height:0;overflow-y:auto;margin-top:16px;padding-right:3px;flex:1}.background-toggle{width:100%;padding:12px 13px;display:flex;justify-content:space-between;align-items:center;border:1px solid #527463;border-radius:10px;background:#284b3b;color:#fff;font-size:13px;font-weight:700;text-align:left}.background-toggle:hover{background:#315945}.toggle-arrow{font-size:18px;line-height:1;color:#afd1b4}.background-toggle[aria-expanded="false"] .toggle-arrow{transform:rotate(-90deg)}.timeline{list-style:none;margin:21px 0 0 16px;padding:0 0 0 19px;border-left:1px solid #547360}.timeline[hidden]{display:none}.timeline li{position:relative;padding:0 0 19px 0}.timeline li:last-child{padding-bottom:1px}.timeline li::before{content:"";position:absolute;left:-24px;top:3px;width:8px;height:8px;border-radius:50%;background:#dbab72;box-shadow:0 0 0 3px #254c3d}.timeline time{display:block;font-family:Georgia,serif;font-size:15px;color:#e8b777;margin-bottom:4px}.timeline strong{font-size:12px;color:#f0f4e9}.timeline p{font-size:11px;color:#b0c5b5;line-height:1.65;margin:5px 0 0}.timeline-source{display:inline-block;margin:15px 12px 13px;font-size:10px;color:#b9d0bc;text-decoration:underline;text-underline-offset:3px}.timeline-source:hover{color:#fff}.mobile-background{display:none;border:0;background:transparent;color:#60776a;padding:0;font-size:11px}
@media(max-width:760px){.brand-logo{height:38px;width:38px}.timeline-wrap{display:none;margin:15px 0 0;max-height:60vh;overflow-y:auto}.timeline-open .timeline-wrap{display:block}.timeline-source{margin-bottom:5px}.mobile-background{display:inline-block}.brand-copy strong{font-size:11px}}

[hidden]{display:none!important}
.topbar-status{white-space:nowrap}
.answer-note{margin:15px 0 0;padding-top:10px;border-top:1px solid #edf1eb;color:#839487;font-size:10px;line-height:1.55}
.contact-link{display:block;margin:12px 5px 0;color:#b9d0bc;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.contact-link:hover{text-decoration:underline;color:#fff}
@media(max-width:760px){.topbar .eyebrow{display:none}.topbar-right{width:100%;gap:8px}.topbar-status{display:inline-flex;order:4;margin-left:auto;font-size:10px}}
.background-toggle.selected,.background-toggle[aria-current="page"]{background:#37664e;border-color:#91b599}.background-toggle .toggle-arrow{font-size:14px}.background-toggle:hover .toggle-arrow{transform:translate(2px,-2px)}
.history-panel{padding:16px 4px 13px;border-top:1px solid #466253;max-height:218px;display:flex;flex-direction:column}.history-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.history-heading h2{font-size:11px;letter-spacing:.12em;color:#bcd0bd;margin:0 0 9px}.history-heading button{border:0;background:transparent;color:#bcd0bd;font-size:10px;padding:0 0 9px}.history-heading button:hover{text-decoration:underline}.history-list{overflow-y:auto;min-height:0}.history-empty{font-size:11px;color:#91ac99;padding:0 8px;margin:3px 0 10px}.history-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:0;border-radius:7px;background:transparent;color:#dce9dc;text-align:left;padding:8px}.history-item:hover,.history-item.current{background:#29493b}.history-item-title{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.history-item small{font-size:9px;color:#91ac99}.history-note{font-size:9px;color:#91ac99;line-height:1.4;padding:0 8px;margin:9px 0 0}.sidebar-bottom{margin-top:0}.source-note{margin-top:9px}
.background-document{width:min(920px,calc(100% - 72px));margin:0 auto 70px;flex:1}.document-cover{padding:72px 58px 57px;margin:38px 0 0;border-radius:18px;background:linear-gradient(125deg,#e8f0e7 0%,#f7f9f3 61%,#f5eadb 100%);border:1px solid #dce7db}.document-kicker,.section-index{font-size:11px;letter-spacing:.18em;color:#4e8061;font-weight:700}.document-cover h1{font-size:clamp(37px,4.6vw,61px);line-height:1.19;letter-spacing:-.055em;margin:20px 0 22px}.document-cover p{max-width:650px;font-size:14px;line-height:1.95;color:#4f6959;margin:0 0 26px}.document-cover button{border:0;background:#276349;color:#fff;border-radius:8px;padding:11px 18px;font-size:12px;font-weight:700}.document-cover button:hover{background:#174e36}.document-toc{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:23px 0 41px;padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:11px}.document-toc span{font-size:11px;color:#77907c;font-weight:700;margin-right:7px}.document-toc a{font-size:11px;padding:7px 10px;border-radius:6px;color:#315b42}.document-toc a:hover,.document-toc a:focus-visible{background:#e8f2e8;text-decoration:underline}.document-body{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px 58px 24px;box-shadow:0 11px 34px #21413108}.document-section{scroll-margin-top:22px;padding:35px 0 42px;border-bottom:1px solid #e8eee7}.document-section:last-child{border-bottom:0}.document-section h2{font-size:clamp(23px,2.5vw,31px);line-height:1.35;letter-spacing:-.035em;margin:13px 0 22px}.document-section p{color:#4c6556;font-size:14px;line-height:2;margin:0 0 17px}.document-section p:last-child{margin-bottom:0}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.stage-grid div{background:#f1f6ee;border:1px solid #e0ebdf;border-radius:10px;padding:19px 17px}.stage-grid span{display:block;font:25px Georgia,serif;color:#3c7c57;margin-bottom:12px}.stage-grid strong{display:block;font-size:13px;margin-bottom:8px}.stage-grid p{font-size:11px;line-height:1.75;margin:0}.document-section blockquote{margin:24px 0 0;border-left:3px solid #d59a58;background:#fbf8f0;padding:16px 20px;color:#506a58;font-size:13px;line-height:1.9}.document-sources ul{margin:0;padding-left:19px;color:#526d5c}.document-sources li{margin:10px 0;font-size:13px;line-height:1.7}.document-sources a{color:#267454;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.sidebar{display:flex;flex-direction:column;max-height:330px;overflow:hidden}.timeline-wrap{display:block;margin:13px 0 0;max-height:150px;min-height:55px;flex:0 1 auto}.timeline{margin-top:14px}.timeline li{padding-bottom:12px}.history-panel{display:flex;max-height:95px;flex:0 0 auto;padding:8px 0}.history-note{display:none}.history-list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden}.history-item{width:145px;min-width:145px;padding:6px}.history-empty{margin:0}.background-document{width:calc(100% - 30px);margin-bottom:35px}.document-cover{margin-top:16px;padding:37px 25px}.document-cover p{font-size:13px}.document-toc{gap:4px;padding:12px;margin:15px 0}.document-toc span{width:100%;margin-bottom:3px}.document-body{padding:7px 23px}.document-section{padding:29px 0}.document-section p{font-size:13px}.stage-grid{grid-template-columns:1fr}.stage-grid div{padding:14px}.stage-grid span{font-size:22px;margin-bottom:6px}.stage-grid strong{margin-bottom:3px}}

.document-section .document-reference{font-size:11px;line-height:1.7;color:#809283;margin-top:22px;padding-top:13px;border-top:1px solid #edf2eb}.document-reference a{color:#267454;text-decoration:underline;text-underline-offset:3px}.document-reference a:hover,.document-sources a:hover{color:#174e36}.document-callout{margin:24px 0;padding:20px 22px;border-radius:10px;background:#eff5ec;border:1px solid #dce9d9}.document-callout strong{display:block;font-size:13px;color:#2a6142;margin-bottom:8px}.document-callout p{font-size:12px;line-height:1.8;margin:0}.event-list{list-style:none;padding:0;margin:26px 0 0}.event-list li{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;padding:20px 0;border-top:1px solid #e8eee7}.event-list li:last-child{border-bottom:1px solid #e8eee7}.event-list time{font:16px Georgia,serif;color:#377459}.event-list strong{display:block;font-size:14px;margin-bottom:7px}.event-list p{font-size:12px;line-height:1.8;margin:0}.document-sources li{padding-left:4px}.document-sources li::marker{color:#80a887}.document-sources p{margin-top:18px}
@media(max-width:760px){.document-callout{padding:16px}.event-list li{grid-template-columns:1fr;gap:6px;padding:17px 0}.event-list time{font-size:15px}.event-list strong{font-size:13px}.document-section .document-reference{font-size:10px}}

.suggestion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px;color:#67816f;font-size:11px;font-weight:700;letter-spacing:.06em}.suggestion-heading button{border:0;background:transparent;color:#2c7452;padding:5px 2px;font-size:11px;font-weight:700}.suggestion-heading button:hover{text-decoration:underline;text-underline-offset:3px}
.library-suggestions{margin:23px 0 25px}.library-suggestion-list{display:flex;flex-wrap:wrap;gap:9px}.library-suggestion-list button{border:1px solid #dce6db;background:#fff;border-radius:8px;padding:10px 13px;color:#315b42;font-size:12px;text-align:left;line-height:1.4}.library-suggestion-list button:hover,.library-suggestion-list button:focus-visible{border-color:#80ab8d;background:#eef5ec;outline:none}
.media-transcript{margin-top:28px;padding-top:22px;border-top:1px solid #e3ebe1}.media-transcript h2{font-size:16px;color:#315b42;margin:0 0 15px}.media-transcript .library-markdown{font-size:14px;line-height:1.85}
.source-open{border:0;background:none;padding:0;color:#267454;text-decoration:underline;text-underline-offset:2px;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}.source-open:hover,.source-open:focus-visible{color:#174a35}.source-open:disabled{opacity:.55;cursor:wait}
.reader-slide-nav{display:flex;align-items:center;gap:10px;margin-left:auto}.reader-slide-nav[hidden]{display:none}.reader-slide-nav button{border:1px solid #b9d1bb;background:#fff;border-radius:6px;padding:7px 11px;color:#245b3d;font:inherit;font-weight:700;cursor:pointer}.reader-slide-nav button:disabled{opacity:.4;cursor:default}.reader-pages .reader-slide-nav span{min-width:48px;width:auto;text-align:center;font-weight:700}.reader-document.slide-document{padding:12px;background:#eef2ed;min-height:0}.library-slide{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:white;border-radius:4px}

body[data-view="chat"] .timeline-wrap{flex:0 0 auto;overflow:visible}
body[data-view="chat"] .history-panel{flex:1 1 auto;max-height:none;min-height:0}
body[data-view="background"] .timeline-wrap{flex:1 1 auto}
@media(max-width:760px){body[data-view="chat"] .history-panel{max-height:150px}body[data-view="background"] .sidebar{max-height:min(65vh,620px)}body[data-view="background"] .timeline-wrap{max-height:min(55vh,520px)}}

.mobile-library{display:none}.library-view{width:min(960px,calc(100% - 72px));margin:0 auto;padding:58px 0 100px;flex:1}.library-view h1{font-size:clamp(32px,4vw,48px);margin:10px 0 12px}.library-view>p{color:#667b6c;font-size:13px;line-height:1.8}.library-search-form{display:flex;gap:10px;margin:26px 0 12px}.library-search-form input{flex:1;min-width:0;border:1px solid #cddbcf;border-radius:10px;padding:14px 16px;background:#fff;outline:none}.library-search-form input:focus{border-color:#579d70}.library-search-form button,.library-card-actions button,.library-preview-head button{border:0;border-radius:8px;padding:11px 18px;background:#276349;color:#fff;font-size:12px;font-weight:700}.library-status{font-size:12px;color:#758a79;margin:12px 0 20px}.library-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.library-card{min-width:0;padding:22px;border:1px solid #dce6db;background:#fff;border-radius:13px;box-shadow:0 5px 20px #21413106}.library-type{font-size:10px;color:#427557;font-weight:700}.library-card h2{font-size:15px;line-height:1.5;margin:9px 0;overflow-wrap:anywhere}.library-card p{font-size:12px;color:#65776a;line-height:1.7;max-height:5.1em;overflow:hidden}.library-card-actions{display:flex;gap:9px;margin-top:18px}.library-card-actions button+button{background:#edf4eb;color:#276349}.library-card-actions button:hover,.library-preview-head button:hover{filter:brightness(.9)}.library-preview{margin-top:32px;padding:24px;background:#fff;border:1px solid #dce6db;border-radius:13px;scroll-margin-top:20px}.library-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e7ede6;padding-bottom:16px;margin-bottom:20px}.library-preview-head h2{font-size:19px;line-height:1.4;margin:0;overflow-wrap:anywhere}.library-preview-head button{white-space:nowrap;background:#edf4eb;color:#276349}.library-markdown{max-height:65vh;overflow:auto;line-height:1.8;overflow-wrap:anywhere;font-size:13px}.library-markdown h1,.library-markdown h2,.library-markdown h3,.library-markdown h4{margin:24px 0 10px;color:#245b3f}.library-markdown p{margin:8px 0}.library-markdown blockquote{border-left:3px solid #d8994f;margin:14px 0;padding:8px 14px;background:#f9f7f0}.library-markdown pre{white-space:pre-wrap;background:#f1f4f0;padding:9px 12px;margin:3px 0}.library-list{padding-left:14px}.library-frame{width:100%;height:75vh;border:0}.library-image,.library-video{max-width:100%;max-height:75vh;display:block;margin:auto}body[data-view="library"] .timeline-wrap{flex:0 0 auto}body[data-view="library"] .history-panel{display:none}
@media(max-width:760px){.mobile-library{display:inline-block;border:0;background:transparent;color:#60776a;padding:0;font-size:11px}.library-view{width:calc(100% - 32px);padding:30px 0 60px}.library-results{grid-template-columns:1fr}.library-search-form{gap:6px}.library-search-form button{padding:10px 13px}.library-preview{padding:15px}.library-preview-head h2{font-size:15px}.library-frame{height:65vh}}

.library-reader{width:min(980px,calc(100% - 72px));margin:0 auto;padding:29px 0 90px;flex:1}.reader-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:17px;border-bottom:1px solid #dfe8dd;color:#60816a;font-size:11px}.reader-top button{border:0;background:transparent;color:#286c4d;font-weight:700;padding:6px 0}.reader-header{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:32px 0 25px}.reader-header h1{font-size:clamp(27px,3vw,41px);line-height:1.35;max-width:780px;margin:10px 0;letter-spacing:-.025em}.reader-header p{color:#809083;font-size:12px;margin:0}.reader-actions{display:flex;gap:8px;flex:0 0 auto}.reader-actions button{border:0;border-radius:8px;background:#28664a;color:white;padding:10px 13px;font-size:11px;font-weight:700;white-space:nowrap}.reader-actions button+button{background:#e7f0e6;color:#28664a}.reader-pages{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:2;padding:12px 18px;background:#f4f8f2;border:1px solid #dde8db;border-radius:10px 10px 0 0;font-size:11px;color:#51745d}.reader-pages select{border:1px solid #bfd2bf;background:#fff;border-radius:5px;padding:6px 10px;color:#275b40}.reader-pages span{margin-left:auto;color:#3d8157}.reader-document{background:#fff;border:1px solid #dce7db;border-radius:12px;padding:34px clamp(20px,5vw,58px);box-shadow:0 10px 30px #21413109;min-height:45vh}.reader-pages:not([hidden])+.reader-document{border-radius:0 0 12px 12px;border-top:0}.reader-source{display:inline-block;margin:0 0 20px;color:#2b7753;font-size:12px;text-decoration:underline;text-underline-offset:3px}.library-reader .library-markdown{max-height:none;overflow:visible;max-width:100%;margin:0 auto;font-family:"Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif;font-size:16px;line-height:1.95;color:#283c31}.library-reader .library-markdown h1{font-size:27px;line-height:1.45;margin:0 0 30px}.library-reader .library-markdown h2{font-size:21px;line-height:1.45;margin:40px 0 18px;scroll-margin-top:75px}.library-reader .library-markdown h3{font-size:18px;line-height:1.55;margin:25px 0 12px}.library-reader .library-markdown p{margin:0 0 1.15em;text-align:justify}.library-reader .library-markdown hr{height:1px;border:0;background:#e4ebe1;margin:37px 0}.library-reader .library-markdown blockquote{line-height:1.8}.library-reader .library-markdown a{color:#267454;text-decoration:underline}.library-reader .library-markdown img{display:block;max-width:100%;height:auto;margin:18px auto}.library-reader .library-markdown mark{background:#ffe59b;color:#263a2b;padding:0 .08em;border-radius:2px;box-shadow:0 0 0 2px #ffe59b}.library-reader .library-markdown code{font-family:ui-monospace,monospace;background:#edf2eb;padding:1px 4px;border-radius:3px}.library-reader .library-markdown pre{overflow-wrap:anywhere}.library-reader .library-frame{min-height:78vh}body[data-view="library-reader"] .history-panel{display:none}body[data-view="library-reader"] .timeline-wrap{flex:0 0 auto}
@media(max-width:760px){.library-reader{width:calc(100% - 28px);padding:16px 0 60px}.reader-header{display:block;padding:25px 0 17px}.reader-header h1{font-size:26px}.reader-actions{margin-top:18px}.reader-document{padding:23px 18px}.reader-pages{gap:6px;flex-wrap:wrap}.reader-pages span{width:100%;margin:0}.library-reader .library-markdown{font-size:15px;line-height:1.85}.library-reader .library-markdown h1{font-size:22px}.library-reader .library-markdown h2{font-size:18px}}

/* Keep chat history in its own scroll area so the entire composer stays visible. */
body[data-view="chat"] .main{height:100dvh;min-height:0;overflow:hidden}
body[data-view="chat"] .conversation{width:100%;margin:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
body[data-view="chat"] .conversation>.welcome,body[data-view="chat"] .conversation>#messages{width:min(860px,calc(100% - 72px));margin-left:auto;margin-right:auto}
body[data-view="chat"] .message.user{display:flex;flex-direction:column;align-items:flex-end}
body[data-view="chat"] .composer-wrap{position:relative;bottom:auto;flex:0 0 auto;z-index:1}
body[data-view="library"] #search-history-panel,body[data-view="library-reader"] #search-history-panel{display:flex;flex:1 1 auto;max-height:none;min-height:0}
.reader-progress{display:block;width:min(560px,100%);height:12px;margin:24px auto;accent-color:#28664a;border:0;border-radius:999px;overflow:hidden}.reader-progress::-webkit-progress-bar{background:#e7efe5;border-radius:999px}.reader-progress::-webkit-progress-value{background:#28664a;border-radius:999px}.reader-progress::-moz-progress-bar{background:#28664a;border-radius:999px}
@media(max-width:760px){
  body[data-view="chat"] .conversation>.welcome,body[data-view="chat"] .conversation>#messages{width:calc(100% - 32px)}
  body[data-view="chat"] .shell{display:flex;flex-direction:column;height:100dvh;min-height:0}
  body[data-view="chat"] .sidebar{position:relative;top:auto;height:auto;max-height:min(28dvh,185px);flex:0 0 auto}
  body[data-view="chat"] .timeline-wrap{display:none}
  body[data-view="chat"] .main{height:auto;min-height:0;flex:1 1 auto}
  body[data-view="chat"] .history-panel{max-height:90px}
  body[data-view="library"] #search-history-panel,body[data-view="library-reader"] #search-history-panel{max-height:95px;flex:0 0 auto}
}
@media(max-width:760px) and (max-height:560px){
  body[data-view="chat"] .sidebar{max-height:90px;padding:8px 16px}
  body[data-view="chat"] .brand{display:none}
  body[data-view="chat"] .history-panel{max-height:74px}
}

.composer-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.composer .voice-toggle{background:#edf4eb;color:#276349;border:1px solid #d5e6d5;padding:9px 13px}
.composer .voice-toggle:hover,.composer .voice-toggle:focus-visible{background:#dcebdd;color:#174e36;outline:none}
.composer .voice-toggle[aria-pressed="true"]{background:#d7e9da;border-color:#74ab82;box-shadow:0 0 0 2px #9bc6a449}
.voice-status{margin:9px 2px 0;color:#3d7551;font-size:11px;line-height:1.5}
@media(max-width:760px){.composer-bottom{flex-wrap:wrap}.composer-bottom>span{flex:1 1 100%}.composer-actions{width:100%;justify-content:flex-end}.composer .voice-toggle{padding:9px 11px}}
