@charset "UTF-8";
:root {
  --font-control:13px;
  --font-body:13px;
  --font-meta:11px;
  --line-control:1.5;
  --radius-pill:30px;
  --radius-card:17px;
  --card-padding:20px 23px;
  --filter-padding:8px 15px;

  font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light;
  --bg:#fff;
  --text:#161616;
  --muted:#76777c;
  --line:#e7e7e7;
  --soft:#f7f7f6;
  --hover:#efefee;
  --accent:#141414;
  --accent-soft:#efefee;
  --amber:#946321;
  --green:#42715b;
  --shadow:0 24px 100px #0002;
  background:var(--bg);
  color:var(--text);
  font-synthesis:none;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#151515;
  --text:#eee;
  --muted:#aaa;
  --line:#343434;
  --soft:#202020;
  --hover:#2b2b2b;
  --accent:#f0f0f0;
  --accent-soft:#303030;
  --amber:#d6b079;
  --green:#8bbc9c;
  --shadow:0 24px 100px #0007;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --bg:#151515;
    --text:#eee;
    --muted:#aaa;
    --line:#343434;
    --soft:#202020;
    --hover:#2b2b2b;
    --accent:#f0f0f0;
    --accent-soft:#303030;
    --amber:#d6b079;
    --green:#8bbc9c;
    --shadow:0 24px 100px #0007;
  }
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input {
  font:inherit;
}
button,a {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
button {
  cursor:pointer;
  border:0;
  background:none;
  color:inherit;
}
a {
  color:inherit;
  text-decoration:none;
}
button:disabled {
  cursor:wait;
  opacity:.55;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:2px solid var(--text);
  outline-offset:4px;
}
p,h1,h2,h3,h4 {
  margin:0;
}
p {
  line-height:1.75;
}
h1 {
  font-size:29px;
  line-height:1.35;
  font-weight:550;
  letter-spacing:-.8px;
}
h2 {
  font-size:19px;
  font-weight:550;
  letter-spacing:-.3px;
}
h3 {
  font-size:17px;
  font-weight:550;
}
.muted,.small {
  color:var(--muted);
}
.small {
  font-size:13px;
}
[hidden] {
  display:none!important;
}
.icon {
  display:inline-block;
  flex-shrink:0;
  width:20px;
  height:20px;
  background:currentColor;
  mask:var(--icon) center/contain no-repeat;
  -webkit-mask:var(--icon) center/contain no-repeat;
  vertical-align:middle;
}
.icon-search {
  --icon:url('/icons/search.svg');
}
.icon-sun {
  --icon:url('/icons/sun.svg');
}
.icon-moon {
  --icon:url('/icons/moon.svg');
}
.icon-refresh {
  --icon:url('/icons/refresh.svg');
}
.icon-bookmark {
  --icon:url('/icons/bookmark.svg');
}
.icon-arrow-up-right {
  --icon:url('/icons/arrow-up-right.svg');
}
.icon-calendar {
  --icon:url('/icons/calendar.svg');
}
.icon-list {
  --icon:url('/icons/list.svg');
}
.icon-info-circle {
  --icon:url('/icons/info-circle.svg');
}
.icon-chevron-left {
  --icon:url('/icons/chevron-left.svg');
}
.icon-chevron-right {
  --icon:url('/icons/chevron-right.svg');
}
.icon-x {
  --icon:url('/icons/x.svg');
}
.header {
  position:fixed;
  inset:0 auto 0 0;
  width:236px;
  padding:24px 20px;
  display:flex;
  flex-direction:column;
  background:var(--bg);
  z-index:10;
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 12px 30px;
  font-size:16px;
  font-weight:620;
  letter-spacing:-.6px;
}
.brand-mark {
  font-size:16px;
  font-weight:600;
  border:1px solid var(--line);
  width:24px;
  height:24px;
  border-radius:6px;
  display:grid;
  place-items:center;
}
.sidebar-label {
  font-size:11px;
  color:var(--muted);
  padding:0 13px;
  margin-bottom:15px;
}
.nav {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.nav a {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:var(--muted);
  min-height:36px;
  padding:8px 12px;
  border-radius:10px;
}
.nav a:hover {
  background:var(--soft);
  color:var(--text);
}
.nav a.active {
  color:var(--text);
  font-weight:550;
}
.nav-count {
  margin-left:auto;
  font-size:11px;
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:35px;
}
.theme-control {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px;
  text-align:left;
  font-size:13px;
  border-radius:10px;
}
.theme-control:hover {
  background:var(--soft);
}
.theme-control small {
  margin-left:auto;
  font-size:10px;
  color:var(--muted);
}
.local-status {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  padding:15px 12px 0;
}
.local-status .event-dot {
  width:5px;
  height:5px;
}
.workspace {
  margin-left:236px;
  max-width:1600px;
  padding:64px clamp(36px,6.5vw,128px) 60px;
}
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:42px;
}
.topbar p {
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
}
.refresh {
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  border-radius:30px;
  background:var(--text);
  color:var(--bg);
  padding:11px 19px;
  font-size:13px;
}
.refresh:hover {
  opacity:.85;
}
.refresh .icon {
  width:16px;
  height:16px;
}
.overview {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:46px;
}
.stat-card {
  background:var(--soft);
  border-radius:18px;
  padding:22px 24px;
  min-height:130px;
}
.stat-card p {
  color:var(--muted);
  font-size:13px;
}
.stat-card strong {
  font-size:28px;
  font-weight:500;
  display:block;
  margin-top:8px;
  letter-spacing:-.7px;
  font-variant-numeric:tabular-nums;
}
.stat-card.sync-stat strong {
  font-size:22px;
  margin-top:13px;
  letter-spacing:-.3px;
}
.stat-card small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:13px;
  line-height:1.5;
}
.layout,main {
  min-width:0;
}
.rail {
  display:none;
}
.feed-heading {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
}
.title-group {
  display:flex;
  gap:14px;
  align-items:baseline;
}
.range {
  color:var(--muted);
  font-size:11px;
}
.search {
  display:flex;
  align-items:center;
  gap:9px;
  background:var(--soft);
  border-radius:30px;
  padding:11px 15px;
  max-width:310px;
  width:38%;
  color:var(--muted);
}
.search .icon {
  width:17px;
  height:17px;
}
.search-input {
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:12px;
}
.search:focus-within {
  outline:1px solid var(--muted);
}
.search-input:focus-visible {
  outline:0;
}
.filter-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:25px;
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.filter {
  padding:var(--filter-padding);
  border-radius:var(--radius-pill);
  font-size:var(--font-control);
  line-height:var(--line-control);
  min-height:44px;
  color:var(--muted);
  white-space:nowrap;
}
.filter:hover {
  background:var(--soft);
}
.filter.active {
  background:var(--hover);
  color:var(--text);
}
.result-count {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.live-note {
  color:var(--muted);
  font-size:11px;
  margin:17px 0 19px;
  line-height:1.7;
}
#news-list {
  display:grid;
  gap:12px;
}
.news-row,.content-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:16px;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  padding:var(--card-padding);
}
.row-index {
  display:none;
}
.news-body {
  min-width:0;
}
.news-body h2 {
  font-size:16px;
  line-height:1.7;
  font-weight:550;
  letter-spacing:0;
}
.article-title {
  padding:0;
  text-align:left;
  font:inherit;
  line-height:inherit;
}
.article-title:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}
.summary,.content-copy {
  font-size:var(--font-body);
  line-height:1.9;
  color:var(--muted);
  margin-top:9px;
}
.article-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:11px;
  margin-top:15px;
  line-height:1.7;
}
.article-meta>span+span:before {
  content:'·';
  margin-right:12px;
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  width:34px;
  height:34px;
  padding:8px;
  color:var(--muted);
  flex-shrink:0;
}
.icon-button:hover {
  background:var(--hover);
  color:var(--text);
}
.bookmark.is-saved {
  background:var(--text);
  color:var(--bg);
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  line-height:1.7;
  padding:0;
}
.text-link:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}
.text-link .icon {
  width:15px;
  height:15px;
}
.text-button {
  font-size:12px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:22px;
}
.text-button:hover {
  background:var(--hover);
}
.empty {
  text-align:center;
  padding:68px 24px;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--muted);
}
.empty>.icon {
  width:28px;
  height:28px;
  margin-bottom:18px;
}
.empty h2,.empty h3 {
  color:var(--text);
  font-size:17px;
  margin-bottom:9px;
}
.empty p {
  font-size:13px;
}
.empty .text-button {
  margin-top:20px;
}
.failure-empty {
  background:var(--soft);
}
.compact-empty {
  padding:35px;
}
.event-page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.event-page-heading p {
  font-size:12px;
  margin-top:8px;
}
.view-toggle {
  display:flex;
  gap:3px;
  background:var(--soft);
  border:1px solid var(--line);
  padding:4px;
  border-radius:30px;
  flex-shrink:0;
}
.view-toggle button {
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 13px;
  font-size:12px;
  border-radius:24px;
  color:var(--muted);
}
.view-toggle button.active {
  background:var(--text);
  color:var(--bg);
}
.view-toggle .icon {
  width:15px;
  height:15px;
}
.event-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0;
}
.event-status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:var(--amber);
  padding:5px 9px;
  background:var(--soft);
  border-radius:20px;
}
.event-status.confirmed {
  color:var(--green);
}
.expected {
  color:var(--amber);
}
.actual {
  color:var(--green);
}
.archived {
  color:var(--muted);
}
.calendar {
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}
.calendar-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:20px 23px;
}
.calendar-heading h3 {
  font-size:19px;
}
.calendar-actions {
  display:flex;
  align-items:center;
  gap:5px;
}
.weekdays,.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.weekdays {
  text-align:center;
  color:var(--muted);
  font-size:11px;
  padding:6px 0 16px;
}
.day {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  height:102px;
  padding:8px;
  border-top:1px solid var(--line);
  border-right:1px solid var(--line);
  text-align:left;
  overflow:hidden;
}
.day:nth-child(7n) {
  border-right:0;
}
.day:hover,.day.selected {
  background:var(--soft);
}
.day.outside {
  color:var(--muted);
}
.day-number {
  display:grid;
  place-items:center;
  border-radius:50%;
  width:28px;
  height:28px;
  font-size:12px;
  flex-shrink:0;
}
.day.selected .day-number {
  background:var(--text);
  color:var(--bg);
}
.day.is-today:not(.selected) .day-number {
  box-shadow:inset 0 0 0 1px var(--muted);
}
.calendar-event {
  display:flex;
  align-items:center;
  gap:4px;
  max-width:100%;
  font-size:10px;
  padding:4px 2px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.calendar-event .event-dot {
  width:4px;
  height:4px;
}
.legend {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  padding:16px 23px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
}
.legend>span {
  display:flex;
  align-items:center;
  gap:7px;
}
.calendar-note {
  color:var(--muted);
  font-size:11px;
  margin:12px 0;
}
.selected-events {
  margin-top:32px;
}
.selected-events>h2 {
  font-size:16px;
  margin-bottom:18px;
}
.selected-events>.event-detail {
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  margin-bottom:14px;
}
.event-detail h3 {
  font-size:19px;
  margin-top:14px;
  line-height:1.6;
}
.event-facts {
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:11px;
  font-size:12px;
  line-height:1.8;
  margin:24px 0;
}
.event-facts dt {
  color:var(--muted);
}
.event-facts dd {
  margin:0;
  overflow-wrap:anywhere;
}
.post-tabs {
  display:flex;
  gap:23px;
  border-bottom:1px solid var(--line);
}
.text-tab {
  font-size:12px;
  padding:12px 0;
  color:var(--muted);
  border-bottom:2px solid transparent;
}
.text-tab.active {
  border-color:var(--text);
  color:var(--text);
}
blockquote {
  margin:18px 0;
  background:var(--soft);
  padding:20px;
  border-radius:12px;
  font-size:13px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.event-post+.event-post {
  margin-top:24px;
}
.post-time {
  font-size:11px;
  color:var(--muted);
  margin-bottom:5px;
}
.inline-note {
  font-size:11px;
  color:var(--muted);
  margin-top:17px;
  line-height:1.8;
}
.timeline-item {
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:25px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:18px;
  margin-bottom:16px;
}
.timeline-date {
  font-size:13px;
  padding-top:5px;
  font-variant-numeric:tabular-nums;
}
.timeline-date small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:8px;
}
.source-intro {
  display:flex;
  align-items:flex-start;
  gap:15px;
  padding:25px;
  background:var(--soft);
  border-radius:18px;
  margin-bottom:24px;
}
.source-intro>.icon {
  margin-top:3px;
}
.source-intro h2 {
  font-size:16px;
  overflow-wrap:anywhere;
}
.source-intro p,.history-panel>p {
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
}
.source-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.feed-sync {
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px;
}
.feed-sync h3 {
  font-size:16px;
  margin-bottom:18px;
}
.sync-phase {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:18px;
}
.sync-phase.ready {
  color:var(--green);
}
.sync-phase.error,.sync-phase.syncing {
  color:var(--amber);
}
.feed-sync dl {
  display:grid;
  grid-template-columns:80px 1fr;
  gap:10px;
  font-size:11px;
  line-height:1.7;
  margin:0;
}
.feed-sync dt {
  color:var(--muted);
}
.feed-sync dd {
  margin:0;
}
.sync-warning,.sync-neutral {
  font-size:11px;
  margin-top:12px;
  line-height:1.8;
}
.sync-warning {
  color:var(--amber);
}
.sync-neutral {
  color:var(--muted);
}
.warning-banner {
  font-size:12px;
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:14px;
  padding:15px 20px;
  margin:0 0 20px;
  color:var(--amber);
  line-height:1.8;
}
.warning-banner .text-link {
  color:var(--text);
  margin-top:6px;
}
.history-panel {
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px;
  margin-top:24px;
}
.page-footer {
  font-size:11px;
  color:var(--muted);
  margin-top:35px;
}
.provenance {
  background:var(--soft);
  border-radius:12px;
  padding:15px 18px;
  margin-bottom:20px;
}
.provenance h4 {
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  margin-bottom:8px;
}
.provenance p {
  font-size:12px;
}
.provenance small {
  display:block;
  font-size:10px;
  color:var(--muted);
}
dialog {
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px 30px 32px;
  background:var(--bg);
  color:var(--text);
  width:700px;
  max-width:calc(100vw - 32px);
  max-height:85vh;
  box-shadow:var(--shadow);
}
dialog.dialog-compact { width:560px; }
dialog::backdrop {
  background:#0005;
  backdrop-filter:blur(3px);
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:20px;
}
.eyebrow {
  font-size:10px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
dialog>h2 {
  font-size:23px;
  line-height:1.6;
  margin-bottom:20px;
}
.dialog-form .form-label:first-child { margin-top:0; }
.dialog-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }
.article-detail>p {
  font-size:14px;
  line-height:1.9;
  margin-top:16px;
}
.article-detail .article-meta {
  font-size:11px;
}
.toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  background:var(--text);
  color:var(--bg);
  border-radius:30px;
  padding:13px 23px;
  font-size:12px;
  box-shadow:var(--shadow);
  z-index:30;
  max-width:calc(100vw - 32px);
  width:max-content;
  line-height:1.7;
}
.skip-link {
  position:fixed;
  top:-80px;
  left:12px;
  background:var(--bg);
  padding:12px;
  z-index:50;
  border:1px solid var(--text);
}
.skip-link:focus {
  top:10px;
}
@media(min-width:1800px) {
  :root { --card-padding:27px 30px; --font-body:14px; }
  .workspace {
    margin-left:280px;
    padding-top:76px;
  }
  .header {
    width:250px;
    padding-top:28px;
  }
  .overview {
    margin-bottom:55px;
  }
  .stat-card {
    min-height:155px;
  }
  .news-row {
    padding:27px 30px;
  }
  .news-body h2 {
    font-size:18px;
  }
  .summary {
    font-size:14px;
  }
}
@media(max-width:1100px) {
  .header {
    width:204px;
    padding-left:14px;
    padding-right:14px;
  }
  .brand {
    font-size:16px;
    gap:9px;
  }
  .brand-mark {
    width:24px;
  }
  .workspace {
    margin-left:204px;
    padding:43px 32px;
  }
  .overview {
    gap:10px;
  }
  .stat-card {
    padding:20px 18px;
  }
  .stat-card.sync-stat strong {
    font-size:18px;
  }
  .title-group {
    display:block;
  }
  .range {
    display:block;
    margin-top:7px;
  }
  .source-grid {
    grid-template-columns:1fr;
  }
  .theme-control small {
    display:none;
  }
  .day {
    height:87px;
  }
  .calendar-event {
    font-size:9px;
  }
}
@media(max-width:760px) {
  :root { --font-control:12px; --font-body:12px; --font-meta:10px; --card-padding:18px; --radius-card:14px; --filter-padding:8px 12px; }
  .header {
    position:relative;
    width:100%;
    padding:20px 20px 0;
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    border-bottom:1px solid var(--line);
  }
  .brand {
    margin:0;
    font-size:16px;
  }
  .brand-mark {
    height:24px;
    width:24px;
    font-size:16px;
  }
  .sidebar-label,.local-status {
    display:none;
  }
  .sidebar-bottom {
    grid-column:2;
    grid-row:1;
    margin:0;
    padding:0;
  }
  .theme-control {
    padding:9px;
    width:auto;
  }
  .theme-control>span:not(.icon),.theme-control small {
    display:none;
  }
  .nav {
    grid-column:1/-1;
    flex-direction:row;
    gap:5px;
    justify-content:flex-start;
    min-width:0;
    overflow-x:auto;
    padding-bottom:12px;
  }
  .nav a {
    flex:0 0 auto;
    white-space:nowrap;
    font-size:12px;
    gap:7px;
    padding:9px 10px;
    min-height:44px;
  }
  .nav .icon {
    width:16px;
    height:16px;
  }
  .nav-count {
    display:none;
  }
  .workspace {
    margin:0;
    padding:30px 20px 45px;
  }
  .topbar {
    margin-bottom:26px;
    gap:12px;
  }
  .topbar h1 {
    font-size:25px;
  }
  .topbar p {
    font-size:11px;
    margin-top:7px;
  }
  .refresh {
    font-size:12px;
    padding:10px 14px;
  }
  .overview {
    gap:8px;
    margin-bottom:30px;
    grid-template-columns:1fr 1fr;
  }
  .stat-card {
    padding:18px;
    border-radius:14px;
    min-height:123px;
  }
  .stat-card strong {
    font-size:27px;
  }
  .stat-card p {
    font-size:12px;
  }
  .stat-card small {
    font-size:10px;
    margin-top:10px;
  }
  .stat-card.sync-stat strong {
    font-size:14px;
    margin:0;
    letter-spacing:0;
  }
  .feed-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
  }
  .title-group {
    display:flex;
    align-items:baseline;
    gap:10px;
  }
  .title-group h2 {
    font-size:17px;
  }
  .range {
    font-size:10px;
    margin:0;
  }
  .search {
    width:100%;
    max-width:none;
    padding:12px 15px;
  }
  .filter-bar {
    margin-top:18px;
  }
  .filters {
    gap:2px;
  }
  .filter {
    font-size:12px;
    padding:8px 12px;
  }
  .result-count {
    font-size:10px;
  }
  .news-row {
    padding:18px;
    gap:9px;
    border-radius:14px;
    grid-template-columns:minmax(0,1fr) 29px;
  }
  .news-body h2 {
    font-size:15px;
  }
  .summary {
    font-size:12px;
    margin-top:8px;
  }
  .article-meta {
    font-size:10px;
    gap:7px;
  }
  .article-meta>span+span:before {
    margin-right:7px;
  }
  .bookmark {
    width:29px;
    height:29px;
    padding:6px;
  }
  .live-note {
    font-size:10px;
  }
  .event-page-heading {
    align-items:flex-start;
  }
  .event-page-heading h2 {
    font-size:17px;
  }
  .event-page-heading p {
    font-size:10px;
    max-width:180px;
  }
  .view-toggle button {
    padding:7px 9px;
    font-size:11px;
  }
  .view-toggle .icon {
    width:13px;
    height:13px;
  }
  .calendar-heading {
    padding:16px 12px;
  }
  .calendar-heading h3 {
    font-size:17px;
  }
  .calendar-actions {
    gap:2px;
  }
  .calendar-actions .icon-button {
    width:28px;
    height:28px;
  }
  .day {
    height:70px;
    padding:4px;
  }
  .day-number {
    width:26px;
    height:26px;
    font-size:11px;
  }
  .calendar-event {
    font-size:0;
    padding:4px;
    gap:3px;
  }
  .calendar-event .event-dot {
    width:6px;
    height:6px;
  }
  .legend {
    padding:13px;
    gap:14px;
    font-size:10px;
  }
  .calendar-note {
    font-size:10px;
  }
  .timeline-item {
    grid-template-columns:1fr;
    gap:15px;
    padding:20px;
  }
  .timeline-date {
    display:flex;
    align-items:center;
    gap:10px;
  }
  .timeline-date small {
    margin:0;
  }
  .event-detail h3 {
    font-size:17px;
  }
  .event-facts {
    grid-template-columns:102px minmax(0,1fr);
    font-size:11px;
    gap:9px;
  }
  .selected-events>.event-detail {
    padding:20px;
  }
  .source-intro {
    padding:20px;
  }
  .source-intro h2 {
    font-size:14px;
  }
  .feed-sync,.history-panel {
    padding:20px;
  }
  .history-panel h2 {
    font-size:17px;
  }
  dialog {
    padding:20px;
    border-radius:18px;
  }
  dialog>h2 {
    font-size:21px;
  }
  .toast {
    font-size:11px;
    bottom:18px;
  }
}
@media(max-width:380px) {
  .nav a {
    padding:8px 7px;
    font-size:11px;
    gap:5px;
  }
  .nav .icon {
    width:14px;
    height:14px;
  }
  .workspace {
    padding-left:16px;
    padding-right:16px;
  }
  .filter {
    padding:8px 10px;
  }
  .result-count {
    display:none;
  }
  .topbar p {
    max-width:210px;
  }
  .refresh {
    padding:10px;
  }
  .refresh .icon {
    display:none;
  }
}
@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background-color .15s,color .15s;
  }
  dialog[open] {
    animation:reveal .15s ease-out;
  }
  @keyframes reveal {
    from {
      opacity:0;
      transform:translateY(5px);
    }
    to {
      opacity:1;
      transform:none;
    }
  }
}
.event-summary h3 {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
}
.event-summary .text-link {
  margin-top: 15px;
}

/* Small semantic accents keep the reading surface neutral. */
:root {
  --blue: #4069cf;
  --new: #bc560c;
}
:root[data-theme="dark"] {
  --blue: #8faaff;
  --new: #f2a468;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #8faaff;
    --new: #f2a468;
  }
}
.icon-cpu { --icon: url('/icons/cpu.svg'); }
.icon-apps { --icon: url('/icons/apps.svg'); }
.icon-building { --icon: url('/icons/building.svg'); }
.icon-file-text { --icon: url('/icons/file-text.svg'); }
.icon-bulb { --icon: url('/icons/bulb.svg'); }
.stat-card > p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-card > p .icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
}
.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 18px;
}
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.category-label .icon { width: 16px; height: 16px; }
.new-badge {
  color: var(--new);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .4px;
}
.event-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.event-status.announced, .event-dot.expected, .calendar-event.expected {
  color: var(--blue);
}
.event-status.expired { color: var(--amber); }
.event-status.unknown { color: var(--muted); }
.history-badge {
  color: var(--muted);
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 8px;
}

.sources-intro { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.source-section { margin-top: 28px; }
.source-section > h2 { font-size: 17px; }
.source-scope { color: var(--muted); font-size: 11px; margin: 8px 0 16px; }
.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.author-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.author-card:hover { background: var(--soft); }
.author-card strong { display: block; font-size: 13px; font-weight: 500; }
.author-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.author-card .icon { width: 15px; height: 15px; color: var(--muted); }
.sync-section > h2 { margin-bottom: 16px; }
.event-context-note { font-size: 12px; color: var(--muted); margin: -6px 0 22px; }
@media (max-width: 1100px) { .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .author-grid { grid-template-columns: 1fr; gap: 9px; } .author-card { padding: 15px 18px; } }

/* Keep the event summary readable while preserving every source in disclosure. */
.selected-events > .event-detail { padding: 20px 22px; }
.event-detail h3 { margin-top: 10px; font-size: 19px; line-height: 1.5; }
.event-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 8px; }
.event-meta .text-link { font-size: 11px; color: var(--muted); }
.event-meta .icon { width: 12px; height: 12px; }
.event-schedule { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; margin-top: 18px; }
.event-schedule > span { font-size: 11px; color: var(--muted); }
.event-schedule > strong { font-size: 16px; font-weight: 550; line-height: 1.5; }
.event-brief-facts { display: flex; gap: 6px 20px; flex-wrap: wrap; margin: 13px 0 0; font-size: 11px; line-height: 1.8; }
.event-brief-facts > div { display: flex; gap: 9px; }
.event-brief-facts dt { color: var(--muted); }
.event-brief-facts dd { margin: 0; overflow-wrap: anywhere; }
.event-reminder { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.primary-post { margin-top: 17px; padding: 14px 17px; background: var(--soft); border-radius: 11px; }
.primary-post-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.primary-post > p { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-evidence { margin-top: 15px; }
.event-evidence > summary { cursor: pointer; font-size: 11px; color: var(--muted); padding: 5px 0; width: fit-content; }
.event-evidence > summary:hover { color: var(--text); }
.event-evidence > summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }
.event-evidence[open] > summary { margin-bottom: 16px; }
.event-evidence .event-post + .event-post { padding-top: 15px; margin-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .selected-events > .event-detail { padding: 18px; }
  .event-detail h3 { font-size: 18px; }
  .event-schedule { gap: 4px 10px; margin-top: 15px; }
  .event-schedule > strong { font-size: 15px; }
  .primary-post { padding: 12px 14px; }
}

/* Reference edges, not chronology, give the compact conversation its structure. */
.event-detail:has(.event-evidence[open]) > .primary-post { display: none; }
.post-thread { display: grid; gap: 11px; padding-left: 10px; }
.thread-post { position: relative; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.thread-post.linked::before { content: ""; position: absolute; left: -10px; top: -12px; height: 35px; width: 9px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 5px; }
.thread-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.thread-author { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.thread-author strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.thread-author time { font-size: 10px; color: var(--muted); }
.thread-role { color: var(--muted); font-size: 10px; padding: 2px 5px; background: var(--soft); border-radius: 4px; }
.thread-actions { display: flex; align-items: center; gap: 4px; }
.thread-actions .text-link { font-size: 10px; margin-left: 5px; gap: 2px; color: var(--muted); }
.thread-actions .icon { width: 12px; height: 12px; }
.post-language { padding: 3px 6px; font-size: 10px; color: var(--muted); border-radius: 5px; }
.post-language.active { color: var(--text); background: var(--soft); }
.thread-relation { font-size: 10px; color: var(--muted); margin: 5px 0 7px; overflow-wrap: anywhere; }
.thread-relation .text-link { font-size: 10px; gap: 2px; }
.thread-relation .icon { width: 11px; height: 11px; }
.thread-body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-body.collapsed { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post-expand { font-size: 11px; padding: 4px 0 0; margin-top: 6px; color: var(--muted); }
.post-expand:hover { color: var(--text); }
@media (max-width: 760px) { .thread-post { padding: 12px; } .thread-header { gap: 6px; } .thread-actions { margin-left: auto; } }

.thread-header + .thread-body { margin-top: 8px; }

.forecast-card { min-width: 0; text-align: left; border: 1px solid transparent; }
button.forecast-card:hover { border-color: var(--line); background: var(--hover); }
.forecast-card > p { flex-wrap: wrap; gap: 5px; }
.pending-count { font-size: 10px; margin-left: auto; color: var(--muted); }
.stat-card .forecast-title { font-size: 14px; line-height: 1.5; margin-top: 11px; letter-spacing: 0; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.forecast-card .forecast-range { margin-top: 7px; font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.forecast-timing { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.forecast-timing.future, .forecast-timing.ongoing { color: var(--blue); }
.forecast-timing.expired { color: var(--amber); }
.stat-card.sync-stat strong { font-size: 18px; }
@media (min-width: 761px) and (max-width: 1100px) { .stat-card { padding: 18px 14px; } .stat-card.sync-stat strong { font-size: 16px; } }
@media (max-width: 760px) { .stat-card.sync-stat strong { margin-top: 13px; font-size: 18px; } .forecast-card { padding: 18px; } .pending-count { margin-left: 0; width: 100%; } }

.forecast-other { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }

/* Shared controls keep typography independent from page container inheritance. */
.refresh { font-size:var(--font-control); line-height:var(--line-control); min-height:44px; border-radius:var(--radius-pill); }
.text-button,.text-link { font-size:12px; line-height:1.7; min-height:44px; }
.text-button { display:inline-flex; align-items:center; justify-content:center; }
.text-link { cursor:pointer; }
.list-pagination { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; margin-top:12px; }
.list-page-status { color:var(--muted); font-size:var(--font-meta); line-height:1.7; text-align:center; font-variant-numeric:tabular-nums; }
@media(max-width:760px) {
  .list-pagination { gap:8px; }
  .list-pagination .text-button { padding-inline:12px; }
}
.content-card { grid-template-columns:minmax(0,1fr); gap:0; }
.form-label { display:block; font-size:var(--font-control); margin:12px 0 8px; }
.form-control { display:block; width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); font:inherit; font-size:var(--font-control); line-height:1.75; }
textarea.form-control { min-height:100px; resize:vertical; }
.form-help { color:var(--muted); font-size:var(--font-meta); line-height:1.7; margin:10px 0; }
.form-status { color:var(--muted); font-size:var(--font-meta); line-height:1.7; }
.form-status.error { color:var(--amber); }

/* Top-layer popover inherits the same theme and typography as page controls. */
.ui-month-picker { position:relative; }
.ui-month-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; padding:10px 17px; border:1px solid var(--line); border-radius:var(--radius-pill); font-size:var(--font-control); line-height:var(--line-control); white-space:nowrap; anchor-name:--month-trigger; }
.ui-month-trigger:hover:not(:disabled) { background:var(--soft); }
.ui-month-trigger > .icon:last-child { width:15px; height:15px; transform:rotate(90deg); }
.ui-month-trigger[aria-expanded="true"] > .icon:last-child { transform:rotate(-90deg); }
.ui-month-panel { position:fixed; inset:auto; top:anchor(bottom); right:anchor(right); position-anchor:--month-trigger; position-try-fallbacks:flip-block,flip-inline; margin:8px 0 0; width:288px; max-width:calc(100vw - 24px); padding:12px; border:1px solid var(--line); border-radius:18px; background:var(--bg); color:var(--text); box-shadow:var(--shadow); font-size:var(--font-control); }
.ui-month-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ui-month-heading strong { font-size:var(--font-control); font-weight:550; }
.ui-month-arrow { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; }
.ui-month-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.ui-month-option { min-height:44px; border-radius:var(--radius-pill); font-size:var(--font-control); line-height:var(--line-control); color:var(--muted); }
.ui-month-arrow:hover:not(:disabled),.ui-month-option:hover:not(:disabled) { background:var(--soft); color:var(--text); }
.ui-month-option[aria-pressed="true"] { background:var(--hover); color:var(--text); font-weight:550; }
.ui-month-option:disabled,.ui-month-arrow:disabled { cursor:default; opacity:.35; }
@supports not (top:anchor(bottom)) { .ui-month-panel { inset:50% auto auto 50%; transform:translate(-50%,-50%); margin:0; } }
.query-details { display:grid; gap:20px; }
.query-details h3 { font-size:var(--font-control); font-weight:550; margin-bottom:8px; }
.query-details p { font-size:var(--font-body); }
.query-details pre { margin:0; padding:14px 16px; background:var(--soft); border:1px solid var(--line); border-radius:10px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:var(--font-control); line-height:1.75; }
.query-details > .muted { font-size:var(--font-meta); }

/* Shared select: all placement and interaction styles live here. */
.select-control { width:100%; min-width:0; }
.select-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; cursor:pointer; }
.select-value { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.select-trigger:hover:not(:disabled), .select-trigger[aria-expanded="true"] { background:var(--soft); }
.select-trigger:disabled { opacity:.5; cursor:not-allowed; }
.select-menu { position:fixed; z-index:1000; box-sizing:border-box; padding:5px; overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); box-shadow:0 8px 28px rgb(0 0 0 / .18); }
.select-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:40px; padding:9px 11px; border:0; border-radius:6px; background:transparent; color:var(--text); font:inherit; font-size:var(--font-control); line-height:var(--line-control); text-align:left; cursor:pointer; }
.select-option:hover, .select-option:focus-visible { background:var(--soft); outline:2px solid var(--line); outline-offset:-2px; }
.select-option[aria-selected="true"] { background:var(--soft); font-weight:550; }
.select-check { flex-shrink:0; width:16px; text-align:center; }
.select-trigger > .icon-chevron-right { flex-shrink:0; transform:rotate(90deg); }
