:root {
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --ink: #181a1d;
  --muted: #686761;
  --line: #d8d1c4;
  --accent: #c93c2f;
  --accent-dark: #80241c;
  --navy: #21364a;
  --shadow: 0 14px 40px rgba(51, 42, 31, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 232, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 36px)); height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--accent); font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 800; box-shadow: 4px 4px 0 var(--navy); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: "Noto Serif SC", Georgia, serif; font-size: 19px; letter-spacing: .06em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a { padding: 23px 1px 19px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.top-nav a.active { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.language-switch { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.language-switch button { min-width: 40px; padding: 5px 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.language-switch button:last-child { border-right: 0; }
.language-switch button.active { background: var(--ink); color: #fff; }
.site-language-switch { margin-left: 18px; }
.page-shell { width: min(1180px, calc(100% - 36px)); margin: auto; }
.hero { display: grid; grid-template-columns: 1fr 300px; align-items: end; gap: 60px; padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.hero.compact { grid-template-columns: 1fr; padding-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.hero h1 { max-width: 780px; margin: 0; font-family: "Noto Serif SC", Georgia, serif; font-size: clamp(38px, 6vw, 76px); line-height: 1.06; letter-spacing: -.045em; }
.hero-copy { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.generation-card { padding: 24px; background: var(--navy); color: #fff; box-shadow: 8px 8px 0 var(--accent); }
.generation-card span, .generation-card small { display: block; color: #c7d2dc; font-size: 12px; }
.generation-card strong { display: block; margin: 6px 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; }
.filter-panel { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.filter-panel label > span:not(.sr-only) { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); outline: none; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(201, 60, 47, .14); }
.secondary-button, .message-panel button { align-self: end; min-height: 44px; padding: 9px 18px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.filter-actions { display: flex; align-items: end; gap: 8px; }
.hot-toggle.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.stream-heading { display: flex; align-items: end; justify-content: space-between; padding: 46px 0 18px; }
.stream-heading h2 { margin: 0; font: 700 30px/1.1 "Noto Serif SC", Georgia, serif; }
.stream-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.hot-section { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.hot-heading { padding-top: 34px; }
.section-copy { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.hot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.signal-list { display: grid; gap: 12px; }
.signal-card { display: grid; grid-template-columns: 54px 1fr; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease; }
.signal-card:hover { transform: translateY(-2px); border-color: #b9ad9b; }
.featured-incident { border-color: #b78442; box-shadow: 0 14px 38px rgba(128, 63, 28, .11); }
.card-rail { display: flex; align-items: flex-start; justify-content: center; padding-top: 23px; border-right: 1px solid var(--line); }
.card-rail span { writing-mode: vertical-rl; font: 800 11px/1 ui-monospace, monospace; letter-spacing: .16em; }
.priority-P0 .card-rail { background: #9f261e; color: #fff; }
.priority-P1 .card-rail { background: #e8c86e; }
.priority-P2 .card-rail { background: #d9e3e8; }
.priority-P3 .card-rail { background: #e8e3d9; color: var(--muted); }
.card-body { padding: 22px 26px 20px; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.item-language-switch { display: inline-flex; margin-left: auto; border: 1px solid var(--line); }
.item-language-switch button { padding: 2px 7px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.item-language-switch button:last-child { border-right: 0; }
.item-language-switch button.active { background: var(--navy); color: #fff; }
.language-badge { margin-left: auto; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; }
.translation-origin { padding: 2px 7px; border: 1px solid var(--line); font-size: 9px; font-weight: 700; }
.translation-origin.machine { border-color: #d6a64e; background: #fff2cb; color: #6f4d0c; }
.translation-origin.official { background: #edf2eb; color: #315a38; }
.category-pill { padding: 2px 8px; background: var(--navy); color: #fff; font-weight: 700; }
.card-body h3 { margin: 13px 0 8px; overflow-wrap: anywhere; font: 700 clamp(19px, 2.4vw, 25px)/1.35 "Noto Serif SC", Georgia, serif; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-body > p { display: -webkit-box; overflow: hidden; margin: 0; color: #4e4d48; font-size: 14px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.incident-panel { margin-top: 17px; padding: 14px; border: 1px solid #d8bd8b; background: #fff9eb; }
.incident-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.incident-type, .hot-score, .claim-status { display: inline-block; padding: 2px 7px; font: 700 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .03em; }
.incident-type { background: var(--navy); color: #fff; }
.hot-score { background: var(--accent); color: #fff; }
.claim-status { border: 1px solid #d8bd8b; color: #73551c; }
.incident-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.incident-fact { min-width: 0; }
.incident-fact.wide { grid-column: 1 / -1; }
.incident-fact span, .incident-fact strong { display: block; }
.incident-fact span { color: var(--muted); font-size: 9px; font-weight: 700; }
.incident-fact strong { margin-top: 2px; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.verification { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d8bd8b; color: #795f2b; font-size: 10px; font-weight: 700; }
.verification.multi { color: #24613b; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.source-link { flex: 0 0 auto; color: var(--accent-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 36px 0 68px; }
.pagination button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.pagination button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .38; cursor: not-allowed; }
.ellipsis { padding: 0 5px; color: var(--muted); }
.message-panel { margin: 16px 0; padding: 28px; border: 1px dashed var(--line); background: var(--surface); text-align: center; }
.message-panel.error { border-color: #b7473e; color: #76201a; }
.site-footer { padding: 28px 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.status-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 28px 0; }
.status-summary div { padding: 17px; background: var(--surface); border: 1px solid var(--line); }
.status-summary span, .status-summary strong { display: block; }
.status-summary span { color: var(--muted); font-size: 11px; }
.status-summary strong { margin-top: 5px; font: 700 26px/1 ui-monospace, monospace; }
.status-table-wrap { overflow-x: auto; margin-bottom: 70px; background: var(--surface); border: 1px solid var(--line); }
.status-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.status-table th, .status-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { background: #ece6db; font-size: 11px; }
.status-table td small { display: block; color: var(--muted); }
.status-badge { display: inline-block; padding: 3px 8px; background: #ddd; font-size: 11px; font-weight: 700; }
.status-healthy { background: #cfe5cf; color: #245a2b; }.status-empty { background: #dce5ea; }.status-failed, .status-blocked { background: #f1c9c5; color: #7a201a; }.status-degraded, .status-needs_config { background: #f2dfad; color: #6f5215; }
.error-cell { max-width: 360px; color: #7a201a; overflow-wrap: anywhere; }
[lang="en"] .hero h1, [lang="en"] .stream-heading h2, [lang="en"] .card-body h3 { letter-spacing: -.025em; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; }.generation-card { max-width: 420px; }.filter-panel { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }.hot-list { grid-template-columns: 1fr; }.status-summary { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .header-inner, .page-shell { width: min(100% - 22px, 1180px); }.header-inner { min-height: 88px; height: auto; flex-wrap: wrap; padding-top: 9px; }.brand { order: 1; flex: 1 1 auto; gap: 8px; }.brand-mark { width: 32px; height: 32px; font-size: 18px; }.brand strong { font-size: 15px; }.brand small { display: none; }.top-nav { order: 3; width: 100%; justify-content: center; gap: 24px; margin: 2px 0 0; }.top-nav a { padding: 7px 0 8px; font-size: 11px; }.site-language-switch { order: 2; margin-left: auto; }.language-switch button { min-width: 34px; padding: 4px 6px; font-size: 10px; }.hero { padding-top: 38px; gap: 32px; }.hero h1 { font-size: clamp(35px, 11vw, 42px); }.filter-panel { grid-template-columns: 1fr; }.filter-actions { width: 100%; }.filter-actions button { flex: 1 1 0; }.search-field { grid-column: auto; }.stream-heading { align-items: flex-start; gap: 12px; }.signal-card { grid-template-columns: 36px 1fr; }.card-body { padding: 18px 16px; }.card-footer { align-items: flex-start; flex-direction: column; }.item-language-switch, .language-badge { margin-left: 0; }.incident-facts { grid-template-columns: 1fr; }.incident-fact.wide { grid-column: auto; }.status-summary { grid-template-columns: 1fr 1fr; } }
