/* Designs 2 and 3: research conversation and structured report reading. */
body.authenticated[data-view=ask] .notice,body[data-view=ask] .statusbar,body[data-report-mode=detail] .notice,body[data-report-mode=detail] .statusbar{display:none}
body[data-view=ask] main{padding-top:20px;padding-bottom:0}
body[data-view=ask] main>footer{display:none}
body[data-view=ask] #ask-view{grid-template-columns:minmax(0,1fr) 310px;gap:28px;height:calc(100dvh - 110px);min-height:540px;align-items:stretch}
.chat-main{display:flex;flex-direction:column;min-height:0}
.chat-heading{align-items:flex-start;gap:20px;flex-shrink:0;margin-bottom:8px}
.chat-heading-text{flex:1;min-width:0}.chat-heading-text h2{font-size:30px;line-height:1.7}.chat-heading-text>.muted{margin:4px 0;font-size:12px}
.chat-heading>button{font-size:11px;padding:8px 12px;min-height:38px;margin-top:9px}
#identity-description{font-size:11px}.chat-context{flex-shrink:0;font-size:11px;color:var(--muted);margin:0 0 6px}.chat-context summary{cursor:pointer}.chat-context .muted{margin:5px 0;max-height:90px;overflow:auto}
#answer,#answer:not(:empty){flex:1;min-height:70px;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:6px 2px;scrollbar-gutter:stable;margin:4px 0 8px}
.chat-turn{padding:10px 0}.chat-question{font-size:14px;line-height:1.9;margin-inline-start:16%;margin-bottom:18px;padding:14px 18px;background:#e9edf0}
.assistant-message{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 22px}.assistant-message>.result-label{font-size:11px;background:#f5efe0;color:#826127;display:inline-block;border-radius:5px;padding:5px 9px;margin-bottom:12px;line-height:1.8}
.assistant-message .answer-text{font-size:16px;line-height:2.15;margin:0 0 16px;white-space:pre-wrap}.assistant-message>.secondary{font-size:11px;padding:8px 10px;min-height:36px;margin-inline-end:8px;margin-top:8px}.assistant-message>.secondary:not(.copy-answer):not(.feedback-open){background:var(--green);color:white}.assistant-message>details{font-size:11px;border-top:1px solid var(--line);padding-top:8px}.assistant-message>details summary{font-size:11px}
.chat-main>.examples{margin:5px 0 12px;flex-shrink:0}.chat-main>.examples .example{font-size:10px;background:transparent;line-height:1.8}
#ask-form{position:static;flex-shrink:0;padding:12px 14px;margin:0 0 8px;background:#fff;border-radius:10px}#ask-form>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#ask-form #question{height:64px;min-height:54px;max-height:140px;font-size:14px;padding:9px 12px;resize:vertical}#ask-form>.muted{font-size:10px;line-height:1.7}#ask-form .form-footer{margin:4px 0;justify-content:space-between;flex-wrap:nowrap}#ask-form .form-footer>.muted{max-width:none;font-size:10px}#ask-form .query-actions button{font-size:11px;padding:8px 12px;min-height:36px}
.chat-disclosure{font-size:10px;color:var(--muted);line-height:1.9;border-top:1px solid var(--line);margin-top:8px;padding-top:6px}.chat-disclosure summary{cursor:pointer}.chat-disclosure p{max-height:90px;overflow:auto;margin:6px 0 0}
body[data-view=ask] .chat-evidence{position:static;max-height:none;min-height:0;overflow-y:auto;padding:20px 18px;margin-bottom:8px}.chat-evidence>h3{font-size:17px;margin-bottom:20px}
.evidence-source{border:0;border-top:1px solid var(--line);margin:0;padding:16px 0;font-family:Dalil Latin,Dalil Arabic,sans-serif}.evidence-source>summary{cursor:pointer;display:flex;align-items:flex-start;gap:10px;line-height:1.6;color:var(--green);font-size:14px;font-weight:600;list-style-position:inside}.source-number{flex-shrink:0;display:inline-block;padding:2px 8px;background:#f4efe1;color:#806329;border-radius:14px;font-size:12px;font-weight:500}.evidence-title{flex:1;min-width:0}.evidence-source>blockquote{margin:10px 0;max-height:240px;overflow-y:auto;overscroll-behavior:contain;font-size:13px!important;line-height:1.85!important;padding:12px!important;border:0!important;background:#f4f5f3!important;border-radius:6px;white-space:pre-wrap}.evidence-source>.muted{font-size:10px;margin:10px 0;line-height:1.7}.source-open{display:inline-block;color:var(--green);font-size:12px;line-height:1.8}.source-metadata{margin-top:10px;font-size:10px;color:var(--muted)}.source-metadata summary{cursor:pointer}.source-metadata p{font-size:10px;overflow-wrap:anywhere}.citation-reference{display:inline-block;vertical-align:baseline;background:#f1ead8;color:#826127;border:0;border-radius:10px;font-size:11px;line-height:1.4;padding:2px 7px;min-height:22px;margin:0 3px;font-family:Dalil Latin,sans-serif}
body[data-report-mode=detail] main{padding-top:0}.requested-report-detail{direction:inherit;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0 28px;background:none;border:0;border-radius:0;padding:0;align-items:start}.requested-report-detail>.requested-report-actions{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:3;background:var(--paper);padding:16px 0;margin:0;border-bottom:1px solid var(--line);justify-content:flex-end;gap:8px}.requested-report-actions button{font-size:12px;min-height:38px;padding:8px 14px}.requested-report-detail>.editor-message{grid-column:1/-1;grid-row:2;margin:0;font-size:12px}.requested-report-detail>.editor-message:not(:empty){padding:12px 0}
.report-paper{grid-column:1;grid-row:3;background:#fff;margin-top:22px;padding:30px 32px;min-width:0;border:1px solid #ebede6}.report-paper-heading{border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:22px}.report-paper-heading .shared-access-note{display:inline-block;background:#f5efdf;border:0;color:#80622a;font-size:10px;padding:5px 9px;border-radius:5px;line-height:1.9;margin:0 0 12px}.report-date{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 16px}.report-paper-heading h2{font-size:28px;line-height:1.8;font-weight:700;margin:0 0 10px}.report-subtitle{color:var(--muted);font-size:14px;margin:0;line-height:1.9}.report-body.answer-text{white-space:normal;font-size:16px;line-height:2.1}.report-section{scroll-margin-top:90px;outline:none}.report-section+ .report-section{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.report-section h3{font-size:20px;font-weight:650;margin:0 0 16px;line-height:1.9}.report-paragraph{white-space:pre-wrap;margin:0 0 18px;line-height:2.1}.report-notes{display:block;font-size:11px;margin:26px 0 0;padding:14px 0 0;line-height:1.9}.report-notes p{font-size:11px;margin:7px 0}
.requested-report-detail>.report-evidence{grid-column:2;grid-row:3;position:sticky;top:76px;max-height:calc(100dvh - 95px);overflow-y:auto;border:0;padding:24px 0 20px;margin:0;min-width:0}.report-evidence>h3{font-size:15px;margin:24px 0 14px}.report-toc{border-bottom:1px solid var(--line);padding:0 0 20px;margin:0 0 20px}.report-toc h3{font-size:16px;font-weight:650;margin:0 0 16px}.toc-link{display:block;width:100%;text-align:start;border:0;border-inline-start:2px solid transparent;background:transparent;padding:10px 12px;font-size:12px;line-height:1.9;color:var(--muted);margin:3px 0;border-radius:4px}.toc-link[aria-current]{background:#ebece5;border-inline-start-color:var(--gold);color:var(--green);font-weight:650}.report-source-list .evidence-source{font-size:13px}.report-source-list .source-open{font-size:11px}
@media(min-width:1600px){body[data-view=ask] #ask-view{grid-template-columns:minmax(0,1fr) 340px}.report-paper{padding:36px 44px}}
@media(max-width:1100px){body[data-view=ask] #ask-view{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.requested-report-detail{grid-template-columns:minmax(0,1fr) 230px;gap:0 20px}.report-paper{padding:24px}.assistant-message{padding:18px}.chat-heading-text h2{font-size:26px}}
@media(max-width:850px){body[data-view=ask] main{padding-top:14px}body[data-view=ask] #ask-view{display:flex;flex-direction:column;height:auto;min-height:0;gap:20px}.chat-heading-text h2{font-size:25px}.chat-heading-text>.muted{font-size:11px}.chat-main{display:block}#answer,#answer:not(:empty){max-height:52dvh;min-height:0;margin:10px 0}#ask-form{position:static;margin-bottom:0}.chat-context{font-size:10px}.assistant-message .answer-text{font-size:15px}.chat-question{margin-inline-start:8%;font-size:13px}.chat-main>.examples{display:flex;margin-top:14px}.chat-main>.examples .example{font-size:10px}#ask-form .form-footer{flex-wrap:wrap}#ask-form .query-actions{width:100%}#ask-form .query-actions button{flex:1}body[data-view=ask] .chat-evidence{max-height:460px;min-height:0;padding:18px}.requested-report-detail{display:flex;flex-direction:column;gap:0}.requested-report-detail>.requested-report-actions{position:static;width:100%;gap:6px;justify-content:flex-start}.requested-report-actions button{flex:1;font-size:11px;min-width:80px;line-height:1.7}.report-paper{width:100%;padding:22px 18px;margin-top:16px;order:3}.report-paper-heading h2{font-size:24px}.report-body.answer-text{font-size:15px}.report-section h3{font-size:19px}.requested-report-detail>.report-evidence{order:2;position:static;max-height:none;width:100%;padding:20px 0 0}.report-toc{margin-bottom:0;padding-bottom:12px}.report-toc h3{margin-bottom:8px}.toc-link{display:inline-block;width:auto;padding:8px 10px;font-size:11px;margin:3px}.report-evidence>h3,.report-source-list{display:none}.report-evidence:focus-within>.report-source-list{display:block}.requested-report-detail>.editor-message{width:100%}.report-paper .citation-reference{min-height:28px}.report-paper-heading .shared-access-note{font-size:10px}}
@media(max-width:850px){.requested-report-detail>.report-evidence{display:contents}.report-evidence>.report-toc{order:2;width:100%;margin-top:18px}.report-evidence>h3{display:block;order:4;width:100%;margin-top:24px}.report-evidence>.report-source-list{display:block;order:5;width:100%}}
/* Navigation changes have an immediate selected state, without contrast fades. */
.workspace-nav button{transition:none}
