/* Reader styles stay within the research app; the shared header owns its styling. */
.research-app{color-scheme:light;--bg:#f4f6f8;--paper:#fff;--ink:#172c3c;--body:#435868;--muted:#687a88;--line:#e1e7eb;--accent:#006c78;--soft:#edf7f7;--raised:#f5f7f9;--selected:#f0f7f7;--warn:#825519;--shadow:0 8px 32px #142a3a12;--font:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html[data-theme=dark] .research-app{color-scheme:dark;--bg:#0b0f13;--paper:#13191f;--ink:#edf2f5;--body:#b8c5cf;--muted:#95a4af;--line:#2b353f;--accent:#8bd7ce;--soft:#1a302f;--raised:#1a222a;--selected:#1d302f;--warn:#ddb77d;--shadow:none}
.research-app *{box-sizing:border-box}
.research-app{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 var(--font);-webkit-font-smoothing:antialiased}
.research-app a{color:inherit;text-decoration:none}
.research-app button,.research-app input,.research-app select{font:inherit;color:inherit}
.research-app button{cursor:pointer;border:0;background:none}
.research-app button:disabled{opacity:.45;cursor:default}
.research-app input{min-width:0}
.research-app h1,.research-app h2,.research-app h3,.research-app h4,.research-app p{margin:0}
.research-app h1,.research-app h2,.research-app h3,.research-app h4,.research-app strong{font-weight:600}
.research-app img{display:block;max-width:100%}
.research-app [hidden]{display:none!important}
.research-app button:focus-visible,.research-app a:focus-visible,.research-app input:focus-visible,.research-app select:focus-visible,.research-app summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.research-app .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.research-app .icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:13px}
.research-app .icon-button:hover,.research-app .quiet-button:hover{background:var(--raised);color:var(--ink)}
.research-app main{max-width:1680px;margin:auto;padding:0 36px;outline:none}
.research-app .masthead{display:flex;align-items:center;justify-content:space-between;padding:24px 0;gap:32px}
.research-app .title-group{display:flex;align-items:baseline;gap:20px}
.research-app .title-group h1{font-size:30px;line-height:1.2;font-weight:500}
.research-app .title-group p{font-size:13px;color:var(--muted)}
.research-app .search{width:392px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--paper);border-radius:8px;height:44px;padding:0 12px}
.research-app .search>span{font-size:24px;color:var(--muted)}
.research-app .search input{width:100%;border:0;background:transparent;outline:0;font-size:13px}
.research-app .search:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--soft)}
.research-app kbd{font:12px/1.5 monospace;padding:0 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted)}
.research-app .navigation{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}
.research-app .collections{display:flex;gap:32px}
.research-app .collections>a{display:flex;gap:10px;align-items:center;padding:4px 0 16px;position:relative;font-size:16px;color:var(--muted)}
.research-app .collections>a span{font-size:11px;background:var(--line);color:var(--body);border-radius:4px;padding:0 6px}
.research-app .collections>a.active{color:var(--ink);font-weight:600}
.research-app .collections>a.active:after{content:"";position:absolute;bottom:-1px;height:3px;background:var(--accent);left:0;right:0}
.research-app .collections>a.active span{background:var(--soft);color:var(--accent)}
.research-app .quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border-radius:6px;padding:4px 12px;font-size:12px;color:var(--body);white-space:nowrap}
.research-app .quiet-button.active{background:var(--soft);color:var(--accent)}
.research-app .workspace{margin-top:16px;display:grid;grid-template-columns:356px minmax(0,1fr);background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;height:calc(100dvh - 238px);min-height:570px;box-shadow:var(--shadow)}
.research-app .browse-pane{border-right:1px solid var(--line);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;display:flex;flex-direction:column;background:var(--paper)}
.research-app .list-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}
.research-app .list-hint{color:var(--accent)}
.research-app .record{position:relative;border-bottom:1px solid var(--line);padding:20px;transition:background .15s}
.research-app .record:hover{background:var(--raised)}
.research-app .record.selected{background:var(--selected)}
.research-app .record.selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent)}
.research-app .record-meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:11px;margin-bottom:8px}
.research-app .record-meta .topic{color:var(--accent)}
.research-app .record h3{font-size:16px;font-weight:500;line-height:1.55}
.research-app .record h3 a:before{content:"";position:absolute;inset:0;z-index:0}
.research-app .record h3 a:focus-visible{outline-offset:5px}
.research-app .record-summary{font-size:12px;color:var(--muted);line-height:1.8;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.research-app .record-bottom{margin-top:12px;display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}
.research-app .content-tag{background:var(--raised);padding:2px 6px;border-radius:4px;white-space:nowrap}
.research-app .record.selected .content-tag{background:var(--paper)}
.research-app .read-indicator{margin-left:auto;color:var(--accent);white-space:nowrap}
.research-app .compare-check{position:relative;z-index:1;margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11px;cursor:pointer}
.research-app .compare-check input{accent-color:var(--accent);width:16px;height:16px}
.research-app .sample-note{padding:16px 20px;color:var(--muted);font-size:11px;margin-top:auto}
.research-app .reader{min-width:0;overflow:auto;scrollbar-width:thin;scroll-behavior:auto;position:relative;background:var(--paper);overscroll-behavior:contain}
.research-app .reader-toolbar{height:54px;padding:0 28px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;background:var(--paper);z-index:5}
.research-app .reader-toolbar .trail{font-size:12px;color:var(--muted)}
.research-app .reader-toolbar .actions{display:flex;align-items:center;gap:4px}
.research-app .reader-toolbar .quiet-button{padding:4px 8px}
.research-app .reader-content{padding:24px 32px 28px;max-width:1040px;margin:auto}
.research-app .reader-title-line{display:flex;gap:16px;align-items:start;margin-bottom:12px}
.research-app .reader h2{font-size:26px;line-height:1.45;letter-spacing:-.5px;font-weight:500}
.research-app .reader-meta{font-size:11px;color:var(--muted);display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.research-app .reader-summary{font-size:14px;color:var(--body);line-height:1.9;max-width:820px;margin-bottom:20px}
.research-app .evidence-trigger{color:var(--accent);font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:0}
.research-app .reader-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.research-app .reader-tabs button{font-size:13px;padding:0 0 12px;color:var(--muted);position:relative}
.research-app .reader-tabs button[aria-selected=true]{color:var(--accent);font-weight:500}
.research-app .reader-tabs button[aria-selected=true]:after{position:absolute;content:"";height:2px;background:var(--accent);left:0;right:0;bottom:-1px}
.research-app .panel h3{font-size:16px;font-weight:500;margin-bottom:12px}
.research-app .chart-title{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin-bottom:12px}
.research-app .chart-title h3{margin:0}
.research-app .chart-title span{font-size:11px;color:var(--muted)}
.research-app .chart-frame{margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--raised)}
.research-app .chart-frame button{display:block;width:100%;padding:0;position:relative}
.research-app .chart-frame img{width:100%;aspect-ratio:16/9;object-fit:contain;background:white}
.research-app .chart-frame button .zoom-label{position:absolute;right:12px;bottom:12px;background:#173746e8;color:#fff;border-radius:6px;padding:6px 10px;font-size:11px}
.research-app .chart-frame figcaption{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:12px 16px;font-size:12px;color:var(--body)}
.research-app .chart-frame figcaption span{color:var(--muted);font-size:11px}
.research-app .figure-switcher{display:flex;align-items:center;gap:12px;margin-top:16px}
.research-app .figure-switcher button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:4px 8px 4px 4px;font-size:11px;color:var(--muted);text-align:left}
.research-app .figure-switcher img{width:72px;height:40px;object-fit:contain;background:#fff;border-radius:3px}
.research-app .figure-switcher button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--soft)}
.research-app .figure-note{font-size:11px;color:var(--warn);margin-top:16px;line-height:1.8}
.research-app .editorial-label{display:flex;gap:8px;align-items:center;color:var(--accent);font-size:11px;margin-bottom:12px}
.research-app .editorial-label:before{content:"";width:20px;height:2px;background:var(--accent)}
.research-app .insight-lead{font-size:26px!important;line-height:1.5!important;font-weight:500!important;max-width:680px;letter-spacing:-.5px;margin:0 0 24px!important}
.research-app .implication-box{background:var(--soft);padding:20px 24px;border-radius:8px;margin-bottom:24px}
.research-app .implication-box .label{font-size:11px;color:var(--accent);margin-bottom:8px}
.research-app .implication-box p{font-size:15px;line-height:1.95;color:var(--ink)}
.research-app .reading-block{margin-bottom:24px}
.research-app .reading-block h3{font-size:14px;display:flex;align-items:center;gap:12px}
.research-app .reading-block h3 span{font-size:11px;color:var(--muted);font-weight:400}
.research-app .reading-block p,.research-app .prose{color:var(--body);line-height:2;font-size:14px}
.research-app .reading-block p+p,.research-app .prose p+p{margin-top:16px}
.research-app .source-inline{display:flex;gap:12px;flex-wrap:wrap;color:var(--accent);font-size:12px;margin-top:12px}
.research-app .source-inline a{text-decoration:underline;text-underline-offset:4px}
.research-app .disclosure{border-top:1px solid var(--line);padding:16px 0;font-size:12px;color:var(--muted)}
.research-app .disclosure summary{cursor:pointer;color:var(--body)}
.research-app .disclosure p{margin-top:12px;line-height:1.9}
.research-app .source-card{border:1px solid var(--line);border-radius:8px;padding:16px 20px;margin-bottom:16px}
.research-app .source-card h3{font-size:14px;margin:0 0 8px}
.research-app .source-card a{display:block;font-size:12px;color:var(--accent);overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}
.research-app .source-card p{font-size:12px;color:var(--muted);margin-top:8px}
.research-app .source-card .source-index{font-size:11px;color:var(--accent);margin-right:8px}
.research-app blockquote{font-size:14px;color:var(--body);line-height:1.9;padding:16px 20px;border-left:3px solid var(--line);margin:16px 0;background:var(--raised)}
.research-app .empty-state{padding:64px 24px;text-align:center}
.research-app .empty-state h2,.research-app .empty-state h3{font-size:20px;margin-bottom:12px}
.research-app .empty-state p{color:var(--muted);font-size:13px;line-height:1.9;margin-bottom:20px}
.research-app .primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;background:var(--ink);color:var(--paper);border-radius:6px;font-size:13px}
.research-app .secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:var(--paper)}
.research-app .product-monogram{height:48px;width:48px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:12px;background:var(--raised);font-size:24px}
.research-app .product-hero{display:flex;gap:16px;align-items:center;margin-bottom:16px}
.research-app .product-hero h2{margin:0}
.research-app .product-tagline{font-size:12px;color:var(--muted);margin-top:4px}
.research-app .product-actions{display:flex;gap:8px;margin:16px 0 24px;flex-wrap:wrap}
.research-app .position-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:0 0 24px}
.research-app .position-grid>div{padding:16px 0;border-bottom:1px solid var(--line)}
.research-app .position-grid dt{font-size:11px;color:var(--muted);margin-bottom:8px}
.research-app .position-grid dd{font-size:14px;color:var(--ink);margin:0;line-height:1.8}
.research-app .difference{border-left:3px solid var(--accent);padding:4px 0 4px 20px;margin:24px 0}
.research-app .difference h3{font-size:15px;margin-bottom:8px}
.research-app .difference p{font-size:14px;line-height:1.9;color:var(--body)}
.research-app .status-summary{display:flex;align-items:start;gap:16px;padding:20px;background:var(--raised);border-radius:8px;margin-bottom:24px}
.research-app .status-summary strong{display:block;font-size:16px;margin-bottom:8px;font-weight:500}
.research-app .status-summary p{color:var(--muted);font-size:13px}
.research-app .status-table{width:100%;border-collapse:collapse;font-size:13px}
.research-app .status-table td{padding:14px 0;border-bottom:1px solid var(--line)}
.research-app .status-table td:last-child{text-align:right;color:var(--muted)}
.research-app .status-badge{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.research-app .status-badge:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}
.research-app .active-filter{display:inline-flex;align-items:center;gap:12px;padding:4px 8px;margin:8px 0 0 12px;border-radius:4px;font-size:11px;background:var(--soft);color:var(--accent)}
.research-app .workspace-foot{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 4px;font-size:10px;color:var(--muted)}
.research-app .workspace-foot a{color:var(--accent)}
.research-app .workspace.focus{grid-template-columns:1fr}
.research-app .workspace.focus .browse-pane{display:none}
.research-app .workspace.focus .reader-content{max-width:960px}
.research-app .mobile-back{display:none}
.research-app .reader-nav-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:28px;color:var(--muted);font-size:12px}
.research-app .reader-nav-bottom button{max-width:45%;text-align:left;white-space:normal;line-height:1.7}
.research-app .reader-nav-bottom button:last-child{text-align:right}
.research-app .compare-tray{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:30;background:var(--paper);border:1px solid var(--line);padding:12px 16px 12px 24px;border-radius:12px;display:flex;align-items:center;gap:24px;box-shadow:0 8px 32px #102b4930;font-size:13px}
.research-app dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;max-height:92dvh;padding:24px;max-width:calc(100vw - 32px);box-shadow:var(--shadow)}
.research-app dialog::backdrop{background:#07142190;backdrop-filter:blur(3px)}
.research-app .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}
.research-app .dialog-heading h2{font-size:22px;font-weight:500}
.research-app .overline{font-size:11px;color:var(--accent);margin-bottom:4px}
.research-app .dialog-note{font-size:12px;color:var(--muted);margin-top:20px}
.research-app .comparison{overflow:auto}
.research-app .comparison table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.research-app .comparison th,.research-app .comparison td{text-align:left;vertical-align:top;padding:16px;border-bottom:1px solid var(--line);line-height:1.9;overflow-wrap:anywhere}
.research-app .comparison th{font-size:18px;font-weight:500}
.research-app .comparison th:first-child,.research-app .comparison td:first-child{width:112px;font-size:12px;color:var(--muted);padding-left:0}
.research-app .comparison a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.research-app #compare-dialog{width:920px}
.research-app .compare-message{font-size:11px;color:var(--muted);padding:12px 20px;background:var(--raised)}
.research-app #image-dialog{width:min(1400px,96vw);padding:16px}
.research-app .image-heading,.research-app .image-footer{display:flex;justify-content:space-between;gap:16px;align-items:center}
.research-app .image-heading h2{font-size:15px;font-weight:500}
.research-app .zoom-actions{display:flex;align-items:center;gap:8px}
.research-app .image-stage{height:min(72dvh,790px);overflow:auto;display:flex;align-items:safe center;justify-content:safe center;background:var(--raised);margin:16px 0;border:1px solid var(--line);border-radius:8px}
.research-app .image-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;background:white;flex-shrink:0}
.research-app .image-stage.actual{display:block}
.research-app .image-stage.actual img{width:1280px;max-width:none;max-height:none;margin:auto}
.research-app .image-footer span{font-size:12px;color:var(--muted)}
@media(min-height:1000px){
.research-app .workspace{height:calc(100dvh - 246px)}
}
@media(max-width:1100px){
.research-app main{padding-inline:24px}
.research-app .workspace{grid-template-columns:300px minmax(0,1fr)}
.research-app .reader-content{padding:24px}
.research-app .reader h2{font-size:23px}
.research-app .reader-toolbar{padding:0 20px}
.research-app .record{padding:16px}
.research-app .title-group p{display:none}
.research-app .reader-toolbar .trail{max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.research-app .reader-toolbar .quiet-button{font-size:11px}
.research-app .insight-lead{font-size:23px!important}
.research-app .position-grid{grid-template-columns:1fr}
.research-app .figure-switcher img{width:56px;height:32px}
.research-app .figure-switcher{gap:8px}
}
@media(max-width:760px){
.research-app{font-size:14px}
.research-app .icon-button{min-width:36px;min-height:36px}
.research-app main{padding:0 16px}
.research-app .masthead{padding:20px 0 16px;display:block}
.research-app .title-group{margin-bottom:16px;gap:16px}
.research-app .title-group h1{font-size:27px}
.research-app .title-group p{display:block;font-size:12px}
.research-app .search{width:100%;height:44px}
.research-app .navigation{display:block}
.research-app .collections{justify-content:space-between;gap:16px}
.research-app .collections>a{font-size:15px;gap:8px;padding:4px 0 14px}
.research-app .workspace{height:auto;min-height:0;display:block;border-radius:8px;box-shadow:none;overflow:visible}
.research-app .browse-pane{border:0;overflow:visible}
.research-app .list-caption{position:static;padding:12px 16px}
.research-app .record{padding:20px 16px}
.research-app .record h3{font-size:17px;line-height:1.55}
.research-app .record-meta{font-size:11px}
.research-app .record-summary{font-size:13px}
.research-app .record-bottom{font-size:11px}
.research-app .record.selected{background:var(--paper)}
.research-app .record.selected:before{display:none}
.research-app .reader{display:none;overflow:visible}
.research-app .workspace.mobile-reading .browse-pane{display:none}
.research-app .workspace.mobile-reading .reader{display:block}
.research-app .workspace.mobile-reading{margin-top:0;border:0;background:transparent}
.research-app .mobile-reading .reader-toolbar{margin-inline:-16px;padding:0 16px;height:56px;top:74px;position:sticky;z-index:20;border-block:1px solid var(--line)}
.research-app .reader-toolbar .trail{display:none}
.research-app .reader-toolbar .focus-toggle{display:none}
.research-app .mobile-back{display:inline-flex!important;color:var(--accent)}
body.reading .research-app .masthead,body.reading .research-app .navigation{display:none}
.research-app .reader-content{padding:24px 0;background:var(--paper)}
body.reading .research-app{background:var(--paper)}
.research-app .reader h2{font-size:25px}
.research-app .reader-summary{font-size:14px;line-height:1.9}
.research-app .reader-tabs{gap:24px;margin-bottom:20px;overflow:auto;scrollbar-width:none}
.research-app .reader-tabs button{white-space:nowrap;font-size:13px;min-height:40px;padding-bottom:12px}
.research-app .chart-title{display:block}
.research-app .chart-title h3{font-size:16px;margin-bottom:4px}
.research-app .chart-frame figcaption{padding:12px;flex-direction:column;gap:4px}
.research-app .figure-switcher{overflow:auto}
.research-app .figure-switcher button{flex-shrink:0}
.research-app .figure-switcher img{width:64px;height:36px}
.research-app .zoom-label{font-size:10px!important;padding:4px 8px!important;right:8px!important;bottom:8px!important}
.research-app .insight-lead{font-size:24px!important;line-height:1.65!important}
.research-app .implication-box{padding:20px}
.research-app .implication-box p{font-size:15px}
.research-app .reader-perspective{display:flex!important;gap:8px;margin-bottom:16px}
.research-app .reader-perspective button{min-height:40px;padding:4px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px}
.research-app .reader-perspective button[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent)}
.research-app .product-hero h2{font-size:25px}
.research-app .product-actions .primary-button,.research-app .product-actions .secondary-button{flex:1}
.research-app .product-monogram{width:48px;height:48px}
.research-app .position-grid{grid-template-columns:1fr}
.research-app .workspace-foot{padding:16px 0;font-size:10px;gap:12px}
.research-app .keyboard-hint{display:none}
.research-app .workspace-foot>span:first-child{max-width:220px}
.research-app .reader-nav-bottom{position:sticky;bottom:0;padding:12px 0;background:var(--paper);z-index:4;margin:24px -1px -24px;border-top:1px solid var(--line)}
.research-app .reader-nav-bottom button{min-height:44px;font-size:11px;padding:4px 8px}
.research-app .reader-nav-bottom>span{display:none}
.research-app dialog{max-width:calc(100vw - 24px);padding:20px}
.research-app .dialog-heading{margin-bottom:20px}
.research-app .dialog-heading h2{font-size:20px}
.research-app #image-dialog{max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:12px;border:0;margin:0}
.research-app .image-heading{align-items:start;flex-wrap:wrap;gap:8px}
.research-app .image-heading h2{width:100%;font-size:14px}
.research-app .zoom-actions{width:100%;justify-content:flex-end}
.research-app .image-stage{height:calc(100dvh - 180px);margin:12px 0}
.research-app .image-footer{gap:4px}
.research-app .image-footer span{font-size:11px}
.research-app .image-footer button{font-size:11px;padding:4px 8px}
.research-app .compare-tray{width:calc(100% - 24px);bottom:12px;padding:12px;gap:8px;justify-content:space-between;font-size:12px}
.research-app .compare-tray .primary-button{font-size:12px;padding:8px 12px}
.research-app .comparison table{min-width:580px}
.research-app .comparison th:first-child,.research-app .comparison td:first-child{width:80px}
.research-app .compare-check{font-size:11px;padding:4px;min-height:32px}
.research-app .reader-content .panel{min-height:220px}
}
.research-app .reader-perspective{display:none}
@media(prefers-reduced-motion:reduce){
.research-app *{scroll-behavior:auto!important;transition:none!important}
}
@media(min-width:761px){
.research-app .reader:has(.chart-frame) .reader-summary{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}
.research-app .chart-frame img{height:clamp(220px,calc(100dvh - 550px),440px);aspect-ratio:auto;object-fit:contain}
.research-app .reader:has(.chart-frame) .reader-tabs{margin-bottom:16px}
.research-app .reader:has(.chart-frame) .chart-title{margin-bottom:8px}
}
.research-app .reader:has(.pdf-viewer) .reader-summary{display:none}
.research-app .reader:has(.pdf-viewer) .reader-tabs{margin-bottom:16px}
.research-app .reader:has(.pdf-viewer) .reader-content{max-width:none}
.research-app .pdf-viewer{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--raised);min-width:0}
.research-app .pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--paper);border-bottom:1px solid var(--line);flex-wrap:wrap}
.research-app .pdf-pagination{display:flex;align-items:center;gap:4px;font-size:12px}
.research-app .pdf-pagination label{white-space:nowrap}
.research-app .pdf-pagination input{width:48px;height:32px;border:1px solid var(--line);border-radius:4px;background:var(--paper);text-align:center;margin-inline:4px;appearance:textfield}
.research-app .pdf-pagination input::-webkit-inner-spin-button{appearance:none}
.research-app .pdf-toolbar select{height:32px;max-width:112px;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-size:12px;padding:0 6px}
.research-app .pdf-toolbar a{font-size:12px;color:var(--accent);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.research-app .pdf-status{font-size:11px;color:var(--muted);padding:8px 14px;border-bottom:1px solid var(--line);line-height:1.7}
.research-app .pdf-layout{display:grid;grid-template-columns:104px minmax(0,1fr)}
.research-app .pdf-page-rail{padding:8px;border-right:1px solid var(--line);max-height:490px;overflow:auto;scrollbar-width:thin;background:var(--paper)}
.research-app .pdf-page-rail button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:1px solid transparent;border-radius:4px;padding:8px 6px;min-height:40px;color:var(--muted);margin-bottom:4px}
.research-app .pdf-page-rail button span:first-child{font-size:11px;font-variant-numeric:tabular-nums}
.research-app .pdf-page-rail button span:last-child{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.research-app .pdf-page-rail button[aria-current=true]{color:var(--accent);border-color:var(--accent);background:var(--soft)}
.research-app .pdf-body{min-width:0}
.research-app .pdf-stage{padding:12px;max-height:490px;min-height:260px;overflow:auto;overscroll-behavior:contain;display:flex;align-items:safe center;justify-content:safe center}
.research-app .pdf-stage canvas{display:block;background:white;flex-shrink:0;box-shadow:0 2px 12px #102b491a;max-width:none}
.research-app .pdf-text{padding:12px 16px;color:var(--muted);border-top:1px solid var(--line);font-size:11px}
.research-app .pdf-text summary{cursor:pointer}
.research-app .pdf-text div{padding-top:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;max-height:220px;overflow:auto;font-size:13px;color:var(--body)}
.research-app .pdf-error,.research-app .missing-pdf{padding:32px 24px;line-height:1.9}
.research-app .pdf-error p,.research-app .missing-pdf p{color:var(--muted);margin:12px 0 20px;font-size:13px}
.research-app .figure-gallery-heading h3{font-size:18px;margin-bottom:6px}
.research-app .figure-gallery-heading p{font-size:12px;color:var(--muted);margin-bottom:20px}
.research-app .figure-gallery{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.research-app .figure-card{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.research-app .figure-preview{position:relative;padding:0;display:block;width:100%;background:#fff}
.research-app .figure-preview img{width:100%;aspect-ratio:16/9;object-fit:contain}
.research-app .figure-preview>span{position:absolute;right:8px;bottom:8px;font-size:11px;color:white;padding:4px 8px;background:#173746e8;border-radius:4px}
.research-app .figure-card-body{padding:16px}
.research-app .figure-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:8px}
.research-app .figure-card-meta span:first-child{color:var(--accent)}
.research-app .figure-card h3{font-size:16px;margin-bottom:8px}
.research-app .figure-card p{font-size:12px;color:var(--body);line-height:1.8;margin-bottom:16px}
.research-app .figure-origin{font-size:12px;color:var(--accent);padding:0;text-decoration:underline;text-underline-offset:4px;text-align:left;min-height:36px}
.research-app .image-provenance{display:flex;flex-direction:column;align-items:center;gap:6px}
.research-app .image-provenance button{min-height:28px}
.research-app .reader-tabs{gap:20px}
@media(max-width:1100px){
.research-app .pdf-layout{grid-template-columns:1fr}
.research-app .pdf-page-rail{display:none}
.research-app .figure-gallery{grid-template-columns:1fr}
.research-app .pdf-stage{min-height:200px}
.research-app .reader-tabs{gap:16px}
}
@media(max-width:760px){
.research-app .pdf-toolbar{gap:8px;padding:8px}
.research-app .pdf-pagination{gap:0}
.research-app .pdf-pagination .quiet-button{padding:4px 8px;min-height:40px}
.research-app .pdf-toolbar a{font-size:11px}
.research-app .pdf-toolbar select{height:40px;max-width:100px}
.research-app .pdf-zoom-label{margin-left:auto}
.research-app .pdf-toolbar>a{width:100%;text-align:right;padding:2px 4px}
.research-app .pdf-stage{padding:8px;max-height:65dvh;min-height:200px}
.research-app .pdf-status{padding:8px 12px}
.research-app .figure-gallery{gap:20px}
.research-app .figure-card h3{font-size:17px}
.research-app .figure-origin{min-height:44px}
.research-app .reader-tabs{gap:18px}
.research-app .reader-tabs button{font-size:12px}
.research-app .image-footer{align-items:center}
.research-app .image-provenance span{max-width:150px;text-align:center}
.research-app .image-provenance button{font-size:11px}
.research-app .pdf-page-rail{display:none}
.research-app .reader:has(.pdf-viewer) .reader-nav-bottom{margin-top:20px}
}
.research-app .pdf-loading{padding:64px 20px;text-align:center;font-size:13px;color:var(--muted)}
.research-app .list-note{padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.research-app .list-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px}
.research-app .list-pagination button{min-height:40px}
.research-app .reader-tabs{overflow:auto;flex-wrap:nowrap}
.research-app .reader-tabs button{flex-shrink:0}
.research-app .ocr-text{font:13px/1.95 var(--font);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;color:var(--body)}
.research-app .source-card a{overflow-wrap:anywhere}
.research-app .loading-state{padding:40px 24px;color:var(--muted)}
.research-app .detail-notice{padding:12px 16px;background:var(--raised);border:1px solid var(--line);border-radius:6px;color:var(--muted);margin:12px 0;font-size:12px}
.research-app .record-meta>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}
.research-app .figure-preview img{min-height:150px}
.research-app .library-error{padding:30px}
.research-app .status-table td{overflow-wrap:anywhere}
.research-app #library-status{font-size:11px}
.research-app .reader-meta{flex-wrap:wrap}
@media(max-width:760px){
.research-app .list-note{padding-bottom:24px}
.research-app .reader-tabs{max-width:100%}
.research-app .workspace-foot{display:none}
}
@media(max-width:760px){

}

/* Follow the shared header height without changing its layout. */
@media(max-width:640px){.research-app .mobile-reading .reader-toolbar{top:66px}}

.research-app .curation-context{margin:18px 0;padding:14px 18px;border-left:3px solid var(--accent,#93cfc6);background:var(--soft);border-radius:0 8px 8px 0;font-size:13px;line-height:1.7}
.research-app .curation-context .label{color:var(--accent,#93cfc6);font-size:12px;margin:0 0 6px}
.research-app .curation-context p{margin:5px 0}
.research-app .curation-context summary{cursor:pointer;color:var(--muted,#9aa8b2);font-size:12px;margin-top:8px}
.research-app .source-card a{overflow-wrap:anywhere}
.research-app .source-card blockquote{margin:12px 0;border-left:2px solid var(--line,#2b353d);padding-left:12px;line-height:1.6}

/* Report reading follows the reference: two views and a full-width chart stream. */
.research-app .reader[data-reading-kind=reports] .reader-content{max-width:none;padding-top:20px}
.research-app .reader[data-reading-kind=reports] .reader-title-line{margin-bottom:8px}
.research-app .reader[data-reading-kind=reports] .reader-meta{margin-bottom:20px}
.research-app .reader[data-reading-kind=reports] .reader-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;overflow:visible;background:var(--raised);border:1px solid var(--line);border-radius:8px;margin-bottom:18px}
.research-app .reader[data-reading-kind=reports] .reader-tabs button{min-height:46px;padding:10px 14px;font-size:14px;white-space:normal;border-radius:7px}
.research-app .reader[data-reading-kind=reports] .reader-tabs button[aria-selected=true]{background:var(--soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.research-app .reader[data-reading-kind=reports] .reader-tabs button:after{display:none}
.research-app .report-chart-count{font-size:12px;color:var(--muted);margin-bottom:14px}
.research-app .reader[data-reading-kind=reports] .figure-gallery{display:flex;flex-direction:column;gap:22px}
.research-app .reader[data-reading-kind=reports] .figure-card{flex-shrink:0;background:var(--paper)}
.research-app .reader[data-reading-kind=reports] .figure-preview img{width:100%;height:auto;aspect-ratio:auto;min-height:0}
.research-app .reader[data-reading-kind=reports] .figure-card-body{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 16px}
.research-app .reader[data-reading-kind=reports] .figure-card h3{font-size:13px;line-height:1.65;margin:0;font-weight:500}
.research-app .figure-number{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.research-app .report-original{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--raised)}
.research-app .report-original-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--paper);font-size:12px;color:var(--muted)}
.research-app .report-original-actions>div{display:flex;gap:18px}
.research-app .report-original-actions a{color:var(--accent);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.research-app .report-original-frame{display:block;width:100%;height:max(520px,68dvh);border:0;background:#525659}
.research-app .report-original-fallback{padding:24px;color:var(--body);line-height:1.8}
@media(max-width:760px){
.research-app .reader[data-reading-kind=reports] .reader-tabs button{padding:10px 6px;font-size:13px;min-height:46px}
.research-app .reader[data-reading-kind=reports] .figure-card-body{grid-template-columns:auto 1fr;gap:4px 10px;padding:10px 12px}
.research-app .reader[data-reading-kind=reports] .figure-origin{grid-column:2;min-height:36px}
.research-app .report-original-actions{padding:12px;gap:8px;flex-wrap:wrap}
.research-app .report-original-actions>div{gap:16px}
.research-app .report-original-frame{height:72dvh;min-height:420px}
}
