/* SunnyServe public editorial home */
:root {
  --bg: #f2f4ef;
  --surface: #fbfcf8;
  --surface-strong: #ffffff;
  --ink: #13211d;
  --muted: #6b7772;
  --faint: #98a19d;
  --line: #dce2dc;
  --line-strong: #c7d0c9;
  --green: #0b5f49;
  --green-2: #177a5e;
  --green-soft: #e1eee7;
  --lime: #b8d96d;
  --amber: #bd7138;
  --sidebar: #0e2720;
  --sidebar-ink: #eaf2ed;
  --sidebar-muted: #8da39b;
  --shadow: 0 18px 50px rgba(21, 46, 38, .08);
  --radius: 18px;
  --sidebar-width: 256px;
  --header-height: 72px;
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c1512;
  --surface: #111e1a;
  --surface-strong: #172722;
  --ink: #edf5f0;
  --muted: #9baaa4;
  --faint: #71817b;
  --line: #293a34;
  --line-strong: #3b4e47;
  --green: #67c9a4;
  --green-2: #89dab9;
  --green-soft: #18352b;
  --lime: #c3df78;
  --amber: #e3a06d;
  --sidebar: #07110e;
  --shadow: 0 18px 60px rgba(0, 0, 0, .24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-menu { --icon: url("/assets/icons/menu.svg"); }
.icon-search { --icon: url("/assets/icons/search.svg"); }
.icon-bookmark { --icon: url("/assets/icons/bookmark.svg"); }
.icon-sun { --icon: url("/assets/icons/sun.svg"); }
.icon-moon { --icon: url("/assets/icons/moon.svg"); }
.icon-chevron-left { --icon: url("/assets/icons/chevron-left.svg"); }
.icon-chevron-down { --icon: url("/assets/icons/chevron-down.svg"); }
.icon-arrow-up { --icon: url("/assets/icons/arrow-up.svg"); }
.icon-x { --icon: url("/assets/icons/x.svg"); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; padding: .75rem 1rem; color: #fff; background: var(--green); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 22px 14px 18px;
  display: flex; flex-direction: column; background: var(--sidebar); color: var(--sidebar-ink);
  transition: width .28s cubic-bezier(.22,.8,.25,1), transform .28s ease;
  overflow: hidden;
}
.brand-row { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 6px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { min-width: 0; flex: 1; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-symbol { width: 30px; height: 30px; position: relative; flex: 0 0 auto; display: inline-flex; align-items: flex-end; gap: 3px; padding: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.06); }
.brand-symbol i { width: 4px; background: var(--lime); border-radius: 3px; }
.brand-symbol i:nth-child(1) { height: 7px; opacity: .55; }
.brand-symbol i:nth-child(2) { height: 13px; opacity: .78; }
.brand-symbol i:nth-child(3) { height: 19px; }
.brand-copy { min-width: 0; display: grid; }
.brand-copy strong { font-family: "SF Pro Display", "PingFang SC", sans-serif; font-size: 15px; letter-spacing: .02em; }
.brand-copy small { margin-top: 2px; color: var(--sidebar-muted); font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.rail-toggle { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--sidebar-muted); border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.rail-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
.rail-toggle .ui-icon { width: 18px; height: 18px; transition: transform .25s ease; }

.nav { flex: 1; overflow: auto; scrollbar-width: none; padding: 12px 0; }
.nav::-webkit-scrollbar { display: none; }
.nav-kicker { margin: 15px 10px 7px; color: #607970; font-family: "IBM Plex Sans SC", sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.nav-item { position: relative; width: 100%; min-height: 39px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--sidebar-muted); background: transparent; cursor: pointer; text-align: left; text-decoration: none; transition: color .18s, background .18s, transform .18s; }
.nav-item:hover { color: var(--sidebar-ink); background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-item.is-active { color: #fff; background: rgba(184,217,109,.13); }
.nav-item.is-active::before { content: ""; position: absolute; left: 0; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--lime); }
.nav-index { font-family: "IBM Plex Sans SC", monospace; font-size: 10px; color: #68837a; font-variant-numeric: tabular-nums; }
.nav-item.is-active .nav-index { color: var(--lime); }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.nav-item b { min-width: 19px; padding: 2px 5px; border-radius: 9px; color: #bcd0c8; background: rgba(255,255,255,.07); font-size: 9px; text-align: center; }
.sidebar-foot { min-height: 54px; display: flex; align-items: center; gap: 10px; margin: 8px 3px 0; padding: 12px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(184,217,109,.1); }
.sidebar-foot-copy { display: grid; }
.sidebar-foot-copy strong { font-size: 10px; font-weight: 500; }
.sidebar-foot-copy small { margin-top: 3px; color: var(--sidebar-muted); font-size: 9px; }
.sidebar-overlay { position: fixed; inset: 0; z-index: 20; border: 0; background: rgba(4,12,9,.54); backdrop-filter: blur(3px); }

body.rail-collapsed { --sidebar-width: 76px; }
body.rail-collapsed .brand-copy, body.rail-collapsed .nav-text, body.rail-collapsed .nav-item b, body.rail-collapsed .nav-kicker, body.rail-collapsed .sidebar-foot-copy { opacity: 0; pointer-events: none; }
body.rail-collapsed .brand-row { padding-left: 8px; flex-wrap: wrap; }
body.rail-collapsed .rail-toggle .ui-icon { transform: rotate(180deg); }
body.rail-collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
body.rail-collapsed .nav-index { font-size: 11px; }
body.rail-collapsed .sidebar-foot { justify-content: center; padding: 12px 0; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .28s cubic-bezier(.22,.8,.25,1); }
.command-bar { position: sticky; top: 0; z-index: 18; height: var(--header-height); padding: 0 clamp(20px,3.2vw,52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 89%, transparent); backdrop-filter: blur(18px); }
.command-bar.is-scrolling { box-shadow: 0 12px 34px rgba(18,43,35,.08); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,var(--green),var(--lime)); transform: scaleX(0); transform-origin: left; will-change: transform; }
.command-left, .command-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu { display: none; }
.edition { display: grid; padding-right: 22px; border-right: 1px solid var(--line); }
.edition span { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.edition b { margin-top: 2px; font-family: "IBM Plex Sans SC", sans-serif; font-size: 11px; letter-spacing: .07em; }
.search-command, .saved-command, .theme-toggle, .mobile-menu { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.search-command { height: 38px; min-width: 210px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 12px; border-radius: 10px; color: var(--muted); }
.search-command:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.search-command .ui-icon { width: 16px; height: 16px; }
.search-command span { margin-right: auto; font-size: 11px; }
.search-command kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); background: var(--bg); font-family: inherit; font-size: 9px; }
.saved-command { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; color: var(--muted); }
.saved-command .ui-icon { width: 15px; height: 15px; }
.saved-command span { font-size: 11px; }
.saved-command b { min-width: 17px; color: var(--green); font-size: 10px; }
.saved-command.is-active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.theme-toggle, .mobile-menu { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 10px; color: var(--muted); }
.theme-toggle .ui-icon, .mobile-menu .ui-icon { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

main { width: min(1500px, 100%); margin: 0 auto; padding: 42px clamp(20px,3.2vw,52px) 80px; }
.brand-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); align-items: stretch; gap: clamp(28px,5vw,72px); padding-bottom: 42px; }
.hero-copy { align-self: center; padding: 24px 0; }
.hero-kicker, .section-title-row p, .stream-heading p, .context-card > p, .search-head p { margin: 0; color: var(--green); font-family: "IBM Plex Sans SC", sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.status-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 20%, transparent); }
.hero-copy h1 { margin: 13px 0 15px; font-size: clamp(42px,5vw,72px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.hero-copy h1 span { color: var(--green); }
.hero-lead { max-width: 690px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hero-proof span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 9px; }
.source-radar { position: relative; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 21px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(150deg,var(--surface),var(--surface-strong)); box-shadow: var(--shadow); }
.source-radar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,transparent,var(--green-soft),transparent 64%); pointer-events: none; }
.radar-orbit { position: absolute; top: -108px; right: -76px; width: 280px; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; }
.radar-orbit::before, .radar-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.radar-orbit::before { inset: 21%; }
.radar-orbit::after { inset: 41%; }
.radar-orbit span { position: absolute; inset: 50% auto auto 50%; width: 42%; height: 1px; transform-origin: left; background: linear-gradient(90deg,var(--green),transparent); animation: radar-scan 12s linear infinite; }
.radar-orbit i { position: absolute; width: 8px; height: 8px; border: 2px solid var(--surface-strong); border-radius: 50%; background: var(--lime); box-shadow: 0 0 15px color-mix(in srgb,var(--lime) 65%,transparent); }
.radar-orbit i:nth-child(1) { top: 31%; left: 21%; }
.radar-orbit i:nth-child(2) { top: 57%; right: 12%; }
.radar-orbit i:nth-child(3) { bottom: 14%; left: 36%; }
@keyframes radar-scan { to { transform: rotate(360deg); } }
.radar-topline { position: absolute; z-index: 1; inset: 18px 20px auto; display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 9px; letter-spacing: .1em; }
.radar-topline b { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb,var(--surface) 78%,transparent); font-size: 8px; font-weight: 500; letter-spacing: 0; }
.radar-copy { position: relative; z-index: 1; max-width: 330px; }
.radar-copy small { color: var(--green); font-size: 8px; letter-spacing: .12em; }
.radar-copy strong { display: block; margin: 3px 0 5px; font-size: 16px; }
.radar-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.radar-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0 0; }
.radar-metrics div { padding-top: 10px; border-top: 1px solid var(--line); }
.radar-metrics dt { color: var(--green); font-family: "IBM Plex Sans SC",sans-serif; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.radar-metrics dd { margin: 3px 0 0; color: var(--muted); font-size: 8px; }

.hotspot-section { margin: 4px 0 38px; }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 14px; }
.section-title-row h2, .stream-heading h2, .context-card h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.section-title-row > span { color: var(--faint); font-size: 10px; }
.hotspot-grid { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.hot-card { --mx: 50%; --my: 50%; position: relative; min-width: 0; min-height: 198px; flex: 1 1 0; display: flex; flex-direction: column; padding: 19px 18px 16px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; text-decoration: none; cursor: pointer; overflow: hidden; transition: flex .5s cubic-bezier(.22,1,.36,1), background .2s, transform .2s; }
.hot-card:last-child { border: 0; }
.hot-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--mx) var(--my),color-mix(in srgb,var(--lime) 18%,transparent),transparent 70%); opacity: 0; pointer-events: none; transition: opacity .25s; }
.hot-card::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: linear-gradient(90deg,var(--green),var(--lime)); transition: right .4s cubic-bezier(.22,1,.36,1); }
.hot-card:hover { background: var(--surface-strong); }
.hotspot-grid:has(.hot-card:hover) .hot-card { flex: .82 1 0; }
.hotspot-grid:has(.hot-card:hover) .hot-card:hover { flex: 1.55 1 0; }
.hot-card:hover::before { opacity: 1; }
.hot-card:hover::after { right: 0; }
.hot-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.hot-rank { font-family: "IBM Plex Sans SC", sans-serif; font-size: 24px; font-weight: 500; color: var(--green); }
.hot-state { padding: 4px 7px; border-radius: 5px; color: var(--green); background: var(--green-soft); font-size: 9px; }
.hot-card h3 { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.55; font-weight: 600; }
.hot-card-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.hot-card-foot b { color: var(--green); font-weight: 500; }
.hot-open { position: absolute; right: 18px; bottom: 16px; color: var(--green); font-size: 9px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.hot-card:hover .hot-card-foot > span { opacity: 0; }
.hot-card:hover .hot-open { opacity: 1; transform: translateX(0); }

.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 244px; align-items: start; gap: 34px; }
.stream-column { min-width: 0; }
.stream-toolbar { position: sticky; top: var(--header-height); z-index: 12; min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips button, .clear-filter { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; cursor: pointer; }
.filter-chips button:hover { border-color: var(--line-strong); }
.filter-chips button.is-active { border-color: var(--ink); color: var(--surface); background: var(--ink); }
.clear-filter { border-style: dashed; color: var(--green); }
.stream-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 25px 0 15px; }
.stream-heading > span { color: var(--muted); font-family: "IBM Plex Sans SC", sans-serif; font-size: 10px; font-variant-numeric: tabular-nums; }
.stream-heading div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.active-query { margin: 0 0 12px; padding: 10px 13px; border-left: 3px solid var(--green); color: var(--muted); background: var(--green-soft); font-size: 11px; }
.active-query b { color: var(--ink); }

.timeline { min-height: 300px; }
.date-group { margin-bottom: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: clip; }
.date-heading { position: sticky; top: calc(var(--header-height) + 59px); z-index: 8; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); text-align: left; cursor: pointer; }
.date-heading strong { color: var(--ink); font-family: "IBM Plex Sans SC", sans-serif; font-size: 13px; }
.date-heading span { font-size: 9px; }
.date-heading i { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: transform .2s; }
.date-group.is-collapsed .date-heading i { transform: rotate(-90deg); }
.story-list { max-height: 5000px; opacity: 1; transition: max-height .55s cubic-bezier(.22,1,.36,1), opacity .25s ease; overflow: hidden; }
.date-group.is-collapsed .story-list { max-height: 0; opacity: 0; }
.story-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 32px; gap: 15px; align-items: start; padding: 19px 16px 17px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .18s; }
.story-row:last-child { border-bottom: 0; }
.story-row:hover { background: var(--surface-strong); }
.story-row.is-open { background: var(--surface-strong); }
.story-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--green),var(--lime)); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.story-row:hover::before, .story-row.is-open::before { transform: scaleY(1); }
.story-copy { min-width: 0; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.story-meta .channel { color: var(--green); font-weight: 600; }
.story-meta i { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }
.story-copy h3 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.story-copy h3 a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.story-copy h3 a:hover { color: var(--green); text-decoration: underline; }
.story-copy > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel-overview { margin-top: 34px; display: grid; gap: 16px; }
.channel-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 24px 0 8px; border-top: 1px solid var(--line); }
.channel-overview-heading p, .channel-section-head p { margin: 0; color: var(--green); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.channel-overview-heading h2 { margin: 4px 0 0; font-size: 20px; }
.channel-overview-heading > span { color: var(--muted); font-size: 10px; text-align: right; }
.channel-section { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.channel-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.channel-section-head h3 { margin: 4px 0 0; font-size: 16px; }
.channel-section-head > span { color: var(--muted); font-size: 10px; }
.channel-story-list { display: grid; grid-template-columns: 1fr; }
.channel-story { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.channel-story + .channel-story { border-top: 1px solid var(--line); }
.channel-story-copy { min-width: 0; }
.channel-story h3 { margin: 0; font-size: 13px; line-height: 1.5; }
.channel-story h3 a { color: inherit; text-decoration: none; }
.channel-story h3 a:hover { color: var(--green); text-decoration: underline; }
.channel-story p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.channel-story .bookmark { margin-top: auto; align-self: flex-end; }
.channel-more { width: 100%; padding: 12px 16px; border: 0; border-top: 1px dashed var(--line-strong); color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 600; cursor: pointer; }
.channel-more:hover { background: var(--surface-strong); }
.channel-empty { grid-column: 1 / -1; padding: 24px 16px; color: var(--muted); font-size: 11px; }
.bookmark { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 3px; border: 0; border-radius: 8px; color: var(--faint); background: transparent; cursor: pointer; }
.bookmark:hover { color: var(--green); background: var(--green-soft); }
.bookmark .ui-icon { width: 15px; height: 15px; }
.bookmark.is-saved { color: var(--green); }
.bookmark.is-saved .ui-icon { background: var(--green); }
.story-detail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3px; padding: 14px 0 3px; animation: reveal .25s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.detail-block { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.detail-block > span { display: inline-flex; margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 600; letter-spacing: .06em; }
.detail-block p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.detail-source { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; border-radius: 9px; background: var(--green-soft); font-size: 10px; }
.detail-source span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.detail-source a { flex: 0 0 auto; color: var(--green); text-decoration: none; font-weight: 600; }
.detail-source a:hover { text-decoration: underline; }
.detail-focus { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); background: transparent; font-size: 9px; cursor: pointer; transition: background .2s,color .2s,transform .2s; }
.detail-focus:hover { color: #fff; background: var(--green); transform: translateY(-1px); }
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: translateY(0); transition: opacity .58s ease var(--reveal-delay,0ms), transform .58s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms); }
.loading-row { height: 112px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(100deg,var(--surface) 30%,var(--surface-strong) 47%,var(--surface) 64%); background-size: 300% 100%; animation: loading 1.3s infinite; }
@keyframes loading { to { background-position: -150% 0; } }
.empty-state { padding: 55px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.empty-state span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-family: "IBM Plex Sans SC", sans-serif; }
.empty-state h3 { margin: 14px 0 6px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.context-rail { position: sticky; top: calc(var(--header-height) + 22px); display: grid; gap: 12px; }
.context-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.daily-card ol { list-style: none; margin: 17px 0 0; padding: 0; }
.daily-card li { border-top: 1px solid var(--line); }
.daily-card button { width: 100%; display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 0; border: 0; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.daily-card button:hover { color: var(--ink); }
.daily-card button span { color: var(--green); font-family: "IBM Plex Sans SC", sans-serif; font-size: 9px; }
.daily-card button b { font-size: 10px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.daily-brief-link { display: inline-flex; margin-top: 12px; color: var(--green); font-size: 10px; font-weight: 600; text-decoration: none; }
.daily-brief-link:hover { text-decoration: underline; }
.filter-card dl { margin: 16px 0 13px; }
.filter-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 10px; }
.filter-card dt { color: var(--muted); }
.filter-card dd { margin: 0; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.filter-card small { display: block; color: var(--faint); font-size: 9px; line-height: 1.6; }
.back-top { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.back-top:hover { color: var(--green); border-color: var(--green); }
.back-top .ui-icon { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(20px,3.2vw,52px); border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer .icp-filing-link { color: var(--green); font-weight: 700; text-underline-offset: 3px; }

.search-dialog { width: min(680px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.search-dialog::backdrop { background: rgba(4,15,11,.6); backdrop-filter: blur(6px); }
.search-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface-strong); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.search-head h2 { margin: 5px 0 0; font-size: 20px; }
.search-head button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--bg); cursor: pointer; }
.search-head button .ui-icon { width: 15px; height: 15px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
.search-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb,var(--green) 12%,transparent); }
.search-input-wrap .ui-icon { width: 19px; height: 19px; color: var(--green); }
.search-input-wrap input { width: 100%; height: 54px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-input-wrap input::placeholder { color: var(--faint); }
.search-suggestions { display: flex; justify-content: space-between; gap: 20px; padding: 11px 2px 18px; color: var(--faint); font-size: 9px; }
.search-suggestions span:last-child { color: var(--green); }
.search-live { display: grid; gap: 4px; max-height: 230px; overflow: auto; }
.search-live:empty { display: none; }
.search-result { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.search-result:hover, .search-result.is-active { color: var(--ink); background: var(--green-soft); }
.search-result > span:first-child { color: var(--green); font-family: ui-monospace,monospace; font-size: 9px; }
.search-result b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; }
.search-result small { font-size: 8px; }
.search-actions { display: flex; justify-content: flex-end; gap: 8px; }
.search-actions button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 10px; cursor: pointer; }
.search-actions button:last-child { border-color: var(--green); color: #fff; background: var(--green); }
.search-actions span { margin-left: 7px; opacity: .7; }

@media (max-width: 1180px) {
  .hotspot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hot-card:nth-child(2) { border-right: 0; }
  .hot-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hotspot-grid:has(.hot-card:hover) .hot-card, .hotspot-grid:has(.hot-card:hover) .hot-card:hover { flex: none; }
  .content-grid { grid-template-columns: minmax(0,1fr) 220px; gap: 22px; }
  .search-command { min-width: 150px; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 256px; --header-height: 62px; }
  .sidebar { transform: translateX(-100%); box-shadow: 18px 0 50px rgba(0,0,0,.25); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .rail-toggle { display: none; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; }
  .edition { display: none; }
  .command-bar { padding: 0 18px; }
  .search-command { min-width: 38px; width: 38px; justify-content: center; padding: 0; }
  .search-command > span:not(.ui-icon), .search-command kbd, .saved-command > span:not(.ui-icon) { display: none; }
  .saved-command { width: 45px; justify-content: center; padding: 0; }
  main { padding: 30px 18px 60px; }
  .content-grid { grid-template-columns: 1fr; }
  .context-rail { position: static; grid-template-columns: 1fr 1fr; }
  .back-top { display: none; }
}

@media (max-width: 760px) {
  .brand-hero { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { padding: 10px 0 18px; }
  .source-radar { min-height: 230px; }
}

@media (max-width: 640px) {
  .command-actions { gap: 6px; }
  .search-command, .saved-command { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
  .search-command > span:not(.ui-icon), .saved-command > span:not(.ui-icon) { display: none; }
  .search-command kbd, .saved-command b { display: none; }
  .hero-copy h1 { font-size: 39px; }
  .hero-lead { font-size: 12px; }
  .hero-proof { gap: 5px; }
  .source-radar { padding: 18px; }
  .section-title-row { align-items: flex-start; }
  .section-title-row > span { max-width: 135px; text-align: right; line-height: 1.5; }
  .hotspot-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; }
  .hot-card { min-width: 82vw; scroll-snap-align: start; border-right: 1px solid var(--line) !important; border-bottom: 0 !important; }
  .hot-card:last-child { border-right: 0 !important; }
  .stream-toolbar { overflow-x: auto; scrollbar-width: none; }
  .filter-chips { flex-wrap: nowrap; }
  .filter-chips button { white-space: nowrap; }
  .story-row { grid-template-columns: minmax(0,1fr) 32px; gap: 10px; padding: 16px 14px; }
  .story-copy { grid-column: 1; }
  .bookmark { grid-column: 2; grid-row: 1; }
  .story-detail { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .detail-source { grid-column: 1; align-items: flex-start; flex-direction: column; gap: 8px; }
  .context-rail { grid-template-columns: 1fr; }
  .channel-overview-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .channel-overview-heading > span { text-align: left; }
  .channel-story-list { grid-template-columns: 1fr; }
  .channel-story, .channel-story:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .channel-story:first-child { border-top: 0; }
  .filter-card { display: none; }
  footer { flex-direction: column; gap: 5px; }
  .search-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Event-first projection: compact enough for the home surface, explicit about verification. */
.event-section{margin:2.5rem 0 1rem}.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.event-card{border:1px solid var(--line,#dfe5df);border-radius:1rem;padding:1.1rem;background:var(--surface,#fff);box-shadow:0 8px 22px rgba(25,42,35,.05)}.event-card-top,.event-card-foot{display:flex;align-items:center;gap:.55rem;color:var(--muted,#6b756f);font-size:.75rem}.event-card-top span{color:var(--accent,#6b8f47);font-weight:700}.event-card-top b{color:var(--ink,#17231d)}.event-card-top small{margin-left:auto}.event-card h3{margin:.85rem 0 .45rem;font-size:1.02rem;line-height:1.45}.event-card p{margin:0 0 1rem;color:var(--muted,#6b756f);font-size:.86rem;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.event-card-foot{justify-content:space-between}.event-card-foot em{font-style:normal;color:#39734a}.event-empty{color:var(--muted,#6b756f)}
@media (max-width:900px){.event-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.event-grid{grid-template-columns:1fr}}
