/* メスティオ（T-005 の採用案）：PC は RSS リーダー型の3ペイン（左ナビ＋一覧＋本文）、スマホは Feedly アプリの文脈（日付区切り・冒頭つきの一覧＋下部ナビ）。
   幅 1024px 以上で PC の形、それ未満でスマホの形。body のクラスで表示の設定（濃さ・文字・テーマ）を切り替える。 */
/* テーマ：Solarized Light（表示の設定で選ぶ。T-005 の反映） */
body.theme-solarized { color-scheme: light; --bg: #fdf6e3; --muted: #93a1a1; --line: #eee8d5; --accent: #268bd2; --hover: #eee8d5;
                       --sel: #eee8d5; background: #fdf6e3; color: #657b83; }
body.theme-solarized .row .title, body.theme-solarized .reader h1, body.theme-solarized .listhead h1 { color: #586e75; }
body.theme-solarized .row.read .title { color: #93a1a1; }
body.theme-solarized .badge { background: #eee8d5; } body.theme-solarized .badge.warn { background: #b5890033; }
body.theme-solarized .reader .body pre { background: #eee8d5; }
body.theme-solarized button { border-color: #93a1a1; }
body.theme-solarized button.on { background: #268bd2; border-color: #268bd2; color: #fdf6e3; }
body.theme-solarized .side, body.theme-solarized .bottom, body.theme-solarized .listhead { background: var(--bg); }
/* Solarized の「濃い」：本文を base02、見出しを base03 に。「やや暗め」：背景を base2 に */
body.theme-solarized.contrast-high { color: #073642; }
body.theme-solarized.contrast-high .row .title, body.theme-solarized.contrast-high .reader h1, body.theme-solarized.contrast-high .listhead h1 { color: #002b36; }
body.theme-solarized.contrast-high .row .meta, body.theme-solarized.contrast-high .reader .meta { color: #586e75; }
body.theme-solarized.bg-dim { --bg: #eee8d5; --line: #ddd6c1; --hover: #e4dcc6; --sel: #e4dcc6; background: #eee8d5; }
body.theme-solarized.bg-dim .reader .body pre { background: #e4dcc6; }
:root { color-scheme: light dark; --muted: #888; --line: #8883; --accent: #36c; --bg: Canvas; --hover: #8881; --sel: #36c2;
        --nav-w: 240px; --list-w: 440px; --fs: 16px; }
body.font-s { --fs: 14px; } body.font-l { --fs: 18.5px; } body.font-xl { --fs: 21px; }
/* 読みやすさ（T-005 フィードバック7）。フォントは端末に入っているものだけを使う（Web フォントは読み込まない） */
body.face-sans { --face: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", sans-serif; }
body.face-serif { --face: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", "YuMincho", serif; }
.reader, .row .title, .row .excerpt { font-family: var(--face); }
/* 本文が画面の幅を越えないように（T-016 要件8）：長い URL や英数字の列はどこでも折り返す。コードと表は、その中だけ横に流す */
.reader { overflow-wrap: anywhere; min-width: 0; }
.reader .body pre, .reader .body table { display: block; max-width: 100%; overflow-x: auto; }
/* 表とコードの中は、語の途中で折り返さない（収まらない分は、その中だけ横に流す）。T-016 要件8 の直しの範囲を本文の文に限る */
.reader .body table, .reader .body pre { overflow-wrap: normal; word-break: normal; }
.reader .body th, .reader .body td { overflow-wrap: normal; word-break: keep-all; }
.reader .body img, .reader .body video, .reader .body iframe { max-width: 100%; height: auto; }
body.leading-wide .reader .body { line-height: 2.1; }
body.contrast-high:not(.theme-solarized) { color: #111; }
body.contrast-high:not(.theme-solarized) .row .meta, body.contrast-high:not(.theme-solarized) .reader .meta { color: #555; }
body.bg-dim:not(.theme-solarized) { background: #f1f0ec; --bg: #f1f0ec; color-scheme: light; }
body.bg-dim:not(.theme-solarized) .side, body.bg-dim:not(.theme-solarized) .bottom, body.bg-dim:not(.theme-solarized) .listhead { background: #f1f0ec; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.6 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: .8rem; } .error { color: #c33; }
button { font: inherit; padding: .4rem .8rem; min-height: 40px; border-radius: 6px; border: 1px solid #8886; background: transparent; color: inherit; cursor: pointer; }
button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.linklike { border: 0; padding: 0; min-height: 0; color: var(--accent); background: none; }
.badge { font-size: .72rem; padding: .02rem .4rem; border-radius: 4px; background: #8883; white-space: nowrap; }
.badge.warn { background: #c935; }
.stack { display: grid; gap: .75rem; max-width: 22rem; }
.stack input { display: block; width: 100%; padding: .6rem; font-size: 1rem; }
.list ul, .side ul, .rows { list-style: none; margin: 0; padding: 0; }
.page, main > form, .solo { max-width: 46rem; margin: auto; padding: 1rem; }
.topbar { display: flex; gap: 1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: bold; text-decoration: none; }

/* 左ナビ（未読件数つきツリー） */
.side { padding: .75rem; font-size: .92rem; }
.side .brand { display: block; margin-bottom: .5rem; font-size: 1.1rem; }
.side .search input { width: 100%; padding: .45rem .6rem; font-size: .95rem; margin-bottom: .5rem; }
.side a { text-decoration: none; color: inherit; }
.side .views li a, .side summary a { display: inline-block; padding: .15rem 0; }
.side .views li { display: block; }
.side .views li a { display: flex; justify-content: space-between; width: 100%; }
.side a.on { color: var(--accent); font-weight: 600; }
.side .n { color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.side .tree { margin: .5rem 0; border-top: 1px solid var(--line); padding-top: .5rem; }
.side .tree summary { cursor: pointer; padding: .1rem 0; }
.side .tree ul { padding-left: 1rem; }
.side .tree li li { display: flex; justify-content: space-between; gap: .3rem; }
.side .tree li li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .attn::before { content: "⚠ "; color: #c33; }
.side .views.small { border-top: 1px solid var(--line); padding-top: .5rem; font-size: .85rem; }

/* 一覧（密なタイトル一覧） */
.listhead { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem .9rem .2rem; }
.listhead h1 { font-size: 1.15rem; margin: 0; flex: 1 1 0; min-width: 0; }
.listhead > span.muted { white-space: nowrap; }
.listhead .allnote { margin-right: auto; }
.rows .day { font-size: .78rem; font-weight: 600; color: var(--muted); padding: .7rem .9rem .2rem; border-bottom: 1px solid var(--line); }
.row { position: relative; padding: .5rem .9rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover { background: var(--hover); }
.row.sel { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.row .title { font-weight: 600; text-decoration: none; color: inherit; display: block; line-height: 1.4; }
.row.read .title { font-weight: normal; color: var(--muted); }
.row .meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .1rem; }
.row .excerpt { display: none; margin: .2rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
body.dense-excerpt .row .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .acts, .reader .acts { display: flex; gap: .4rem; margin-top: .3rem; }
.row .acts form, .reader .acts form { margin: 0; }
.row .acts button { min-height: 30px; padding: .05rem .55rem; font-size: .78rem; }
.listhead { flex-wrap: wrap; gap: .3rem .8rem; position: sticky; top: 0; background: var(--bg, Canvas); z-index: 3; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.listhead .listacts { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-basis: 100%; justify-content: flex-end; }   /* T-016 要件18：操作の並びはいつも2段目に（未読・全件表示で同じ形） */
.listhead .listacts:empty { display: none; }
.listhead .bulk { margin: 0; }
.listhead .bulk button, .listhead .hbtn { min-height: 30px; padding: .1rem .6rem; font-size: .8rem; }
/* T-016 要件15・16：切り替えのリンクもボタンの見た目に */
.listhead .hbtn { display: inline-flex; align-items: center; border: 1px solid #8886; border-radius: 6px; text-decoration: none; color: inherit; white-space: nowrap; }
.rows .more, .rows .end { padding: 1rem .9rem 2rem; text-align: center; font-size: .85rem; }
.rows .more.loading a { visibility: hidden; } .rows .more.loading::after { content: "読み込み中…"; color: var(--muted); }
.empty { padding: 1rem .9rem; }

/* リーダー */
.reader { padding: 1rem 1.25rem 3rem; font-size: var(--fs); max-width: 46rem; }
.reader h1 { font-size: 1.4em; line-height: 1.35; margin: .2rem 0 .4rem; }
.reader h1 a { color: inherit; text-decoration: none; }
.reader .meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.reader .body { overflow-wrap: anywhere; line-height: 1.8; }
.reader .body pre { overflow-x: auto; padding: .75rem; background: #8881; border-radius: 6px; font-size: .85em; line-height: 1.5; }
.reader .body img { max-width: 100%; height: auto; border-radius: 4px; }
.img-alt { color: var(--muted); font-size: .85em; }
.reader audio { width: 100%; margin: .5rem 0; }
.note { border-left: 3px solid #8886; margin: .75rem 0; padding: .25rem .75rem; color: var(--muted); }
.notice { background: #36c2; padding: .5rem .75rem; border-radius: 6px; }
.refetch { display: grid; gap: .5rem; margin: .75rem 0; padding: .75rem; border: 1px dashed #8886; border-radius: 6px; }
.reader-nav { display: flex; justify-content: space-between; padding: .5rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.reader-nav span { display: flex; gap: 1rem; }
.reader-nav .navbtn.off { color: var(--muted); }
.pane { position: relative; }
.pane .close { position: absolute; top: .4rem; right: .5rem; min-height: 32px; padding: 0 .6rem; z-index: 2; }

/* 通知（取り消し） */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: #222; color: #fff; padding: .55rem .9rem;
         border-radius: 8px; display: flex; gap: .8rem; align-items: center; z-index: 50; font-size: .9rem; }
.toast button { color: #8bf; border-color: #8bf6; min-height: 30px; padding: .1rem .6rem; }
.toast[hidden] { display: none; }

/* キー一覧 */
.settings-table th { text-align: left; padding: .5rem 1rem .5rem 0; font-weight: 600; white-space: nowrap; vertical-align: top; }
.settings-table td { padding: .4rem 0; }
/* T-019：一覧の形の管理ページ（フィードの状態・ログイン中の端末）。見出しの列は長い名前を折り返し、行の間に線 */
.settings-table.data th { max-width: 18rem; overflow-wrap: anywhere; white-space: normal; }
.settings-table.data tr + tr th, .settings-table.data tr + tr td { border-top: 1px solid var(--line); }
.settings-table input.wide { width: min(28rem, 62vw); padding: .5rem; font: inherit; }
form.inline { display: inline; margin: 0; }
.keys { border-collapse: collapse; } .keys td, .keys th { padding: .35rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
kbd { border: 1px solid #8886; border-radius: 4px; padding: .05rem .4rem; font-family: ui-monospace, monospace; }

/* ---------- PC（1024px 以上） ---------- */
@media (min-width: 1024px) {
  .bottom { display: none !important; }
  body:not(.nonav) .shell { display: grid; grid-template-columns: var(--nav-w) 1fr; height: 100vh; }
  .side { border-right: 1px solid var(--line); overflow-y: auto; height: 100%; }
  body:not(.nonav) main { overflow: hidden; height: 100%; position: relative; }
  .list { overflow-y: auto; height: 100%; }
  .row .acts { display: none; }                         /* PC はキーボードと選択で操作。行の上にマウスを置くと出る */
  .row:hover .acts, .row.sel .acts { display: flex; }
  /* キーボードで移動している間は、マウスが置かれた行の強調を消す（選んでいる行だけを目立たせる） */
  body.kbd .row:hover:not(.sel) { background: transparent; }
  body.kbd .row:hover:not(.sel) .acts { display: none; }

  /* 3ペイン（左ナビ＋一覧＋本文） */
  body.view-list main { display: grid; grid-template-columns: var(--list-w) 1fr; }
  .list { border-right: 1px solid var(--line); }
  .pane { display: block !important; overflow-y: auto; height: 100%; }
  .pane .close { display: none; }

  .view-reader main { overflow-y: auto; }
  /* T-019 フィードバック1：左ナビつきの単独のページ（設定・フィードの状態など）は、本文の領域でスクロールする */
  body:not(.nonav):not(.view-list) main { overflow-y: auto; }
  /* T-017：操作のボタンを1か所にまとめ、本文ペイン（単独のページは main）の右下に浮かせてスクロールに追従させる。
     本文の幅は変えない（本文の下に置いた要素が、スクロール中は画面の下に張り付く） */
  .reader-acts.float { position: sticky; bottom: .8rem; z-index: 5; display: flex; gap: .35rem; width: max-content;
                       margin: 1.2rem 0 .4rem auto; padding: .3rem; border: 1px solid var(--line); border-radius: 12px;
                       background: var(--bg); box-shadow: 0 4px 14px #0002; }
  .reader-acts.float button { min-height: 34px; padding: .25rem .7rem; }
}

/* ---------- スマホ（1024px 未満） ---------- */
@media (max-width: 1023.98px) {
  .pane { display: none !important; }
  body { padding-bottom: 58px; }
  .side { position: fixed; inset: 0 25% 0 0; background: var(--bg); z-index: 40; overflow-y: auto; transform: translateX(-105%);
          transition: transform .2s; box-shadow: 4px 0 20px #0004; }
  body.menu-open .side { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: #0005; z-index: 39; }
  .bottom { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; display: grid; grid-template-columns: repeat(5, 1fr);
            background: var(--bg); border-top: 1px solid var(--line); z-index: 30; }
  .bottom a, .bottom button { display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit;
                              font-size: .8rem; border: 0; border-radius: 0; min-height: 56px; }
  /* T-016 要件14：下部タブは、ボタンごとに押せる範囲が分かるよう、枠で囲んだ箱にする。選んでいるタブは塗る */
  .bottom { padding: .3rem .25rem; gap: .25rem; }
  .bottom a, .bottom button { min-height: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 0 .2rem; white-space: nowrap; }
  .bottom a:active, .bottom button:active { background: var(--hover); }
  .bottom .on { background: var(--sel); border-color: var(--accent); }
  .bottom .on { color: var(--accent); font-weight: 600; }
  /* T-016 要件13：メニューの文字を少し大きく、押せる高さを広く */
  .side { font-size: 1.08rem; }
  .side .views a, .side .tree summary, .side .tree li > a { display: inline-flex; align-items: center; min-height: 40px; }
  .side .tree summary { display: list-item; padding: .2rem 0; }
  .side .tree li { padding: .1rem 0; }
  .side .tree li li { align-items: center; }
  /* T-027：メニューの中身をセーフエリアの内側に収める。上下の余白は border で取る（scroll する箱の padding は中身と一緒に流れて、
     ステータスバーやホームインジケーターの下に項目が入り込むため。border は流れない） */
  .side { border-top: env(safe-area-inset-top) solid var(--bg); border-bottom: env(safe-area-inset-bottom) solid var(--bg);
          padding-left: calc(.75rem + env(safe-area-inset-left)); }
  /* T-027：「URL を追加」以下も、カテゴリーと同じ文字の大きさと押せる高さにする */
  .side .views.small { font-size: inherit; }
  .side .views.small li a, .side .views.small .linklike { display: flex; align-items: center; min-height: 40px; font-size: inherit; }
  .side .views.small .linklike { width: 100%; padding: 0; text-align: left; }
  .row { padding: .6rem .9rem; }
  .row .acts { display: none; }                         /* スマホは一覧を流し、操作はリーダーで（Feedly アプリの文脈） */
  .row .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* スマホは冒頭つき（採用案 2） */
  .row .title { font-size: 1.02rem; }
  .reader { padding: .75rem 1rem 2rem; }
  .reader-acts { position: sticky; bottom: 62px; background: var(--bg); padding: .4rem 0; }
  /* T-016 要件17：記事の中にあるうちは出さない（JS が画面の下の帯へ移したものだけを出す。移す前に一瞬重なって見えないように） */
  article.reader .reader-acts { display: none; }
  /* T-016：上部の移動はボタンの見た目に（押せる範囲が分かるように） */
  .reader-nav { padding: .5rem .75rem; align-items: center; }
  .reader-nav .navbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border: 1px solid #8886;
                        border-radius: 6px; text-decoration: none; color: inherit; }
  .reader-nav .navbtn:active { background: var(--hover); }
  .reader-nav .navbtn.off { opacity: .4; }
  .reader-nav span { gap: .5rem; }
  /* T-016 要件6：ページャー。今の記事を中央に、左右に前後の記事の端（4vw ずつ）を見せる。横にめくると前後へ */
  .pager { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
           overscroll-behavior-x: contain; align-items: stretch; }   /* 要件10：記事の枠を、下のボタンの帯まで伸ばす */
  .pager::-webkit-scrollbar { display: none; }
  .pg { flex: 0 0 92vw; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; min-height: 60vh; }   /* min-width:0：中身の長い文字列で枠が広がらないように（要件8） */
  .pg-prev, .pg-next { overflow: hidden; opacity: .55; }
  /* 両端の余白は、余白（margin）ではなく幅だけの箱で作る。Safari は、横に流れる入れ物の最後の箱の右の余白をスクロールの範囲に入れず、
     「次へ」で隣の記事が真ん中まで来られずに手前で止まり、確定の時に跳ねていた（T-016 要件20 実機フィードバック4、録画で確認） */
  .pg-pad { flex: 0 0 4vw; }
  .pg { transition: opacity .25s ease; }
  /* T-024：今の記事の枠線は、枠の内側に重ねて描く。外側の影（box-shadow）で描くと、後から重なる半透明の前後の記事
     （opacity で描く順が後になる）の色の帯や文字が線にかぶり、ページャーの縦の切り取りで下の線も切れて、線が欠けて見えた */
  .pg-cur { position: relative; }
  .pg-cur::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; z-index: 2; }
  /* T-024 フィードバック1：サイトの色の線（記事の上端の帯）は、記事のペインの幅しか無く、左右の端で切れ、端からのぞく前後の記事の
     別の色の帯と並んで、めくるたびに「一覧」の左下・「既読」の右下で途切れて見えた。ページャーでは、上の帯（ボタンの並び）の下端に
     画面の幅いっぱいで引き、色は今の記事のものにする（app.js がめくるたびに --cur-key を入れ替える）。ペインの帯は消す */
  body.site-on .pager .reader.site { border-top-color: transparent; }   /* body.site-on .reader.site（帯を引く側）より強く */
  .reader-nav.pg-line { border-bottom: 4px solid var(--cur-key); }
  .pg .reader { max-width: none; }
  .pg-edge { padding: 2rem 1rem; text-align: center; }
  .pg-acts { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom) + var(--pwa-lift)); z-index: 20; background: var(--bg); }
  .pg-acts .reader-acts { position: static; padding: .4rem 1rem; margin: 0; display: flex; gap: .4rem; }
  .pg-acts .reader-acts form { margin: 0; }
  /* 要件11：下の帯は「後で読む／スター／← 前へ／次へ →」。前へ・次へもボタンの見た目に。幅を分け合い、折り返さない */
  .pg-acts .reader-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .pg-acts .reader-acts > * { min-width: 0; }
  .pg-acts .reader-acts button, .pg-acts .navbtn { width: 100%; white-space: nowrap; overflow: hidden; padding: 0 .3rem; justify-content: center; }
  .pg-acts .navbtn { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid #8886; border-radius: 6px;
                     text-decoration: none; color: inherit; }
  .pg-acts .navbtn.off { opacity: .4; }
  .reader-nav form.act { margin: 0; }
  .reader-nav form.act button { min-height: 40px; }
  body:has(.pg-acts) { padding-bottom: calc(110px + env(safe-area-inset-bottom) + var(--pwa-lift)); }
  /* T-016：一覧は行のどこを押しても開く（タイトルだけでなく冒頭の文も） */
  #rows > .row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #rows > .row:active { background: var(--hover); }
  /* ホーム画面から開いたとき（standalone）：画面の下の安全な余白（ホームバー）を避ける */
  .bottom { padding-bottom: calc(.3rem + env(safe-area-inset-bottom) + var(--pwa-lift)); height: calc(56px + env(safe-area-inset-bottom) + var(--pwa-lift)); }
  /* 横向きの iPhone の左右の切り欠きも避ける（T-016 要件19） */
  .bottom { padding-left: calc(.25rem + env(safe-area-inset-left)); padding-right: calc(.25rem + env(safe-area-inset-right)); }
  .pg-acts .reader-acts { padding-left: calc(1rem + env(safe-area-inset-left)); padding-right: calc(1rem + env(safe-area-inset-right)); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom) + var(--pwa-lift)); }
  .reader-acts { bottom: calc(62px + env(safe-area-inset-bottom) + var(--pwa-lift)); }
}
/* サイトごとの色（T-015）。/site-themes.css が .s-<ハッシュ> に --site-key・--site-link（明るい背景用）・--site-link-dk（暗い背景用）を入れる。
   読みやすさの設定の上に薄く重ねるだけ：上の帯、見出しの線、リンク、背景にごく薄い色み。文字の色は変えない */
body.site-on .reader.site { --sl: var(--site-link, var(--accent)); border-top: 4px solid var(--site-key, transparent); padding-top: .6rem; }
/* 背景の色みは、記事ではなく本文を包む要素（PC は本文ペイン、単独のページは main）に付けて、スクロールの範囲いっぱいに広げる */
body.site-on .pane:has(>.pane-body>article.reader.site), body.site-on:has(main>article.reader.site),
body.site-on:has(main>article.reader.site) .reader-acts, body.site-on .pg:has(>article.reader.site),
body.site-on:has(.pg-cur>article.reader.site), body.site-on:has(.pg-cur>article.reader.site) .pg-acts {
  background: color-mix(in srgb, var(--site-key, transparent) 3%, var(--bg)); }
body.site-on .reader.site > h1 { border-left: 4px solid var(--site-key, transparent); padding-left: .5rem; }
body.site-on .reader.site .body a { color: var(--sl); }
body.site-on .sitedot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .35em;
  background: var(--site-key, transparent); vertical-align: middle; }
body:not(.site-on) .sitedot { display: none; }
@media (prefers-color-scheme: dark) {
  body.site-on.theme-default:not(.bg-dim) .reader.site { --sl: var(--site-link-dk, var(--accent)); }
  body.site-on.theme-default:not(.bg-dim) .pane:has(>.pane-body>article.reader.site),
  body.site-on.theme-default:not(.bg-dim):has(main>article.reader.site),
  body.site-on.theme-default:not(.bg-dim):has(.pg-cur>article.reader.site),
  body.site-on.theme-default:not(.bg-dim) .pg:has(>article.reader.site),
  body.site-on.theme-default:not(.bg-dim):has(.pg-cur>article.reader.site) .pg-acts,
  body.site-on.theme-default:not(.bg-dim):has(main>article.reader.site) .reader-acts { background: color-mix(in srgb, var(--site-key, transparent) 2%, var(--bg)); }
}
/* 手動の指定（data/site_themes.json）：フォントの種別と行間 */
body.site-on .reader.site-face-serif { --face: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", "YuMincho", serif; }
body.site-on .reader.site-face-sans { --face: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", sans-serif; }
body.site-on .reader.site-leading-wide .body { line-height: 2.1; }
body.site-on .reader.site-leading-normal .body { line-height: 1.6; }
/* T-018：0件のフィードの数字は出さない（その場で増減するので、要素は残しておく） */
.side .n.zero[data-feed] { display: none; }
/* T-020：読み終わったときの表示（Feedly の All done! 相当） */
.alldone { text-align: center; padding: 3rem 1rem; }
.alldone-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 .4rem; }
.alldone .navbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid #8886; border-radius: 6px;
                   text-decoration: none; color: inherit; }
/* T-016 要件11：幅の狭いスマホ（360px 未満）では、下の帯の左右の余白と文字を少し小さくして4つを収める */
@media (max-width: 359.98px) {
  .pg-acts .reader-acts { padding: .4rem .5rem; gap: .25rem; font-size: .88rem; }
}
/* T-016 要件12：「このカテゴリのすべて」はスマホのメニューだけ（PC はカテゴリ名がリンクのまま） */
@media (min-width: 1024px) { .side .tree li.cat-all { display: none; } }
/* T-016 要件21：ホーム画面から開いたとき（PWA の standalone）だけ、下部タブの下にボタン1つ分（48px）の空きを入れて、
   下部タブと記事のボタンの帯を上げる（下すぎて押しにくいため）。ブラウザで開いたときは 0 のまま */
:root { --pwa-lift: 0px; }
@media (display-mode: standalone) { :root { --pwa-lift: 48px; } }
html.pwa { --pwa-lift: 48px; }   /* iPhone の古い版で display-mode が効かない場合に備えて、JS が navigator.standalone を見て付ける */

/* T-023：管理ページの表（フィードの状態など）は、狭い画面では見出しと中身を縦に積む（名前が1文字ずつ折り返さないように） */
@media (max-width: 640px) {
  .settings-table.data, .settings-table.data tbody, .settings-table.data tr { display: block; }
  .settings-table.data th, .settings-table.data td { display: block; max-width: none; padding: .2rem 0; }
  .settings-table.data tr { padding: .5rem 0; }
  .settings-table.data tr + tr { border-top: 1px solid var(--line); }
  .settings-table.data tr + tr th, .settings-table.data tr + tr td { border-top: 0; }
}

/* T-023 追加の指示1：フィードの状態に URL を出す（長い URL は折り返す） */
.feed-url { overflow-wrap: anywhere; color: var(--muted, inherit); }
