:root{--ink:#213a39;--muted:#72807b;--paper:#f7f8f4;--line:#dfe5df;--green:#496d59;--lime:#d8e6ad}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7c9f66;outline-offset:3px}button{border:0;background:none}a{color:inherit}header{height:91px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;font:700 23px 'Manrope',sans-serif;letter-spacing:-.9px}.brand em{font-weight:400;font-style:normal}.brand small{font:600 8px 'DM Sans',sans-serif;display:block;letter-spacing:1.7px;margin-top:5px}.brandmark{position:relative;font:500 32px Georgia,serif;width:49px;height:49px;border:1px solid #a9bba9;border-radius:50% 50% 40% 50%;display:grid;place-items:center;letter-spacing:-3px}.brandmark span{font-size:24px;color:#829b63;position:absolute;right:4px;top:-7px}nav{display:flex;height:100%;gap:28px}.nav{border-bottom:2px solid transparent;font-size:13px}.nav.active{border-color:var(--ink);font-weight:700}.public{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.public i,.mode i{width:6px;height:6px;border-radius:50%;background:#769665;display:inline-block}main{display:grid;grid-template-columns:350px minmax(0,1fr);min-height:calc(100vh - 91px)}.chat{border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;height:calc(100vh - 91px);position:sticky;top:0;padding:30px 24px 16px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}h1{font:650 26px 'Manrope',sans-serif;letter-spacing:-1px;margin:13px 0 12px}.chat-heading p{line-height:1.7;color:var(--muted);font-size:12px;margin-bottom:26px}#messages{overflow:auto;flex:1;min-height:120px;padding-right:4px;scrollbar-width:thin}.message{margin-bottom:20px;font-size:12px;line-height:1.7}.message p{white-space:pre-line;margin:8px 0}.avatar{border-radius:50%;width:27px;height:27px;background:#e7eddf;color:#56744c;display:grid;place-items:center;font:16px Georgia,serif}.message.user{background:#f1f3ed;border-radius:12px 12px 2px 12px;padding:10px 14px;margin-left:20px}.message.user p{margin:0}.prompts{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.prompts button{border:1px solid var(--line);border-radius:7px;padding:11px 12px;text-align:left;font-size:11px;display:flex;justify-content:space-between;align-items:center}.prompts button:hover{background:var(--paper);border-color:#8ca279}.prompts span{color:#90a17e}.composer-area{padding-top:15px}.mode{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted);margin-bottom:10px}.mode button{margin-left:auto;font-size:17px}#chatForm{border:1px solid #ced8cc;border-radius:12px;padding:10px 12px;background:#fcfdf9;box-shadow:0 2px 8px #152c2510}textarea{width:100%;border:0;resize:none;background:none;outline:none;font-size:12px;color:var(--ink);line-height:1.6}.composer-actions{display:flex;justify-content:space-between;align-items:center}.mic{display:flex;gap:5px;align-items:center;font-size:10px;padding:5px 0;color:#708071}.mic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.mic.listening{color:#b34535}#send{width:31px;height:31px;border-radius:8px;background:var(--ink);color:white;font-size:22px}.tiny{font-size:9px;color:#7e8880;line-height:1.5}.education{font-size:9px;color:#929a91;text-align:center;margin-bottom:0}.workspace{padding:30px 30px 0;min-width:0}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:15px}h2{font:650 23px 'Manrope',sans-serif;letter-spacing:-.7px;margin:9px 0 0}.iconbutton{border:1px solid var(--line);border-radius:6px;font-size:11px;padding:9px 10px;white-space:nowrap}.figure-meta{display:flex;gap:9px;align-items:center;margin:18px 0;font-size:9px}.figure-meta span{background:#e9ede4;padding:6px 9px;border-radius:4px}.figure-meta span:first-child{background:none;padding-left:0;font-weight:700;letter-spacing:1.2px}.figure-meta span:last-child{margin-left:auto;background:none;color:#70816e}.viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 218px;gap:22px}.canvas-col{min-width:0}.image-viewport{position:relative;height:540px;border-radius:10px;background:#080c0c;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}.image-viewport:fullscreen{height:100vh;width:100vw}.image-viewport:fullscreen #imageStage{max-height:95vh}#imageStage{position:relative;max-width:100%;max-height:100%;display:inline-flex;transform-origin:center;cursor:grab}#mainImage{display:block;max-width:100%;max-height:540px;width:auto;height:auto;object-fit:contain;user-select:none;pointer-events:none}.image-viewport:fullscreen #mainImage{max-height:95vh}#overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.image-note{position:absolute;bottom:14px;left:15px;font-size:8px;color:#bcc5bb;background:#16201dcc;border-radius:3px;padding:5px 7px;pointer-events:none}.zoomtools{position:absolute;right:12px;bottom:12px;display:flex;background:#ffffffed;border-radius:6px;padding:3px;box-shadow:0 2px 10px #0003}.zoomtools button{min-width:27px;height:26px;font-size:15px}.zoomtools #zoomReset{font-size:10px;border-left:1px solid #d9dfd9;border-right:1px solid #d9dfd9}.under-image{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:11px;font-size:10px;color:#71806f}.under-image label{white-space:nowrap;display:flex;align-items:center;gap:3px}input[type=checkbox]{accent-color:var(--green)}.caption{margin-top:20px;border-top:1px solid var(--line);padding-top:17px}.caption p{font-size:11px;line-height:1.75;color:#6b7770;max-height:125px;overflow:auto;white-space:pre-line}.textbutton{padding:0;font-size:10px;font-weight:600;color:#4c6f59}.details{min-width:0}.detail-tab{border-bottom:1px solid var(--line);padding:1px 0 13px;font-size:12px;font-weight:650;display:flex;justify-content:space-between}.detail-tab span{font-size:10px;color:var(--muted)}#structureList{padding:9px 0;max-height:300px;overflow:auto;scrollbar-width:thin}.structure{display:flex;gap:8px;text-align:left;width:100%;padding:8px 7px;font-size:10px;line-height:1.4;border-radius:5px;align-items:center}.structure i{height:5px;width:5px;flex-shrink:0;background:#a4afa1;border-radius:50%}.structure:hover{background:#e9eee4}.structure.active{background:#e6edda;color:#3d5e32;font-weight:700}.structure.active i{background:#6c8d43}.spatial{border-top:1px solid var(--line);padding:18px 0 10px}.spatial p{font-size:10px;line-height:1.8;position:relative;padding-left:12px;margin:12px 0;color:#657367}.spatial p:before{content:'';height:4px;width:4px;background:#95a782;border-radius:50%;position:absolute;left:0;top:7px}.evidence{background:#edf0e9;padding:13px;border-radius:7px;margin-top:10px}.evidence p{font-size:9px;color:#7a8678;line-height:1.7;margin-bottom:0}.related{margin-top:28px;border-top:1px solid var(--line);padding-top:23px}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h3{font:650 18px 'Manrope',sans-serif;margin:8px 0 0;letter-spacing:-.4px}.section-heading>span{font-size:10px;color:var(--muted)}.filters{display:flex;gap:9px;margin:18px 0;align-items:center}.filters select{border:1px solid var(--line);background:#fff;padding:7px 8px;border-radius:5px;font-size:10px;color:#64745f;max-width:210px}#indexStats{margin-left:auto;font-size:9px;color:#8a9485}.results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:0;text-align:left;overflow:hidden;transition:transform .15s}.card:hover{transform:translateY(-3px);border-color:#8ca279}.card.selected{outline:2px solid #728e58;outline-offset:1px}.card img{width:100%;height:135px;object-fit:contain;background:#101411;display:block}.card-text{padding:10px}.card small{font-size:8px;letter-spacing:.9px;color:#849079}.card h4{font-size:10px;line-height:1.5;margin:7px 0 3px;font-weight:600}.card p{font-size:9px;color:#7c8875;line-height:1.4;margin:4px 0}.more{display:block;border:1px solid var(--line);border-radius:5px;padding:9px 18px;margin:20px auto;font-size:11px}.more[hidden]{display:none}footer{padding:30px 0 20px;color:#9ba394;font-size:9px;line-height:1.8}footer button{padding:0;color:#6e8063;font-size:9px}.panel-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.panel-buttons button{font-size:9px;background:#e8eee0;border:1px solid #d2ddc5;border-radius:4px;padding:6px 8px}dialog{border:1px solid var(--line);border-radius:16px;padding:35px;max-width:660px;width:calc(100% - 30px);color:var(--ink);box-shadow:0 20px 100px #142b3240}dialog::backdrop{background:#10272088;backdrop-filter:blur(4px)}dialog h2{font-size:28px;margin:15px 0 20px}dialog h3{font-size:14px;margin-top:25px}dialog p{font-size:12px;line-height:1.8;color:#6d7c6a}.close{float:right;font-size:26px}#coverageStats{background:#edf1e7;border-radius:8px;padding:15px;line-height:2;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#213a39;color:white;border-radius:8px;padding:12px 20px;box-shadow:0 5px 30px #0002;z-index:9;opacity:0;pointer-events:none;font-size:12px;transition:opacity .2s}#toast.visible{opacity:1}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.readout{font-size:9px;color:#718867;padding:3px 0}.source-link{font-size:10px;text-decoration:underline}.empty{padding:25px;color:var(--muted);font-size:12px;grid-column:1/-1}.loading{opacity:.6}@media(min-width:1600px){main{grid-template-columns:390px minmax(0,1fr)}.chat{padding:38px 30px}.workspace{padding:34px 42px 0}.viewer-layout{grid-template-columns:minmax(0,1fr) 260px;gap:28px}.image-viewport{height:650px}#mainImage{max-height:650px}.structure{font-size:12px}.spatial p{font-size:11px}.results{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1200px){header{padding:0 20px}.public{display:none}main{grid-template-columns:300px minmax(0,1fr)}.chat{padding:25px 18px}.workspace{padding:25px 20px 0}.viewer-layout{grid-template-columns:minmax(0,1fr) 175px;gap:15px}h1{font-size:23px}h2{font-size:20px}.results{grid-template-columns:repeat(3,minmax(0,1fr))}.image-viewport{height:460px}#mainImage{max-height:460px}#indexStats{display:none}}@media(max-width:900px){header{height:78px}.brand{font-size:20px}.brand small{font-size:6px}.brandmark{width:40px;height:40px}nav{gap:14px}.nav{font-size:11px}main{grid-template-columns:270px minmax(0,1fr)}.chat{height:calc(100vh - 78px)}.viewer-layout{display:block}.details{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-tab{grid-column:1/-1}#structureList{max-height:220px}.spatial{border:0;padding-top:0}.evidence{grid-column:1/-1;margin:0}.results{grid-template-columns:repeat(2,minmax(0,1fr))}.image-viewport{height:430px}#mainImage{max-height:430px}.iconbutton span{display:none}.figure-meta{flex-wrap:wrap}.figure-meta span:last-child{margin-left:0}}@media(max-width:680px){header{height:auto;min-height:75px;flex-wrap:wrap;padding:16px;gap:13px}nav{height:30px;gap:23px;width:100%}main{display:flex;flex-direction:column}.chat{position:static;height:auto;padding:22px 18px;border-right:0;border-bottom:1px solid var(--line)}.chat-heading p{display:none}.chat-heading h1{margin:8px 0 18px}.chat-heading .eyebrow{font-size:8px}#messages{max-height:300px}.prompts{display:grid;grid-template-columns:1fr 1fr}.prompts button{font-size:10px;line-height:1.5;padding:9px}.composer-area{padding-top:5px}.workspace{padding:24px 16px 0}.image-viewport{height:480px}#mainImage{max-height:480px}.results{grid-template-columns:repeat(2,minmax(0,1fr))}.filters select{max-width:185px}.workspace-top h2{font-size:20px}.details{grid-template-columns:1fr 1fr}.caption p{max-height:160px}.card img{height:150px}.education{display:none}}

.image-viewport.no-match #imageStage{visibility:hidden}.image-viewport.no-match:after{content:'No supported image match';color:#d0dacb;font-size:16px;position:absolute}.image-viewport.no-match .image-note{display:none}

[hidden]{display:none!important}.query-context{font-size:13px;line-height:1.7;white-space:pre-line;color:#3f5f4c;background:#e9efdf;border-left:3px solid #8ea66b;padding:13px 16px;margin:18px 0}.query-context:empty{display:none}#emptyState{display:none;text-align:center;padding:90px 35px;border:1px dashed #c6d1c1;border-radius:14px;margin:28px 0;background:#f0f3e9}#emptyState h3{font:600 24px Manrope,sans-serif}#emptyState p{font-size:14px;line-height:1.8;max-width:490px;margin:15px auto;color:#6d7c63}.empty-symbol{font-size:55px;color:#789465}.workspace.is-empty #emptyState{display:block}.workspace.is-empty .viewer-layout,.workspace.is-empty .figure-meta,.workspace.is-empty .related{display:none}.workspace.library-only .related{display:block}.figure-meta{flex-wrap:wrap}.figure-meta #viewTag{font-size:11px;font-weight:600}.card.selected{outline:3px solid #557e3e}.image-note{max-width:60%}
 .service-notice{margin:0 22px 14px;padding:12px 14px;background:#f1ecd9;border-radius:9px;color:#514b34;font-size:13px;line-height:1.5}
 .request-coverage{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:16px 0}.request-coverage[hidden]{display:none}.request-card{border:1px solid #cbd5cb;border-radius:12px;padding:16px;background:#fff}.request-card h3{font-size:16px;margin:0 0 10px}.request-card strong{text-transform:capitalize;font-size:12px;color:#41655c}.request-card p{font-size:13px;line-height:1.6}.request-card.partial,.request-card.not_established{border-color:#cfc6a2}.comparison-status{grid-column:1/-1;font-size:13px;line-height:1.6}#librarySearch{min-width:210px;max-width:100%;padding:10px 12px;border:1px solid #ccd5cc;border-radius:8px;background:white;color:#203b37}#send:disabled{opacity:.5}
/* The source image and overlay must occupy exactly the same pixel frame. */
#imageStage{flex:none;max-width:none!important;max-height:none!important}
#imageStage #mainImage{width:100%;height:100%;max-width:none!important;max-height:none!important}
/* Full-page anatomy controls share the standard view's actual structure list. */
.floating-anatomy{position:absolute;top:18px;right:18px;z-index:5;width:min(285px,calc(100% - 32px));max-height:calc(100% - 90px);border:1px solid #c7d3c4;border-radius:12px;background:#f7f8f4f5;color:#213a39;box-shadow:0 8px 35px #0006;backdrop-filter:blur(14px);overflow:hidden;touch-action:auto}
.floating-anatomy[hidden],.floating-content[hidden]{display:none}
.floating-heading{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-bottom:1px solid #dfe5df;gap:6px}
.floating-handle{display:flex;align-items:center;gap:8px;flex:1;font-size:14px;font-weight:650;text-align:left;cursor:move;touch-action:none;padding:6px}
.floating-collapse{width:32px;height:32px;font-size:22px;border-radius:6px;background:#e7edde}
.floating-content{padding:0 12px 12px;max-height:calc(100vh - 180px);overflow:auto;overscroll-behavior:contain}
.floating-help{font-size:11px;line-height:1.5;color:#6b7969;margin:10px 0 4px}
.floating-anatomy #structureList{max-height:min(52vh,480px);padding:6px 0;overscroll-behavior:contain}
.floating-anatomy .structure{font-size:12px;padding:9px 7px;min-height:36px}
.floating-highlights{display:flex;align-items:center;gap:7px;border-top:1px solid #dfe5df;padding-top:10px;font-size:12px}
.image-viewport.is-expanded{position:fixed;inset:0;z-index:100;height:100dvh;width:100vw;border-radius:0}
.image-viewport.is-expanded #imageStage,.image-viewport.is-expanded #mainImage{max-height:95dvh}
body.viewer-expanded{overflow:hidden}
@media(max-width:600px){.floating-anatomy{width:230px;top:10px;right:10px}.floating-anatomy #structureList{max-height:35vh}.floating-help{font-size:10px}}

/* Readable typography and contrast across standard and expanded views. */
:root{--ink:#182820;--muted:#46564c;--paper:#fafbf8;--green:#315b42;--line:#cdd6cd;--ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body,button,input,textarea,select,.brand,.brand small,h1,h2,h3,h4,#emptyState h3{font-family:var(--ui-font)}
body{font-size:16px;line-height:1.5;color:var(--ink)}
h1,h2,h3,h4{color:#14241c;font-weight:650;letter-spacing:-.3px}
h1{font-size:28px;line-height:1.2}h2{font-size:24px;line-height:1.35}
.brand{font-size:24px;letter-spacing:-.5px}.brand small{font-size:10px;letter-spacing:1.2px}
.nav{font-size:15px}.public{font-size:13px;color:var(--muted)}
.chat-heading p,.message,.prompts button,.query-context,.request-card p,.comparison-status{font-size:15px;line-height:1.65;color:#263a2e}
.message strong,.detail-tab{font-weight:650}.chat-heading p{margin-bottom:20px}
.eyebrow,.chat-heading .eyebrow{font-size:11px;letter-spacing:1.1px;color:#405348}
#query{font-size:16px;line-height:1.55;color:#182820}#query::placeholder{color:#536157;opacity:1}
.mode,.education,.readout,.composer-note,#voiceStatus{font-size:12px;color:#46564c}
.service-notice{font-size:14px;line-height:1.6;color:#3c3622}
.figure-meta,.figure-meta #viewTag{font-size:13px;color:#2b4233}.figure-meta span:last-child{font-size:12px;color:#46564c}
.detail-tab{font-size:16px;color:#182820}.detail-tab span{font-size:13px;color:#46564c}
.structure,.floating-anatomy .structure{font-size:14px;line-height:1.5;padding:10px 8px;color:#243b2b}
.structure.active{color:#14351c;background:#dce9cb;font-weight:700}.structure i{background:#60745d}
.caption p,.spatial p,dialog p{font-size:14px;line-height:1.7;color:#344b3c}
.evidence p{font-size:13px;line-height:1.7;color:#344b3c}.evidence{background:#edf2e8}
.textbutton,.source-link{font-size:14px;color:#245237;font-weight:600}.under-image{font-size:13px;color:#3d5142}
.zoomtools button{height:34px;min-width:34px;font-size:20px}.zoomtools #zoomReset{font-size:13px;min-width:48px}
.image-note{font-size:11px;color:#f1f6eb;background:#17241de6}
.floating-anatomy{background:#fbfcf9;color:#182820;width:min(310px,calc(100% - 32px))}
.floating-handle{font-size:16px}.floating-help,.floating-highlights{font-size:13px;color:#405244;line-height:1.6}
.filters select,#librarySearch{font-size:14px;color:#263d2d}.filters{flex-wrap:wrap}
.section-heading>span,#indexStats{font-size:12px;color:#46564c}.card small{font-size:11px;color:#46564c;letter-spacing:.5px}
.card h4{font-size:14px;line-height:1.5;color:#213728}.card p{font-size:13px;color:#46564c}
.more{font-size:14px}.empty{font-size:15px;color:#46564c}#emptyState p{font-size:16px;color:#405244}
.request-card strong{font-size:14px;color:#28523d}.request-card h3{font-size:17px}
footer,footer button{font-size:12px;line-height:1.7;color:#46564c}#toast{font-size:14px}
@media(max-width:680px){.brand{font-size:22px}.brand small{font-size:9px}.nav{font-size:14px}.prompts button{font-size:14px}.floating-anatomy{width:min(280px,calc(100% - 32px))}.floating-help{font-size:12px}.figure-meta{gap:8px}}

.section-heading h3,.workspace-top h2{font-family:var(--ui-font)}

/* Observable query progress and qualified source views. */
.query-progress{padding:14px;margin:14px 0;border:1px solid #b5c6b5;border-radius:10px;background:#f2f6ed;font-size:14px;color:#243b2b}
.query-progress summary{font-weight:700;cursor:pointer}.query-progress:not(.finished) summary:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #a1b393;border-top-color:#294e36;border-radius:50%;margin-right:9px;animation:query-spin 1s linear infinite}
.query-progress ol{padding-left:20px;line-height:1.6}.query-progress li{margin:8px 0}.progress-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px}.progress-controls button{padding:6px 10px;border:1px solid #8c9d87;border-radius:5px;background:white;font-size:13px}.query-timer{font-size:12px;color:#42573f}.query-progress.finished{background:#f8faf5}.query-progress.finished summary{font-weight:500}
.query-context.partial-view{border-color:#947329;background:#fff3d6;color:#51401d}.image-note.partial-note{background:#fff3d6f5;color:#51401d;font-size:12px;line-height:1.5;max-width:calc(100% - 210px)}.image-kind{display:inline-block;font-size:12px;font-weight:700;margin-top:6px;color:#294b34}.card .match-label{color:#73571d;font-weight:600}.workspace.is-empty.has-related .related{display:block}
@keyframes query-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.query-progress:not(.finished) summary:before{animation:none}}

.alternatives{margin:24px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.alternatives h3{font-size:18px;margin:0 0 7px;color:#1b3024}.alternatives>p{font-size:14px;line-height:1.6;margin:0 0 16px;color:#3c5042}.alternative-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.thumbnail-frame{--thumbnail-height:170px;height:var(--thumbnail-height);background:#0a100c;display:flex;align-items:center;justify-content:center;overflow:hidden}.thumbnail-crop{position:relative;overflow:hidden;max-height:100%;width:100%}.card .thumbnail-crop img{display:block;width:100%;height:var(--thumbnail-height);object-fit:contain}.card:focus-visible{outline:3px solid #347e58;outline-offset:3px}.alternative-images .card h4{font-size:13px}.alternative-images .match-label{font-size:12px}@media(max-width:1100px){.alternative-images{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.alternative-images{grid-template-columns:1fr}}
/* Keep full-view zoom controls accessible above the movable anatomy panel. */
.image-viewport.is-expanded .zoomtools{top:16px;right:16px;bottom:auto;z-index:6}
.image-viewport.is-expanded .floating-anatomy{top:76px;right:16px}

/* Conversation workspace: independent scrolling above an anchored composer. */
body{height:100dvh;overflow:hidden;background:#fff}header{height:68px;padding:0 22px;gap:16px}.brand{margin-right:auto;font-size:22px}.brandmark{width:40px;height:40px;font-size:28px}.brand small{font-size:8px}.site-menu{position:relative}.site-menu summary{cursor:pointer;list-style:none;font-size:22px;padding:8px;border-radius:6px}.site-menu summary::-webkit-details-marker{display:none}.site-menu[open] nav{position:absolute;left:0;top:44px;z-index:20;display:flex;flex-direction:column;height:auto;width:220px;gap:0;padding:8px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 30px #13291b20}.site-menu .nav{text-align:left;padding:12px;border:0;border-radius:6px}.site-menu .nav:hover{background:#edf3ee}
main{height:calc(100dvh - 68px);min-height:0;display:grid;grid-template-columns:230px minmax(340px,.9fr) minmax(400px,1.2fr)}.chat-sidebar{background:#f5f7f4;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:18px 12px;gap:14px}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px}.sidebar-heading button{font-size:21px}.new-chat{text-align:left;border:1px solid #c4d2c5;border-radius:8px;padding:11px;background:white;font-weight:600}.chat-sidebar input{width:100%;border:1px solid var(--line);background:white;border-radius:7px;padding:9px;font-size:14px}#chatHistory{flex:1;overflow:auto;min-height:0}.history-group{font-size:12px;color:#536157;margin:18px 8px 7px}.history-row{display:flex;align-items:center;border-radius:7px;margin-bottom:3px}.history-row.current{background:#e2eadd}.history-row>button:first-child{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 8px;font-size:14px}.history-delete{opacity:0;padding:8px;font-size:17px}.history-row:hover .history-delete,.history-delete:focus-visible{opacity:1}.history-note{font-size:12px;color:#4b5c4d;margin:0 7px}.chat{height:auto;position:relative;top:auto;padding:0;min-height:0;min-width:0;background:#fff;border-right:1px solid var(--line)}.chat-heading{padding:17px 22px;border-bottom:1px solid #e0e6df;display:flex;gap:10px;align-items:center}.chat-heading h1{font-size:17px;line-height:1.4;letter-spacing:0;margin:0;font-weight:600}#showSidebar{display:none}.chat .service-notice{margin:12px 20px 0}#messages{padding:26px 26px 12px;max-height:none;min-height:0;scroll-behavior:smooth}.message{font-size:16px;line-height:1.7;margin-bottom:24px}.message.user{max-width:90%;margin-left:auto;padding:12px 16px;border-radius:16px 16px 3px 16px}.message.assistant{padding-right:10px}.message .avatar{margin-bottom:9px}.message-images{display:flex;gap:8px;overflow:auto;margin:14px 0}.message-image{min-width:110px;width:140px;border:1px solid var(--line);border-radius:8px;overflow:hidden;text-align:left;padding:0;background:#f6f8f4}.message-image img{width:100%;height:88px;object-fit:contain;display:block;background:#0b100d}.message-image span{display:block;padding:7px;font-size:11px;line-height:1.4}.composer-area{padding:12px 24px 10px;background:white;box-shadow:0 -8px 20px #ffffffed;flex-shrink:0}#chatForm{border-radius:16px;padding:12px 15px;background:#fff}.composer-actions{margin-top:5px}.mic{font-size:13px}#send{width:35px;height:35px;border-radius:50%}.mode{font-size:11px;margin-bottom:7px}.education{font-size:11px;margin-top:5px}#voiceStatus{font-size:11px;margin:6px 0}.workspace{height:100%;overflow:auto;padding:26px 26px 0;background:#fafbf8;overscroll-behavior:contain}.workspace-top .eyebrow{font-size:10px}.workspace-top h2{font-size:22px}.viewer-layout{display:block}.details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.detail-tab{grid-column:1/-1}.spatial{border:0;padding:0}.evidence{grid-column:1/-1}.image-viewport{height:480px}#mainImage{max-height:480px}.results{grid-template-columns:repeat(2,minmax(0,1fr))}.alternative-images{grid-template-columns:repeat(3,minmax(0,1fr))}.alternative-images .thumbnail-frame{--thumbnail-height:125px}.home-explore{display:none;padding:20px 4px 28px}.home-explore h2{font-size:28px;line-height:1.25;margin:12px 0 15px}.home-explore>p{font-size:16px;color:#405244;line-height:1.7;max-width:540px}.explore-group{margin-top:28px}.explore-group h3{font-size:14px;color:#445b49;font-weight:600;margin:0 0 12px}.explore-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.explore-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;min-height:76px;border:1px solid #cbd8cd;background:#fff;padding:15px;border-radius:12px;font-size:15px;line-height:1.5}.explore-options button:hover,.home-browse:hover{border-color:#4b7956;background:#f1f6ec}.explore-options span{color:#517544}.home-browse{display:block;width:100%;text-align:left;border:1px solid #b6c9b1;border-radius:12px;background:#eaf0e2;padding:17px;margin-top:26px;font-weight:650}.home-browse>span{float:right}.home-browse small{display:block;font-size:13px;font-weight:400;margin-top:4px;color:#3e5744}body.home-mode #homeExplore{display:block}body.home-mode .workspace> :not(#homeExplore){display:none}body.sidebar-collapsed main{grid-template-columns:minmax(360px,.9fr) minmax(400px,1.2fr)}body.sidebar-collapsed .chat-sidebar{display:none}body.sidebar-collapsed #showSidebar{display:block}.workspace.library-only #emptyState{display:none}.workspace.library-only .workspace-top h2{font-size:22px}
@media(min-width:1800px){main{grid-template-columns:260px minmax(440px,.85fr) minmax(600px,1.2fr)}.workspace{padding:32px}.image-viewport{height:620px}#mainImage{max-height:620px}.viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px}.details{display:block;margin-top:0}}
@media(max-width:1150px){main{grid-template-columns:190px minmax(290px,1fr) minmax(340px,1fr)}#messages{padding:20px 18px}.workspace{padding:22px 18px 0}.composer-area{padding:12px 16px}.explore-options{grid-template-columns:1fr}.alternative-images{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-sidebar{padding:16px 9px}.sidebar-heading strong{font-size:12px}}
@media(max-width:900px){main,body.sidebar-collapsed main{grid-template-columns:minmax(280px,1fr) minmax(320px,1fr)}.chat-sidebar{position:fixed;left:0;top:68px;bottom:0;width:240px;z-index:30;box-shadow:8px 0 30px #0002}.chat-sidebar{display:none}body.sidebar-open .chat-sidebar{display:flex}#showSidebar{display:block}.image-viewport{height:400px}#mainImage{max-height:400px}.brand small{display:none}}
@media(max-width:680px){header{height:60px;min-height:60px;flex-wrap:nowrap;padding:0 12px;gap:8px}.brand{font-size:20px}.brandmark{width:34px;height:34px}.site-menu[open] nav{width:210px}main,body.sidebar-collapsed main{height:calc(100dvh - 60px);display:flex;flex-direction:column;overflow:auto;padding-bottom:190px}.chat{height:auto;min-height:260px;flex-shrink:0;border-right:0}.chat-heading{padding:13px 16px}.chat-heading h1{font-size:16px}#messages{overflow:visible;padding:18px 16px;flex:none}.composer-area{position:fixed;bottom:0;left:0;right:0;z-index:12;padding:9px 14px;background:white;border-top:1px solid var(--line)}.workspace{height:auto;overflow:visible;flex-shrink:0;padding:20px 16px}.home-explore{padding-top:0}.home-explore h2{font-size:24px}.explore-options{grid-template-columns:1fr 1fr}.explore-options button{font-size:14px;padding:12px}.chat-sidebar{top:60px}.education{display:none}.image-viewport{height:440px}#mainImage{max-height:440px}.history-delete{opacity:1}.image-viewport.is-expanded{z-index:100}.public{display:none}}

#chatAtlas{margin-left:auto;margin-right:12px;max-width:190px;border:1px solid #d1dcd0;border-radius:7px;padding:5px 7px;background:#f8faf6;color:#263d2d;font-size:12px}.composer-actions .mic{flex-shrink:0}

.evidence-details{margin:15px 0;border:1px solid #ccd8c9;border-radius:9px;background:white;padding:10px 12px}.evidence-details:has(#requestCoverage[hidden]){display:none}.evidence-details>summary{cursor:pointer;font-size:13px;color:#294333;font-weight:600}.evidence-details>summary span{font-weight:400;color:#4c6051;margin-left:8px}.evidence-details .request-coverage{display:block;margin-bottom:0}.evidence-details .request-card{margin-top:10px}.workspace .query-context{font-size:14px;line-height:1.55;margin:14px 0;padding:11px 13px}.workspace-top h2{font-size:21px}.workspace .figure-meta{margin:12px 0}.request-card .source-link{text-align:left;font-size:13px;line-height:1.5;margin:5px 0}

/* Query accounting stays readable inside the narrow conversation column. */
.monthly-usage{margin-top:10px;font-size:13px;color:#182c25;line-height:1.5}
.monthly-usage summary,.query-usage summary{cursor:pointer;font-weight:650}
.monthly-usage p{margin:8px 0}.monthly-usage[open]{max-height:180px;overflow:auto;padding:10px;border:1px solid #b8c8be;border-radius:8px;background:#fff}
.query-usage{border-top:1px solid #c4cfc7;margin-top:14px;padding-top:10px;font-size:13px;color:#172c25;line-height:1.5}
.query-usage p{font-size:13px!important;margin:8px 0!important}.usage-id{overflow-wrap:anywhere;font-family:ui-monospace,monospace}.usage-call{margin:12px 0;padding:10px;background:#f2f5f1;border-radius:8px}.usage-model{overflow-wrap:anywhere}.usage-tokens{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin:8px 0}.usage-tokens dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.usage-note{color:#40564a}.usage-warning{color:#794500;font-weight:600}

/* The full source grid belongs to the library, not the conversation results. */
.workspace:not(.library-only) .related{display:none!important}

/* Label relevance is separate from a visible highlight, including in full view. */
.structure>span{flex:1}.structure .highlight-state{font-size:10px;font-weight:500;line-height:1.3;margin-left:auto;flex-shrink:0;color:#53635b}
.structure.matched{background:transparent;font-weight:500;color:#263d2d}.structure.matched i{background:transparent;border:1px solid #718879;width:6px;height:6px}
.structure.active{background:#edf3e5}.structure.active .highlight-state{color:#38582d}

/* A single conversation column, with inline image results and an anchored composer. */
main{grid-template-columns:230px minmax(0,1fr)}
body.sidebar-collapsed main{grid-template-columns:minmax(0,1fr)}
.chat{border-right:0;overflow:hidden}
#conversationScroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-top:24px}
#messages{overflow:visible;flex:none;min-height:0;max-height:none;padding:28px 32px 0;max-width:1440px;margin:0 auto;scroll-behavior:auto}
.message{max-width:100%;padding:0;margin:0 0 28px}
.message.assistant{padding-right:0}
.message.assistant>p{max-width:880px}
.message.user{width:fit-content;max-width:min(80%,800px)}
#conversationScroll .workspace{height:auto;overflow:visible;padding:24px 0 0;background:transparent;max-width:1440px;margin:0 auto;width:100%}
#conversationScroll>.workspace{padding:24px 32px}
.message.has-image-results>.message-images{display:none}
.message .workspace p{white-space:normal}
.message .workspace .caption p,.message .workspace .query-context{white-space:pre-line}
.workspace-top{border-top:1px solid var(--line);padding-top:22px}
.workspace .viewer-layout{display:block}
.workspace .image-viewport:not(.is-expanded){height:clamp(420px,68dvh,850px)}
.workspace #mainImage{max-height:850px}
.workspace .image-viewport.is-expanded #mainImage{max-height:95dvh}
.workspace .details{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.workspace .detail-tab,.workspace .evidence{grid-column:1/-1}
.workspace .alternative-images{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace .results{grid-template-columns:repeat(3,minmax(0,1fr))}
.composer-area{position:relative;flex-shrink:0;bottom:auto;left:auto;right:auto;padding:10px 32px 8px;border-top:1px solid var(--line);box-shadow:0 -6px 18px #ffffffd9}
.composer-area>*{max-width:1000px;margin-left:auto;margin-right:auto}
#chatForm{padding:9px 14px}#query{min-height:44px;height:48px}
.composer-area .mode{margin-bottom:4px}.composer-area .education{display:none}
.composer-area #voiceStatus{margin:3px auto 0}
body.home-mode #messages .prompts{display:none}
body.home-mode .home-explore{max-width:1000px;margin:auto}
#conversationScroll:has(.workspace.library-only) #messages{display:none}
@media(min-width:1800px){main{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1150px){main{grid-template-columns:190px minmax(0,1fr)}#messages{padding:22px 24px 0}.composer-area{padding:10px 24px 8px}}
@media(max-width:900px){main,body.sidebar-collapsed main{grid-template-columns:minmax(0,1fr)}.workspace .results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){main,body.sidebar-collapsed main{display:grid;height:calc(100dvh - 60px);overflow:hidden;padding-bottom:0}.chat{height:100%;min-height:0;flex-shrink:1}#messages{padding:18px 16px 0}#conversationScroll>.workspace{padding:18px 16px}.composer-area{position:relative;z-index:12;padding:8px 14px}.workspace .image-viewport:not(.is-expanded){height:65dvh;min-height:340px}.workspace .alternative-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.workspace .alternative-images .card h4{font-size:12px}.workspace .details{grid-template-columns:1fr}.workspace .spatial{grid-column:1/-1}.workspace-top h2{font-size:20px}.message.user{max-width:90%}}

/* Images lead each reply; source prose is available on demand. */
.answer-commentary>p{white-space:pre-line;max-width:900px}
#resultCommentary{margin:24px 0}
#resultCommentary:empty{display:none}
.message .workspace .answer-commentary>p{white-space:pre-line}
.has-image-results>.workspace{padding-top:0!important}
.has-image-results .workspace-top{border-top:0;padding-top:0}
.figure-meta .source-context-control{margin-left:auto;border:1px solid #bdcbbc;background:#fff;border-radius:7px;padding:7px 12px;font-size:13px;font-weight:600;white-space:nowrap;color:#244c34}
.figure-meta .source-context-control:hover{background:#edf3e7;border-color:#719268}
#sourceContextDialog{max-width:800px;width:calc(100% - 32px);max-height:85dvh;padding:24px;overflow:auto}
#sourceContextDialog h2{margin:0 38px 14px 0;font-size:23px}
#sourceContextDialog .close{position:sticky;top:0;float:right;background:#fff;border-radius:6px;line-height:1;width:32px;height:32px}
#sourceContextDialog .source-reference{font-weight:600;color:#243b2b;margin:0 0 8px}
.review-status{display:inline-block;font-size:12px;color:#46564c;padding:4px 8px;background:#edf2e8;border-radius:4px}
.source-context-body #captionText{white-space:pre-line;max-height:none;font-size:15px;line-height:1.75;margin:20px 0}
.source-context-body .evidence{margin:18px 0}
.source-context-body #sourcePage{margin-top:14px}
@media(max-width:680px){#sourceContextDialog{padding:18px}.figure-meta .source-context-control{margin-left:auto;font-size:12px;padding:6px 9px}}

/* Unverified views keep their related images visible, without an empty canvas. */
.workspace.is-empty:not(.library-only) .workspace-top{display:none}
.workspace.is-empty #emptyState{text-align:left;padding:16px 20px;margin:12px 0 18px;border:1px solid #d7d2bd;background:#faf8ef}
.workspace.is-empty #emptyState .empty-symbol{display:none}
.workspace.is-empty #emptyState h3{font-size:20px;line-height:1.4;margin:0 0 6px}
.workspace.is-empty #emptyState p{max-width:none;margin:0;font-size:16px;line-height:1.6}
.workspace.is-empty.has-related>.alternatives{border-top:0;margin-top:0;padding-top:0}
.workspace.is-empty.has-related>.alternatives .alternative-images{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace.is-empty.has-related>.alternatives .thumbnail-frame{--thumbnail-height:180px}
@media(max-width:680px){.workspace.is-empty.has-related>.alternatives .alternative-images{grid-template-columns:1fr}.workspace.is-empty #emptyState{padding:14px}}

/* Source notices occupy their own space and never cover source-image labels. */
.canvas-col>.image-note{position:static;display:block;max-width:none;margin:0 0 10px;padding:8px 12px;border-radius:6px;background:#eef2eb;color:#294333;font-size:13px;line-height:1.5;pointer-events:auto}
.canvas-col>.image-note.partial-note{max-width:none;background:#fff3d6;color:#51401d;font-size:13px}
body.viewer-expanded .canvas-col>.image-note{position:fixed;left:0;right:0;bottom:0;z-index:101;margin:0;border-radius:0;width:100%;max-height:25dvh;overflow:auto;padding:10px 16px;border-top:1px solid #bac6b8}
.image-viewport.is-expanded{bottom:var(--viewer-note-height,0px);height:calc(100dvh - var(--viewer-note-height,0px))}
.workspace .image-viewport.is-expanded #mainImage,.workspace .image-viewport.is-expanded #imageStage{max-height:calc(100dvh - var(--viewer-note-height,0px) - 24px)}

/* Image tools share the figure header; anatomy details open on demand. */
.figure-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.figure-meta .figure-actions .source-context-control{margin-left:0}
/* Compact, nonmodal labels beside the image, leaving the image interactive. */
.image-and-labels{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.image-and-labels.labels-open{grid-template-columns:minmax(0,1fr) 248px}
.anatomy-panel{min-width:0;background:#fff;border:1px solid #bdcbbc;border-radius:10px;padding:12px;box-shadow:0 5px 18px #18342518;max-height:460px;overflow:auto}
.anatomy-panel[hidden]{display:none}
#anatomyPanel h2{font-size:16px;margin:0 28px 8px 0;letter-spacing:0}
#anatomyPanel .close{float:right;background:#eef3e9;border-radius:5px;line-height:1;width:26px;height:26px;font-size:20px}
#anatomyPanel .tiny{font-size:12px;line-height:1.45;margin:0 0 8px;color:#4c5d52}
.workspace #anatomyPanel .details{display:block;margin:0}
#anatomyPanel .detail-tab{font-size:12px;padding:6px 0;margin-bottom:4px}
#anatomyPanel #structureList{max-height:300px;overflow:auto;padding:0}
#anatomyPanel .structure{font-size:13px;line-height:1.4;padding:8px 5px;min-height:34px}
#anatomyPanel .highlight-state{font-size:10px}
#anatomyPanel .spatial{margin:10px 0 0;padding-top:8px;border-top:1px solid #dfe5df;font-size:12px}
#anatomyPanel .spatial summary{cursor:pointer;font-weight:600}
body.viewer-expanded .image-and-labels{grid-template-columns:minmax(0,1fr)}
body.viewer-expanded #anatomyPanel{display:none}
@media(max-width:680px){.image-and-labels.labels-open{grid-template-columns:minmax(0,1fr) 175px;gap:8px}.anatomy-panel{padding:9px;max-height:400px}#anatomyPanel #structureList{max-height:260px}.figure-actions{gap:6px}}

.canvas-col>.image-note[hidden]{display:none}
#verificationDetails{white-space:pre-line;font-size:14px;line-height:1.65}
#verificationSection{border-top:1px solid #dfe5df;margin-top:18px;padding-top:12px}
#verificationSection h3{font-size:16px;margin:0 0 8px}

/* The composer indicates text focus with its caret, without an inner rectangle. */
#query:focus,#query:focus-visible{outline:none;box-shadow:none;caret-color:var(--ink)}

/* Supplied Amara Yad wordmark, with an explicit adjacent home control. */
header .brand{margin-right:0;flex:none;line-height:0}
.brand-logo{display:block;width:124px;height:56px;object-fit:cover;object-position:center}
.home-control{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;margin-right:auto;border:1px solid #bccbc2;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.home-control svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-control:hover{background:#edf3ee;border-color:#496d59}
@media(max-width:680px){.brand-logo{width:112px;height:50px}.home-control{gap:5px;padding:8px 10px;font-size:13px}}

/* Cost details live in the navigation dialog, separate from the composer. */
#costEstimatesDialog{width:min(760px,calc(100% - 32px));max-height:85dvh;overflow-y:auto;color:var(--ink)}
#costEstimatesDialog h2{padding-right:36px;margin-top:0}
#costEstimatesDialog h3{margin:24px 0 10px}
#costEstimatesDialog .monthly-usage[open]{max-height:none;overflow:visible}
.conversation-query-cost{padding:12px 0;border-top:1px solid #d5ded7}
.conversation-query-cost h4{margin:0 0 8px;font-size:15px;line-height:1.5}
.conversation-query-cost .query-usage{border-top:0;margin-top:8px;padding-top:0}


#voiceStatus:empty{display:none}

/* The account menu remains at the foot of the chat-history sidebar. */
.account-menu{position:relative;margin-top:12px;border:1px solid #d0dbd6;border-radius:10px;background:#fff;flex:none}
.account-menu summary{display:flex;align-items:center;gap:9px;padding:10px;cursor:pointer;list-style:none}
.account-menu summary::-webkit-details-marker{display:none}
.account-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#e4edf3;color:#174263;font-weight:650}
.account-summary{display:flex;flex-direction:column;min-width:0;flex:1}.account-summary strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-summary small{font-size:10px;color:#61746b}
.account-options{position:absolute;bottom:calc(100% + 8px);left:0;width:max(100%,240px);max-width:85vw;padding:14px;background:#fff;border:1px solid #ced9d2;border-radius:12px;box-shadow:0 8px 30px #16352a20;z-index:40}
.account-options>span{display:block;font-size:12px;overflow-wrap:anywhere;color:#52665b}.account-options button{display:block;width:100%;text-align:left;font-size:14px;padding:12px 0 4px}.account-options p:empty{display:none}.account-options p{font-size:12px;color:#8b4926}
#costEstimatesNav[hidden]{display:none!important}

/* Share links are explicit snapshots, separate from private chat addresses. */
#shareDialog{width:min(560px,calc(100vw - 28px));padding:28px;max-height:85dvh;overflow:auto}#shareDialog label{display:block;font-weight:600;margin:18px 0 8px}#shareDialog select,#shareLink{width:100%;padding:12px;font-size:16px;border:1px solid #b8c9bd;border-radius:8px;background:white}#shareDescription{line-height:1.6}#shareCreate,#shareCopy{min-height:44px;padding:10px 16px;border:1px solid #b8c9bd;border-radius:8px;background:#f0f5ed;margin-top:14px}#shareStatus{font-size:14px;line-height:1.5}#shareRevoke{margin-top:14px;color:#683b35;text-align:left}#sharedBanner{padding:10px 24px;background:#eff4fa;font-size:14px;flex-shrink:0;display:flex;align-items:center;gap:12px;justify-content:space-between}#sharedBanner[hidden]{display:none}#continueShared{border:1px solid #b8c9bd;border-radius:8px;background:white;padding:9px 12px;flex-shrink:0}#shareChat{flex-shrink:0;margin-left:auto}.chat-heading h1{min-width:0}#sharedBanner.shared-error{background:#fff4df}
@media(max-width:680px){#sharedBanner{padding:8px 12px;font-size:12px;gap:8px}#continueShared{font-size:12px;max-width:120px}#shareChat{font-size:13px;padding:8px}#shareDialog{padding:20px}}

/* Useful spatial relationships are visible before the label list. */
#anatomyPanel .spatial.has-spatial-context{margin:0 0 10px;padding:0 0 10px;border-top:0;border-bottom:1px solid #dfe5df}
#anatomyPanel .spatial summary{padding:5px 7px}
#anatomyPanel .spatial.has-spatial-context #spatialText{max-height:190px;overflow:auto}
#anatomyPanel #spatialText p{font-size:13px;line-height:1.5;margin:8px 0}

/* Let the image set the shared row height, with one scroll area for all anatomy details. */
#anatomyPanel{align-self:stretch;min-height:0;max-height:none;contain:size}
.workspace #anatomyPanel #structureList,#anatomyPanel .spatial.has-spatial-context #spatialText{max-height:none;overflow:visible}
@media(max-width:680px){#anatomyPanel{bottom:8px}}

/* Supplied emblem and readable product name, including narrow phone headers. */
header .brand{gap:9px;min-width:0;flex:0 1 auto;line-height:1.15;margin-right:auto}
.brand-logo{width:56px;height:56px;object-fit:contain;flex:none}
.brand-title{font-size:21px;letter-spacing:-.4px;white-space:nowrap}
@media(max-width:680px){.brand-logo{width:42px;height:42px}.brand-title{font-size:16px;white-space:normal;max-width:140px}.brand{gap:6px}.home-control{margin-left:auto;flex:none}}
@media(max-width:380px){.brand-title{font-size:14px;max-width:105px}.brand-logo{width:38px;height:38px}}

/* Page browsing stays separate from search-result ranking. */
.page-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;min-height:44px}
.page-navigation[hidden]{display:none}
.page-navigation button{min-height:44px;padding:8px 14px;border:1px solid #b9c8bd;border-radius:8px;background:white;color:#20382a;font:inherit;cursor:pointer;white-space:nowrap}
.page-navigation button:disabled{opacity:.4;cursor:default}
#pagePosition{text-align:center;font-size:14px;color:#334b3f}
.viewer-expanded .page-navigation{position:fixed;z-index:1100;top:var(--app-top,0px);left:0;right:0;height:52px;margin:0;padding:4px 12px;background:#fff;border-bottom:1px solid #ced9d0}
.viewer-expanded .image-viewport.is-expanded{top:calc(var(--app-top,0px) + 52px);height:calc(var(--app-height,100dvh) - 52px - var(--viewer-note-height,0px))}
@media(max-width:680px){.page-navigation{gap:6px}.page-navigation button{padding:6px 10px}.page-navigation button span{display:none}#pagePosition{font-size:12px}.page-navigation:after{content:none}}

/* Keep global navigation separate from the mobile chat-history control. */
header > .site-menu{flex-shrink:0}
.site-menu[open] nav{left:auto;right:0}

.guest-allowance{margin:0;padding:4px 16px;text-align:center;font-size:13px;color:var(--muted)}
#guestSignIn{margin-left:auto;white-space:nowrap}
#accountMenu[hidden],#guestSignIn[hidden]{display:none}
