:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-alt: #eceee9;
  --ink: #121412;
  --muted: #697069;
  --line: #d9ddd6;
  --line-strong: #b9c0b6;
  --lime: #b7ff35;
  --lime-deep: #5f9100;
  --coral: #ff6b4a;
  --blue: #4a78ff;
  --amber: #f2b84b;
  --shadow: 0 12px 35px rgba(18, 20, 18, .07);
  --max: 1440px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111310;
  --surface: #181b17;
  --surface-alt: #22261f;
  --ink: #f1f3ee;
  --muted: #9fa69c;
  --line: #30352e;
  --line-strong: #474e44;
  --lime-deep: #b7ff35;
  --shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.github-link svg { fill: currentColor; stroke: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 99; padding: 8px 12px; background: var(--ink); color: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 11px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 17px; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font: 700 9px/1 Inter, sans-serif; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; padding: 7px; display: flex; align-items: end; gap: 3px; background: var(--ink); border-radius: 4px; }
.brand-mark i { flex: 1; display: block; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 55%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; }
.desktop-nav { align-self: stretch; display: flex; gap: 34px; }
.desktop-nav a { display: grid; place-items: center; color: var(--muted); font-weight: 650; position: relative; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { content: ""; height: 3px; position: absolute; inset: auto 0 -1px; background: var(--lime-deep); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.icon-button:hover { background: var(--surface-alt); border-color: var(--line-strong); }
.github-link { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--surface); border-radius: 4px; font-weight: 700; }
.status-strip { height: 34px; padding: 0 max(24px, calc((100% - var(--max)) / 2)); display: flex; align-items: center; gap: 9px; background: var(--ink); color: #eef1eb; font-size: 11px; font-weight: 650; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(183,255,53,.13); }
.status-divider { width: 1px; height: 12px; background: #51564f; }
.status-spacer { flex: 1; }
main { max-width: var(--max); margin: 0 auto; padding: 46px 24px 80px; }
.briefing-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 7px; color: var(--lime-deep); font: 800 10px/1.2 Inter, sans-serif; letter-spacing: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: 0; }
.lede { margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.date-control { display: flex; align-items: center; gap: 8px; }
.range-label { min-width: 148px; height: 40px; padding: 0 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-weight: 700; cursor: pointer; }
.control-bar { min-height: 60px; display: flex; align-items: center; gap: 18px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); }
.segmented { display: flex; padding: 3px; background: var(--surface-alt); border-radius: 4px; }
.segmented button { width: 44px; height: 34px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: #111; background: var(--lime); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ai-segmented button { width: auto; min-width: 70px; padding: 0 10px; }
.category-filters { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filters button { height: 34px; padding: 0 11px; border: 1px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; cursor: pointer; border-radius: 3px; }
.category-filters button:hover, .category-filters button.active { color: var(--ink); border-color: var(--line); background: var(--bg); }
.filter-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; }
.filter-dot.industry { background: var(--lime-deep); } .filter-dot.agent { background: var(--blue); }
.filter-dot.release { background: var(--coral); } .filter-dot.benchmark { background: var(--amber); }
select { height: 36px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.search-panel { margin-top: 12px; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.search-panel[hidden] { display: none; }
.search-panel input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-panel > svg { color: var(--muted); }
.search-panel .icon-button { border: 0; }
.overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 22px 0 42px; border: 1px solid var(--line); background: var(--line); }
.metric { min-height: 116px; padding: 20px 22px; display: flex; flex-direction: column; background: var(--surface); }

.metric > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric strong { margin: 5px 0 2px; font: 800 32px/1.1 Inter, sans-serif; }
.metric small { color: var(--muted); font-size: 11px; }
.metric.top-topic { background: var(--ink); color: var(--surface); }
.metric.top-topic > span, .metric.top-topic small { color: #abb1a8; }
.metric.top-topic strong { color: var(--lime); font-size: 23px; }
.metric.distribution strong { max-width: 190px; font-size: 13px; line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 54px; align-items: start; }
.section-heading { min-height: 48px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); }
.section-heading h2 { margin: 0 0 13px; font-size: 22px; line-height: 1.2; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.section-heading.compact { min-height: 45px; }
.section-heading.compact h2 { font-size: 18px; }
.feed-list { min-height: 220px; }
.feed-item { --cat: var(--lime-deep); display: grid; grid-template-columns: 18px minmax(0, 1fr); padding-top: 25px; }
.feed-item[data-category="agent"] { --cat: var(--blue); }
.feed-item[data-category="release"] { --cat: var(--coral); }
.feed-item[data-category="benchmark"] { --cat: var(--amber); }
.item-rail { display: flex; flex-direction: column; align-items: start; }
.category-mark { width: 9px; height: 9px; margin-top: 7px; background: var(--cat); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.rail-line { width: 1px; flex: 1; min-height: 40px; margin: 5px 0 0 4px; background: var(--line); }
.item-body { padding: 0 0 26px 8px; border-bottom: 1px solid var(--line); }
.item-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.category-label { color: var(--cat); font-weight: 800; }
.signal-badge { padding: 2px 6px; color: var(--ink); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 2px; }
.translation-badge { padding: 2px 6px; color: var(--muted); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 2px; }
.translation-badge.complete { color: var(--lime-deep); border-color: color-mix(in srgb, var(--lime-deep) 40%, var(--line)); }
.translation-badge.partial { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.feed-item[data-level="5"] .signal-badge { color: #111; background: var(--lime); border-color: var(--lime); }
.feed-item[data-level="4"] .signal-badge { background: color-mix(in srgb, var(--blue) 16%, var(--surface)); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.feed-item[data-level="3"] .signal-badge { background: color-mix(in srgb, var(--amber) 18%, var(--surface)); border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }
.feed-item h3 { max-width: 850px; margin: 8px 0 8px; font-size: 20px; line-height: 1.38; }
.feed-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--cat); text-underline-offset: 4px; }
.item-summary { max-width: 850px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.item-footer { min-height: 28px; display: flex; align-items: center; gap: 13px; }
.source-identity { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.source-identity img { border-radius: 3px; background: var(--surface-alt); object-fit: contain; }
.item-tags { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; max-height: 54px; overflow: hidden; }
.item-tags span, .watch-tags button {
  --tag-color: var(--cat, var(--lime-deep));
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  color: color-mix(in srgb, var(--ink) 78%, var(--tag-color));
  background: color-mix(in srgb, var(--tag-color) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tag-color) 24%, var(--line));
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.item-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--tag-color);
}
.item-tags span:first-child {
  color: var(--ink);
  background: color-mix(in srgb, var(--tag-color) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--tag-color) 42%, var(--line));
}
.external-link { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.external-link:hover { color: var(--ink); }
.bookmark { width: 30px; height: 30px; border: 0; color: var(--muted); }
.bookmark.saved { color: var(--ink); background: var(--lime); }
.bookmark.saved svg { fill: currentColor; }
.load-more { width: 100%; height: 46px; margin-top: 20px; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); font-weight: 700; cursor: pointer; }
.load-more:hover { background: var(--surface); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.side-panel { position: sticky; top: 126px; }
.side-panel > section { margin-bottom: 36px; }
.radar { height: 150px; margin: 20px 0 10px; display: flex; align-items: end; gap: 10px; padding: 18px 16px 0; background: var(--surface); border: 1px solid var(--line); }
.radar-bar { flex: 1; min-width: 0; display: grid; grid-template-rows: 1fr 24px; align-items: end; gap: 6px; height: 100%; text-align: center; color: var(--muted); font-size: 9px; }
.radar-bar i { width: 100%; min-height: 4px; background: var(--bar); transition: height .35s ease; }
.trend-list { display: grid; }
.trend-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trend-row > b { color: var(--line-strong); font: 800 16px/1 Inter, sans-serif; }
.trend-row strong { display: block; font-size: 13px; }
.trend-row small { color: var(--muted); font-size: 10px; }
.trend-row > span { color: var(--lime-deep); font-size: 11px; font-weight: 800; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.watch-tags button { min-height: 30px; padding: 5px 10px 5px 8px; cursor: pointer; }
.watch-tags button::before { content: "#"; color: var(--tag-color); font-size: 12px; font-weight: 800; }
.watch-tags button:nth-child(4n + 1) { --tag-color: var(--lime-deep); }
.watch-tags button:nth-child(4n + 2) { --tag-color: var(--blue); }
.watch-tags button:nth-child(4n + 3) { --tag-color: var(--coral); }
.watch-tags button:nth-child(4n + 4) { --tag-color: var(--amber); }
.watch-tags button:hover, .watch-tags button:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--tag-color) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--tag-color) 62%, var(--line));
  outline: 0;
}
.text-button {
  align-self: start;
  padding: 3px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.text-button:hover, .text-button:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; outline: 0; }
.history-summary { margin: 13px 0 6px; color: var(--muted); font-size: 11px; }
.history-list { display: grid; }
.history-item {
  display: block;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:hover .history-item-title { color: var(--lime-deep); }
.history-item-title { display: block; overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.history-item-meta { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.history-empty { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.source-list { display: grid; max-height: min(58vh, 620px); margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.source-row { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 3px 7px; border: 1px solid transparent; border-radius: 3px; color: var(--ink); background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.source-row:hover { background: var(--surface-alt); }
.source-row.active { border-color: var(--line-strong); background: var(--surface); box-shadow: inset 3px 0 0 var(--lime-deep); }
.source-row img { width: 20px; height: 20px; border-radius: 3px; background: var(--surface-alt); }
.source-row > span:not(.source-all-mark) { min-width: 0; flex: 1; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.source-row small { color: var(--muted); }
.source-all-mark { width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid var(--line-strong); background: linear-gradient(90deg, var(--lime) 0 33%, var(--blue) 33% 66%, var(--coral) 66%); }
.source-note { color: var(--muted); font-size: 10px; }
footer { min-height: 150px; display: flex; align-items: center; gap: 28px; padding: 30px max(24px, calc((100% - var(--max)) / 2)); border-top: 1px solid var(--line); color: var(--muted); }
footer p:last-child { margin-left: auto; font-size: 11px; }
.footer-brand { color: var(--ink); }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .category-filters { order: 3; flex-basis: 100%; }
  .control-bar { flex-wrap: wrap; }
  .overview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14px; padding-bottom: 62px; }
  .site-header { height: 60px; padding: 0 16px; }
  .brand strong { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-actions .icon-button, .github-link { display: none; }
  .status-strip { height: 30px; padding: 0 16px; }
  .status-strip #sourceStatus, .status-divider { display: none; }
  main { padding: 30px 16px 58px; }
  .briefing-head { display: block; margin-bottom: 24px; }
  h1 { font-size: 40px; }
  .lede { font-size: 14px; }
  .date-control { margin-top: 22px; justify-content: space-between; }
  .range-label { flex: 1; }
  .control-bar { padding: 8px; gap: 9px; }
  .segmented { flex: 1; }
  .segmented button { flex: 1; }
  .control-bar select { max-width: 116px; }
  .category-filters { width: calc(100vw - 50px); flex-basis: auto; }
  .overview { grid-template-columns: repeat(2, 1fr); margin: 16px 0 34px; }
  .metric.top-topic { grid-column: span 2; }
  .metric { min-height: 98px; padding: 16px; }
  .metric strong { font-size: 26px; }
  .metric.top-topic strong { font-size: 18px; }
  .content-grid { display: block; }
  .section-heading h2 { font-size: 20px; }
  .feed-item { grid-template-columns: 14px minmax(0, 1fr); }
  .feed-item h3 { font-size: 17px; }
  .item-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .item-footer { flex-wrap: wrap; gap: 8px; }
  .item-tags { order: 3; flex-basis: 100%; max-height: 60px; }
  .side-panel { position: static; margin-top: 54px; }
  footer { display: grid; gap: 12px; min-height: 170px; padding: 28px 16px; }
  footer p { margin: 0; }
  footer p:last-child { margin-left: 0; }
  .mobile-nav {
    height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(12px);
  }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); background: transparent; border: 0; font-size: 10px; }
  .mobile-nav span { color: var(--ink); font-size: 19px; line-height: 1; }
  .mobile-nav .active { color: var(--ink); }
  .mobile-nav .active span { color: var(--lime-deep); }
}
@media (max-width: 420px) {
  .overview { grid-template-columns: 1fr 1fr; }
  .metric { padding: 13px; }
  .metric > span, .metric small { font-size: 10px; }
  .metric strong { font-size: 23px; }
  .github-link span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .feed-item { animation: enter .35s both; animation-delay: calc(var(--index, 0) * 35ms); }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Editorial reading theme: Medium-inspired typography with a wider workspace. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f2f2;
  --ink: #242424;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #b3b3b3;
  --lime: #1a8917;
  --lime-deep: #1a8917;
  --coral: #c94a35;
  --blue: #2867b2;
  --amber: #9d6b08;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --max: min(80vw, 1600px);
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-editorial: Charter, "Bitstream Charter", Georgia, "Noto Serif SC", "Songti SC", STSong, serif;
}
[data-theme="dark"] {
  --bg: #121212;
  --surface: #121212;
  --surface-alt: #242424;
  --ink: #f2f2f2;
  --muted: #a8a8a8;
  --line: #323232;
  --line-strong: #5c5c5c;
  --lime: #5ecb5a;
  --lime-deep: #5ecb5a;
  --coral: #ef806e;
  --blue: #78a9e6;
  --amber: #d7a94a;
}
body { background: var(--bg); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; }
.site-header {
  height: 65px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
.brand { gap: 10px; }
.brand strong { font-family: var(--font-editorial); font-size: 25px; font-weight: 700; line-height: 1; }
.brand small { margin-top: 3px; font-size: 8px; color: var(--muted); }
.brand-mark { width: 29px; height: 29px; padding: 6px; background: var(--ink); border-radius: 50%; }
.brand-mark i { background: var(--surface); }
.desktop-nav { gap: 30px; }
.desktop-nav a { font-size: 13px; font-weight: 500; }
.desktop-nav a.active::after { height: 1px; background: var(--ink); }
.icon-button { border: 0; border-radius: 50%; }
.icon-button:hover { background: var(--surface-alt); }
.github-link { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); font-size: 13px; font-weight: 600; }
.status-strip {
  height: 31px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  background: var(--surface);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
}
.live-dot { background: var(--lime); box-shadow: none; }
.status-divider { background: var(--line); }
main { width: var(--max); max-width: none; margin: 0 auto; padding: 44px 0 88px; }
.briefing-head { margin-bottom: 31px; align-items: center; }
.briefing-head h1 { font-family: var(--font-editorial); font-size: 46px; font-weight: 700; line-height: 1.08; }
.eyebrow { margin-bottom: 8px; color: var(--lime-deep); font: 700 10px/1.2 var(--font-ui); }
.lede { max-width: 660px; margin-top: 12px; color: var(--muted); font-size: 16px; }
.date-control .icon-button { border: 1px solid var(--line); }
.range-label { height: 40px; background: transparent; border-color: var(--line); border-radius: 999px; font-weight: 500; }
.control-bar {
  min-height: 58px;
  gap: 14px;
  padding: 9px 0;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.segmented { padding: 0; gap: 3px; background: transparent; }
.segmented button { height: 34px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.segmented button.active { color: #ffffff; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.ai-segmented button { min-width: 78px; }
.category-filters button { border-radius: 999px; }
.category-filters button:hover, .category-filters button.active { background: var(--surface-alt); border-color: transparent; }
select { border-color: var(--line); border-radius: 999px; background-color: var(--surface); }
.search-panel { margin-top: 14px; border: 0; border-bottom: 1px solid var(--ink); box-shadow: none; }
.overview { margin: 24px 0 48px; border-width: 0 0 1px; background: transparent; border-color: var(--line); }
.metric { min-height: 104px; padding: 18px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric > span { font-weight: 500; }
.metric strong { font: 700 30px/1.12 var(--font-editorial); }
.metric.top-topic { background: var(--surface-alt); color: var(--ink); }
.metric.top-topic > span, .metric.top-topic small { color: var(--muted); }
.metric.top-topic strong { color: var(--ink); font-size: 22px; }
.content-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; }
.section-heading { border-bottom: 1px solid var(--ink); }
.section-heading h2 { font-family: var(--font-editorial); font-size: 26px; font-weight: 700; }
.section-heading.compact h2 { font-size: 20px; }
.feed-item { display: block; padding-top: 0; }
.item-rail { display: none; }
.item-body { padding: 27px 0 28px; }
.item-meta { font-size: 12px; font-weight: 500; }
.category-label { font-weight: 600; }
.signal-badge { padding: 3px 8px; border: 0; border-radius: 999px; }
.translation-badge { padding: 3px 8px; border-radius: 999px; }
.feed-item[data-level="5"] .signal-badge { color: #ffffff; background: var(--lime-deep); }
.feed-item[data-level="4"] .signal-badge { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.feed-item[data-level="3"] .signal-badge { background: color-mix(in srgb, var(--amber) 13%, var(--surface)); }
.feed-item h3 { max-width: none; margin: 10px 0 8px; font-family: var(--font-editorial); font-size: 25px; font-weight: 700; line-height: 1.24; }
.feed-item h3 a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 1px; }
.item-summary {
  max-width: none;
  margin-bottom: 17px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.source-identity { font-weight: 500; }
.source-identity img { border-radius: 50%; }
.item-tags span, .watch-tags button { border-radius: 999px; }
.external-link { font-size: 12px; font-weight: 600; }
.bookmark.saved { color: #ffffff; background: var(--lime-deep); }
.load-more { border-radius: 999px; font-weight: 500; }
.side-panel { top: 112px; }
.radar { background: transparent; border-width: 0 0 1px; padding-inline: 0; }
.source-row { border-radius: 0; }
.source-row.active { border-color: transparent; border-bottom-color: var(--line); background: var(--surface-alt); box-shadow: inset 2px 0 0 var(--lime-deep); }
.source-all-mark { border-radius: 50%; background: var(--ink); }
.read-status { color: var(--lime-deep); font-size: 10px; font-weight: 700; }
footer { padding: 30px max(24px, calc((100% - var(--max)) / 2)); background: var(--surface-alt); }

@media (max-width: 1180px) {
  :root { --max: calc(100vw - 48px); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; }
}
@media (max-width: 920px) {
  .content-grid { display: block; }
  .side-panel { position: static; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
  .source-section { grid-column: 1 / -1; }
  .overview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  :root { --max: calc(100vw - 32px); }
  .site-header { padding: 0 16px; }
  .status-strip { padding: 0 16px; }
  main { width: var(--max); padding: 30px 0 58px; }
  .briefing-head h1 { font-size: 38px; }
  .control-bar { padding: 9px 0; }
  .overview { grid-template-columns: 1fr 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric.top-topic { grid-column: 1 / -1; border-right: 0; }
  .feed-item h3 { font-size: 21px; }
  .side-panel { display: block; }
  footer { padding-inline: 16px; }
}


.translation-overview { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 20px 24px; margin: 0 0 24px; }
.translation-overview-heading, .translation-progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.translation-overview h2 { font-size: 17px; margin: 0; }
.translation-overview-heading > span, .translation-progress-note { font-size: 12px; color: var(--muted); }
.translation-overview progress { display: block; width: 100%; height: 10px; margin: 10px 0 18px; accent-color: var(--lime-deep); }
.translation-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.translation-counts strong, .translation-counts span { display: block; }
.translation-counts strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.translation-counts span { font-size: 12px; color: var(--muted); }
.translation-progress-note { margin: 8px 0 0; }
@media (max-width: 600px) { .translation-overview { padding: 16px; } .translation-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.translation-request { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--ink); background: var(--surface); }
.translation-request[hidden] { display: none; }

.translation-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.translation-recent span, .translation-recent strong { display: block; }
.translation-recent span { color: var(--muted); font-size: 12px; }
.translation-recent strong { font-size: 16px; }

/* Date range calendar popover */
.date-control { position: relative; }
.range-label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.range-label > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.range-label .caret { width: 14px; height: 14px; color: var(--muted); }
.range-label[aria-expanded="true"] .caret { transform: rotate(180deg); }
.date-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  width: 352px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.date-popover[hidden] { display: none; }
.date-popover:focus { outline: 0; }
.dp-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dp-title { flex: 1; text-align: center; font-weight: 700; font-size: 14px; }
.dp-nav { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.dp-nav:hover { background: var(--surface-alt); }
.dp-nav svg { width: 15px; height: 15px; }
.dp-today { height: 32px; padding: 0 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dp-today:hover { background: var(--surface-alt); }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.dp-weekdays span { text-align: center; color: var(--muted); font-size: 11px; font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-grid.months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-grid.years { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dp-cell {
  min-width: 0;
  min-height: 44px;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}
.dp-cell .dp-day { font-size: 13px; line-height: 1.2; }
.dp-cell .dp-count { color: var(--lime-deep); font-size: 9px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-grid.months .dp-day, .dp-grid.years .dp-day { font-weight: 600; }
.dp-cell:hover:not(:disabled) { background: var(--surface-alt); }
.dp-cell.empty { color: var(--muted); }
.dp-cell.empty:hover:not(:disabled) { color: var(--ink); }
.dp-cell.outside { opacity: .55; }
.dp-cell.inrange { background: color-mix(in srgb, var(--lime-deep) 13%, var(--surface)); }
.dp-cell.selected { background: var(--ink); color: var(--surface); }
.dp-cell.selected .dp-count { color: inherit; opacity: .75; }
.dp-cell:disabled { color: var(--line-strong); cursor: default; opacity: .6; }
.dp-cell:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 1px; }
.dp-nav:focus-visible, .dp-today:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .date-popover { animation: dp-in .18s ease; }
  @keyframes dp-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (max-width: 760px) {
  .date-popover {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    max-width: none;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
