/* 生成物 (theme_css.py)。編集は static/css/theme_src/{dark,light}/media.css で行い、python3 theme_css.py で組み立てる。
   ダーク = <html> に data-theme が無い / dark、ライト = data-theme="light" (以前の白いデザイン)。 */

/* ===== ダーク ===== */
:where(html:not([data-theme="light"])) .md, :where(html:not([data-theme="light"])) .md-home {
  --m-bg: #0b0b0d;
  --m-surface: #141417;
  --m-surface-2: #1c1c21;
  --m-surface-3: #26262c;
  --m-ink: #f4f4f6;
  --m-ink-2: #a9a9b4;
  --m-ink-3: #8b8b96;
  --m-line: #2c2c33;
  --m-line-strong: #3a3a43;
  --m-accent: #22d3ee;
  --m-accent-deep: #22d3ee;
  --m-accent-ink: #031418;
  --m-accent-soft: rgba(34, 211, 238, .12);
  --m-up: #34d399;
  --m-down: #fb7185;
  --m-radius: 14px;
  color: var(--m-ink);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(html:not([data-theme="light"])) .md { background: var(--m-bg); padding: 20px 0 56px; overflow-x: clip; }
:where(html:not([data-theme="light"])) .md *, :where(html:not([data-theme="light"])) .md *::before, :where(html:not([data-theme="light"])) .md *::after, :where(html:not([data-theme="light"])) .md-home *, :where(html:not([data-theme="light"])) .md-home *::before, :where(html:not([data-theme="light"])) .md-home *::after { box-sizing: border-box; }
:where(html:not([data-theme="light"])) .md h1, :where(html:not([data-theme="light"])) .md h2, :where(html:not([data-theme="light"])) .md h3, :where(html:not([data-theme="light"])) .md-home h2 { color: var(--m-ink); font-weight: 800; letter-spacing: .01em; line-height: 1.45; margin: 0; }
:where(html:not([data-theme="light"])) .md p { margin: 0; }
:where(html:not([data-theme="light"])) .md ul, :where(html:not([data-theme="light"])) .md ol { margin: 0; }
:where(html:not([data-theme="light"])) .md-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
:where(html:not([data-theme="light"])) .md-wrap--text { max-width: 712px; }   :where(html:not([data-theme="light"])) .md-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .35rem; font-size: .8rem; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .md-crumbs li { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(html:not([data-theme="light"])) .md-crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--m-ink-3); }
html:where(:not([data-theme="light"])) body .md .md-crumbs a[href] { color: var(--m-ink-2); font-weight: 500; }

:where(html:not([data-theme="light"])) .md-head { margin: 18px 0 16px; }
:where(html:not([data-theme="light"])) .md-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 999px; padding: .15rem .7rem; }
:where(html:not([data-theme="light"])) .md-h1 { font-size: clamp(1.5rem, 6vw, 2.1rem); margin-top: .55rem !important; }
:where(html:not([data-theme="light"])) .md-lede { color: var(--m-ink-2); margin-top: .5rem !important; max-width: 42em; font-size: .95rem; line-height: 1.8; }

:where(html:not([data-theme="light"])) .md-tabs { margin: 0 -16px 18px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
:where(html:not([data-theme="light"])) .md-tabs::-webkit-scrollbar { display: none; }
:where(html:not([data-theme="light"])) .md-tabs ul { list-style: none; padding: 0; display: flex; gap: 8px; white-space: nowrap; }
html:where(:not([data-theme="light"])) body .md a.md-tab[href] { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
html:where(:not([data-theme="light"])) body .md a.md-tab[href]:hover { border-color: var(--m-accent); color: var(--m-accent-deep); }
html:where(:not([data-theme="light"])) body .md a.md-tab.is-active[href] { background: var(--m-ink); border-color: var(--m-ink); color: #0b0b0d; }

:where(html:not([data-theme="light"])) .md-chip { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .03em; line-height: 1.5; padding: .1rem .55rem; border-radius: 6px; background: var(--m-accent-soft); color: var(--m-accent-deep); }
:where(html:not([data-theme="light"])) .md-chip--bunko { background: rgba(129, 140, 248, .14); color: #a5b4fc; }
:where(html:not([data-theme="light"])) .md-chip--ln { background: rgba(251, 113, 133, .14); color: #fda4af; }
:where(html:not([data-theme="light"])) .md-chip--anime { background: rgba(251, 146, 60, .14); color: #fdba74; }
:where(html:not([data-theme="light"])) .md-chip--web { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
:where(html:not([data-theme="light"])) .md-chip--howto { background: var(--m-accent-soft); color: var(--m-accent-deep); }
html:where(:not([data-theme="light"])) body .md a.md-chip[href] { text-decoration: none; }
html:where(:not([data-theme="light"])) body .md a.md-chip--bunko[href] { color: #a5b4fc; }
html:where(:not([data-theme="light"])) body .md a.md-chip--ln[href] { color: #fda4af; }
html:where(:not([data-theme="light"])) body .md a.md-chip--anime[href] { color: #fdba74; }
html:where(:not([data-theme="light"])) body .md a.md-chip--web[href] { color: #6ee7b7; }

:where(html:not([data-theme="light"])) .md-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
:where(html:not([data-theme="light"])) .md-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
:where(html:not([data-theme="light"])) .md-card:hover { border-color: var(--m-line-strong); background: var(--m-surface-2); }
html:where(:not([data-theme="light"])) body a.md-card__link[href] { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 16px; color: var(--m-ink); text-decoration: none; height: 100%; }
:where(html:not([data-theme="light"])) .md-card__title { font-size: 1.05rem; font-weight: 800; line-height: 1.55; color: var(--m-ink); }
:where(html:not([data-theme="light"])) .md-card__desc { font-size: .88rem; line-height: 1.75; color: var(--m-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(html:not([data-theme="light"])) .md-card__date { font-size: .78rem; color: var(--m-ink-3); margin-top: auto; }
@media (min-width: 720px) {
  :where(html:not([data-theme="light"])) .md-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }}
@media (min-width: 1000px) {
  :where(html:not([data-theme="light"])) .md-cards { grid-template-columns: repeat(3, 1fr); }
  :where(html:not([data-theme="light"])) .md-cards--compact { grid-template-columns: repeat(3, 1fr); }}
:where(html:not([data-theme="light"])) .md-wrap--text .md-cards--compact { grid-template-columns: 1fr; }

:where(html:not([data-theme="light"])) .md-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 8px; }
html:where(:not([data-theme="light"])) body .md a.md-pager__btn[href] { padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-ink); font-weight: 600; text-decoration: none; }
:where(html:not([data-theme="light"])) .md-pager__now { font-size: .88rem; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .md-empty { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 28px 20px; text-align: center; }
:where(html:not([data-theme="light"])) .md-empty h2 { font-size: 1.2rem; }
:where(html:not([data-theme="light"])) .md-empty p { color: var(--m-ink-2); margin-top: .6rem !important; line-height: 1.8; }
:where(html:not([data-theme="light"])) .md-empty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:where(html:not([data-theme="light"])) .md-feed { margin-top: 24px !important; text-align: center; font-size: .85rem; }

html:where(:not([data-theme="light"])) body a.md-btn[href] { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
html:where(:not([data-theme="light"])) body a.md-btn--primary[href] { background: var(--m-accent); border: 1px solid var(--m-accent); color: var(--m-accent-ink); }
html:where(:not([data-theme="light"])) body a.md-btn--primary[href]:hover { background: #67e8f9; border-color: #67e8f9; color: var(--m-accent-ink); }
html:where(:not([data-theme="light"])) body a.md-btn--ghost[href] { background: var(--m-surface-2); border: 1px solid var(--m-line-strong); color: var(--m-ink); }
html:where(:not([data-theme="light"])) body a.md-btn--ghost[href]:hover { border-color: var(--m-accent); color: var(--m-ink); }
:where(html:not([data-theme="light"])) .md a:focus-visible, :where(html:not([data-theme="light"])) .md-home a:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }

:where(html:not([data-theme="light"])) .md-article { margin-top: 16px; }
:where(html:not([data-theme="light"])) .md-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .md-updated { font-weight: 700; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 6px; padding: .1rem .55rem; }
:where(html:not([data-theme="light"])) .md-article__title { font-size: clamp(1.45rem, 6.2vw, 2rem); line-height: 1.5 !important; margin-top: .7rem !important; }
:where(html:not([data-theme="light"])) .md-byline { font-size: .84rem; color: var(--m-ink-3); margin-top: .5rem !important; }
:where(html:not([data-theme="light"])) .md-byline__note { margin-left: .35rem; }
:where(html:not([data-theme="light"])) .md-figure { margin: 20px 0 0; }
:where(html:not([data-theme="light"])) .md-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--m-line); }
:where(html:not([data-theme="light"])) .md-figure figcaption { font-size: .76rem; color: var(--m-ink-3); margin-top: 6px; }
:where(html:not([data-theme="light"])) .md-lead { font-size: 1.06rem; line-height: 1.95; font-weight: 600; color: var(--m-ink); margin-top: 20px !important; padding: 2px 0 2px 14px; border-left: 3px solid var(--m-accent); }
:where(html:not([data-theme="light"])) .md-toc { margin-top: 24px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; }
:where(html:not([data-theme="light"])) .md-toc__title { font-size: .84rem; font-weight: 800; color: var(--m-ink-2); }
:where(html:not([data-theme="light"])) .md-toc ol { padding-left: 1.3em; margin-top: 6px; font-size: .92rem; line-height: 1.75; }
:where(html:not([data-theme="light"])) .md-toc li + li { margin-top: 4px; }

:where(html:not([data-theme="light"])) .md-part { margin-top: 36px; }
:where(html:not([data-theme="light"])) .md-part__label { display: flex; align-items: center; gap: 10px; font-size: 1.15rem !important; padding-bottom: 10px; border-bottom: 2px solid var(--m-line); }
:where(html:not([data-theme="light"])) .md-part__label span { flex: 0 0 auto; font-size: .78rem; letter-spacing: .1em; padding: .2rem .65rem; border-radius: 6px; color: #0b0b0d; }
:where(html:not([data-theme="light"])) .md-part--fact .md-part__label span { background: var(--m-ink); }
:where(html:not([data-theme="light"])) .md-part--analysis .md-part__label span { background: var(--m-accent-deep); }
:where(html:not([data-theme="light"])) .md-part--analysis { background: rgba(34, 211, 238, .05); border: 1px solid rgba(34, 211, 238, .22); border-radius: var(--m-radius); padding: 18px 16px 6px; }
:where(html:not([data-theme="light"])) .md-part__note { font-size: .84rem; color: var(--m-ink-3); margin-top: 10px !important; }
:where(html:not([data-theme="light"])) .md-sec { scroll-margin-top: 72px; margin-top: 22px; }
:where(html:not([data-theme="light"])) .md-sec h3 { font-size: 1.12rem; line-height: 1.6; }
:where(html:not([data-theme="light"])) .md-sec p, :where(html:not([data-theme="light"])) .md-faq p { font-size: 1.0625rem; line-height: 1.9; color: var(--m-ink); margin-top: .85rem !important; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  :where(html:not([data-theme="light"])) .md-sec p, :where(html:not([data-theme="light"])) .md-faq p { font-size: 1.0625rem; }
  :where(html:not([data-theme="light"])) .md-part--analysis { padding: 22px 24px 10px; }}
:where(html:not([data-theme="light"])) .md-sec .md-sec__src { font-size: .8rem; line-height: 1.7; color: var(--m-ink-3); margin-top: .7rem !important; }

:where(html:not([data-theme="light"])) .md-faq { margin-top: 36px; }
:where(html:not([data-theme="light"])) .md-faq h2, :where(html:not([data-theme="light"])) .md-sources h2, :where(html:not([data-theme="light"])) .md-related h2 { font-size: 1.15rem; padding-bottom: 10px; border-bottom: 2px solid var(--m-line); }
:where(html:not([data-theme="light"])) .md-faq__item { margin-top: 18px; }
:where(html:not([data-theme="light"])) .md-faq__item h3 { font-size: 1rem; }

:where(html:not([data-theme="light"])) .md-cta { margin-top: 36px; background: var(--m-surface); border: 1px solid rgba(34, 211, 238, .35); border-radius: var(--m-radius); padding: 20px 18px; box-shadow: none; }
:where(html:not([data-theme="light"])) .md-cta__kicker { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--m-accent-deep); }
:where(html:not([data-theme="light"])) .md-cta__reason { font-size: .98rem; line-height: 1.8; color: var(--m-ink); margin: .4rem 0 .9rem !important; }

:where(html:not([data-theme="light"])) .md-sources { margin-top: 36px; }
:where(html:not([data-theme="light"])) .md-sources ol { padding-left: 1.3em; margin-top: 12px; font-size: .9rem; line-height: 1.75; }
:where(html:not([data-theme="light"])) .md-sources li + li { margin-top: 8px; }
:where(html:not([data-theme="light"])) .md-sources a { overflow-wrap: anywhere; }
:where(html:not([data-theme="light"])) .md-sources__host { font-size: .78rem; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .md-sources__note { font-size: .8rem; color: var(--m-ink-3); line-height: 1.7; margin-top: 12px !important; }

:where(html:not([data-theme="light"])) .md-related { margin-top: 40px; }
:where(html:not([data-theme="light"])) .md-related .md-cards { margin-top: 14px; }
:where(html:not([data-theme="light"])) .md-back { margin-top: 28px !important; font-size: .9rem; }

:where(html:not([data-theme="light"])) .md-home { max-width: 1040px; margin: 1.6rem auto 0; padding: 0 16px; text-align: left; }
:where(html:not([data-theme="light"])) .md-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
:where(html:not([data-theme="light"])) .md-home h2 { font-size: 1.25rem; }
html:where(:not([data-theme="light"])) body .md-home a.md-home__all[href] { font-size: .88rem; font-weight: 600; white-space: nowrap; }
:where(html:not([data-theme="light"])) .md-home .md-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { :where(html:not([data-theme="light"])) .md-home .md-cards { grid-template-columns: repeat(3, 1fr); }}

@media (prefers-reduced-motion: reduce) {
  :where(html:not([data-theme="light"])) .md-card, :where(html:not([data-theme="light"])) .md a, :where(html:not([data-theme="light"])) .md-home a { transition: none !important; }}

:where(html:not([data-theme="light"])) .tr-updated { display: inline-block; margin-top: .55rem !important; font-weight: 800; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 8px; padding: .15rem .65rem; font-size: .95rem; }
:where(html:not([data-theme="light"])) .tr-muted { color: var(--m-ink-3); font-size: .86rem; }
:where(html:not([data-theme="light"])) .tr-note { color: var(--m-ink-3); font-size: .8rem; line-height: 1.7; margin-top: 8px !important; }
:where(html:not([data-theme="light"])) .tr-switch { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; background: var(--m-surface-2); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
html:where(:not([data-theme="light"])) body .tr a.tr-switch__x, html:where(:not([data-theme="light"])) body .tr-switch a[href] { padding: .4rem .8rem; border-radius: 9px; color: var(--m-ink-2); font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
html:where(:not([data-theme="light"])) body .tr-switch a.is-active[href] { background: var(--m-surface-3); color: var(--m-ink); box-shadow: none; }
:where(html:not([data-theme="light"])) .tr-summary { background: var(--m-surface); border: 1px solid var(--m-line); border-left: 4px solid var(--m-accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
:where(html:not([data-theme="light"])) .tr-summary__label { font-size: .78rem; font-weight: 800; color: var(--m-accent-deep); letter-spacing: .04em; }
:where(html:not([data-theme="light"])) .tr-summary p + p { margin-top: .35rem !important; }
:where(html:not([data-theme="light"])) .tr-summary p:not(.tr-summary__label) { font-size: .98rem; line-height: 1.8; }
:where(html:not([data-theme="light"])) .tr-cards { display: grid; gap: 14px; }
@media (min-width: 820px) { :where(html:not([data-theme="light"])) .tr-cards { grid-template-columns: 1fr 1fr; } :where(html:not([data-theme="light"])) .tr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }}
:where(html:not([data-theme="light"])) .tr-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; }
:where(html:not([data-theme="light"])) .tr-card__title { font-size: 1.15rem; }
:where(html:not([data-theme="light"])) .tr-card h3 { font-size: .92rem; margin-top: 16px !important; color: var(--m-ink-2); }
:where(html:not([data-theme="light"])) .tr-card h3 small { font-weight: 500; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .tr-card__more { margin-top: 14px !important; font-size: .9rem; }
:where(html:not([data-theme="light"])) .tr-detail { margin-top: 8px; }
:where(html:not([data-theme="light"])) .tr-h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--m-line); margin-top: 18px !important; }
:where(html:not([data-theme="light"])) .tr-h3 { font-size: 1.02rem; margin-top: 26px !important; margin-bottom: 10px !important; }
:where(html:not([data-theme="light"])) .tr-bars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
:where(html:not([data-theme="light"])) .tr-bars li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 8px; font-size: .84rem; }
:where(html:not([data-theme="light"])) .tr-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m-ink); }
:where(html:not([data-theme="light"])) .tr-bars__track { height: 10px; background: var(--m-surface-3); border-radius: 999px; overflow: hidden; }
:where(html:not([data-theme="light"])) .tr-bars__fill { display: block; height: 100%; background: var(--m-accent); border-radius: 999px; }
:where(html:not([data-theme="light"])) .tr-bars__fill--ink { background: #8b8b96; }
:where(html:not([data-theme="light"])) .tr-bars__num { font-variant-numeric: tabular-nums; color: var(--m-ink-2); white-space: nowrap; min-width: 4.2em; text-align: right; }
:where(html:not([data-theme="light"])) .tr-delta { font-size: .78em; font-weight: 700; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .tr-delta.is-up { color: var(--m-up); }
:where(html:not([data-theme="light"])) .tr-delta.is-down { color: var(--m-down); }
:where(html:not([data-theme="light"])) .tr-words { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
:where(html:not([data-theme="light"])) .tr-words li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--m-surface-2); border: 1px solid var(--m-line); font-size: .9rem; }
:where(html:not([data-theme="light"])) .tr-words--up li { border-left: 3px solid var(--m-up); }
:where(html:not([data-theme="light"])) .tr-words--down li { border-left: 3px solid var(--m-down); }
:where(html:not([data-theme="light"])) .tr-words__w { font-weight: 800; }
:where(html:not([data-theme="light"])) .tr-words__n { color: var(--m-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(html:not([data-theme="light"])) .tr-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
:where(html:not([data-theme="light"])) .tr-chips li { font-size: .84rem; padding: .25rem .6rem; border-radius: 999px; background: var(--m-surface); border: 1px solid var(--m-line); }
:where(html:not([data-theme="light"])) .tr-chips span { margin-left: .35rem; color: var(--m-ink-3); font-size: .78rem; }
:where(html:not([data-theme="light"])) .tr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 0; }
@media (min-width: 720px) { :where(html:not([data-theme="light"])) .tr-stats { grid-template-columns: repeat(5, 1fr); }}
:where(html:not([data-theme="light"])) .tr-stats div { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 12px; }
:where(html:not([data-theme="light"])) .tr-stats dt { font-size: .74rem; font-weight: 600; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .tr-stats dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }
:where(html:not([data-theme="light"])) .tr-stats dd small { display: block; font-size: .72rem; font-weight: 500; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .tr-works { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
:where(html:not([data-theme="light"])) .tr-works li { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
:where(html:not([data-theme="light"])) .tr-works__rank { font-size: .74rem; font-weight: 800; color: var(--m-accent-deep); }
html:where(:not([data-theme="light"])) body .tr a.tr-works__title[href] { font-weight: 700; color: var(--m-ink); line-height: 1.55; overflow-wrap: anywhere; }
:where(html:not([data-theme="light"])) .tr-works__meta { font-size: .78rem; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .tr-works__ex { font-size: .82rem; color: var(--m-ink-2); line-height: 1.65; }
:where(html:not([data-theme="light"])) .tr-leaders { display: grid; gap: 14px; }
@media (min-width: 820px) { :where(html:not([data-theme="light"])) .tr-leaders { grid-template-columns: 1fr 1fr; }}
:where(html:not([data-theme="light"])) .tr-leaders__name { font-weight: 800; font-size: .9rem; margin-bottom: 6px !important; }
:where(html:not([data-theme="light"])) .tr-failed { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .35); border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.75; }
:where(html:not([data-theme="light"])) .tr-cta { margin-top: 28px; }
:where(html:not([data-theme="light"])) .tr-archive ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; }
:where(html:not([data-theme="light"])) .tr-credit { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--m-line); font-size: .8rem; color: var(--m-ink-3); line-height: 1.75; }
:where(html:not([data-theme="light"])) .tr-credit p + p { margin-top: .4rem !important; }
:where(html:not([data-theme="light"])) .tr-credit strong { color: var(--m-ink-2); }
:where(html:not([data-theme="light"])) .md-chip--award { background: rgba(245, 158, 11, .14); color: #fcd34d; }
:where(html:not([data-theme="light"])) .md-chip--pub { background: var(--m-surface-3); color: var(--m-ink-2); }
html:where(:not([data-theme="light"])) body .md a.md-chip--award[href] { color: #fcd34d; }
html:where(:not([data-theme="light"])) body .md a.md-chip--pub[href] { color: var(--m-ink-2); }

:where(html:not([data-theme="light"])) .aw-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
:where(html:not([data-theme="light"])) .aw-seg { display: inline-flex; padding: 3px; background: var(--m-surface-2); border-radius: 10px; }
html:where(:not([data-theme="light"])) body .aw-seg a[href] { padding: .35rem .75rem; border-radius: 8px; font-size: .86rem; font-weight: 700; color: var(--m-ink-2); text-decoration: none; white-space: nowrap; }
html:where(:not([data-theme="light"])) body .aw-seg a.is-active[href] { background: var(--m-surface-3); color: var(--m-ink); box-shadow: none; }
:where(html:not([data-theme="light"])) .aw-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
html:where(:not([data-theme="light"])) body .aw-kinds a[href] { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-surface); font-size: .82rem; font-weight: 600; color: var(--m-ink-2); text-decoration: none; }
html:where(:not([data-theme="light"])) body .aw-kinds a.is-active[href] { background: var(--m-ink); border-color: var(--m-ink); color: #0b0b0d; }
:where(html:not([data-theme="light"])) .aw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { :where(html:not([data-theme="light"])) .aw-list { grid-template-columns: 1fr 1fr; }}
:where(html:not([data-theme="light"])) .aw-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 72px; }
:where(html:not([data-theme="light"])) .aw-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
:where(html:not([data-theme="light"])) .aw-card__name { font-size: 1.08rem; line-height: 1.5; }
:where(html:not([data-theme="light"])) .aw-card__org { font-size: .8rem; color: var(--m-ink-3); margin-top: 2px !important; }
:where(html:not([data-theme="light"])) .aw-badge { flex: 0 0 auto; font-size: .78rem; font-weight: 800; padding: .2rem .55rem; border-radius: 8px; background: var(--m-accent-soft); color: var(--m-accent-deep); white-space: nowrap; }
:where(html:not([data-theme="light"])) .aw-badge.is-soon { background: rgba(244, 63, 94, .14); color: #fda4af; }
:where(html:not([data-theme="light"])) .aw-badge.is-past { background: var(--m-surface-3); color: var(--m-ink-2); }
:where(html:not([data-theme="light"])) .aw-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
:where(html:not([data-theme="light"])) .aw-dates div { background: var(--m-surface-2); border: 1px solid var(--m-line); border-radius: 9px; padding: 7px 10px; }
:where(html:not([data-theme="light"])) .aw-dates dt { font-size: .72rem; color: var(--m-ink-3); font-weight: 600; }
:where(html:not([data-theme="light"])) .aw-dates dd { margin: 0; font-weight: 800; font-size: .95rem; }
:where(html:not([data-theme="light"])) .aw-card p { font-size: .88rem; line-height: 1.75; }
:where(html:not([data-theme="light"])) .aw-label { font-weight: 800; color: var(--m-ink-2); margin-right: .3rem; }
:where(html:not([data-theme="light"])) .aw-ai { background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .3); border-radius: 9px; padding: 8px 10px; }
:where(html:not([data-theme="light"])) .aw-src { font-size: .76rem !important; color: var(--m-ink-3); }
:where(html:not([data-theme="light"])) .aw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
html:where(:not([data-theme="light"])) body a.md-btn--sm[href] { min-height: 40px; padding: .45rem .9rem; font-size: .88rem; }

/* ===== ライト (以前の白いデザイン) ===== */
:where(html[data-theme="light"]) .md, :where(html[data-theme="light"]) .md-home {
  --m-bg: #f6f7f9;
  --m-surface: #ffffff;
  --m-ink: #1d2430;
  --m-ink-2: #4a5462;
  --m-ink-3: #6b7583;
  --m-line: #e3e7ec;
  --m-accent: #1f9bb8;
  --m-accent-deep: #157e97;
  --m-accent-soft: #e6f5f9;
  --m-radius: 14px;
  color: var(--m-ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(html[data-theme="light"]) .md { background: var(--m-bg); padding: 20px 0 56px; overflow-x: clip; }
:where(html[data-theme="light"]) .md *, :where(html[data-theme="light"]) .md *::before, :where(html[data-theme="light"]) .md *::after, :where(html[data-theme="light"]) .md-home *, :where(html[data-theme="light"]) .md-home *::before, :where(html[data-theme="light"]) .md-home *::after { box-sizing: border-box; }
:where(html[data-theme="light"]) .md h1, :where(html[data-theme="light"]) .md h2, :where(html[data-theme="light"]) .md h3, :where(html[data-theme="light"]) .md-home h2 { color: var(--m-ink); font-weight: 800; letter-spacing: .01em; line-height: 1.45; margin: 0; }
:where(html[data-theme="light"]) .md p { margin: 0; }
:where(html[data-theme="light"]) .md ul, :where(html[data-theme="light"]) .md ol { margin: 0; }
:where(html[data-theme="light"]) .md-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
:where(html[data-theme="light"]) .md-wrap--text { max-width: 712px; }   :where(html[data-theme="light"]) .md-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .35rem; font-size: .8rem; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .md-crumbs li { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(html[data-theme="light"]) .md-crumbs li + li::before { content: "›"; margin-right: .35rem; color: #b3bac4; }
html:where([data-theme="light"]) body .md .md-crumbs a[href] { color: var(--m-ink-2); font-weight: 500; }

:where(html[data-theme="light"]) .md-head { margin: 18px 0 16px; }
:where(html[data-theme="light"]) .md-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 999px; padding: .15rem .7rem; }
:where(html[data-theme="light"]) .md-h1 { font-size: clamp(1.5rem, 6vw, 2.1rem); margin-top: .55rem !important; }
:where(html[data-theme="light"]) .md-lede { color: var(--m-ink-2); margin-top: .5rem !important; max-width: 42em; font-size: .95rem; line-height: 1.8; }

:where(html[data-theme="light"]) .md-tabs { margin: 0 -16px 18px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
:where(html[data-theme="light"]) .md-tabs::-webkit-scrollbar { display: none; }
:where(html[data-theme="light"]) .md-tabs ul { list-style: none; padding: 0; display: flex; gap: 8px; white-space: nowrap; }
html:where([data-theme="light"]) body .md a.md-tab[href] { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
html:where([data-theme="light"]) body .md a.md-tab[href]:hover { border-color: var(--m-accent); color: var(--m-accent-deep); }
html:where([data-theme="light"]) body .md a.md-tab.is-active[href] { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }

:where(html[data-theme="light"]) .md-chip { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .03em; line-height: 1.5; padding: .1rem .55rem; border-radius: 6px; background: var(--m-accent-soft); color: var(--m-accent-deep); }
:where(html[data-theme="light"]) .md-chip--bunko { background: #ecedf8; color: #3f4a93; }
:where(html[data-theme="light"]) .md-chip--ln { background: #fcecef; color: #b23c55; }
:where(html[data-theme="light"]) .md-chip--anime { background: #fdf0e3; color: #a8561a; }
:where(html[data-theme="light"]) .md-chip--web { background: #e7f6ee; color: #1f7a4d; }
:where(html[data-theme="light"]) .md-chip--howto { background: var(--m-accent-soft); color: var(--m-accent-deep); }
html:where([data-theme="light"]) body .md a.md-chip[href] { text-decoration: none; }
html:where([data-theme="light"]) body .md a.md-chip--bunko[href] { color: #3f4a93; }
html:where([data-theme="light"]) body .md a.md-chip--ln[href] { color: #b23c55; }
html:where([data-theme="light"]) body .md a.md-chip--anime[href] { color: #a8561a; }
html:where([data-theme="light"]) body .md a.md-chip--web[href] { color: #1f7a4d; }

:where(html[data-theme="light"]) .md-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
:where(html[data-theme="light"]) .md-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); box-shadow: 0 1px 2px rgba(20,30,45,.04); transition: border-color .15s, box-shadow .15s; }
:where(html[data-theme="light"]) .md-card:hover { border-color: #c9d2dc; box-shadow: 0 6px 20px rgba(20,30,45,.07); }
html:where([data-theme="light"]) body a.md-card__link[href] { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 16px; color: var(--m-ink); text-decoration: none; height: 100%; }
:where(html[data-theme="light"]) .md-card__title { font-size: 1.05rem; font-weight: 800; line-height: 1.55; color: var(--m-ink); }
:where(html[data-theme="light"]) .md-card__desc { font-size: .88rem; line-height: 1.75; color: var(--m-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(html[data-theme="light"]) .md-card__date { font-size: .78rem; color: var(--m-ink-3); margin-top: auto; }
@media (min-width: 720px) {
  :where(html[data-theme="light"]) .md-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }}
@media (min-width: 1000px) {
  :where(html[data-theme="light"]) .md-cards { grid-template-columns: repeat(3, 1fr); }
  :where(html[data-theme="light"]) .md-cards--compact { grid-template-columns: repeat(3, 1fr); }}
:where(html[data-theme="light"]) .md-wrap--text .md-cards--compact { grid-template-columns: 1fr; }

:where(html[data-theme="light"]) .md-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 8px; }
html:where([data-theme="light"]) body .md a.md-pager__btn[href] { padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-ink); font-weight: 600; text-decoration: none; }
:where(html[data-theme="light"]) .md-pager__now { font-size: .88rem; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .md-empty { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 28px 20px; text-align: center; }
:where(html[data-theme="light"]) .md-empty h2 { font-size: 1.2rem; }
:where(html[data-theme="light"]) .md-empty p { color: var(--m-ink-2); margin-top: .6rem !important; line-height: 1.8; }
:where(html[data-theme="light"]) .md-empty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:where(html[data-theme="light"]) .md-feed { margin-top: 24px !important; text-align: center; font-size: .85rem; }

html:where([data-theme="light"]) body a.md-btn[href] { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
html:where([data-theme="light"]) body a.md-btn--primary[href] { background: var(--m-accent); border: 1px solid var(--m-accent); color: #fff; }
html:where([data-theme="light"]) body a.md-btn--primary[href]:hover { background: var(--m-accent-deep); border-color: var(--m-accent-deep); color: #fff; }
html:where([data-theme="light"]) body a.md-btn--ghost[href] { background: var(--m-surface); border: 1px solid var(--m-line); color: var(--m-ink); }
html:where([data-theme="light"]) body a.md-btn--ghost[href]:hover { border-color: var(--m-accent); color: var(--m-accent-deep); }
:where(html[data-theme="light"]) .md a:focus-visible, :where(html[data-theme="light"]) .md-home a:focus-visible { outline: 3px solid rgba(31,155,184,.35); outline-offset: 2px; }

:where(html[data-theme="light"]) .md-article { margin-top: 16px; }
:where(html[data-theme="light"]) .md-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .md-updated { font-weight: 700; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 6px; padding: .1rem .55rem; }
:where(html[data-theme="light"]) .md-article__title { font-size: clamp(1.45rem, 6.2vw, 2rem); line-height: 1.5 !important; margin-top: .7rem !important; }
:where(html[data-theme="light"]) .md-byline { font-size: .84rem; color: var(--m-ink-3); margin-top: .5rem !important; }
:where(html[data-theme="light"]) .md-byline__note { margin-left: .35rem; }
:where(html[data-theme="light"]) .md-figure { margin: 20px 0 0; }
:where(html[data-theme="light"]) .md-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--m-line); }
:where(html[data-theme="light"]) .md-figure figcaption { font-size: .76rem; color: var(--m-ink-3); margin-top: 6px; }
:where(html[data-theme="light"]) .md-lead { font-size: 1.06rem; line-height: 1.95; font-weight: 600; color: var(--m-ink); margin-top: 20px !important; padding: 2px 0 2px 14px; border-left: 3px solid var(--m-accent); }
:where(html[data-theme="light"]) .md-toc { margin-top: 24px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; }
:where(html[data-theme="light"]) .md-toc__title { font-size: .84rem; font-weight: 800; color: var(--m-ink-2); }
:where(html[data-theme="light"]) .md-toc ol { padding-left: 1.3em; margin-top: 6px; font-size: .92rem; line-height: 1.75; }
:where(html[data-theme="light"]) .md-toc li + li { margin-top: 4px; }

:where(html[data-theme="light"]) .md-part { margin-top: 36px; }
:where(html[data-theme="light"]) .md-part__label { display: flex; align-items: center; gap: 10px; font-size: 1.15rem !important; padding-bottom: 10px; border-bottom: 2px solid var(--m-line); }
:where(html[data-theme="light"]) .md-part__label span { flex: 0 0 auto; font-size: .78rem; letter-spacing: .1em; padding: .2rem .65rem; border-radius: 6px; color: #fff; }
:where(html[data-theme="light"]) .md-part--fact .md-part__label span { background: var(--m-ink); }
:where(html[data-theme="light"]) .md-part--analysis .md-part__label span { background: var(--m-accent-deep); }
:where(html[data-theme="light"]) .md-part--analysis { background: #f1f8fa; border: 1px solid #d6ebf1; border-radius: var(--m-radius); padding: 18px 16px 6px; }
:where(html[data-theme="light"]) .md-part__note { font-size: .84rem; color: var(--m-ink-3); margin-top: 10px !important; }
:where(html[data-theme="light"]) .md-sec { scroll-margin-top: 72px; margin-top: 22px; }
:where(html[data-theme="light"]) .md-sec h3 { font-size: 1.12rem; line-height: 1.6; }
:where(html[data-theme="light"]) .md-sec p, :where(html[data-theme="light"]) .md-faq p { font-size: 1.0625rem; line-height: 1.9; color: var(--m-ink); margin-top: .85rem !important; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  :where(html[data-theme="light"]) .md-sec p, :where(html[data-theme="light"]) .md-faq p { font-size: 1.0625rem; }
  :where(html[data-theme="light"]) .md-part--analysis { padding: 22px 24px 10px; }}
:where(html[data-theme="light"]) .md-sec .md-sec__src { font-size: .8rem; line-height: 1.7; color: var(--m-ink-3); margin-top: .7rem !important; }

:where(html[data-theme="light"]) .md-faq { margin-top: 36px; }
:where(html[data-theme="light"]) .md-faq h2, :where(html[data-theme="light"]) .md-sources h2, :where(html[data-theme="light"]) .md-related h2 { font-size: 1.15rem; padding-bottom: 10px; border-bottom: 2px solid var(--m-line); }
:where(html[data-theme="light"]) .md-faq__item { margin-top: 18px; }
:where(html[data-theme="light"]) .md-faq__item h3 { font-size: 1rem; }

:where(html[data-theme="light"]) .md-cta { margin-top: 36px; background: var(--m-surface); border: 1px solid #cbe9f1; border-radius: var(--m-radius); padding: 20px 18px; box-shadow: 0 6px 22px rgba(31,155,184,.10); }
:where(html[data-theme="light"]) .md-cta__kicker { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--m-accent-deep); }
:where(html[data-theme="light"]) .md-cta__reason { font-size: .98rem; line-height: 1.8; color: var(--m-ink); margin: .4rem 0 .9rem !important; }

:where(html[data-theme="light"]) .md-sources { margin-top: 36px; }
:where(html[data-theme="light"]) .md-sources ol { padding-left: 1.3em; margin-top: 12px; font-size: .9rem; line-height: 1.75; }
:where(html[data-theme="light"]) .md-sources li + li { margin-top: 8px; }
:where(html[data-theme="light"]) .md-sources a { overflow-wrap: anywhere; }
:where(html[data-theme="light"]) .md-sources__host { font-size: .78rem; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .md-sources__note { font-size: .8rem; color: var(--m-ink-3); line-height: 1.7; margin-top: 12px !important; }

:where(html[data-theme="light"]) .md-related { margin-top: 40px; }
:where(html[data-theme="light"]) .md-related .md-cards { margin-top: 14px; }
:where(html[data-theme="light"]) .md-back { margin-top: 28px !important; font-size: .9rem; }

:where(html[data-theme="light"]) .md-home { max-width: 1040px; margin: 1.6rem auto 0; padding: 0 16px; text-align: left; }
:where(html[data-theme="light"]) .md-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
:where(html[data-theme="light"]) .md-home h2 { font-size: 1.25rem; }
html:where([data-theme="light"]) body .md-home a.md-home__all[href] { font-size: .88rem; font-weight: 600; white-space: nowrap; }
:where(html[data-theme="light"]) .md-home .md-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { :where(html[data-theme="light"]) .md-home .md-cards { grid-template-columns: repeat(3, 1fr); }}

@media (prefers-reduced-motion: reduce) {
  :where(html[data-theme="light"]) .md-card, :where(html[data-theme="light"]) .md a, :where(html[data-theme="light"]) .md-home a { transition: none !important; }}

:where(html[data-theme="light"]) .tr-updated { display: inline-block; margin-top: .55rem !important; font-weight: 800; color: var(--m-accent-deep); background: var(--m-accent-soft); border-radius: 8px; padding: .15rem .65rem; font-size: .95rem; }
:where(html[data-theme="light"]) .tr-muted { color: var(--m-ink-3); font-size: .86rem; }
:where(html[data-theme="light"]) .tr-note { color: var(--m-ink-3); font-size: .8rem; line-height: 1.7; margin-top: 8px !important; }
:where(html[data-theme="light"]) .tr-switch { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; background: #eceff3; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
html:where([data-theme="light"]) body .tr a.tr-switch__x, html:where([data-theme="light"]) body .tr-switch a[href] { padding: .4rem .8rem; border-radius: 9px; color: var(--m-ink-2); font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
html:where([data-theme="light"]) body .tr-switch a.is-active[href] { background: var(--m-surface); color: var(--m-ink); box-shadow: 0 1px 3px rgba(20,30,45,.1); }
:where(html[data-theme="light"]) .tr-summary { background: var(--m-surface); border: 1px solid #cbe9f1; border-left: 4px solid var(--m-accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
:where(html[data-theme="light"]) .tr-summary__label { font-size: .78rem; font-weight: 800; color: var(--m-accent-deep); letter-spacing: .04em; }
:where(html[data-theme="light"]) .tr-summary p + p { margin-top: .35rem !important; }
:where(html[data-theme="light"]) .tr-summary p:not(.tr-summary__label) { font-size: .98rem; line-height: 1.8; }
:where(html[data-theme="light"]) .tr-cards { display: grid; gap: 14px; }
@media (min-width: 820px) { :where(html[data-theme="light"]) .tr-cards { grid-template-columns: 1fr 1fr; } :where(html[data-theme="light"]) .tr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }}
:where(html[data-theme="light"]) .tr-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; }
:where(html[data-theme="light"]) .tr-card__title { font-size: 1.15rem; }
:where(html[data-theme="light"]) .tr-card h3 { font-size: .92rem; margin-top: 16px !important; color: var(--m-ink-2); }
:where(html[data-theme="light"]) .tr-card h3 small { font-weight: 500; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .tr-card__more { margin-top: 14px !important; font-size: .9rem; }
:where(html[data-theme="light"]) .tr-detail { margin-top: 8px; }
:where(html[data-theme="light"]) .tr-h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--m-line); margin-top: 18px !important; }
:where(html[data-theme="light"]) .tr-h3 { font-size: 1.02rem; margin-top: 26px !important; margin-bottom: 10px !important; }
:where(html[data-theme="light"]) .tr-bars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
:where(html[data-theme="light"]) .tr-bars li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 8px; font-size: .84rem; }
:where(html[data-theme="light"]) .tr-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m-ink); }
:where(html[data-theme="light"]) .tr-bars__track { height: 10px; background: #eef1f4; border-radius: 999px; overflow: hidden; }
:where(html[data-theme="light"]) .tr-bars__fill { display: block; height: 100%; background: var(--m-accent); border-radius: 999px; }
:where(html[data-theme="light"]) .tr-bars__fill--ink { background: #5b6675; }
:where(html[data-theme="light"]) .tr-bars__num { font-variant-numeric: tabular-nums; color: var(--m-ink-2); white-space: nowrap; min-width: 4.2em; text-align: right; }
:where(html[data-theme="light"]) .tr-delta { font-size: .78em; font-weight: 700; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .tr-delta.is-up { color: #1f7a4d; }
:where(html[data-theme="light"]) .tr-delta.is-down { color: #b23c55; }
:where(html[data-theme="light"]) .tr-words { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
:where(html[data-theme="light"]) .tr-words li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #f7f9fb; border: 1px solid var(--m-line); font-size: .9rem; }
:where(html[data-theme="light"]) .tr-words--up li { border-left: 3px solid #1f7a4d; }
:where(html[data-theme="light"]) .tr-words--down li { border-left: 3px solid #b23c55; }
:where(html[data-theme="light"]) .tr-words__w { font-weight: 800; }
:where(html[data-theme="light"]) .tr-words__n { color: var(--m-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(html[data-theme="light"]) .tr-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
:where(html[data-theme="light"]) .tr-chips li { font-size: .84rem; padding: .25rem .6rem; border-radius: 999px; background: var(--m-surface); border: 1px solid var(--m-line); }
:where(html[data-theme="light"]) .tr-chips span { margin-left: .35rem; color: var(--m-ink-3); font-size: .78rem; }
:where(html[data-theme="light"]) .tr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 0; }
@media (min-width: 720px) { :where(html[data-theme="light"]) .tr-stats { grid-template-columns: repeat(5, 1fr); }}
:where(html[data-theme="light"]) .tr-stats div { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 12px; }
:where(html[data-theme="light"]) .tr-stats dt { font-size: .74rem; font-weight: 600; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .tr-stats dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }
:where(html[data-theme="light"]) .tr-stats dd small { display: block; font-size: .72rem; font-weight: 500; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .tr-works { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
:where(html[data-theme="light"]) .tr-works li { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
:where(html[data-theme="light"]) .tr-works__rank { font-size: .74rem; font-weight: 800; color: var(--m-accent-deep); }
html:where([data-theme="light"]) body .tr a.tr-works__title[href] { font-weight: 700; color: var(--m-ink); line-height: 1.55; overflow-wrap: anywhere; }
:where(html[data-theme="light"]) .tr-works__meta { font-size: .78rem; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .tr-works__ex { font-size: .82rem; color: var(--m-ink-2); line-height: 1.65; }
:where(html[data-theme="light"]) .tr-leaders { display: grid; gap: 14px; }
@media (min-width: 820px) { :where(html[data-theme="light"]) .tr-leaders { grid-template-columns: 1fr 1fr; }}
:where(html[data-theme="light"]) .tr-leaders__name { font-weight: 800; font-size: .9rem; margin-bottom: 6px !important; }
:where(html[data-theme="light"]) .tr-failed { background: #fff7f2; border: 1px solid #f3d5c4; border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.75; }
:where(html[data-theme="light"]) .tr-cta { margin-top: 28px; }
:where(html[data-theme="light"]) .tr-archive ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; }
:where(html[data-theme="light"]) .tr-credit { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--m-line); font-size: .8rem; color: var(--m-ink-3); line-height: 1.75; }
:where(html[data-theme="light"]) .tr-credit p + p { margin-top: .4rem !important; }
:where(html[data-theme="light"]) .tr-credit strong { color: var(--m-ink-2); }
:where(html[data-theme="light"]) .md-chip--award { background: #f6efe1; color: #8a5a00; }
:where(html[data-theme="light"]) .md-chip--pub { background: #eef0f3; color: #3d4756; }
html:where([data-theme="light"]) body .md a.md-chip--award[href] { color: #8a5a00; }
html:where([data-theme="light"]) body .md a.md-chip--pub[href] { color: #3d4756; }

:where(html[data-theme="light"]) .aw-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
:where(html[data-theme="light"]) .aw-seg { display: inline-flex; padding: 3px; background: #eceff3; border-radius: 10px; }
html:where([data-theme="light"]) body .aw-seg a[href] { padding: .35rem .75rem; border-radius: 8px; font-size: .86rem; font-weight: 700; color: var(--m-ink-2); text-decoration: none; white-space: nowrap; }
html:where([data-theme="light"]) body .aw-seg a.is-active[href] { background: var(--m-surface); color: var(--m-ink); box-shadow: 0 1px 3px rgba(20,30,45,.1); }
:where(html[data-theme="light"]) .aw-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
html:where([data-theme="light"]) body .aw-kinds a[href] { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-surface); font-size: .82rem; font-weight: 600; color: var(--m-ink-2); text-decoration: none; }
html:where([data-theme="light"]) body .aw-kinds a.is-active[href] { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
:where(html[data-theme="light"]) .aw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { :where(html[data-theme="light"]) .aw-list { grid-template-columns: 1fr 1fr; }}
:where(html[data-theme="light"]) .aw-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 72px; }
:where(html[data-theme="light"]) .aw-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
:where(html[data-theme="light"]) .aw-card__name { font-size: 1.08rem; line-height: 1.5; }
:where(html[data-theme="light"]) .aw-card__org { font-size: .8rem; color: var(--m-ink-3); margin-top: 2px !important; }
:where(html[data-theme="light"]) .aw-badge { flex: 0 0 auto; font-size: .78rem; font-weight: 800; padding: .2rem .55rem; border-radius: 8px; background: var(--m-accent-soft); color: var(--m-accent-deep); white-space: nowrap; }
:where(html[data-theme="light"]) .aw-badge.is-soon { background: #fdecec; color: #b8473f; }
:where(html[data-theme="light"]) .aw-badge.is-past { background: #eef0f3; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .aw-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
:where(html[data-theme="light"]) .aw-dates div { background: #f7f9fb; border: 1px solid var(--m-line); border-radius: 9px; padding: 7px 10px; }
:where(html[data-theme="light"]) .aw-dates dt { font-size: .72rem; color: var(--m-ink-3); font-weight: 600; }
:where(html[data-theme="light"]) .aw-dates dd { margin: 0; font-weight: 800; font-size: .95rem; }
:where(html[data-theme="light"]) .aw-card p { font-size: .88rem; line-height: 1.75; }
:where(html[data-theme="light"]) .aw-label { font-weight: 800; color: var(--m-ink-2); margin-right: .3rem; }
:where(html[data-theme="light"]) .aw-ai { background: #f1f8fa; border: 1px solid #d6ebf1; border-radius: 9px; padding: 8px 10px; }
:where(html[data-theme="light"]) .aw-src { font-size: .76rem !important; color: var(--m-ink-3); }
:where(html[data-theme="light"]) .aw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
html:where([data-theme="light"]) body a.md-btn--sm[href] { min-height: 40px; padding: .45rem .9rem; font-size: .88rem; }
