:root {
    --bg: #0c1117;
    --surface: #131b24;
    --surface-2: #192430;
    --line: #2a3744;
    --text: #edf4f5;
    --muted: #93a3ad;
    --faint: #60717b;
    --cyan: #46c8d8;
    --amber: #e8b65c;
    --red: #ed756d;
    --green: #74ca9c;
    --max: 1180px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.site-header { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - var(--max)) / 2)); background: #0c1117; position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: .2px; }
.brand strong { display: block; line-height: 1.1; font-weight: 700; }
.brand small { display: block; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; line-height: 1.2; margin-top: 3px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--cyan); color: var(--cyan); font-weight: 800; font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active { border-bottom: 2px solid var(--cyan); padding: 24px 0 22px; }
.admin-link { color: var(--cyan); }
.hero { min-height: 236px; display: grid; grid-template-columns: 1fr 330px; gap: 64px; align-items: center; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 6px; font-size: 44px; line-height: 1.16; letter-spacing: 0; font-weight: 700; }
.hero-text { max-width: 590px; color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: #0b161b; font-weight: 700; }
.button.primary:hover { background: #7bddE6; }
.button.ghost { color: var(--muted); }
.button.ghost:hover { color: var(--text); border-color: var(--muted); }
.hero-status { border: 1px solid var(--line); background: var(--surface); padding: 20px 23px; }
.status-line { color: var(--green); font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(116,202,156,.12); vertical-align: 1px; }
.status-number { font-size: 48px; line-height: 1; font-weight: 700; margin: 15px 0 4px; }
.status-caption { color: var(--muted); font-size: 13px; }
.status-divider { border-top: 1px solid var(--line); margin: 17px 0 11px; }
.status-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 11px; margin-top: 7px; }
.status-meta strong { color: var(--muted); font-weight: 500; }
.section { padding: 44px 0 64px; }
.watch-section { padding-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
h2 { margin-bottom: 0; font-size: 30px; line-height: 1.25; font-weight: 650; }
.section-note { max-width: 370px; color: var(--faint); font-size: 12px; text-align: right; margin-bottom: 4px; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.signal-card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--cyan); padding: 23px; min-height: 310px; display: flex; flex-direction: column; }
.accent-cyan { --card-accent: var(--cyan); }
.accent-amber { --card-accent: var(--amber); }
.accent-red { --card-accent: var(--red); }
.accent-green { --card-accent: var(--green); }
.signal-card { border-top-color: var(--card-accent, var(--cyan)); }
.card-topline, .card-footer, .event-meta, .event-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-icon { color: var(--card-accent, var(--cyan)); font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; min-height: 24px; }
.service-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }
.signal-status { color: var(--muted); font-size: 11px; }
.signal-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.status-likely i, .status-announced i { background: var(--red); }
.status-confirmed i { background: var(--green); }
.signal-card h3 { font-size: 21px; margin: 20px 0 4px; font-weight: 650; }
.service-desc { color: var(--muted); font-size: 12px; min-height: 42px; margin-bottom: 17px; }
.probability-row { min-height: 65px; }
.probability { font-size: 25px; font-weight: 650; line-height: 1.2; }
.probability small { font-size: 13px; color: var(--muted); margin-left: 2px; }
.probability-bar { height: 4px; background: #26343f; margin-top: 10px; }
.probability-bar span { height: 100%; display: block; background: var(--card-accent, var(--cyan)); }
.signal-headline { color: var(--text); font-size: 13px; margin-top: 17px; }
.signal-reason { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.card-footer { color: var(--faint); font-size: 11px; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--line); }
.card-footer a, .event-source a { color: var(--card-accent, var(--cyan)); }
.countdown { color: var(--amber); font-size: 11px; margin-top: 12px; }
.signal-legend { display: flex; flex-wrap: wrap; gap: 22px; color: var(--faint); font-size: 11px; margin-top: 20px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.legend-dot.amber { background: var(--amber); }
.legend-dot.red { background: var(--red); }
.legend-dot.green { background: var(--green); }
.timeline-section { background: #111820; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 10px; cursor: pointer; font-size: 11px; }
.filter:hover, .filter.active { border-color: var(--cyan); color: var(--cyan); }
.timeline { border-left: 1px solid var(--line); margin-left: 180px; }
.timeline-item { position: relative; display: block; padding: 0 0 38px 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { position: absolute; right: calc(100% + 39px); top: 0; color: var(--faint); font-size: 11px; white-space: nowrap; }
.timeline-marker { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #111820; background: var(--card-accent, var(--cyan)); left: -5px; top: 4px; }
.timeline-content { max-width: 670px; }
.event-meta { justify-content: flex-start; color: var(--faint); font-size: 11px; margin-bottom: 7px; }
.event-type { color: var(--card-accent, var(--cyan)); }
.timeline-content h3 { font-size: 19px; margin-bottom: 7px; }
.timeline-content p { color: var(--muted); font-size: 13px; margin-bottom: 13px; }
.event-source { justify-content: flex-start; color: var(--faint); font-size: 11px; }
.empty-state { border: 1px dashed var(--line); padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-state span { color: var(--cyan); font-size: 25px; }
.empty-state h3 { color: var(--text); margin: 11px 0 4px; font-size: 18px; }
.empty-state p { margin-bottom: 0; font-size: 12px; }
.about-section { padding: 84px 0; }
.about-box { max-width: 680px; border-left: 2px solid var(--cyan); padding-left: 25px; }
.about-box h2 { margin-bottom: 15px; }
.about-box p { color: var(--muted); font-size: 14px; }
.about-box .small-note { color: var(--faint); font-size: 11px; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; }
.admin-body { min-height: 100vh; }
.admin-main { padding: 60px 0 90px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 22px; }
.admin-heading h1 { font-size: 38px; margin-bottom: 0; }
.admin-heading > p { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.admin-grid, .admin-lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.admin-panel h2 { font-size: 20px; margin-bottom: 20px; }
.publish-form label, .login-form label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.publish-form input, .publish-form select, .publish-form textarea, .login-form input { width: 100%; display: block; color: var(--text); background: #0e151c; border: 1px solid var(--line); outline: none; padding: 10px 11px; margin-top: 5px; border-radius: 0; }
.publish-form textarea { resize: vertical; }
.publish-form input:focus, .publish-form select:focus, .publish-form textarea:focus, .login-form input:focus { border-color: var(--cyan); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.publish-form .button { width: 100%; margin-top: 6px; }
.admin-list-row { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.admin-list-row strong { font-weight: 600; }
.admin-list-row span { color: var(--muted); }
.admin-list-row time { color: var(--faint); font-size: 10px; }
.logout-form { margin: 0; }
.logout-form button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.flash { background: #253b38; border: 1px solid #3d7668; color: #b8e6d2; padding: 10px 13px; font-size: 12px; margin-bottom: 18px; }
.login-shell { width: min(calc(100% - 40px), 420px); margin: 0 auto; padding-top: 80px; }
.login-form { background: var(--surface); border: 1px solid var(--line); padding: 28px; margin-top: 58px; }
.login-form h1 { font-size: 30px; margin-bottom: 8px; }
.login-form p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.login-form .button { width: 100%; margin-top: 7px; }
@media (max-width: 820px) {
    .wrap { width: min(calc(100% - 32px), var(--max)); }
    .site-header { padding: 0 16px; min-height: 64px; }
    .site-nav { gap: 13px; font-size: 11px; }
    .site-nav a.active { padding: 20px 0 18px; }
    .site-nav a:nth-child(2), .site-nav a:nth-child(3) { display: none; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 42px 0 36px; }
    h1 { font-size: 36px; }
    .hero-text { font-size: 15px; }
    .hero-status { max-width: none; }
    .section { padding: 48px 0; }
    .watch-section { padding-top: 34px; }
    .section-heading { display: block; }
    .section-note { text-align: left; margin-top: 12px; }
    .signal-grid { grid-template-columns: 1fr; }
    .signal-card { min-height: 0; }
    .filter-bar { margin-top: 18px; }
    .timeline { margin-left: 8px; }
    .timeline-item { display: block; padding-left: 28px; }
    .timeline-date { position: static; margin: 0 0 8px; padding-top: 2px; }
    .timeline-marker { top: 35px; }
    .about-section { padding: 64px 0; }
    .site-footer { display: block; }
    .site-footer span { display: block; margin-top: 5px; }
    .admin-heading { display: block; }
    .admin-heading > p { margin-top: 10px; }
    .admin-grid, .admin-lists { grid-template-columns: 1fr; }
    .admin-list-row { grid-template-columns: 1fr; gap: 1px; }
}
