:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --white: #fffefa;
  --ink: #171916;
  --muted: #636761;
  --line: #c8c9c2;
  --line-light: #e1e1da;
  --orange: #f26730;
  --orange-dark: #b74720;
  --orange-wash: #fff0e6;
  --green: #446858;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { max-width: 1600px; min-height: 100vh; margin: 0 auto; background: var(--white); box-shadow: 0 0 0 1px rgba(20, 21, 18, .04); }

.site-header { height: 76px; padding: 0 4.15%; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; letter-spacing: -.065em; }
.brand-frontier, .footer-brand { font-weight: 850; font-size: 27px; }
.brand-slash { color: var(--orange); font-size: 31px; font-weight: 800; padding: 0 3px; }
.brand-product { font-size: 14px; font-weight: 900; letter-spacing: -.035em; }
.header-actions { height: 100%; display: flex; align-items: center; gap: 29px; }
.sibling-link, .language-toggle { font-size: 11px; font-weight: 800; letter-spacing: .055em; }
.sibling-link span { color: var(--orange); margin-left: 3px; }
.sibling-link:hover { color: var(--orange-dark); }
.language-toggle { border: 0; background: none; padding: 11px 0 11px 18px; border-left: 1px solid var(--line); }
.language-toggle span { color: var(--line); padding: 0 3px; }
.language-toggle[aria-pressed="true"] { color: var(--orange-dark); }
.masthead-line { min-height: 35px; padding: 0 4.15%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.masthead-right { display: inline-flex; align-items: center; gap: 8px; }
.orange-square { display: inline-block; width: 7px; height: 7px; background: var(--orange); }

.intro { padding: 25px 4.15% 20px; border-bottom: 1px solid var(--ink); }
.intro-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.intro .eyebrow { flex-basis: 100%; }
.intro h1 { margin: 0; font-size: clamp(33px, 3.5vw, 46px); line-height: 1; letter-spacing: -.08em; font-weight: 850; }
.intro h1 span { color: var(--orange); }
.intro p { max-width: 680px; margin: 0; color: #555a53; font-size: 12px; line-height: 1.5; }
.preview-notice { margin: 0 4.15%; min-height: 32px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-light); color: #73776f; font-size: 10px; letter-spacing: .03em; }
.notice-icon { color: var(--orange); font-size: 8px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; margin: 0 4.15%; }
.left-rail { display: none; }
.rail-heading, .panel-topline, .section-kicker { font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.rail-heading { display: flex; justify-content: space-between; margin-bottom: 24px; }
.rail-heading span { color: #a0a39b; font-weight: 600; }
.rail-link { display: flex; align-items: center; min-height: 47px; gap: 14px; border-top: 1px solid var(--line-light); font-size: 13px; font-weight: 730; }
.rail-link:last-of-type { border-bottom: 1px solid var(--line-light); }
.rail-link > span:first-child { color: #9fa29a; font-size: 10px; font-weight: 700; }
.rail-link > span:last-child { margin-left: auto; opacity: 0; color: var(--orange); }
.rail-link.selected, .rail-link:hover { color: var(--orange-dark); }
.rail-link.selected > span:last-child, .rail-link:hover > span:last-child { opacity: 1; }
.rail-note { margin-top: 66px; border-top: 2px solid var(--ink); padding-top: 14px; }
.rail-note p { max-width: 164px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.feed-column { padding: 20px 0 45px; min-width: 0; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-kicker b { color: var(--orange-dark); margin-right: 8px; }
.section-kicker > span:last-child { color: #9b9f97; }
.feed-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 10px 0 15px; }
.feed-heading h1 { font-size: 22px; line-height: 1.2; letter-spacing: -.055em; margin: 0; }
.feed-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feed-heading-actions { display: flex; align-items: center; gap: 16px; }
.refresh-feed { width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; }
.refresh-feed:hover { border-color: var(--orange); color: var(--orange-dark); }
.manage-watchlist { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.manage-watchlist:hover { color: var(--orange-dark); }
.feed-counter { flex: none; display: flex; gap: 5px; align-items: baseline; }
.feed-counter strong { color: var(--orange-dark); font-size: 14px; font-weight: 900; }
.feed-counter span { color: #8b8e87; font-size: 10px; white-space: nowrap; }
.feed-tools { position: sticky; top: 0; z-index: 2; min-height: 44px; display: flex; align-items: stretch; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.filter-scroll { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-button { background: transparent; border: 0; border-right: 1px solid var(--line-light); padding: 0 16px; white-space: nowrap; font-size: 11px; font-weight: 760; }
.filter-button:first-child { padding-left: 16px; }
.filter-button span { font-family: var(--serif); font-weight: 600; margin-left: 4px; opacity: .55; }
.filter-button.active { color: white; background: var(--ink); border-color: var(--ink); }
.filter-button:hover:not(.active) { background: #f4f1ea; }
.search-toggle { flex: 0 0 44px; border: 0; border-left: 1px solid var(--line-light); background: transparent; font-size: 24px; line-height: 1; }
.search-toggle:hover { color: var(--orange-dark); }
.settings-toggle { flex: 0 0 72px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-left: 1px solid var(--line-light); background: transparent; color: var(--ink); font-size: 11px; font-weight: 800; }
.settings-toggle:hover { color: var(--orange-dark); }
.filter-summary { padding: 8px 0; color: var(--muted); font-size: 10px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.search-row { padding: 13px 0; border-bottom: 1px solid var(--line-light); display: flex; align-items: center; gap: 14px; }
.search-row label { white-space: nowrap; color: var(--muted); font-size: 11px; }
.search-row input { width: 100%; background: transparent; border: 0; outline: none; font-size: 13px; }

.wire-item { border-bottom: 1px solid var(--line-light); }
.wire-open { width: 100%; display: flex; gap: 12px; padding: 14px 8px 13px 0; border: 0; background: transparent; color: inherit; text-align: left; }
.wire-open:hover { background: #fcfaf6; }
.wire-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--ink); color: white; font-size: 10px; font-weight: 900; letter-spacing: -.06em; }
.wire-avatar.research { background: var(--orange); }
.wire-avatar.news { background: var(--green); }
.wire-main { display: block; min-width: 0; flex: 1; }
.wire-head { min-height: 18px; display: flex; align-items: baseline; gap: 8px; line-height: 1.4; }
.wire-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 850; }
.wire-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #83877f; font-size: 11px; }
.wire-head time { flex: none; margin-left: auto; color: #83877f; font-size: 11px; white-space: nowrap; }
.wire-text { display: -webkit-box; margin: 6px 0 10px; max-width: 780px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 14px; line-height: 1.55; letter-spacing: -.005em; white-space: pre-wrap; overflow-wrap: anywhere; }
.wire-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wire-kind { color: var(--orange-dark); font-size: 10px; font-weight: 800; margin-right: 4px; }
.wire-ticker { padding: 3px 5px; background: #f0eee8; color: #5b5e57; font-size: 9px; font-weight: 790; }
.wire-translation { padding: 3px 5px; background: #e8f0e8; color: #315541; font-size: 9px; font-weight: 800; }
.wire-jev { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; font-size: 10px; color: #505750; }
.wire-jev span { font-variant-numeric: tabular-nums; }
.wire-jev b { padding: 3px 6px; background: #e8f0e8; color: #315541; font-size: 9px; }
.wire-jev-low b { background: #f0eee8; color: #6b6d66; }
.wire-jev-review b { background: #fff0e6; color: var(--orange-dark); }
.wire-jev-pending { margin-left: auto; color: #969a92; font-size: 9px; }
.empty-state { min-height: 220px; padding: 55px 25px; text-align: center; }
.empty-state b { font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.load-more, .retry-button { width: 100%; padding: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; font-weight: 850; }
.load-more:hover, .retry-button:hover { background: #f5f2eb; }
.feed-end { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; color: #92958e; font-size: 10px; letter-spacing: .05em; }
.feed-end span:first-child { font-weight: 850; letter-spacing: .13em; }
.feed-end b { color: var(--orange); font-size: 16px; }

.right-rail { padding: 20px 0 40px 22px; border-left: 1px solid var(--line-light); }
.watchlist-panel { padding: 13px 0 16px; border-top: 2px solid var(--ink); color: var(--ink); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; }
.watchlist-panel .panel-topline { padding-bottom: 8px; }
.watchlist-panel h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.06em; margin: 0 0 12px; }
.orange-period { color: var(--orange); }
.watchlist-panel > p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 14px; }
.watchlist-chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 33px; }
.watchlist-chip { display: inline-flex; align-items: center; gap: 8px; background: #f1eee8; padding: 7px 8px 7px 9px; font-size: 10px; font-weight: 900; }
.watchlist-chip button { border: 0; background: transparent; padding: 0; line-height: 1; color: #8d8074; font-size: 14px; }
.watchlist-form { margin-top: 13px; border-top: 1px solid var(--line-light); padding-top: 12px; }
.watchlist-form label { display: block; margin-bottom: 9px; font-size: 10px; font-weight: 850; }
.ticker-entry { display: flex; height: 35px; background: #f7f5f0; border: 1px solid var(--line-light); }
.ticker-entry input { width: 100%; min-width: 0; padding: 0 11px; background: transparent; border: 0; outline: none; font-size: 11px; font-weight: 760; text-transform: uppercase; }
.ticker-entry button { width: 40px; flex: none; border: 0; background: var(--ink); color: white; font-size: 21px; }
.ticker-entry button:hover { background: #4a3429; }
.form-hint { min-height: 14px; font-size: 10px !important; margin: 8px 0 0 !important; opacity: .76; }
.watchlist-view { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line-light); background: transparent; text-align: left; font-size: 11px; font-weight: 850; }
.watchlist-view span { font-size: 20px; }
.method-panel { display: none; }
.method-panel .panel-topline { padding: 12px 0 0; }
.method-panel h2 { margin: 25px 0 17px; font-size: 26px; line-height: 1.34; letter-spacing: -.055em; }
.method-row { display: flex; gap: 17px; border-top: 1px solid var(--line-light); padding: 13px 0; }
.method-row span { color: var(--orange-dark); font: italic 16px var(--serif); }
.method-row p { margin: 0; font-size: 11px; line-height: 1.5; }

.site-footer { min-height: 130px; margin: 0 4.15%; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { font-size: 21px; letter-spacing: -.06em; }
.footer-brand .brand-product { font-size: 11px; }
.footer-brand .brand-slash { font-size: 25px; }
.site-footer > span { color: var(--muted); font-size: 11px; }
.site-footer > span:last-child { font-size: 9px; font-weight: 850; letter-spacing: .12em; }

.detail-dialog { width: min(640px, calc(100% - 28px)); max-height: min(82vh, 780px); border: 1px solid var(--ink); padding: 0; color: var(--ink); background: var(--white); box-shadow: 12px 12px 0 rgba(23, 25, 22, .18); }
.detail-dialog::backdrop { background: rgba(16, 20, 16, .65); }
.detail-head { height: 52px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.detail-head button { border: 0; background: none; font-size: 16px; }
#detailContent { padding: 30px 30px 42px; overflow: auto; }
.detail-meta { color: var(--orange-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
#detailTitle { font-size: 28px; line-height: 1.38; letter-spacing: -.05em; margin: 13px 0 18px; }
.detail-reason { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.detail-reason strong { color: var(--orange-dark); font-size: 10px; letter-spacing: .08em; }
.detail-reason p { margin: 6px 0 0; font-size: 13px; line-height: 1.65; }
.detail-body { font-size: 14px; line-height: 1.85; white-space: pre-line; }
.detail-jev { margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-jev > strong { color: var(--orange-dark); font-size: 11px; }
.detail-jev-scores { display: flex; gap: 24px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.detail-jev-scores b { display: block; margin-top: 3px; color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.detail-jev p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-context { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.detail-context > strong { color: var(--orange-dark); font-size: 11px; }
.context-item { padding: 13px 0; border-bottom: 1px solid var(--line-light); }
.context-meta { color: var(--muted); font-size: 10px; font-weight: 800; }
.context-item p { margin: 7px 0; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.context-item a, .detail-source a { color: var(--orange-dark); font-size: 11px; font-weight: 800; }
.detail-source { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.detail-notice { color: var(--orange-dark); font-size: 11px; font-weight: 720; }

.settings-dialog { width: min(440px, calc(100% - 28px)); border: 1px solid var(--ink); padding: 0; color: var(--ink); background: var(--white); box-shadow: 10px 10px 0 rgba(23, 25, 22, .18); }
.settings-dialog::backdrop { background: rgba(16, 20, 16, .55); }
.settings-head { min-height: 67px; margin: 0; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.settings-kicker { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.settings-head h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.04em; }
.settings-head button { border: 0; background: transparent; font-size: 17px; }
.settings-body { padding: 16px 18px 18px; }
.settings-body > p { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.threshold-control { display: block; margin: 18px 0 21px; }
.threshold-control > span:first-child { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; }
.threshold-control output { color: var(--orange-dark); font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.threshold-control input { width: 100%; margin: 13px 0 4px; accent-color: var(--orange-dark); }
.threshold-scale { display: flex; justify-content: space-between; color: #858980; font-size: 9px; }
.settings-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.settings-actions button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; font-weight: 800; }
.settings-actions .settings-done { min-width: 90px; border-color: var(--ink); background: var(--ink); color: white; }

@media (max-width: 1160px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .right-rail { padding-left: 20px; }
}
@media (max-width: 790px) {
  .site-header { height: 62px; padding: 0 18px; }
  .brand-frontier { font-size: 22px; }
  .brand-slash { font-size: 25px; }
  .brand-product { font-size: 12px; }
  .header-actions { gap: 13px; }
  .sibling-link { display: none; }
  .language-toggle { font-size: 10px; border: 0; padding-left: 0; }
  .masthead-line { padding: 0 18px; font-size: 8px; }
  .masthead-right { font-size: 8px; }
  .intro { padding: 14px 18px 13px; }
  .intro-copy { gap: 5px 10px; }
  .intro .eyebrow { display: none; }
  .intro h1 { font-size: 30px; }
  .intro p { flex-basis: 100%; font-size: 11px; line-height: 1.45; }
  .preview-notice { margin: 0 18px; min-height: 30px; font-size: 9px; line-height: 1.35; }
  .content-grid { display: block; margin: 0 18px; }
  .feed-column { padding: 15px 0 26px; }
  .section-kicker { font-size: 9px; }
  .feed-heading { padding: 7px 0 12px; align-items: center; }
  .feed-heading h1 { font-size: 20px; margin: 0; }
  .feed-heading p { display: none; }
  .feed-heading-actions { gap: 11px; }
  .feed-counter strong { font-size: 13px; }
  .feed-counter span { display: none; }
  .feed-tools { min-height: 42px; }
  .filter-button { padding: 0 12px; font-size: 11px; }
  .settings-toggle { flex-basis: 62px; font-size: 10px; }
  .filter-summary { padding: 7px 0; font-size: 9px; }
  .wire-open { gap: 9px; padding: 12px 0 11px; }
  .wire-avatar { width: 31px; height: 31px; font-size: 9px; }
  .wire-text { margin: 5px 0 9px; font-size: 14px; line-height: 1.5; }
  .wire-head strong { font-size: 12px; }
  .wire-head time { font-size: 10px; }
  .wire-handle { display: none; }
  .wire-kind { font-size: 9px; }
  .wire-ticker { font-size: 9px; }
  #detailContent { padding: 20px 18px 30px; }
  .settings-dialog { width: 100%; max-width: none; margin: auto 0 0; border-width: 1px 0 0; box-shadow: none; }
  .settings-dialog[open] { border-radius: 12px 12px 0 0; }
  .settings-body { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  #detailTitle { font-size: 21px; }
  .right-rail { padding: 0 0 30px; border: 0; }
  .watchlist-panel { padding: 13px 0 16px; }
  .site-footer { min-height: 155px; margin: 0 18px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 10px; }
  .site-footer > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .site-footer > span:last-child { text-align: right; }
}
@media (max-width: 380px) {
  .masthead-right { display: none; }
  .manage-watchlist { font-size: 10px; }
  .wire-head { gap: 5px; }
  .wire-text { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
