/* Final reader presentation: compact rows, one action entry, quiet explanations. */
.real-mode .story-row,.real-mode.no-score .story-row{grid-template-columns:52px minmax(0,1fr) 36px;gap:8px;padding:6px 12px;align-items:start}
.real-mode .story-row .row-content{min-width:0}
.real-mode .story-row .publisher-intro-compact{display:none}
.real-mode .story-row .story-title{display:block;line-height:1.45}
.real-mode .story-row .row-tail{display:flex;align-items:center;justify-content:flex-end;align-self:stretch;min-width:0}
.real-mode .story-row .row-more{display:flex;align-items:center;justify-content:center;width:34px;min-height:34px;padding:0;color:var(--muted);font-size:22px;line-height:1;border:1px solid transparent;border-radius:3px}
.real-mode .story-row .row-more:hover,.real-mode .story-row .row-more[aria-expanded=true]{background:var(--bluefill);border-color:var(--line);color:var(--blue)}
.real-mode .story-row .row-content .row-meta{display:flex;flex-flow:row nowrap;align-items:center;gap:0 8px;min-width:0;margin:2px 0 0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
.real-mode .story-row .row-meta::-webkit-scrollbar{display:none}
.real-mode .story-row .row-meta .headline-source{flex:0 1 auto;width:auto;min-width:40px;max-width:240px}
.real-mode .story-row .article-credit{display:flex;flex-wrap:nowrap;gap:7px;min-width:0}
.real-mode .story-row .source-profile-link{display:flex;min-width:0;flex-shrink:1;max-width:170px;white-space:nowrap}
.real-mode .story-row .source-profile-link>span:last-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.real-mode .story-row .article-original,.real-mode .story-row .source-count{flex-shrink:0;white-space:nowrap}
.real-mode .story-row .row-classification{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;margin-left:auto;min-width:0}
.real-mode .story-row .row-classification .row-signal{display:flex;align-items:center;justify-content:center;width:26px;min-width:26px;min-height:28px;margin:0;padding:0}
.real-mode .story-row .row-classification .row-signal svg{width:18px;height:18px}
.real-mode .story-row .row-classification .row-category{display:block;flex:none;width:12ch;max-width:12ch;padding:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:calc(10px * var(--ui-text-scale,1))/1.4 var(--mono,ui-monospace,monospace);color:var(--muted)}
.coverage-short{display:none}
.reader-popover{width:300px;max-width:calc(100vw - 20px);max-height:min(440px,calc(100dvh - 20px));padding:10px 12px;font:calc(11px * var(--ui-text-scale,1))/1.45 system-ui,sans-serif;box-shadow:0 5px 16px #0003;border:1px solid var(--line);border-radius:4px}
.reader-popover:not(.is-pinned){width:260px;padding:9px 11px;pointer-events:none;color:var(--muted)}
.reader-popover:not(.is-pinned) b{color:var(--text);font-weight:600}
.reader-popover h3{font-size:calc(12px * var(--ui-text-scale,1));margin:0 25px 7px 0;font-weight:650}
.reader-popover p{margin:5px 0;line-height:1.45}
.reader-popover li{padding:7px 0}
.reader-popover li a{display:block;min-height:0;padding:4px 0;line-height:1.45}
.reader-popover-close{right:2px;top:2px;min-width:30px;min-height:30px!important}
.reader-popover ul{margin:5px 0}
.reader-actions-popover{width:250px;padding:10px}
.reader-action-list{display:flex;flex-direction:column;gap:2px}
.reader-action-list>button,.reader-action-list>a,.reader-action-times>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:36px;padding:7px 8px;margin:0;color:var(--text);font:inherit;text-align:left;border:0;border-radius:3px;cursor:pointer}
.reader-action-list>button:hover,.reader-action-list>a:hover,.reader-action-times>summary:hover{background:var(--bluefill);color:var(--blue)}
.reader-action-times>summary{list-style:none}.reader-action-times>summary::-webkit-details-marker{display:none}
.reader-action-times .article-times{padding:0 8px;font-size:11px}
.reader-hint{position:fixed;z-index:2200;width:max-content;max-width:min(280px,calc(100vw - 16px));padding:7px 9px;border:1px solid var(--line);border-radius:4px;background:var(--raised);color:var(--text);box-shadow:0 4px 12px #0003;pointer-events:none;font:calc(11px * var(--ui-text-scale,1))/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
@media(max-width:760px){
 .real-mode .story-row,.real-mode.no-score .story-row,.real-mode.comfortable .story-row,.real-mode.dense .story-row{grid-template-columns:38px minmax(0,1fr) 36px;gap:4px;padding:4px 5px}
 .real-mode .story-row .row-more{width:36px;min-height:44px;font-size:23px}
 .real-mode .story-row .story-title{font-size:calc(12px * var(--ui-text-scale,1));line-height:1.4}
 .real-mode .story-row .row-content .row-meta{gap:0 4px;min-height:32px}
 .real-mode .story-row .row-meta .headline-source{flex:0 1 64px;min-width:36px;max-width:64px}
 .real-mode .story-row .source-profile-link{max-width:64px;min-height:32px;font-size:calc(9px * var(--ui-text-scale,1));gap:3px}
 .real-mode .story-row .source-profile-link>span:last-child{max-width:none}
 .real-mode .story-row .article-original{display:none}
 .real-mode .story-row .source-count{min-height:32px;padding:0 2px;font-size:calc(9px * var(--ui-text-scale,1))}
 .real-mode .story-row .row-classification{margin-left:auto;gap:2px}
 .real-mode .story-row .row-classification .row-signal{width:24px;min-width:24px;min-height:32px}
 .real-mode .story-row .row-classification .row-category{font-size:calc(9px * var(--ui-text-scale,1));min-height:32px}
 .coverage-wide{display:none}.coverage-short{display:inline}
 .reader-popover{font-size:12px;max-height:calc(100dvh - 32px)}
 .reader-action-list>button,.reader-action-list>a,.reader-action-times>summary{min-height:44px}
 .reader-popover li a{min-height:44px}
 .reader-popover-close{min-width:36px;min-height:36px!important}
}

/* Three explicit market states. Only other reader panels retain the outer splitter. */
.reader-panel-return{display:none;min-height:36px;padding:6px 12px;color:var(--blue)}
.real-mode #right-panel[data-market-mode=panel]>.reader-panel-return{display:flex}
.real-mode #right-panel[data-market-mode=panel] #reader-market-rail,.real-mode #right-panel[data-panel=markets] #reader-market-rail{display:none!important}
.real-mode #right-panel[data-market-mode=panel] .reader-panel-workspace{display:block}
.real-mode #right-panel:not([data-market-mode=panel])>.panel-controls{display:none}
.real-mode #right-panel[data-panel=dashboard]:not([data-market-mode=panel]) #panel-content{display:none}
.real-mode #right-panel:not([data-market-mode=panel]) .reader-panel-workspace{display:block;height:100%}
.real-mode #right-panel:not([data-market-mode=panel]) #reader-market-rail{display:block;position:static;order:0;align-self:auto;width:100%;height:100%;border-left:0}
.real-mode #right-panel:not([data-market-mode=panel]) #reader-market-rail .market-rail{padding:0;border:0;height:100%}
.market-mini-view{display:flex;flex-direction:column;height:100%;min-height:0}
.market-mini-head{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid var(--line)}
.market-mini-overview{display:flex;align-items:center;justify-content:center;width:32px;flex-shrink:0;color:var(--muted)}
.market-mini-overview svg{width:15px;height:15px}
.market-mini-open{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;min-height:44px;padding:8px 7px;width:100%;color:var(--blue);font:600 11px system-ui,sans-serif;border:0}
.market-mini-open span{font-size:22px;font-weight:400}
.market-mini-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0}
.market-detail-view{padding:8px}
.real-mode #reader-market-rail .market-rail-head{display:flex;gap:8px;margin-bottom:8px;align-items:center}
.real-mode #reader-market-rail .market-rail-head h2{margin:0;display:flex;align-items:center;gap:5px;font-size:12px}
.market-return{font-size:11px;min-height:36px;color:var(--blue);margin-right:auto;white-space:nowrap}
.market-size-toggle{min-height:36px;font-size:11px}
.real-mode #right-panel[data-market-mode=full] .market-quote-scroll iframe{height:calc(100dvh - var(--header) - var(--ticker) - var(--footer) - 100px);min-height:500px}
@media(min-width:1001px){
 .real-mode .terminal.reader-resizable.reader-view-mini,.real-mode .terminal.reader-resizable.reader-view-compact{grid-template-columns:var(--reader-sidebar-size) minmax(0,1fr) 0 var(--reader-right-size)}
 .real-mode .terminal.reader-view-mini>#right-panel,.real-mode .terminal.reader-view-compact>#right-panel{grid-column:4;min-width:0;width:100%}
 .real-mode .terminal.reader-view-mini>#right-panel{overflow:hidden}
 .real-mode .terminal.reader-view-mini>.reader-pane-divider,.real-mode .terminal.reader-view-compact>.reader-pane-divider,.real-mode .terminal.reader-view-full>.reader-pane-divider{display:none}
 .real-mode .terminal.reader-view-full{grid-template-columns:var(--reader-sidebar-size) minmax(0,1fr)}
 .real-mode .terminal.reader-view-full>#main-panel{display:none}
 .real-mode .terminal.reader-view-full>#right-panel{grid-column:2;min-width:0;width:100%}
}
@media(max-width:1000px){
 .real-mode .reader-view-mini #right-panel{display:block;position:fixed;left:auto;right:8px;top:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:148px;max-width:148px;height:44px;z-index:36;border:1px solid var(--line);border-radius:5px;overflow:hidden;box-shadow:0 3px 10px #0003}
 .real-mode .reader-view-mini #reader-market-rail .market-mini-view{flex-direction:row-reverse;align-items:stretch}
 .real-mode .reader-view-mini .market-mini-head{width:36px;border:0}
 .real-mode .reader-view-mini .market-mini-overview{display:none}
 .real-mode .reader-view-mini .market-mini-open{width:36px;min-width:36px;padding:0 7px;font-size:0;border:0;border-left:1px solid var(--line)}
 .real-mode .reader-view-mini .market-mini-open span{font-size:24px}
 .real-mode .reader-view-mini .market-mini-frame{width:110px;height:42px;min-height:42px}
 .real-mode .reader-view-compact #right-panel.open,.real-mode .reader-view-full #right-panel.open{left:var(--mobile-rail,0px);right:0;width:calc(100% - var(--mobile-rail,0px));max-width:none;bottom:0}
 .real-mode .reader-view-compact #right-panel:not(.open),.real-mode .reader-view-full #right-panel:not(.open){display:none}
 .real-mode .market-return,.real-mode .market-size-toggle{min-height:44px}
 .real-mode .reader-view-mini #right-panel[inert]{visibility:hidden}
}
