: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}
*{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 summary{cursor:pointer;padding:.5rem .8rem;font-weight:550;overflow-wrap:anywhere}.feed-folder .feed-child{padding-left:1.65rem;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,.94rem);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,22px);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,1rem);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,.article-excerpt{display:none}.article.expanded .title{font-size:calc(var(--article-title-size,22px) * .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}.feed-folder summary .nav-count{float:right}

.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}
 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,22px) * .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=openOriginal],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}}
