:root {
  --ink: #14213a;
  --muted: #65738a;
  --line: #dfe5ef;
  --line-strong: #cbd5e6;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --accent: #2f61e9;
  --accent-soft: #edf3ff;
  --deep: #101d36;
  --positive: #2265d8;
  --negative: #bd5353;
  --shadow: 0 12px 32px rgba(18, 36, 68, .06);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; background: var(--wash); color: var(--ink); line-height: 1.5; }
.report-full-text { max-width: 900px; margin: 24px auto; line-height: 1.85; }
.report-full-text .report-group { margin: 28px 0; }
.report-table-scroll { max-width: 100%; overflow-x: auto; }
.report-table-scroll table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.report-table-scroll caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.report-table-scroll th, .report-table-scroll td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 130px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #89a8ff; outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; padding: 9px 12px; border-radius: 8px; background: #fff; color: var(--ink); }
.sr-only, #load-status { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

.topbar { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 max(20px, calc((100vw - 1320px) / 2)); background: var(--deep); color: #fff; }
.brand { color: #fff; font-weight: 950; letter-spacing: .08em; text-decoration: none; }
.topbar p { margin: 0; color: #c8d4e8; font-size: .82rem; }
.shell { width: min(100%, 1320px); margin: 0 auto; padding: 22px 24px 64px; }
.app-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -1px -8px 16px; padding: 10px 8px; background: rgba(245, 247, 251, .94); backdrop-filter: blur(12px); }
.main-nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 13px; border-radius: 9px; color: var(--muted); font-size: .88rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.main-nav a.is-active { background: var(--deep); color: #fff; }

.timeline-bar { display: grid; grid-template-columns: 34px minmax(140px, 1fr) 34px 42px; width: 286px; min-height: 42px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(18, 36, 68, .05); }
.timeline-bar button { display: grid; place-items: center; min-height: 42px; padding: 0; border: 0; background: transparent; color: #24344f; cursor: pointer; }
.timeline-bar button:hover:not(:disabled) { background: var(--accent-soft); }
.timeline-bar button:disabled { color: #c8d0dc; cursor: default; }
.timeline-bar .timeline-calendar { border-left: 1px solid var(--line); color: var(--accent); }
.timeline-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#current-slot { display: flex; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 0 8px; overflow: hidden; color: #162642; font-size: .76rem; font-weight: 850; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

dialog { width: min(480px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; color: var(--ink); box-shadow: 0 24px 70px rgba(11, 28, 60, .28); }
dialog::backdrop { background: rgba(11, 28, 60, .38); backdrop-filter: blur(2px); }
dialog form { padding: 20px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 1.1rem; }
.dialog-heading button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #eef2f8; color: var(--ink); font-size: 1.35rem; cursor: pointer; }
.picker-label { margin: 18px 0 7px; color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .04em; }
.calendar-dates, .calendar-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-date, .calendar-slot { min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #31415b; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.calendar-date.is-active, .calendar-slot.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.single-time { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); color: #214cae; font-size: .84rem; font-weight: 850; }

.panel, .report { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow, .card-label { margin: 0 0 6px; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .09em; }
h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 1.8rem); letter-spacing: -.04em; }
h3, h4, p { overflow-wrap: anywhere; }

.home-view { min-width: 0; }
.home-hero { padding: 10px 0 22px; border-bottom: 1px solid var(--line-strong); }
.home-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.055em; }
.home-hero > p:nth-child(3) { max-width: 650px; margin: 10px 0 0; color: var(--muted); }
.home-lead { margin-top: 26px; padding-left: 18px; border-left: 4px solid var(--accent); }
.home-lead article { max-width: 920px; }
.home-lead h2 { margin: 4px 0 7px; font-size: clamp(1.35rem, 2.8vw, 2.2rem); line-height: 1.24; }
.home-lead h2 a { color: var(--ink); text-decoration: none; }
.lead-source, .lead-value, .lead-context { margin: 0; }
.lead-source { color: var(--accent); font-size: .73rem; font-weight: 900; }
.lead-value { color: #31415b; font-size: .86rem; font-weight: 850; }
.lead-context { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.lead-context a { color: #3f5682; }
.home-chart, .home-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.home-chart-tools { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 14px; }
.chart-status { margin: 11px 0 0; color: var(--muted); font-size: .74rem; font-weight: 800; }
#video-lane-status { padding: 0 12px; }
.home-video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-video-list .video-item { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-video-list .thumbnail { width: 96px; height: 54px; }
.home-video-list .video-item.is-top-rank { padding: 13px; border: 1px solid #b7c8ef; border-radius: 13px; background: #f7f9fe; }
.home-video-list .video-item.is-top-rank .item-label { font-size: .78rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { font-size: 1.35rem; }
.section-more { flex: 0 0 auto; color: var(--accent); font-size: .78rem; font-weight: 850; text-decoration: none; }
.home-source-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; margin-top: 10px; }
.home-source-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.home-source-name { grid-row: 1 / 3; margin: 1px 0 0; color: var(--accent); font-size: .7rem; font-weight: 900; }
.home-source-row h3 { margin: 0; font-size: .9rem; line-height: 1.4; }
.home-source-row h3 a { color: var(--ink); text-decoration: none; }
.home-source-meta { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.investigation-story { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); gap: 4px 30px; margin-top: 12px; }
.investigation-story > .card-label, .investigation-story > h3 { grid-column: 1; }
.investigation-story h3 { margin: 0; font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.38; }
.investigation-steps { grid-column: 2; grid-row: 1 / span 4; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: investigation; }
.investigation-steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.investigation-steps strong { color: var(--accent); font-size: .73rem; }
.investigation-steps p { margin: 0; color: #40506a; font-size: .8rem; line-height: 1.55; }
.investigation-steps a { color: var(--accent); font-weight: 800; }
.investigation-note { grid-column: 1; margin: 10px 0 0; color: var(--muted); font-size: .73rem; }
.home-report-preview { margin-top: 12px; }
.home-report-preview article { max-width: 940px; padding: 18px 0 4px; border-top: 3px solid var(--deep); }
.home-report-preview h3 { max-width: 800px; margin: 0; font-size: 1.2rem; }
.home-report-preview article > p:not(.card-label) { max-width: 78ch; margin: 8px 0 0; color: #455570; font-size: .84rem; }
.home-report-link { display: inline-flex; margin-top: 13px; color: var(--accent); font-size: .82rem; font-weight: 900; text-decoration: none; }
.revenue-preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-top: 18px; padding: 16px 18px; border: 1px dashed #b7c3d7; border-radius: 14px; background: #f8faff; }
.revenue-preview p, .revenue-preview span { color: var(--muted); font-size: .72rem; }
.revenue-preview div { display: grid; }
.revenue-preview button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #7b879b; font: inherit; font-size: .74rem; font-weight: 850; }
.preview-state { margin: 0; font-weight: 900; }

#data-view { padding: 0; border: 0; background: transparent; box-shadow: none; }
.source-tabs { display: flex; gap: 2px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px 13px 0 0; background: #fff; scrollbar-width: thin; scrollbar-color: #9aa8c0 transparent; }
.source-tabs::-webkit-scrollbar { height: 6px; }
.source-tab { min-height: 46px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.source-tab.is-active { border-color: var(--accent); color: var(--ink); }
.source-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 9px 12px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.video-format-tabs, .category-tabs, .sort-tabs, .subsource-tabs, .google-sort-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.category-tabs { flex: 1; }
.category-tab, .sort-tab, .subsource-tab { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.category-tab.is-active, .sort-tab.is-active, .subsource-tab.is-active { border-color: var(--accent); background: var(--accent-soft); color: #1b47aa; }
.sort-tabs { margin-left: auto; padding-left: 10px; border-left: 1px solid var(--line); }
.channel-summary { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-top: 0; background: #f9fbff; font-size: .75rem; }
.channel-summary strong { flex: 0 0 auto; }
.channel-summary ul { display: flex; gap: 8px 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); }

.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.source-list.home-video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-item { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.video-item { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: start; }
.thumbnail-link { display: block; align-self: start; }
.video-thumbnail { position: relative; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.video-thumbnail::after { content: "▶"; position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(16, 29, 54, .88); color: #fff; font-size: .65rem; }
.thumbnail { display: block; width: 124px; height: 70px; border-radius: 9px; background: #e8edf6; object-fit: cover; }
.thumbnail-placeholder { display: grid; place-items: center; color: #58709a; font-size: .72rem; font-weight: 700; }
.item-body { min-width: 0; }
.item-label { margin: 0 0 3px; color: var(--accent); font-size: .7rem; font-weight: 900; }
.fact-title { display: -webkit-box; max-height: 2.7rem; margin: 0 0 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .91rem; line-height: 1.35; }
.fact-title a { color: var(--ink); font-weight: 850; text-decoration: none; }
.fact-title a:hover { color: var(--accent); }
.video-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 3px 0 5px; color: var(--accent); font-size: .72rem; font-weight: 850; }
.video-stat { display: inline-flex; align-items: center; gap: 4px; }
.video-stat-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-byline { display: flex; gap: 4px; margin: 0; overflow: hidden; color: var(--muted); font-size: .71rem; white-space: nowrap; }
.video-channel { overflow: hidden; text-overflow: ellipsis; }
.video-published::before { content: "·"; margin-right: 4px; }
.lite-embed { grid-column: 1 / -1; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--deep); }

#source-items > .source-layout, .loading-row, .empty { grid-column: 1 / -1; }
.source-layout { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.news-card { min-width: 0; padding: 13px 15px; border-bottom: 1px solid #e8ecf3; }
.news-card:nth-child(odd) { border-right: 1px solid #e8ecf3; }
.news-card .fact-title { font-size: .86rem; }
.publisher-line { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: var(--muted); font-size: .7rem; font-weight: 750; }
.publisher-line time::before { content: "·"; margin-right: 5px; }
.publisher-icon { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.subsource-tabs, .google-sort-tabs { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.relative-board-heading { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f6f8fc; color: #536278; font-size: .75rem; font-weight: 850; }
.relative-signal-table, .keyword-demand-table, .github-signal-table, .wikimedia-article-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; }
.relative-signal-table, .keyword-demand-table { min-width: 760px; }
.sparkline { letter-spacing: .05em; white-space: nowrap; }
.relative-signal-table th, .relative-signal-table td, .keyword-demand-table th, .keyword-demand-table td, .github-signal-table th, .github-signal-table td, .wikimedia-article-table th, .wikimedia-article-table td { padding: 10px 14px; border-bottom: 1px solid #e8ecf3; }
.relative-signal-table thead th, .keyword-demand-table thead th, .github-signal-table thead th, .wikimedia-article-table thead th { color: var(--muted); font-size: .7rem; }
.relative-signal-table tr.is-highlighted > * { background: #eef4ff; }
.relative-signal-table tr.is-highlighted > th { color: var(--accent); }
.keyword-demand-table tr.is-highlighted > * { background: #eef4ff; }
.keyword-demand-table tr.is-highlighted > th { color: var(--accent); }
.video-item.is-highlighted, .trend-issue-card.is-highlighted { outline: 2px solid #8db5ff; outline-offset: 2px; }
.relative-signal-table th:first-child, .keyword-demand-table th:first-child { width: 46%; }
.is-up { color: var(--positive); font-weight: 900; }
.is-down { color: var(--negative); font-weight: 900; }
.is-flat { color: var(--muted); }
.keyword-demand-table thead button { padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 850; cursor: pointer; }
.keyword-demand-table thead button.is-active { background: var(--accent-soft); color: #224da9; }
.google-trend-issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.google-sort-tabs { grid-column: 1 / -1; }
.trend-issue-card { min-width: 0; padding: 15px; border-bottom: 1px solid var(--line); }
.trend-issue-card:nth-of-type(even) { border-right: 1px solid var(--line); }
.trend-issue-card .item-label { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); }
.trend-value { margin: 0; color: var(--accent); font-size: .79rem; font-weight: 900; }
.trend-related-list { margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.trend-related-list .news-card { padding: 9px 0; border: 0; }
.trend-related-list .news-card + .news-card { border-top: 1px solid #edf0f5; }
.trend-related-list .fact-title { font-size: .77rem; }
.no-related-news { display: grid; place-items: center; min-height: 54px; margin: 10px 0 0; border-top: 1px solid var(--line); color: #8a95a6; font-size: .73rem; }

.market-card, .report-card { margin-top: 14px; }
.pulse-heading { margin-bottom: 12px; }
.pulse-heading h3 { margin: 0; font-size: 1.05rem; }
.pulse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pulse-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid #6e91ef; border-radius: 13px; background: #fff; }
.pulse-card.pulse-shopping_insight { border-top-color: #55a88a; }
.pulse-source { margin: 0 0 5px; color: var(--muted); font-size: .7rem; font-weight: 900; }
.pulse-card h3 { min-height: 2.5em; margin: 0; font-size: .9rem; line-height: 1.35; }
.pulse-scope { margin: 5px 0 0; color: var(--muted); font-size: .69rem; font-weight: 750; }
.pulse-delta { margin: 10px 0 0; font-size: 1.25rem; font-weight: 950; }
.pulse-values { margin: 1px 0 0; color: var(--muted); font-size: .74rem; }
.pulse-detail { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: .73rem; }
.pulse-detail summary { color: #3e4d65; font-weight: 800; cursor: pointer; }
.pulse-detail p { margin: 7px 0 0; }
.fact-link { display: inline-flex; margin-top: 11px; color: var(--accent); font-size: .75rem; font-weight: 850; text-decoration: none; }

.report { margin-top: 0; }
.daily-report-heading { padding: 18px 20px; border: 1px solid #bfd0ff; border-radius: 14px; background: linear-gradient(135deg, #edf3ff, #fff); }
.daily-report-heading h3 { max-width: 900px; margin: 0; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.38; }
.report-summary { max-width: 78ch; margin: 8px 0 0; color: #41506a; font-size: .88rem; line-height: 1.5; }
.report-meta { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }
.daily-briefing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.briefing-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; background: #fff; }
.briefing-card.stance-content_first { border-top-color: #7b68c8; }
.briefing-card.stance-hold { border-top-color: #9aa5b6; }
.briefing-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.briefing-rank { color: var(--accent); font-size: .7rem; font-weight: 950; }
.briefing-stance { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: #234ca9; font-size: .65rem; font-weight: 900; }
.briefing-card h3 { min-height: 2.7em; margin: 10px 0 12px; font-size: 1rem; line-height: 1.35; }
.briefing-conclusion { margin: 0; color: #34435c; font-size: .84rem; line-height: 1.55; }
.briefing-card .claim-sources { margin: 11px 0 0; }
.report-metrics { display: grid; gap: 10px; margin-top: 12px; }
.report-metric-visual { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.report-metric-visual figcaption { color: var(--ink); font-weight: 850; }
.report-metric-range { margin: 0; color: #53627b; }
.report-metric-chart { display: block; width: 100%; height: 96px; overflow: visible; border: 1px solid #dce4f1; border-radius: 8px; background: linear-gradient(180deg, #f8fbff, #fff); }
.report-metric-axis { stroke: #d2ddea; stroke-width: 1; }
.report-metric-line { stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.report-metric-point { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.report-metric-date { fill: #6f7e95; font-size: 8px; font-variant-numeric: tabular-nums; }
.report-metric-raw { border-top: 1px solid var(--line); }
.report-metric-raw summary { padding: 8px 0 6px; color: #53627b; cursor: pointer; font-size: .7rem; font-weight: 800; }
.report-metric-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.report-metric-table th, .report-metric-table td { padding: 5px 6px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.report-metric-table th { color: var(--muted); font-weight: 800; }
.report-metric-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report-details { margin-top: 18px; }
.report-detail-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.report-detail-tab { min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.report-detail-tab.is-active { border-color: var(--accent); color: var(--ink); }
.report-detail-panel { max-width: 78ch; padding: 18px 2px 2px; }
.report-detail-panel .report-group { padding: 0; border: 0; border-radius: 0; }
.report-detail-panel .report-group + .report-group { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.report-detail-panel .report-group > h3 { margin-bottom: 8px; color: var(--accent); font-size: .82rem; }
.report-detail-panel .report-group ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.report-detail-panel .report-claim { display: block; }
.report-detail-panel .report-claim > p { font-size: .82rem; line-height: 1.55; }
.report-detail-panel .claim-sources { margin-top: 3px; }
.daily-report-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.report-group { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.report-group > h3 { margin: 0 0 12px; font-size: 1rem; }
.report-block + .report-block { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.report-block h4 { margin: 0 0 7px; color: var(--accent); font-size: .76rem; }
.report-block ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.report-claim { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: start; }
.report-claim > p { margin: 0; color: #34435c; font-size: .84rem; }
.claim-role { display: inline-flex; align-items: center; min-height: 21px; padding: 0 6px; border-radius: 6px; background: #eef2f8; color: #526278; font-size: .63rem; font-weight: 900; }
.role-recommendation { background: #e8f5ee; color: #20704b; }
.role-hypothesis { background: #fff3e5; color: #9a5c19; }
.claim-sources { grid-column: 2; color: var(--muted) !important; font-size: .69rem !important; }
.claim-sources a { color: #4a65a5; }
.report-source-index { margin-top: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: #f9fbff; }
.report-source-index summary { cursor: pointer; color: var(--ink); font-size: .86rem; font-weight: 800; }
.report-source-index:not([open]) ol { display: none; }
.report-source-index h3 { margin: 0 0 8px; font-size: .86rem; }
.report-source-index ul, .report-source-index ol { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 0; padding-left: 18px; }
.report-source-index li, .report-source-index a { color: #536278; font-size: .73rem; }
.report-blueprints { display: grid; gap: 14px; }
.report-blueprint { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.report-blueprint-kind { margin: 0 0 5px; color: var(--accent); font-size: .68rem; font-weight: 900; }
.report-blueprint h4 { margin: 0; font-size: 1rem; line-height: 1.4; }
.report-blueprint-audience, .report-blueprint-synopsis { margin: 7px 0 0; color: #506078; font-size: .78rem; line-height: 1.5; }
.report-blueprint-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.report-blueprint-meta div { padding: 9px; border-radius: 9px; background: #f1f5fb; }
.report-blueprint-meta dt { color: var(--muted); font-size: .65rem; font-weight: 850; }
.report-blueprint-meta dd { margin: 3px 0 0; color: #34435c; font-size: .73rem; line-height: 1.45; }
.report-blueprint ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.report-blueprint li { padding: 8px 0; color: #34435c; font-size: .76rem; line-height: 1.45; }
.report-blueprint li > p { margin: 3px 0; }
.report-blueprint li > span { color: var(--muted); }
.pulse-availability { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }

.loading-row { min-height: 220px; list-style: none; }
.loading-state { display: grid; align-content: center; justify-items: start; gap: 11px; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #40506a; }
.loading-spinner { width: 24px; height: 24px; border: 3px solid #dce5fa; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton-line { display: block; width: min(420px, 70vw); height: 9px; border-radius: 99px; background: linear-gradient(90deg, #edf1f7, #f8faff, #edf1f7); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-line.short { width: min(250px, 48vw); }
.empty, .empty-state { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 13px; background: #fff; color: var(--muted); }
.empty-state h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.empty-state p { margin: 6px 0 0; font-size: .84rem; }
.report-facts-link { min-height: 38px; margin-top: 13px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (max-width: 900px) {
  .source-list.home-video-list, .home-source-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-chart-tools { align-items: flex-start; flex-wrap: wrap; }
  .home-chart-tools .category-tabs { order: 3; flex-basis: 100%; }
  .investigation-story { grid-template-columns: 1fr; }
  .investigation-steps { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .revenue-preview { grid-template-columns: 1fr 1fr; }
  .revenue-preview div { grid-column: 1 / -1; }
  .pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-briefing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-tools { align-items: flex-start; flex-wrap: wrap; }
  .category-tabs { order: 3; flex-basis: 100%; }
  .sort-tabs { margin-left: auto; }
}

@media (max-width: 680px) {
  .topbar { height: 52px; padding: 0 15px; }
  .topbar p { display: none; }
  .shell { padding: 10px 12px 40px; }
  .app-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; padding-block: 8px; }
  .main-nav { flex-basis: 100%; width: 100%; min-width: 0; }
  .main-nav a { min-height: 39px; padding-inline: 11px; font-size: .82rem; }
  .timeline-bar { flex: 0 1 100%; width: 100%; max-width: 100%; margin-left: 0; }
  .panel, .report { padding: 16px; border-radius: 16px; }
  .source-list, .source-list.home-video-list, .home-source-items, .news-grid, .google-trend-issue-grid, .pulse-grid, .daily-briefing-grid, .daily-report-flow { grid-template-columns: 1fr; }
  .home-hero { padding: 8px 0 18px; }
  .home-chart, .home-block { margin-top: 20px; padding-top: 18px; }
  .home-source-row { grid-template-columns: 78px minmax(0, 1fr); }
  .home-video-list .video-item { grid-template-columns: 104px minmax(0, 1fr); }
  .home-video-list .thumbnail { width: 104px; height: 59px; }
  .revenue-preview { grid-template-columns: 1fr; }
  .revenue-preview div { grid-column: auto; }
  .news-card:nth-child(odd), .trend-issue-card:nth-of-type(even) { border-right: 0; }
  .video-item { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .thumbnail { width: 104px; height: 59px; }
  .source-tools { padding-inline: 8px; }
  .sort-tabs { width: auto; padding-left: 6px; }
  .home-chart-tools .sort-tabs { order: 2; flex-basis: 100%; margin-left: 0; padding-left: 0; border-left: 0; }
  .home-chart-tools .sort-tabs, .home-chart-tools .video-format-tabs, .home-chart-tools .category-tabs { width: 100%; max-width: 100%; padding-bottom: 3px; }
  .investigation-steps li { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .channel-summary { display: block; }
  .channel-summary ul { display: grid; gap: 3px; margin-top: 5px; }
  .relative-signal-table th, .relative-signal-table td, .keyword-demand-table th, .keyword-demand-table td, .github-signal-table th, .github-signal-table td, .wikimedia-article-table th, .wikimedia-article-table td { padding: 9px 8px; font-size: .78rem; }
  .relative-signal-table th:first-child, .keyword-demand-table th:first-child { width: auto; }
  .report-claim { grid-template-columns: 1fr; }
  .claim-role { justify-self: start; }
  .claim-sources { grid-column: 1; }
  .report-source-index ul, .report-source-index ol { display: grid; }
  .briefing-card h3 { min-height: 0; }
  .report-metrics { overflow: visible; }
  .report-metric-table { display: block; width: 100%; }
  .report-metric-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .report-metric-table tbody, .report-metric-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .report-metric-table td { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; text-align: left; white-space: normal; font-size: .72rem; line-height: 1.35; }
  .report-metric-table td::before { content: attr(data-label); color: var(--muted); font-size: .69rem; font-weight: 800; }
  .report-blueprint-meta { grid-template-columns: 1fr; }
  .report-detail-panel { max-width: none; }
}
