/* Shared control hierarchy for Current and Hybrid. Breakpoints use the reader
   pane, which can narrow independently of the browser when a story is open. */
html body.real-mode #main-panel .workspace-head{position:static;clip-path:none;overflow:visible;width:auto;height:auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:12px 14px 6px;border:0}
html body.real-mode #main-panel .workspace-head>div:first-child{flex:1 1 auto;min-width:0}
html body.real-mode #main-panel .workspace-head .eyebrow{display:block;font-size:calc(9px * var(--ui-text-scale,1));line-height:1.4;letter-spacing:.06em;margin:0 0 3px}
html body.real-mode #main-panel .workspace-head #view-title{font-size:calc(21px * var(--ui-text-scale,1));line-height:1.2;margin:0;overflow-wrap:normal}
html body.real-mode #main-panel .head-tools{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:3px;min-width:0;max-width:100%}
html body.real-mode #main-panel .head-tools .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
html body.real-mode #main-panel .head-tools .clock{margin:0 0 0 5px;gap:5px;font-size:calc(10px * var(--ui-text-scale,1));white-space:nowrap;min-height:26px}
html body.real-mode #main-panel .reader-daily-entry{min-width:44px;min-height:44px;padding:5px 8px;font-size:calc(11px * var(--ui-text-scale,1))}
html body.real-mode #main-panel .head-tools .reader-tool-label{display:none}
html body.real-mode #reader-navigation{display:block;padding:3px 14px 6px;border-bottom:0;min-width:0}
html body.real-mode #reader-navigation .reader-primary{gap:3px;min-width:0;align-items:center}
html body.real-mode #reader-navigation .reader-mode-row{display:flex;flex:1 1 auto;flex-wrap:nowrap;gap:3px;min-width:0}
html body.real-mode #reader-navigation .reader-mode-row>button{min-height:44px;min-width:0;flex:0 1 auto;padding:5px 10px;font-size:calc(12px * var(--ui-text-scale,1));line-height:1.3;white-space:normal;word-break:normal;overflow-wrap:normal}
html body.real-mode #reader-navigation .reader-secondary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 6px;padding:0;min-width:0}
html body.real-mode #reader-navigation .reader-period-row{display:flex;flex-wrap:wrap;gap:2px;min-width:0}
html body.real-mode #reader-navigation .reader-period-row>button{min-height:44px;min-width:44px;padding:4px 8px;font-size:calc(11px * var(--ui-text-scale,1))}
html body.real-mode #reader-navigation :is(.reader-help,.reader-nav-options>summary){min-width:44px;min-height:44px;font-size:calc(11px * var(--ui-text-scale,1))}
html body.real-mode #reader-navigation .reader-help{flex:0 0 44px}
html body.real-mode #reader-navigation .reader-primary>.reader-help .reader-tool-label{display:none}
html body.real-mode #reader-navigation .reader-nav-options{margin-left:auto;max-width:100%}
html body.real-mode #reader-navigation .reader-nav-options>summary{padding:4px 6px;line-height:1.3}
html body.real-mode #reader-navigation .reader-nav-options[open]{flex-basis:100%;margin-left:0}
html body.real-mode #reader-navigation .reader-nav-body{padding:6px 0;border-top:1px solid var(--line);gap:6px 12px;min-width:0}
html body.real-mode #reader-navigation .reader-nav-body :is(button,select){min-height:44px}
html body.real-mode #reader-navigation .reader-extra-tools{display:flex;flex-basis:100%;flex-wrap:wrap;gap:4px 12px;min-width:0}
html body.real-mode #reader-navigation .reader-extra-tools>button{display:inline-flex;justify-content:flex-start;flex:0 1 auto;width:auto;max-width:100%;height:auto;min-height:44px;min-width:44px;padding:4px 6px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale,1));white-space:normal;text-align:left}
html body.real-mode #reader-navigation .reader-extra-tools .reader-tool-label{display:inline}
html body.real-mode #main-panel[data-reader-nav=single] #reader-navigation:not(:has(.reader-nav-options[open])){display:flex;align-items:center;gap:8px}
html body.real-mode #main-panel[data-reader-nav=single] #reader-navigation .reader-primary{flex:1 1 auto}
html body.real-mode #main-panel[data-reader-nav=single] #reader-navigation .reader-secondary{flex:0 1 auto;justify-content:flex-end}
html body.real-mode #main-panel .feed-controls>.toolbar{display:flex;flex-wrap:wrap;gap:0;padding:4px 12px;overflow:visible;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html body.real-mode #main-panel .toolbar #signal-controls{display:flex;flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:2px 5px;min-width:0;width:100%;max-width:none;padding:0}
html body.real-mode #main-panel .toolbar #signal-controls>button{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:4px 7px;font-size:calc(11px * var(--ui-text-scale,1));line-height:1.25;white-space:nowrap}
html body.real-mode #main-panel .toolbar #signal-controls>.unread-toggle{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:5px;min-height:44px;min-width:0;width:auto;margin-left:auto;font-family:inherit;font-size:calc(11px * var(--ui-text-scale,1));line-height:1.3;white-space:nowrap}
html body.real-mode #main-panel .toolbar #signal-controls>.unread-toggle input{width:16px;height:16px;min-width:16px;min-height:16px;margin:0}
html body.real-mode #main-panel[data-reader-controls=compact] .workspace-head{padding:10px 8px 4px;gap:6px}
html body.real-mode #main-panel[data-reader-controls=compact] .workspace-head #view-title{font-size:calc(18px * var(--ui-text-scale,1))}
html body.real-mode #main-panel[data-reader-controls=compact] .workspace-head .eyebrow{font-size:calc(8px * var(--ui-text-scale,1));letter-spacing:.03em}
html body.real-mode #main-panel[data-reader-controls=compact] .head-tools{flex:0 0 58px;gap:0;justify-content:center}
html body.real-mode #main-panel[data-reader-controls=compact] .head-tools .clock{margin:0;font-size:calc(9px * var(--ui-text-scale,1))}
html body.real-mode #main-panel[data-reader-controls=compact] .reader-daily-entry{border:0;padding:5px}
html body.real-mode #main-panel[data-reader-controls=compact] .reader-daily-entry span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
html body.real-mode #main-panel[data-reader-controls=compact] #reader-navigation{padding:2px 6px 4px}
html body.real-mode #main-panel[data-reader-controls=compact] .reader-mode-row>button{flex:1 1 0;padding:4px!important;font-size:calc(11px * var(--ui-text-scale,1))!important}
html body.real-mode #main-panel[data-reader-controls=compact] .reader-mode-row>button[data-reader-new]{flex:.65 1 0}
html body.real-mode #main-panel[data-reader-controls=compact] .reader-period-row>button{padding:3px 5px!important}
html body.real-mode #main-panel[data-reader-controls=compact] .feed-controls>.toolbar{padding:4px 6px}
html body.real-mode #main-panel[data-reader-controls=compact] .toolbar #signal-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(68px * var(--ui-text-scale,1))),1fr));gap:2px 3px}
html body.real-mode #main-panel[data-reader-controls=compact] .toolbar #signal-controls>button{padding:4px 2px;gap:3px;font-size:calc(10px * var(--ui-text-scale,1));white-space:normal;min-width:0}
html body.real-mode #main-panel[data-reader-controls=compact] .toolbar #signal-controls>.unread-toggle{justify-content:center;margin:0;font-size:calc(10px * var(--ui-text-scale,1));white-space:normal}
html body.real-mode #main-panel[data-reader-controls=compact] .toolbar #signal-controls :is(svg,.signal-glyph){width:16px;height:16px}
/* Phone controls use their actual content width. Five named signals fit beside
   both 44px rails on a 440px phone; smaller panes and enlarged text wrap whole
   buttons instead of scrolling or squeezing their labels. Desktop is unchanged. */
html body.real-mode #main-panel[data-reader-mobile=true] .workspace-head{padding:5px 8px 2px;gap:4px}
html body.real-mode #main-panel[data-reader-mobile=true] .reader-heading-meta{display:flex;align-items:center;flex-wrap:wrap;gap:1px 7px;min-width:0}
html body.real-mode #main-panel[data-reader-mobile=true] .workspace-head .eyebrow{margin:0;font-size:calc(8px * var(--ui-text-scale,1));line-height:1.3;letter-spacing:0}
html body.real-mode #main-panel[data-reader-mobile=true] .reader-heading-meta .clock{display:inline-flex;align-items:center;gap:4px;min-height:0;margin:0;font-size:calc(9px * var(--ui-text-scale,1));line-height:1.3;white-space:nowrap}
html body.real-mode #main-panel[data-reader-mobile=true] .workspace-head #view-title{margin-top:2px;font-size:calc(18px * var(--ui-text-scale,1));line-height:1.15}
html body.real-mode #main-panel[data-reader-mobile=true] .head-tools{flex:0 0 44px;gap:0}
html body.real-mode #main-panel[data-reader-mobile=true] .reader-daily-entry{width:44px;height:44px;min-width:44px;min-height:44px}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation{padding:0 6px 2px}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .reader-secondary{padding:0;gap:0 4px}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .reader-mode-row>button{font-size:calc(12px * var(--ui-text-scale,1))!important;padding:3px 4px!important;line-height:1.2}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .reader-period-row>button{font-size:calc(12px * var(--ui-text-scale,1));padding:3px 4px!important}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .reader-nav-options>summary{font-size:calc(12px * var(--ui-text-scale,1));padding:3px 4px}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .unread-toggle{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;width:auto;min-height:44px;margin:0;font:inherit;font-size:calc(12px * var(--ui-text-scale,1));white-space:normal}
html body.real-mode #main-panel[data-reader-mobile=true] #reader-navigation .unread-toggle input{width:18px;height:18px;min-width:18px;min-height:18px;flex:none;margin:0}
html body.real-mode #main-panel[data-reader-mobile=true] .feed-controls>.toolbar{padding:1px 6px;gap:0;overflow:visible}
html body.real-mode #main-panel[data-reader-mobile=true] .toolbar #signal-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 2px;min-width:0;max-width:100%;width:100%;overflow:visible}
html body.real-mode #main-panel[data-reader-mobile=true] .toolbar #signal-controls>button{flex:0 0 auto;flex-direction:row;align-items:center;justify-content:center;gap:3px;padding:3px 2px;min-width:44px;min-height:44px;max-width:100%;font-size:calc(12px * var(--ui-text-scale,1));line-height:1.25;white-space:nowrap;word-break:normal;overflow-wrap:normal}
html body.real-mode #main-panel[data-reader-mobile=true] .toolbar #signal-controls :is(svg,.signal-glyph){width:16px;height:16px;flex:none}
.reader-public-guide a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue)}

/* One action per story. The existing delegated save/follow/share handlers and
   destination links stay authoritative; only their position changes. */
html body.real-mode .story-reporting>.detail-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 6px;padding:3px 10px;min-width:0;margin-bottom:0}
html body.real-mode .story-reporting>.detail-top :is(button,a,summary){min-height:44px;min-width:44px;max-width:100%;font-size:calc(12px * var(--ui-text-scale,1));line-height:1.3;color:var(--blue);padding:5px 6px}
html body.real-mode .story-reporting .story-quick-actions{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 4px;min-width:0}
html body.real-mode .story-reporting .story-quick-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px}
html body.real-mode .story-reporting .story-quick-actions [aria-pressed=true]{color:var(--text);background:var(--bluefill)}
html body.real-mode .story-reporting .story-save{order:1}
html body.real-mode .story-reporting .story-follow{order:2}
html body.real-mode .story-reporting .story-comments{order:3}
html body.real-mode .story-reporting .story-share{order:4}
html body.real-mode .story-reporting .story-more-actions,html body.real-mode .story-reporting .story-more-body{display:contents}
html body.real-mode .story-reporting .story-more-actions>summary{display:none}
html body.real-mode .story-reporting .story-close{flex:0 0 44px}
html body.real-mode .story-reporting .story-close span{display:none}
html body.real-mode .story-reporting .story-navigation-top{margin:0 0 12px;padding:4px 0;border-bottom:1px solid var(--line);gap:6px;min-width:0}
html body.real-mode .story-reporting .story-navigation :is(button,span){min-width:0;font-size:calc(11px * var(--ui-text-scale,1));line-height:1.35}
html body.real-mode .story-reporting .story-navigation button{min-height:44px;padding:5px 6px;white-space:normal}
html body.real-mode .story-reporting.story-controls-compact>.detail-top{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 4px}
html body.real-mode .story-controls-compact .story-back{grid-column:1;grid-row:1;justify-self:start;text-align:left;justify-content:flex-start}
html body.real-mode .story-controls-compact .story-close{grid-column:2;grid-row:1}
html body.real-mode .story-controls-compact .story-quick-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 44px;gap:4px}
html body.real-mode .story-controls-compact .story-quick-actions :is(button,a){white-space:normal;word-break:normal;overflow-wrap:normal}
html body.real-mode .story-controls-compact .story-more-actions{position:relative;display:block;order:4;min-width:0}
html body.real-mode .story-controls-compact .story-more-actions>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;font-size:24px;line-height:1;padding:0}
html body.real-mode .story-controls-compact .story-more-actions>summary::-webkit-details-marker{display:none}
html body.real-mode .story-controls-compact .story-more-body{display:flex;position:absolute;top:calc(100% + 3px);right:0;z-index:5;flex-direction:column;align-items:stretch;gap:3px;min-width:180px;max-width:calc(100vw - 48px);padding:5px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
html body.real-mode .story-controls-compact .story-more-actions:not([open])>.story-more-body{display:none}
html body.real-mode .story-controls-compact .story-more-body>button{justify-content:flex-start;text-align:left}
html body.real-mode .story-reporting :is(.story-quick-actions button,.story-quick-actions a,.story-more-actions>summary):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
