:root{font-family:var(--app-font,system-ui,"Noto Sans JP",sans-serif);font-size:14px;color-scheme:light dark;--bg:#fff;--panel:#f6f7f8;--ink:#202328;--muted:#6f747b;--edge:#e2e5e9;--accent:#237645;--selected:#eef5f0;--reading-offset:110px}
.feed-transition{position:fixed;z-index:15;display:flex;align-items:flex-start;justify-content:center;padding:clamp(28px,5vh,48px) 2rem 2rem;background:var(--bg);border-top:1px solid var(--edge);color:var(--ink);overflow:auto;text-align:left}
.feed-transition-content{display:flex;flex-direction:column;align-items:flex-start;width:min(76ch,100%);gap:.45rem}
.feed-transition-from{margin:0 0 1rem;font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}
.feed-transition-label{margin:0;color:var(--accent);font-size:.8rem;font-weight:600;letter-spacing:.08em}
.feed-transition-title{max-width:100%;font-size:3.5rem;line-height:1.25;letter-spacing:.02em;font-weight:650;overflow-wrap:anywhere}
@media(max-width:600px){.feed-transition{padding:28px 1.2rem 1.2rem}.feed-transition-from{margin-bottom:.8rem}.feed-transition-title{font-size:2.8rem}}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden;color:var(--ink);background:var(--bg)}
button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--edge);background:transparent;border-radius:4px;padding:.4rem .65rem}button:hover{background:var(--panel)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.article:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}button[hidden],[hidden]{display:none!important}input,select{border:1px solid var(--edge);border-radius:4px;padding:.5rem;background:var(--bg)}input:not([type=checkbox]),select{width:100%;max-width:100%}label{display:block;margin:.45rem 0;font-size:.9rem}small,kbd{font-size:.8rem;color:var(--muted);font-weight:400}kbd{font-family:inherit}
.app-header{grid-column:1/-1;display:flex;align-items:center;gap:.7rem;padding:.55rem 1rem;border-bottom:1px solid var(--edge);background:var(--panel)}.app-header strong{font-size:1rem;letter-spacing:.02em}#sidebar-toggle{border:0;font-size:1.2rem;padding:.15rem .5rem}#extension-status{margin-left:auto;color:var(--muted);font-size:.8rem}
aside{display:flex;flex-direction:column;gap:1rem;padding:1rem .65rem;border-right:1px solid var(--edge);background:var(--panel);overflow:auto;min-height:0;overscroll-behavior:contain}.primary-nav,.sidebar-tools,#feed-navigation{display:flex;flex-direction:column;gap:2px}.primary-nav button,.sidebar-tools button,#feed-navigation button{border:0;text-align:left;padding:.55rem .8rem;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.primary-nav button[aria-current=true],#feed-navigation button[aria-current=true]{background:var(--selected);color:var(--accent);font-weight:650}.sidebar-tools{margin-top:auto;color:var(--muted);font-size:.86rem}.feeds-nav h2{font-size:.8rem;color:var(--muted);font-weight:500;letter-spacing:.05em;padding:0 .8rem;margin:.5rem 0}.feed-folder-row,.feed-folder-children{display:flex;gap:2px}.feed-folder-children{flex-direction:column;margin-top:2px}#feed-navigation .folder-toggle{flex:none;width:2rem;padding:0;justify-content:center;color:var(--muted)}.folder-toggle::before{content:'';width:.4rem;height:.4rem;border:solid currentColor;border-width:0 2px 2px 0;transform:translateX(-1px) rotate(-45deg)}.folder-toggle[aria-expanded=true]::before{transform:translateY(-2px) rotate(45deg)}#feed-navigation .folder-name{flex:1 1 auto;min-width:0;padding-left:.2rem;font-weight:550}#feed-navigation .feed-child{padding-left:calc(2rem + 2px + .2rem);width:100%}.nav-empty{padding:0 .8rem;color:var(--muted);font-size:.85rem}.search-row{display:flex;gap:.25rem}#search-form{padding:0 .35rem}#search-form label{color:var(--muted);font-size:.8rem}.search-row input{min-width:0}.search-row button{font-size:.8rem;flex-shrink:0;white-space:nowrap}#logout-form button{border:0;color:var(--muted);font-size:.85rem}#password-change-link{color:var(--muted);font-size:.85rem;padding:0 .5rem}
main{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 1.4rem 2rem;scroll-padding-top:var(--reading-offset)}.toolbar{position:sticky;top:0;background:var(--bg);z-index:3;padding:1rem 0 .65rem;border-bottom:1px solid var(--edge)}.list-heading{display:flex;align-items:center;gap:.7rem;margin-bottom:.8rem}.list-heading h1{font-size:1.35rem;line-height:1.4;margin:0;font-weight:650;overflow-wrap:anywhere}.list-heading #view-label{font-size:.8rem;color:var(--muted);white-space:nowrap}.list-heading button{margin-left:auto;font-size:.8rem}.reading-actions{display:flex;flex-wrap:wrap;gap:.35rem}.reading-actions button{font-size:.82rem;padding:.3rem .55rem}#notice{margin:.35rem 0;color:var(--muted);font-size:.8rem;min-height:1.15rem}
.article{border-bottom:1px solid var(--edge);position:relative}.article-heading{display:grid;grid-template-columns:28px 120px minmax(0,1fr) 55px;align-items:center;gap:.5rem;min-height:var(--list-row,31px);padding:0 .35rem;background:var(--bg)}.article.selected{background:var(--selected);box-shadow:inset 3px 0 var(--accent)}.article.selected .article-heading{background:var(--selected)}.article-save{font-size:1.2rem;color:var(--muted);border:0;padding:0}.article-save[aria-pressed=true]{color:var(--accent)}.article-source{font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title{font-size:var(--list-size,17px);font-weight:650;line-height:1.5;text-align:left;padding:.2rem 0;border:0;background:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.title:hover{background:transparent;color:var(--accent)}.article.read .title{font-weight:400;color:var(--muted)}.article-excerpt{font-weight:400;color:var(--muted);margin-left:.75em}.article-date{font-size:.76rem;color:var(--muted);text-align:right;white-space:nowrap}.article.expanded{padding-bottom:1rem}.article.expanded .article-heading{grid-template-columns:28px minmax(0,1fr);padding:.75rem .8rem}.article.expanded .article-source,.article.expanded .article-date{display:none}.article.expanded .title{font-size:var(--article-title-size,30px);white-space:normal;overflow-wrap:anywhere;font-weight:650;color:var(--ink)}.article.expanded.selected .article-heading{position:sticky;top:var(--reading-offset);z-index:2;border-bottom:1px solid var(--edge)}.meta{font-size:.8rem;color:var(--muted);max-width:76ch;margin:.8rem auto;padding:0 1rem}.content{max-width:var(--content-width,76ch);font-size:var(--content-size,18px);font-family:var(--content-font,inherit);margin:1.5rem auto;line-height:var(--content-line-height,1.9);letter-spacing:var(--content-letter,0);overflow-wrap:anywhere;padding:0 1rem}.content img{max-width:100%;height:auto}.content pre{overflow:auto}.content table{display:block;max-width:100%;overflow:auto}.original-link,.close-article{display:block;width:max-content;max-width:90%;margin:1rem auto}.original-link{color:var(--accent)}#more{margin:1rem 0}
body.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}dialog{background:var(--bg);color:var(--ink);border:1px solid var(--edge);border-radius:8px;max-width:760px;width:92vw;max-height:85vh;overflow:auto;padding:1.5rem}dialog::backdrop{background:#0007}dialog h2{font-size:1.2rem}#commands{display:flex;flex-direction:column;gap:.3rem;margin:1rem 0}#commands button{text-align:left}.sub-editor{border-top:1px solid var(--edge);padding:.75rem 0}.sub-editor select{min-height:5rem}body:has(.login){display:block;height:auto;min-height:100dvh;overflow:auto}.login{max-width:420px;margin:8vh auto;padding:1.5rem}.login h1{font-size:1.5rem}.login input{margin:.25rem 0}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#151719;--panel:#1d2023;--ink:#e1e4e8;--muted:#9298a0;--edge:#30343a;--accent:#7dca94;--selected:#223028}}
@media(max-width:850px){body{grid-template-columns:200px minmax(0,1fr)}main{padding:0 .75rem 1.5rem}.article-heading{grid-template-columns:26px minmax(0,1fr) 45px}.article-source{display:none}.article.expanded .title{font-size:calc(var(--article-title-size,30px) * .85)}}
@media(max-width:600px){body{grid-template-columns:165px minmax(0,1fr)}.app-header{gap:.35rem;padding:.45rem}.app-header small{display:none}#extension-status{max-width:110px;line-height:1.3}.list-heading h1{font-size:1.1rem}.reading-actions button{font-size:.75rem}.article.expanded .article-heading{padding:.5rem}.content{padding:0 .65rem}aside{padding:.65rem .35rem}}

.shortcut-table{width:100%;border-collapse:collapse;margin:1rem 0}.shortcut-table th,.shortcut-table td{text-align:left;border-bottom:1px solid var(--edge);padding:.55rem .7rem}.shortcut-table td:first-child{white-space:nowrap}.shortcut-table kbd{color:var(--ink);font-family:monospace}#shortcuts-status{color:var(--muted);font-size:.85rem}
.primary-nav button,#feed-navigation button{display:flex;align-items:center}.nav-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.nav-count{flex:none;margin-left:auto;padding-left:.6rem;color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}

.active-filters{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem}.filter-chip{font-size:.8rem;padding:.25rem .55rem;border-radius:14px;background:var(--selected);color:var(--accent);max-width:100%;overflow-wrap:anywhere;text-align:left}

#article-order{width:auto;max-width:150px;font-size:.82rem;padding:.3rem .4rem;margin-left:auto}.list-heading #article-order+button{margin-left:0}.list-heading{flex-wrap:wrap}

#shortcuts{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;border-radius:12px}
#shortcuts[open]{display:flex;flex-direction:column}
.shortcuts-header{display:flex;align-items:center;justify-content:space-between;padding:1.3rem 1.6rem .8rem;flex-shrink:0}
.shortcuts-header h2{margin:0;font-size:1.2rem}.shortcuts-header button{border:0;font-size:1.6rem;line-height:1;color:var(--muted);padding:.25rem .5rem}
.shortcut-groups{overflow:auto;min-height:0;padding:0 1.6rem 1.1rem}
.shortcut-group h3{font-size:1rem;margin:1rem 0 .5rem;font-weight:650}.shortcut-group:first-child h3{margin-top:.5rem}
.shortcut-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:30px;padding:.2rem 0}
.shortcut-action{color:var(--muted);line-height:1.45}.shortcut-keys{display:flex;align-items:center;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.shortcut-keys kbd,.shortcuts-footer kbd{display:inline-block;min-width:25px;text-align:center;font-family:inherit;font-size:.85rem;color:var(--ink);border:1px solid var(--edge);border-radius:5px;padding:2px 6px;line-height:1.35;background:var(--panel)}
.key-separator{color:var(--muted);font-size:.75rem}.shortcut-inactive{opacity:.45}.shortcut-unassigned{font-size:.8rem;color:var(--muted)}
.shortcuts-footer{border-top:1px solid var(--edge);padding:.75rem 1.6rem;color:var(--muted);font-size:.8rem;flex-shrink:0}
.shortcuts-footer p{margin:0 0 .5rem}#shortcuts-status{font-size:.8rem}
@media(max-width:600px){.shortcuts-header{padding:1rem}.shortcut-groups{padding:0 1rem 1rem}.shortcuts-footer{padding:.65rem 1rem}.shortcut-row{gap:.5rem;font-size:.86rem}.shortcut-keys kbd{min-width:22px;padding:2px 4px}.shortcut-keys{max-width:150px}}

.feeds-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.feeds-heading button{font-size:11px;padding:3px 6px}
#navigation-order{width:min(520px,calc(100vw - 32px));max-height:80vh;overflow:auto}
#navigation-order-list{padding:0;list-style:none;margin:16px 0}
.order-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--edge)}
.order-label{flex:1;min-width:0;overflow-wrap:anywhere}
.order-handle{cursor:grab;color:var(--muted,#777)}
.order-row.dragging{opacity:.45}
.order-row button{padding:4px 10px}.order-row button:disabled{opacity:.35;cursor:default}
.order-hint{font-size:13px;line-height:1.6;color:var(--muted,#777)}

.feed-poll-status{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted);padding:8px 0;overflow-wrap:anywhere}.feed-poll-status strong{font-weight:550;color:var(--ink)}

#date-range{width:min(420px,calc(100vw - 32px))}#date-range h2{font-size:1.2rem}#date-range-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}#date-range-form label{min-width:0}#date-range-form input{min-width:0}#date-error,.date-actions{grid-column:1/-1}#date-error:empty{display:none}.date-actions{display:flex;gap:8px}

#batch-history{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto}.history-heading,.history-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-heading h2{font-size:1.2rem}.history-heading button{border:0;font-size:1.4rem}.history-entry{border-top:1px solid var(--edge);padding:16px 0}.history-entry-heading{font-size:13px}.history-state,.history-note{color:var(--muted);font-size:12px}.history-items{padding:0;list-style:none;margin:12px 0}.history-items li{display:flex;flex-direction:column;gap:3px;padding:7px 0}.history-item-title{font-size:13px;overflow-wrap:anywhere}.history-actions{display:flex;flex-wrap:wrap;gap:8px}.history-actions button{font-size:12px}

#domain-filters{width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto}.domain-rule-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;border-top:1px solid var(--edge);padding:10px 0}.domain-rule-row>label:first-child{grid-column:1/-1}.domain-check{display:flex;align-items:center;gap:6px}.domain-check input{margin:0}.domain-rule-row>button{grid-column:2;grid-row:2/4;font-size:12px;align-self:center}#domain-filter-status{font-size:13px;overflow-wrap:anywhere}





#preferences fieldset{border:1px solid var(--edge);border-radius:6px;margin-bottom:1rem}

#bulk-subscription-list{max-height:35vh;overflow:auto;border-block:1px solid var(--edge);margin:1rem 0}.bulk-subscription-row{display:flex;align-items:center;gap:.65rem;padding:.45rem .3rem;margin:0}.bulk-subscription-row span{overflow-wrap:anywhere}.bulk-subscription-row:hover{background:var(--panel)}

#article-filters{width:min(600px,calc(100vw - 32px));max-height:85vh;overflow:auto}.filter-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}.filter-fields label,.filter-fields input{min-width:0}#article-filters fieldset{border:1px solid var(--edge);margin:12px 0}#filter-source-list{max-height:30vh;overflow:auto;border-top:1px solid var(--edge)}.filter-source-row{display:flex;gap:10px;align-items:center;padding:7px 0;margin:0}.filter-source-row input{width:auto;margin:0}.filter-source-row span{overflow-wrap:anywhere}#filter-selected-count{font-size:12px;color:var(--muted)}#article-filter-error{color:var(--ink);font-size:13px}#article-filters footer{position:sticky;bottom:0;background:var(--bg);padding:12px 0 0}@media(max-width:480px){.filter-fields{grid-template-columns:minmax(0,1fr)}}

textarea{font:inherit;color:inherit;width:100%;max-width:100%;border:1px solid var(--edge);border-radius:4px;padding:.5rem;background:var(--bg);resize:vertical}textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.content pre,.content code{font-family:ui-monospace,"Cascadia Code",Consolas,monospace}#font-preview{padding:12px;border-block:1px solid var(--edge);overflow-wrap:anywhere;line-height:1.8}.font-preview-label,#font-input-status{font-size:12px;color:var(--muted)}

:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--bg:#151719;--panel:#1d2023;--ink:#e1e4e8;--muted:#9298a0;--edge:#30343a;--accent:#7dca94;--selected:#223028}

.body-switch{display:flex;gap:8px;align-items:center;flex-wrap:wrap;max-width:var(--content-width,76ch);margin:1rem auto;padding:0 1rem}.body-switch button[aria-pressed=true]{background:var(--selected);border-color:var(--accent)}.body-switch button:disabled{opacity:.5;cursor:wait}.fulltext-status{flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.6}

#sync-status{font-size:11px;padding:.25rem .4rem;white-space:nowrap;color:var(--muted)}#sync-status[data-status=error],#sync-status[data-status=offline]{color:var(--ink);border-color:var(--muted)}

.sidebar-backdrop{display:none}
@media(max-width:600px){
 body{grid-template-columns:minmax(0,1fr)}
 .app-header{flex-wrap:wrap;position:relative;z-index:6}.app-header button{min-height:40px}#extension-status{max-width:none;font-size:.7rem}
 #sidebar{position:fixed;top:var(--app-header-height,50px);bottom:0;left:0;width:min(300px,85vw);z-index:5;box-shadow:4px 0 16px #0003}
 .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:var(--app-header-height,50px) 0 0;border:0;border-radius:0;background:#0006;z-index:4}
 #sidebar button,#sidebar summary{min-height:44px}#feed-navigation .folder-toggle{width:44px}#feed-navigation .feed-child{padding-left:calc(44px + 2px + .2rem)}
 main{padding:0 .5rem 1rem}.reading-actions button,.list-heading button{min-height:40px}
 .article:not(.expanded) .article-heading{grid-template-columns:40px minmax(0,1fr) 45px;grid-template-rows:auto auto;gap:0 .5rem;min-height:60px}
 .article:not(.expanded) .article-save{grid-column:1;grid-row:1/3;min-height:44px}
 .article:not(.expanded) .article-source{display:block;grid-column:2;grid-row:1;font-size:.75rem;align-self:end}
 .article:not(.expanded) .title{grid-column:2/4;grid-row:2;padding:.15rem 0 .5rem;align-self:start}
 .article:not(.expanded) .article-date{grid-column:3;grid-row:1;align-self:end}
 .article.expanded .article-save{min-height:44px}.article.expanded .title{font-size:calc(var(--article-title-size,30px) * .82)}
}

@media(max-width:600px){
 .toolbar{padding:.5rem 0}.list-heading{gap:.35rem;margin-bottom:.4rem}
 .list-heading h1{max-width:65%;font-size:1rem}.list-heading #view-label{margin-left:auto;font-size:.7rem}
 .list-heading #article-order{margin-left:0}.list-heading button{margin-left:0;white-space:nowrap}
 .list-heading #article-order{flex-basis:auto}
 .reading-actions{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.25rem;overscroll-behavior-x:contain}
 .reading-actions button{flex-shrink:0;white-space:nowrap}
}

.sidebar-management{margin-top:auto;color:var(--muted);font-size:.86rem}.sidebar-management>summary{cursor:pointer;padding:.55rem .8rem;border-radius:4px}.sidebar-management>summary:hover{background:var(--selected)}.sidebar-management .sidebar-tools{margin-top:.25rem}

.reading-more{position:relative;margin-left:auto;font-size:.82rem}.reading-more>summary{cursor:pointer;padding:.3rem .55rem;border:1px solid var(--edge);border-radius:4px}.reading-more-menu{position:absolute;right:0;top:calc(100% + .3rem);min-width:180px;padding:.35rem;display:flex;flex-direction:column;gap:.2rem;background:var(--panel);border:1px solid var(--edge);border-radius:4px;box-shadow:0 4px 16px #0003}.reading-more-menu button{text-align:left;white-space:nowrap}
@media(max-width:600px){.reading-actions{flex-wrap:wrap;overflow:visible}}

.list-status{display:flex;align-items:center;gap:.6rem;margin:.35rem 0 .6rem;color:var(--muted);font-size:.85rem}.list-empty{margin:.35rem 0 .6rem;color:var(--muted);font-size:.85rem}.list-status button{font-size:inherit;padding:.25rem .5rem}

@media(max-width:600px){.list-status button{min-height:44px;min-width:64px;flex-shrink:0;white-space:nowrap}}

.auth-status a{flex-shrink:0;color:var(--accent);text-decoration:underline;padding:8px 4px;white-space:nowrap;}
@media(max-width:600px){.auth-status a{min-height:44px;display:inline-flex;align-items:center;}}
.auth-status a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

.content p{margin:var(--content-paragraph,1em) 0}
/* Display customizer (#103): the real page stays visible and updates live. */
#customizer{position:fixed;top:0;right:0;bottom:0;width:340px;z-index:50;display:flex;flex-direction:column;gap:.75rem;padding:1rem;overflow:auto;background:var(--panel);border-left:1px solid var(--edge);box-shadow:-8px 0 24px rgb(0 0 0/.25)}
#customizer[hidden]{display:none}
body.customizing{padding-right:340px}
#customizer h2{font-size:1.1rem;margin:0}
#customizer .customizer-hint{font-size:.8rem;color:var(--muted);margin:0}
#customizer fieldset{border:1px solid var(--edge);border-radius:6px;display:grid;gap:.6rem;padding:.6rem .75rem}
#customizer label{display:grid;grid-template-columns:1fr auto;gap:.15rem .5rem;align-items:center;font-size:.85rem}
#customizer label input[type=range]{grid-column:1/3;width:100%}
#customizer output{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.8rem}
#customizer .customizer-check{display:flex;gap:.4rem}
#customizer .customizer-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:auto;position:sticky;bottom:-1rem;background:var(--panel);padding:.5rem 0}
@media(max-width:700px){#customizer{top:auto;left:0;width:auto;height:48dvh;border-left:0;border-top:1px solid var(--edge)}body.customizing{padding-right:0;padding-bottom:48dvh}}
.feed-icon{width:16px;height:16px;vertical-align:-3px;margin-right:.35em;border-radius:3px;flex:none;object-fit:contain;box-sizing:border-box;padding:1px;background:#fff}

#resources{width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto}.resources-level{font-weight:600;padding:6px 10px;border-radius:6px;border:1px solid var(--edge);display:inline-block}.resources-level[data-level=warning]{border-color:#b7791f;color:#b7791f}.resources-level[data-level=critical],.resources-level[data-level=unknown]{border-color:#c53030;color:#c53030}.resources-reasons{font-size:13px;padding-left:20px}.resources-list{display:grid;align-items:baseline;grid-template-columns:max-content 1fr;gap:6px 16px;font-size:13px;margin:12px 0}.resources-list dt{color:var(--muted)}.resources-list dd{margin:0;overflow-wrap:anywhere}#resources-body[aria-busy=true]{min-height:3em}

.article-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:1rem auto}.article-footer .close-article{margin:0}
/* #63: phones scroll the toolbar away and use the article footer; extension-only actions are hidden there. */
@media(max-width:600px){.toolbar{position:relative}.article-footer button{min-height:44px;min-width:88px}body.extension-missing .reading-actions [data-command=openBatch]{display:none}#notice:not(:empty){position:fixed;left:.5rem;right:.5rem;bottom:.5rem;z-index:7;margin:0;padding:.65rem .8rem;background:var(--panel);color:var(--ink);border:1px solid var(--edge);border-radius:6px;box-shadow:0 4px 16px #0003}}
/* #114/#116/#117: reading header. Title, source/author/time, state and actions, lead image and body
   share one column that follows the reader's body width setting. The open article keeps only a thin
   selection line instead of tinting the whole body. */
.article.expanded{padding-bottom:1.5rem}
.article.expanded.selected{background:var(--bg);box-shadow:inset 3px 0 var(--accent)}
.article.expanded.selected .article-heading,.article.expanded .article-heading{background:var(--bg)}
.article.expanded .article-heading{grid-template-columns:minmax(0,var(--reading-width,76ch));justify-content:center;font-size:var(--content-size,18px);font-family:var(--content-font,inherit);padding:1.6rem 0 .2rem}
.article.expanded .article-save{display:none}
.article.expanded.selected .article-heading{box-shadow:inset 3px 0 var(--accent);border-bottom-color:transparent}
/* Keyboard focus on an open article rings its title, not the whole body. */
.article.expanded:focus-visible{outline:none}.article.expanded:focus-visible>.article-heading{outline:2px solid var(--accent);outline-offset:-2px}
.article.expanded .title{font-family:var(--app-font,system-ui,"Noto Sans JP",sans-serif);font-weight:700;line-height:1.35;letter-spacing:.01em;padding:0 1rem}
.reading-column{max-width:var(--content-width,76ch);margin:0 auto;padding:0 1rem;font-size:var(--content-size,18px);font-family:var(--content-font,inherit)}
.reading-column>:not(.content){font-family:var(--app-font,system-ui,"Noto Sans JP",sans-serif)}
.reading-column .content{max-width:none;margin:1.25rem 0 1.5rem;padding:0}
.reading-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .5rem;margin:.4rem 0 1rem;font-size:.86rem;line-height:1.5;color:var(--muted)}
.reading-meta>*{display:inline-flex;align-items:center;gap:.35rem;min-width:0;overflow-wrap:anywhere}
.reading-meta>*+*::before{content:"·";margin-right:.15rem;color:var(--muted)}
.reading-source{font-weight:600}.reading-author{color:var(--ink)}
.reading-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;padding:.55rem 0;margin:0 0 .6rem;border-block:1px solid var(--edge)}
.bar-action{display:inline-flex;align-items:center;gap:.4rem;min-height:36px;padding:.35rem .75rem;border:1px solid var(--edge);border-radius:999px;background:transparent;color:var(--ink);font-size:.82rem;line-height:1.2;white-space:nowrap;text-decoration:none}
.bar-action:hover{background:var(--panel)}
.bar-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bar-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bar-icon.filled{fill:currentColor}
.bar-action[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--selected);font-weight:600}
.bar-action[data-bar-action=toggleRead] .icon-dot{fill:var(--accent);stroke:var(--accent)}
.bar-action[data-bar-action=toggleRead] .icon-check{color:var(--muted)}
.bar-action[data-bar-action=share]{margin-left:auto}
.bar-action.unavailable{color:var(--muted);border-style:dashed;cursor:not-allowed}
.bar-action.unavailable:hover{background:transparent}
.lead-image{margin:.4rem 0 1rem}
.lead-image img{display:block;max-width:100%;height:auto;max-height:min(70vh,720px);margin:0 auto;border-radius:6px;object-fit:contain}
.reading-column .body-switch{max-width:none;margin:.3rem 0 .9rem;padding:0;gap:6px}
.reading-column .body-switch button{font-size:.78rem;padding:.25rem .6rem}
.reading-column .original-link{margin:1rem auto}
.reading-column .article-footer{margin:1rem 0 0}
@media(max-width:600px){
  .article.expanded .article-heading{padding:1rem 0 .15rem}
  .article.expanded .title,.reading-column{padding:0 .65rem}
  .bar-action{min-height:44px;padding:.35rem .7rem}
  .bar-action[data-bar-action=share]{margin-left:0}
  body.extension-missing .reading-bar [data-bar-action=openOriginal]{display:none}
}

#unread-only[aria-pressed=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
#unread-only{white-space:nowrap}

/* #111: Feedly-informed reading rhythm; existing display variables remain authoritative. */
:root{--panel:#f7f7f7;--ink:#292929;--muted:#686868;--edge:#e9e9e9;--selected:#f0f6f1}
:root[data-theme=dark]{--bg:#121212;--panel:#191919;--ink:#dedede;--muted:#a0a0a0;--edge:#303030;--selected:#202b23}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121212;--panel:#191919;--ink:#dedede;--muted:#a0a0a0;--edge:#303030;--selected:#202b23}}
.app-header{min-height:48px;background:var(--bg);padding:.3rem .8rem;gap:.65rem}
#sync-status{margin-left:auto;border:0}
.header-tools{position:relative}.header-tools>summary{cursor:pointer;list-style:none;color:var(--muted);padding:.5rem .7rem;border-radius:4px}
.header-tools>summary::-webkit-details-marker{display:none}
.header-tools-menu{position:absolute;right:0;top:100%;z-index:10;min-width:190px;display:flex;flex-direction:column;gap:.3rem;padding:.6rem;background:var(--bg);border:1px solid var(--edge);box-shadow:0 4px 16px #0002;border-radius:4px}
.header-tools-menu a{padding:.5rem .65rem;color:var(--ink);text-decoration:none}.header-tools-menu button{text-align:left;border:0}
#extension-status{margin:0;padding:.5rem .65rem}
#sidebar{gap:.85rem;background:var(--panel);padding:.8rem .5rem}
.primary-nav button,#feed-navigation button{border-radius:2px;min-height:32px}
.feeds-heading{border-bottom:0}.feeds-nav h2{letter-spacing:.04em;text-transform:uppercase}
main{padding-inline:2rem}
#articles::after{content:'';display:block;height:var(--reading-tail-space,0px)}
.toolbar{padding:1.25rem 0 .65rem}.list-heading{gap:.55rem}.list-heading h1{font-size:1.6rem;font-weight:700}
.list-heading button{margin-left:0}.list-heading #unread-only{margin-left:auto}
.reading-actions>button{border-color:transparent;color:var(--muted)}.reading-actions>button:hover{color:var(--ink)}
.article-heading{grid-template-columns:28px 145px minmax(0,1fr) 55px;border-bottom:0}
.article:not(.expanded){border-bottom-color:transparent}.article:not(.expanded):hover .article-heading{background:var(--panel)}
.article-save{display:flex;align-items:center;justify-content:center;min-width:28px;min-height:28px}
.article-save .bar-icon{width:16px;height:16px}
.article-source{display:flex;align-items:center;min-width:0}
.feed-icon{position:relative;display:inline-block;width:16px;height:16px;min-width:16px;margin-right:.4em;padding:0;background:transparent;border-radius:2px;vertical-align:-3px;flex:none;overflow:hidden}
.feed-icon::before{content:'';position:absolute;inset:2px;border:1px solid var(--muted);border-radius:2px;opacity:.65}
.feed-icon::after{content:'';position:absolute;left:5px;right:5px;top:6px;height:1px;background:var(--muted);box-shadow:0 3px var(--muted);opacity:.65}
.feed-icon.loaded::before,.feed-icon.loaded::after{display:none}.feed-icon img{position:relative;display:block;width:16px;height:16px;object-fit:contain;background:var(--bg)}
.article.expanded .article-heading{position:relative;top:auto;padding:2.5rem 0 .3rem;grid-template-columns:minmax(0,var(--reading-width,76ch)) 44px}
.article.expanded.selected .article-heading{position:relative;top:auto;box-shadow:none;border-bottom:0}
.article.expanded.selected{box-shadow:none}
.article.expanded .title{line-height:1.35;letter-spacing:0}
.article-back{position:static;align-self:start;width:44px;height:44px;padding:0;border:0;color:var(--muted);font-size:1.6rem}
.reading-meta{font-weight:400;margin:.6rem 0 1.6rem}.reading-source{font-weight:400}.reading-author{color:var(--muted)}
.reading-bar{justify-content:flex-end;gap:.25rem;padding:.55rem .5rem;margin-bottom:1.25rem;border:1px solid var(--edge);border-radius:6px}
.bar-action{border:0;border-radius:4px;min-height:40px;padding:.4rem .6rem;font-size:.85rem}
.bar-action[data-bar-action=share]{margin-left:0;order:2;border:1px solid var(--edge)}
.bar-action[aria-pressed=true]{background:transparent}
.bar-action.unavailable{border:0}
.lead-image img{border-radius:0}
.reading-column .body-switch{margin:.3rem 0 1rem}.body-switch button{border-color:transparent;color:var(--muted)}
.reading-column .original-link{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-height:44px;padding:.5rem;border:1px solid var(--edge);border-radius:5px;text-decoration:none;color:var(--muted)}
@media(max-width:850px) and (min-width:601px){main{padding-inline:1rem}.article-heading{grid-template-columns:28px minmax(0,1fr) 55px}}
@media(max-width:600px){
 .app-header{flex-wrap:nowrap;min-height:52px;padding:.25rem .5rem;gap:.35rem}
 .app-header button,.header-tools>summary{min-height:44px;display:flex;align-items:center;justify-content:center}
 .app-header strong{white-space:nowrap}.header-tools-menu a{min-height:44px}
 #sidebar{padding:.65rem .5rem}
 main{padding:0 .75rem 1.25rem}.toolbar{padding:.85rem 0 .5rem}
 .list-heading h1{max-width:100%;font-size:1.35rem;flex:1 1 60%}.list-heading #view-label{font-size:.75rem}
 .list-heading button,.list-heading select,.reading-actions button,.reading-more>summary{min-height:44px}
 .list-heading #unread-only{margin-left:0}.list-heading #article-order{margin-left:auto}
 .reading-actions{gap:.15rem}.reading-more{margin-left:auto}
 .reading-more-menu{z-index:8;min-width:210px}
 .article:not(.expanded) .article-heading{grid-template-columns:minmax(0,1fr) 58px 44px;grid-template-rows:auto auto;gap:.15rem .35rem;padding:.6rem .1rem;min-height:88px}
 .article:not(.expanded) .title{grid-column:1/3;grid-row:1;padding:0;white-space:normal;display:block;overflow-wrap:anywhere;line-height:1.45;font-size:var(--list-size,17px)}
 .article:not(.expanded) .article-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .article:not(.expanded) .article-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-left:0}
 .article:not(.expanded) .article-source{grid-column:1;grid-row:2;align-self:center;display:flex;font-size:.75rem}
 .article:not(.expanded) .article-date{grid-column:2;grid-row:2;align-self:center;font-size:.72rem}
 .article:not(.expanded) .article-save{grid-column:3;grid-row:1/3;width:44px;min-height:44px;align-self:center}
 .article.expanded .article-heading{padding:3.2rem 0 .2rem}
 .article.expanded .title{font-size:var(--article-title-size,30px);padding:0}
 .reading-column{padding:0}.reading-meta{margin:.5rem 0 1rem}
 .reading-bar{justify-content:flex-start;padding:.35rem;gap:.2rem;margin-bottom:1rem}
 .bar-action{min-height:44px;padding:.4rem .55rem}
 .reading-column .body-switch button{min-height:44px}
 .article-back{right:0;top:.3rem}
 .article-footer button{min-height:44px}
}
@media(max-width:600px){
 .article:not(.expanded) .title{min-height:44px}
 .list-heading h1{flex-basis:100%;max-width:100%}
 .list-heading #view-label{margin-left:0}
 .list-heading #unread-only{margin-left:auto}
}
@media(max-width:600px){.filter-chip{min-height:44px;display:inline-flex;align-items:center}}
.filter-summary{margin-top:.45rem;color:var(--muted);font-size:.8rem}
.filter-summary:has(#active-filters[hidden]){display:none}
.filter-summary>summary{cursor:pointer;width:fit-content;padding:.35rem .15rem}
@media(max-width:600px){.filter-summary>summary{min-height:44px;display:flex;align-items:center;gap:.4rem}}
@media(max-width:600px){button,summary,.bar-action{min-width:44px}}

/* Keep the 31px desktop list density with larger default headlines. */
@media(min-width:601px){.article:not(.expanded) .title{line-height:1.4;padding-block:.1rem}}

/* Feed controls reuse the reader palette and browser focus/selection controls. */
.feed-menu{position:relative;margin-left:auto}.feed-menu[hidden]{display:none}.feed-menu summary{cursor:pointer;list-style:none;min-width:44px;min-height:44px;display:grid;place-items:center;font-size:1.5rem}.feed-menu summary::-webkit-details-marker{display:none}
.feed-menu-panel{position:absolute;right:0;top:100%;z-index:10;width:min(310px,calc(100vw - 32px));padding:.6rem;background:var(--panel);border:1px solid var(--edge);border-radius:10px;box-shadow:0 8px 24px #0004;max-height:calc(100dvh - 170px);overflow:auto}
.feed-menu-panel button,.feed-menu-field{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.5rem;min-height:44px;text-align:left;margin:0}.feed-menu-field select{width:auto;max-width:140px}.feed-menu-field input{width:auto}.feed-menu-panel small{display:block;color:var(--muted);padding:.4rem;line-height:1.5}.feed-menu-panel .feed-unfollow{color:#e35b50;border-top:1px solid var(--edge)}
button.article-source{border:0;background:transparent;text-align:left;color:var(--muted);padding:0;cursor:pointer;font:inherit;font-size:.8rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.article-source:hover{color:var(--accent)}a.title{text-decoration:none;color:inherit;display:block}
body[data-feed-view=titles] .article:not(.expanded) .article-excerpt{display:none}
#feed-move-folders{min-height:7rem}

button.reading-source{border:0;background:transparent;color:var(--muted);font:inherit;padding:0;cursor:pointer;max-width:100%;text-align:left}button.reading-source:hover{color:var(--accent)}

/* Feed navigation remains a touch target when source labels become buttons. */
@media(max-width:600px){button.article-source,button.reading-source{min-height:44px;min-width:44px}}

.mobile-action-slot .reading-more{width:100%;margin:0}
.mobile-action-slot .reading-more[open]>.reading-more-menu{position:static;min-width:0;width:100%;max-height:none;box-sizing:border-box;box-shadow:none}

/* Feed transitions use an overlay, leaving article and toolbar geometry intact. */
.reading-feed-notice{position:fixed;bottom:1rem;right:1rem;z-index:20;max-width:min(32rem,calc(100vw - 2rem));padding:.75rem 1rem;background:var(--panel);color:var(--ink);border:1px solid var(--edge);border-left:3px solid var(--accent);border-radius:6px;box-shadow:0 4px 18px #0002;font-size:.9rem;overflow-wrap:anywhere;pointer-events:none}
#preferences .reading-navigation-setting{padding:1rem;margin:1.25rem 0;border-radius:6px}
.reading-navigation-setting legend{font-weight:650;padding:0 .4rem}
#preferences .setting-toggle{display:flex;align-items:center;gap:.75rem;min-height:44px;font-weight:600}
#preferences .setting-toggle input{width:1.15rem;height:1.15rem;flex-shrink:0;accent-color:var(--accent)}
.reading-navigation-setting p{font-size:.85rem;line-height:1.65;color:var(--muted);margin:.5rem 0}
.reading-navigation-setting .bulk-read-behavior{border-top:1px solid var(--edge);padding-top:.75rem;margin-top:.75rem}
@media(max-width:600px){.reading-feed-notice{bottom:.75rem;right:.75rem;max-width:calc(100vw - 1.5rem)}}
.feed-favorites{display:flex;flex-direction:column;gap:2px;padding-bottom:.4rem;margin-bottom:.4rem;border-bottom:1px solid var(--edge)}.favorites-heading{font-size:.75rem;color:var(--muted);font-weight:500;letter-spacing:.05em;padding:0 .8rem;margin:.2rem 0}

/* #149: source-image access, preserving the existing title/excerpt columns. */
.article:not(.expanded) .article-heading{grid-template-columns:28px 120px minmax(0,1fr) 55px auto}
.original-images-button{font-size:.75rem;white-space:nowrap;padding:.3rem}
.original-images-short{display:none}
.article.expanded .original-images-button{grid-column:2;justify-self:start}
#original-images{width:min(42rem,calc(100vw - 2rem));max-height:85vh;overflow:auto}
#original-images li{margin:1rem 0;overflow-wrap:anywhere}
#original-images img{display:block;max-width:100%;max-height:14rem;margin-bottom:.35rem}
@media(max-width:850px) and (min-width:601px){.article:not(.expanded) .article-heading{grid-template-columns:28px minmax(0,1fr) 55px auto}}
@media(max-width:600px){
 .article:not(.expanded) .article-heading{grid-template-columns:minmax(0,1fr) 58px 44px;min-height:94px}
 .article:not(.expanded) .article-save{align-self:start}
 .article:not(.expanded) .original-images-button{grid-column:3;grid-row:1/3;align-self:end;width:44px;height:44px;padding:0;font-size:.75rem}
 .article:not(.expanded) .original-images-label{display:none}
 .article:not(.expanded) .original-images-short{display:inline}
 .article.expanded .original-images-button{min-height:44px}
}

.key-help{position:fixed;z-index:10000;max-width:calc(100vw - 16px);box-sizing:border-box;padding:6px 10px;border:1px solid var(--edge);border-radius:6px;background:var(--ink);color:var(--bg);font-size:13px;line-height:1.45;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 2px 8px #0003}
.key-help[hidden]{display:none}

/* F40 follows existing management dialogs. */
#boards {width: min(42rem, calc(100vw - 2rem)); max-height: 85dvh; overflow: auto;}
#boards input, #boards select {max-width: 100%; box-sizing: border-box;}
#boards-current, #boards-list button, #boards-confirm-text {overflow-wrap: anywhere;}
#boards-list button {max-width: 100%; box-sizing: border-box;}
#boards-list {display: flex; gap: .4rem; flex-wrap: wrap; margin-block: .8rem;}
#boards-contents {padding-left: 1.2rem;}
#boards-contents p {white-space: pre-wrap; overflow-wrap: anywhere; max-height: 8rem; overflow: auto;}
#boards-confirmation {border: 1px solid currentColor; padding: .8rem; margin-block: .8rem;}

#boards-original-body {white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45dvh; overflow: auto;}

#destinations {width: min(42rem, calc(100vw - 2rem)); max-height: 85dvh; overflow: auto; box-sizing: border-box;}
#destinations-title, #destinations p, #destinations label {overflow-wrap: anywhere; min-width: 0;}
#destinations-options {display: flex; flex-direction: column; gap: .4rem; margin-block: .8rem;}
#destinations-options label {display: flex; align-items: flex-start; gap: .5rem; padding-block: .25rem;}
#destinations-options input {flex: none; margin-top: .3rem;}
#destinations-options span {min-width: 0;}
#destinations footer {display:flex; flex-wrap:wrap; gap:.4rem;}
#destinations button {max-width:100%; white-space:normal; overflow-wrap:anywhere;}

#destinations-title {font-size:1rem; max-height:7rem; overflow:auto;}

/* F41 reuses the Board dialog controls and spacing. */
.boards-filters{display:flex;flex-wrap:wrap;gap:.5rem;align-items:end}.boards-filters label{flex:1 1 12rem;min-width:0}.boards-filters input,.boards-filters select{width:100%;min-width:0;max-width:100%}#boards-applied{overflow-wrap:anywhere}#boards-contents small{display:block}

/* Keep desktop status readable within the sticky toolbar. */
@media(min-width:601px){.toolbar>#notice:not(:empty){font-size:1rem;line-height:1.5;color:var(--ink);background:var(--panel);border-left:3px solid var(--accent);padding:.4rem .65rem;border-radius:3px}}

.media-filter{display:flex;align-items:center;gap:.4rem;font-size:.85rem;white-space:nowrap}.media-filter select{max-width:9rem}
.media-badge{font-size:.7em;border:1px solid currentColor;border-radius:3px;padding:1px 4px;margin-right:.5em;opacity:.75;white-space:nowrap}
.youtube-player{width:100%;margin:1rem 0}.youtube-player iframe{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0;background:#111}

/* Daily destinations stay visible even when the mobile drawer is closed. */
.app-header{flex-wrap:wrap}
.daily-actions{display:flex;gap:.35rem;flex-wrap:wrap}
.daily-actions button{white-space:nowrap}
@media(max-width:600px){.daily-actions{order:2;flex-basis:100%}.daily-actions button{flex:1;font-size:.8rem;padding:.45rem .3rem}}

.menu-group{display:grid;gap:.6rem;margin:1rem 0}.menu-group h3{margin:.5rem 0 0}.menu-group button,.menu-group a{text-align:left}dialog>[data-dialog-back]{margin-bottom:.5rem}.list-heading{flex-wrap:wrap}.filter-summary{margin-top:.4rem}

#scroll-read-toggle{display:none}
@media(max-width:600px){.list-heading #scroll-read-toggle,.mobile-filter-slot #scroll-read-toggle{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}}

/* Mobile article actions occupy their own row, independent of title wrapping. */
@media(max-width:600px){
 .article.expanded .article-heading{grid-template-columns:minmax(0,1fr);padding:1rem 0 .2rem}
 .article.expanded .title{grid-column:1;min-width:0;overflow-wrap:anywhere}
 .article-top-actions{grid-column:1;display:flex;align-items:center;flex-wrap:wrap;gap:.2rem;padding:.35rem;margin-bottom:.5rem;border:1px solid var(--edge);border-radius:6px;min-width:0}
 .article-top-actions .reading-bar{display:contents}
 .article-top-actions .original-images-button{order:3;min-width:44px;min-height:44px}
 .article-top-actions .article-back{order:4;flex:none}
 .article-top-actions .original-images-label{display:none}
 .article-top-actions .original-images-short{display:inline}
 #sidebar button,#sidebar summary{min-width:44px;min-height:44px;flex-shrink:0}
 .feeds-nav>#feed-navigation{margin-top:4px}
 select,dialog button{min-width:44px;min-height:44px}
}

/* Newly added subscription: readable in both themes, motion-optional. */
#feed-navigation button.subscription-added{
  background: rgba(35,118,69,.18);
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent);
  font-weight: 700;
  animation: subscription-added-pulse 1.2s ease-in-out 3;
}
@keyframes subscription-added-pulse{
  0%,100%{background: rgba(35,118,69,.18);background: color-mix(in srgb, var(--accent) 18%, var(--panel));}
  50%{background: rgba(35,118,69,.34);background: color-mix(in srgb, var(--accent) 34%, var(--panel));}
}
@media (prefers-reduced-motion: reduce){
  #feed-navigation button.subscription-added{animation: none;}
}

/* Mobile layout: minimal header, bottom tabs, filters moved into "more". */
.mobile-head,.mobile-tabs{display:none}
@media(max-width:600px){
  body{padding-bottom:56px}
  #sidebar{bottom:calc(56px + env(safe-area-inset-bottom))}
  .app-header{position:sticky;top:0;z-index:6}
  .app-header>strong,.app-header>.daily-actions,.app-header>#sync-status,.app-header>.header-tools{display:none}
  .mobile-head{display:flex;align-items:center;gap:.5rem;flex:1 1 auto;min-width:0}
  #mobile-view-title{font-weight:700;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  #mobile-unread-count{color:var(--muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .mobile-mark-read{margin-left:auto;min-height:44px;padding:0 .6rem;font-size:.8rem;white-space:nowrap}
  .list-heading #view-title,.list-heading #view-label{display:none}
  .list-heading{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
  .reading-actions,.filter-summary{display:none}
  .mobile-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:7;background:var(--panel);border-top:1px solid var(--edge);padding-bottom:env(safe-area-inset-bottom)}
  .mobile-tabs button{flex:1 1 0;min-height:52px;border:0;background:transparent;color:var(--muted);font-size:.72rem;display:flex;align-items:center;justify-content:center}
  .mobile-tabs button[aria-current=true]{color:var(--accent);font-weight:700;box-shadow:inset 0 2px 0 var(--accent)}
  .mobile-more-nav{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0 1rem}
  .mobile-more-nav button{text-align:left;min-height:44px}
  .mobile-filter-slot{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
  .mobile-filter-slot label,.mobile-filter-slot select,.mobile-filter-slot button{min-height:44px;width:100%}
}

@media(max-width:600px){
  #articles .article-excerpt{display:none}
  #mobile-unread-count{font-size:.68rem}
  .offline-link,.offline-banner{font-size:.72rem}
}

@media(max-width:600px){
  #articles article .title{font-size:17px;font-weight:700;line-height:1.35}
  #articles article .article-source,#articles article .article-time{font-size:.72rem;color:var(--muted)}
}

/* Sidebar header with an explicit close button (mobile only). */
.sidebar-head{display:none}
@media(max-width:600px){
  .sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.35rem .25rem .5rem;position:sticky;top:0;z-index:2;background:var(--panel)}
  .sidebar-head-title{margin:0;font-size:1rem;font-weight:700}
  #sidebar-close{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;min-width:44px;padding:.35rem .6rem;border:1px solid var(--edge);border-radius:6px;background:var(--panel);color:inherit;font-size:.9rem}
  #sidebar .primary-nav,#sidebar #search-form{display:none}
  #sidebar .feeds-heading,#sidebar .feeds-nav>button[data-command="chatgpt"]{display:none}
}

/* End-of-feed actions (#178): reachable by touch, not only by the J key. */
.feed-end{margin:1rem 0 2.5rem;padding:1rem 0 0;border-top:1px solid var(--edge);display:flex;flex-direction:column;gap:.6rem}
.feed-end[hidden]{display:none}
.feed-end-note{margin:0;color:var(--muted);font-size:.9rem}
.feed-end-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.feed-end-actions button{min-height:44px;padding:.6rem 1rem;border:1px solid var(--edge);border-radius:6px;background:var(--panel);color:inherit;font-size:.95rem}
.feed-end-actions button:hover{background:var(--selected)}
.feed-end-hint{margin:0;color:var(--muted);font-size:.8rem}
@media(max-width:600px){
  .feed-end-actions{flex-direction:column}
  .feed-end-actions button{width:100%;font-size:1rem}
}

::highlight(article-annotations){background:#ffe58a;color:#191919;}
.annotations{margin-block:1rem;overflow-wrap:anywhere;min-width:0;}
.annotations textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:6rem;}
.saved-note{white-space:pre-wrap;}
.highlight-entry{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:.5rem;}
.highlight-entry span{min-width:0;overflow-wrap:anywhere;}
.annotation-error{color:var(--danger,#b33);}

#maintenance {width: min(640px, calc(100vw - 32px)); box-sizing: border-box; overflow-wrap: anywhere;}
#maintenance input {width: 100%; max-width: 12em; box-sizing: border-box;}
.maintenance-row {border-bottom: 1px solid #8885; padding: 12px 0;}

/* Reading space: keep subscriptions and article text ahead of occasional tools. */
#article-search{width:min(560px,92vw)}
#article-search #search-form{padding:0}
#article-search .saved-search{margin-top:1rem}
.view-options>summary{cursor:pointer;font-size:.85rem;padding:.4rem .6rem;border:1px solid var(--edge);border-radius:4px;white-space:nowrap}
.view-options-menu{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:var(--panel);border:1px solid var(--edge);border-radius:5px}
.view-options-menu button,.view-options-menu select{width:100%;margin:0}
.view-options-menu .media-filter{margin:0}
@media(min-width:601px){
 .toolbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.65rem 0}
 .list-heading{display:contents}
 .list-heading h1{flex:1 1 220px;font-size:1.25rem;min-width:0}
 .list-heading #view-label{white-space:normal}
 .list-heading #unread-only{margin-left:0;white-space:nowrap}
 .list-heading #article-order{width:auto;font-size:.85rem;padding:.35rem}
 .reading-actions{margin-left:0}
 .reading-more{margin-left:0}
 .view-options{position:relative}
 .view-options-menu{position:absolute;right:0;top:calc(100% + .4rem);width:230px;z-index:8;box-shadow:0 5px 18px #0002}
 .filter-summary{flex-basis:100%;margin:0}
 .filter-summary>summary{font-size:.78rem;color:var(--muted);padding:.1rem 0}
 #notice:empty{display:none}
 #sidebar{gap:.6rem}
 .feeds-heading{margin-top:.25rem}
 .article.expanded .article-heading{padding-top:1.25rem;grid-template-columns:minmax(0,1fr) auto 44px;align-items:start}
 .article.expanded .title{grid-column:1;grid-row:1}
 .article.expanded .original-images-button{grid-column:2;grid-row:1;max-width:100%}
 .article.expanded .article-back{grid-column:3;grid-row:1}
 .reading-meta{margin:.4rem 0 .65rem}
 .reading-bar{justify-content:flex-start;border:0;border-bottom:1px solid var(--edge);border-radius:0;padding:.2rem 0;margin-bottom:.65rem;flex-wrap:wrap}
 .reading-column .body-switch{margin:.2rem 0 .6rem}
 .reading-column .content{margin-top:.75rem}
}
@media(max-width:600px){
 .view-options>summary{min-height:44px;display:flex;align-items:center}
 .view-options-menu{margin-top:.4rem}
 .toolbar:has(.list-heading:empty){padding:0;border:0}
}

.mobile-more-nav>a{display:flex;align-items:center;min-height:44px;padding:.55rem .7rem}

/* Desktop reading: align the title with the body and reduce stacked chrome. */
@media(min-width:601px){
 .article.expanded .article-heading{width:100%;max-width:var(--content-width,76ch);margin-inline:auto;grid-template-columns:minmax(0,1fr) auto auto;padding:.75rem 0 .15rem}
 .article.expanded .title{padding:0 1rem}
 .reading-meta{margin:.25rem 0 .4rem}
 .reading-bar{justify-content:flex-start;margin:0 0 .35rem;padding:.2rem 0;gap:.15rem;border:0;border-radius:0}
 .reading-bar .bar-action{min-height:30px;padding:.2rem .4rem}
 .reading-column .body-switch{margin:.15rem 0 .35rem}
 .reading-column .content{margin:.6rem 0 1.25rem}
 .app-header .daily-actions{gap:.2rem}
 .app-header .daily-actions button{border-color:transparent;padding:.3rem .5rem}
 .filter-summary{margin-top:.15rem}
 .toolbar{padding:.55rem 0 .35rem}
}
