:root {
    --page: #f5f6f8;
    --surface: #ffffff;
    --soft: #eef1f5;
    --ink: #171924;
    --muted: #6e7482;
    --faint: #9aa1ad;
    --line: #e2e5eb;
    --coral: #f2674f;
    --teal: #1ea7a1;
    --yellow: #e9b94e;
    --purple: #685bd0;
    --max: 1180px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) { --page:#101219; --surface:#1b1e27; --soft:#232733; --ink:#f6f7fa; --muted:#a8afbd; --faint:#737b89; --line:#303542; --coral:#ff8068; --teal:#50cbc1; --yellow:#f0c766; --purple:#9186ea; }
}
html[data-theme="dark"] { --page:#101219; --surface:#1b1e27; --soft:#232733; --ink:#f6f7fa; --muted:#a8afbd; --faint:#737b89; --line:#303542; --coral:#ff8068; --teal:#50cbc1; --yellow:#f0c766; --purple:#9186ea; }
html[data-theme="light"] { --page:#f5f6f8; --surface:#ffffff; --soft:#eef1f5; --ink:#171924; --muted:#6e7482; --faint:#9aa1ad; --line:#e2e5eb; --coral:#f2674f; --teal:#1ea7a1; --yellow:#e9b94e; --purple:#685bd0; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .hero, html[data-theme="dark"] .hero { color: #fff; background: #202431; border-color: #303542; box-shadow: none; }
    :root:not([data-theme]) .hero::after, html[data-theme="dark"] .hero::after { border-color: rgba(255,255,255,.12); box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 77px rgba(255,255,255,.02); }
    :root:not([data-theme]) .hero .eyebrow, html[data-theme="dark"] .hero .eyebrow { color: #ffad99; }
    :root:not([data-theme]) .hero-text, html[data-theme="dark"] .hero-text { color: #c8ced8; }
    :root:not([data-theme]) .hero-meta, html[data-theme="dark"] .hero-meta { color: #aeb6c3; }
    :root:not([data-theme]) .hero-meta strong, html[data-theme="dark"] .hero-meta strong { color: #fff; }
    :root:not([data-theme]) .hero-meter, html[data-theme="dark"] .hero-meter { color: #fff; background: #2a2e3a; }
    :root:not([data-theme]) .signal-inputs, html[data-theme="dark"] .signal-inputs { color: #fff; background: #292d3b; border-color: transparent; box-shadow: 0 14px 35px rgba(0,0,0,.2); }
    :root:not([data-theme]) .signal-inputs .eyebrow, html[data-theme="dark"] .signal-inputs .eyebrow { color: #77dcd3; }
    :root:not([data-theme]) .mini-index, html[data-theme="dark"] .mini-index { color: #77dcd3; border-color: #77dcd3; }
    :root:not([data-theme]) .signal-inputs li, html[data-theme="dark"] .signal-inputs li { border-top-color: rgba(255,255,255,.13); color: #d6dae2; }
    :root:not([data-theme]) .input-number, html[data-theme="dark"] .input-number { color: #7d8795; }
}
html[data-theme="dark"] .hero { color: #fff; background: #202431; border-color: #303542; box-shadow: none; }
html[data-theme="dark"] .hero::after { border-color: rgba(255,255,255,.12); box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 77px rgba(255,255,255,.02); }
html[data-theme="dark"] .hero .eyebrow { color: #ffad99; }
html[data-theme="dark"] .hero-text { color: #c8ced8; }
html[data-theme="dark"] .hero-meta { color: #aeb6c3; }
html[data-theme="dark"] .hero-meta strong { color: #fff; }
html[data-theme="dark"] .hero-meter { color: #fff; background: #2a2e3a; }
html[data-theme="dark"] .signal-inputs { color: #fff; background: #292d3b; border-color: transparent; box-shadow: 0 14px 35px rgba(0,0,0,.2); }
html[data-theme="dark"] .signal-inputs .eyebrow { color: #77dcd3; }
html[data-theme="dark"] .mini-index { color: #77dcd3; border-color: #77dcd3; }
html[data-theme="dark"] .signal-inputs li { border-top-color: rgba(255,255,255,.13); color: #d6dae2; }
html[data-theme="dark"] .input-number { color: #7d8795; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-shell { min-height: 100vh; }
.topbar, .site-header { width: min(calc(100% - 32px), 1200px); height: 68px; margin: 18px auto 0; padding: 0 18px; display: flex; align-items: center; gap: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(31, 37, 51, .07); position: sticky; top: 14px; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--coral); font-size: 17px; font-weight: 800; box-shadow: 0 6px 14px rgba(242, 103, 79, .25); }
.brand-word { color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.05; }
.brand-word small { display: block; color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: 1.3px; margin-top: 5px; }
.main-nav { height: 100%; display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.main-nav a { height: 100%; display: grid; place-items: center; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-bottom-color: var(--coral); }
.tools { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.tool-button, .publish-link { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer; }
.tool-button:hover, .publish-link:hover { color: var(--ink); border-color: var(--teal); }
.tool-icon { color: var(--teal); font-weight: 800; }
.publish-link { color: #fff; background: var(--ink); border-color: var(--ink); }
.publish-link:hover { color: #fff; background: var(--coral); border-color: var(--coral); }
.follow-link { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; }
.follow-link:hover { color: var(--ink); border-color: var(--ink); }
.x-mark { color: var(--ink); font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; line-height: 1; }
.hero { min-height: 360px; margin-top: 22px; padding: 48px 54px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 58px; align-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; position: relative; box-shadow: 0 14px 36px rgba(31,37,51,.07); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: 170px; bottom: -170px; border: 1px solid rgba(31,37,51,.09); border-radius: 50%; box-shadow: 0 0 0 38px rgba(31,37,51,.035), 0 0 0 77px rgba(31,37,51,.02); pointer-events: none; }
.eyebrow { margin: 0 0 11px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.hero .eyebrow { color: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 13px; font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: 0; }
.hero-text { max-width: 550px; margin-bottom: 23px; color: var(--muted); font-size: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; }
.hero-meta strong { color: var(--ink); font-weight: 650; }
.live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #7ee3b2; box-shadow: 0 0 0 5px rgba(126,227,178,.13); }
.meta-separator { color: #555e6d; }
.hero-meter { position: relative; z-index: 1; padding: 24px; color: var(--ink); background: #fbfbf9; border-radius: 20px; }
.meter-label, .probability-kicker, .summary-label { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.hero-meter strong { display: block; margin-top: 14px; font-size: 58px; line-height: 1; font-weight: 800; }
.hero-meter > span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.meter-line, .probability-scale { height: 6px; margin-top: 20px; overflow: hidden; background: #e9edf0; border-radius: 999px; }
.meter-line i, .probability-scale span { display: block; height: 100%; background: var(--coral); border-radius: inherit; }
.last-reset { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.last-reset > span, .last-reset > small { display: block; color: var(--faint); font-size: 10px; }
.last-reset strong { display: block; margin-top: 3px; color: var(--coral); font-size: 22px; line-height: 1.15; font-weight: 800; }
.watch-section { padding: 72px 0 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 27px; }
h2 { margin-bottom: 0; font-size: 34px; line-height: 1.17; font-weight: 800; letter-spacing: 0; }
.section-note { max-width: 360px; margin-bottom: 3px; color: var(--muted); font-size: 11px; text-align: right; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr); gap: 16px; }
.codex-card, .signal-inputs { border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 12px 34px rgba(31,37,51,.06); }
.codex-card { padding: 28px; background: var(--surface); border-top: 4px solid var(--coral); }
.codex-card-head, .codex-card-foot, .product-lockup, .inputs-head, .event-meta, .event-source { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-lockup { justify-content: flex-start; }
.product-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--ink); font-size: 20px; font-weight: 800; }
.product-lockup strong { display: block; font-size: 19px; line-height: 1.1; font-weight: 800; }
.product-lockup small { display: block; color: var(--faint); font-size: 10px; margin-top: 4px; }
.signal-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.signal-status i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--yellow); margin-right: 6px; }
.status-likely i, .status-announced i { background: var(--coral); }
.status-confirmed i { background: var(--success); }
.codex-card-body { display: grid; grid-template-columns: .72fr 1.28fr; gap: 48px; padding: 44px 0 35px; }
.probability-value { margin-top: 11px; color: var(--coral); font-size: 70px; line-height: 1; font-weight: 800; }
.probability-value small { color: var(--muted); font-size: 18px; margin-left: 3px; }
.probability-scale { margin-top: 23px; }
.signal-summary { align-self: center; padding: 21px; background: var(--soft); border-radius: 17px; }
.signal-summary strong { display: block; margin-top: 11px; font-size: 19px; line-height: 1.35; font-weight: 720; }
.signal-summary p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.codex-card-foot { padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.codex-card-foot a { color: var(--accent-strong); }
.countdown { margin-top: 12px; color: var(--warm); font-size: 11px; }
.signal-inputs { padding: 27px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(31,37,51,.07); }
.signal-inputs .eyebrow { color: var(--teal); }
.inputs-head { justify-content: flex-start; align-items: flex-start; }
.inputs-head h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 750; }
.mini-index { width: 31px; height: 31px; display: grid; place-items: center; color: var(--teal); border: 1px solid var(--teal); border-radius: 10px; font-size: 11px; font-weight: 800; }
.signal-inputs ul { list-style: none; padding: 0; margin: 31px 0 0; }
.signal-inputs li { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.input-number { color: var(--faint); font-size: 10px; font-weight: 750; }
.timeline-section { padding: 76px 0 88px; background: var(--soft); border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 10px; }
.filter:hover, .filter.active { color: var(--accent-strong); border-color: var(--teal); }
.timeline { margin-left: 155px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; display: block; padding: 0 0 39px 35px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item time { position: absolute; right: calc(100% + 36px); top: 0; color: var(--faint); font-size: 10px; white-space: nowrap; }
.timeline-pin { position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border: 3px solid var(--soft); border-radius: 50%; background: var(--coral); }
.timeline-content { max-width: 700px; padding: 1px 0 2px; }
.event-meta { justify-content: flex-start; color: var(--faint); font-size: 10px; margin-bottom: 7px; }
.event-meta span:first-child { color: var(--accent-strong); font-weight: 750; }
.timeline-content h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.timeline-content p { margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.event-source { justify-content: flex-start; color: var(--faint); font-size: 10px; }
.event-source a { color: var(--accent-strong); }
.empty-state { padding: 66px 24px; text-align: center; }
.empty-mark { color: var(--coral); font-size: 30px; line-height: 1; }
.empty-state h3 { margin: 13px 0 5px; font-size: 18px; font-weight: 700; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.about-section { padding: 86px 0; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; max-width: 930px; }
.about-grid h2 { max-width: 350px; }
.about-grid p { color: var(--muted); font-size: 14px; margin-bottom: 15px; }
.about-grid .small-note { color: var(--faint); font-size: 11px; margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; padding: 20px 0 30px; color: var(--faint); font-size: 10px; }
.site-footer a { color: var(--accent-strong); }
.install-section { padding: 84px 0 92px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.install-card { min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 12px 34px rgba(31,37,51,.06); }
.install-card-head { display: flex; align-items: flex-start; gap: 14px; }
.install-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 800; flex: 0 0 auto; }
.install-card h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; font-weight: 750; }
.install-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.install-card ol { margin: 29px 0 23px; padding: 0 0 0 21px; color: var(--muted); font-size: 13px; }
.install-card li { padding: 7px 0 7px 4px; }
.install-card li::marker { color: var(--coral); font-weight: 800; }
.install-link { display: inline-flex; align-items: center; color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.install-link:hover { color: var(--coral); }
.cli-install { color: #f6f7fb; background: #171a25; border-color: #303546; box-shadow: 0 14px 35px rgba(11,14,22,.18); }
.cli-install .install-icon { color: #171a25; background: #86ddd3; }
.cli-install h3 { color: #fff; }
.cli-install .install-card-head p, .cli-signin { color: #aab3c2; }
.cli-platform { display: inline-flex; margin-top: 27px; padding: 4px 9px; color: #86ddd3; border: 1px solid #38625f; border-radius: 999px; font-size: 10px; font-weight: 700; }
.cli-install pre { margin: 15px 0 13px; padding: 17px; overflow-x: auto; color: #f7d898; background: #0d1018; border: 1px solid #2b3140; border-radius: 13px; font-size: 12px; line-height: 1.8; }
.cli-install code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cli-signin { margin: 0 0 12px; 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; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-heading h1 { margin-bottom: 0; font-size: 37px; }
.admin-heading > p { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.admin-grid, .admin-lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.admin-panel { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 34px rgba(31,37,51,.06); }
.admin-panel h2 { margin-bottom: 19px; font-size: 21px; }
.publish-form label, .login-form label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.publish-form input, .publish-form select, .publish-form textarea, .login-form input { width: 100%; display: block; margin-top: 5px; padding: 10px 11px; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 11px; outline: none; }
.publish-form input:focus, .publish-form select:focus, .publish-form textarea:focus, .login-form input:focus { border-color: var(--teal); }
.publish-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.publish-form .button, .login-form .button { width: 100%; border-radius: 999px; }
.admin-list-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; }
.admin-list-row strong { font-weight: 650; }
.admin-list-row span { color: var(--muted); }
.admin-list-row time { color: var(--faint); font-size: 10px; }
.logout-form { margin: 0; }
.logout-form button { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.flash { margin-bottom: 17px; padding: 10px 13px; color: var(--success); background: var(--surface); border: 1px solid var(--success); border-radius: 12px; font-size: 11px; }
.login-shell { width: min(calc(100% - 32px), 410px); margin: 0 auto; padding-top: 65px; }
.login-form { margin-top: 55px; padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 34px rgba(31,37,51,.06); }
.login-form h1 { margin-bottom: 7px; font-size: 30px; }
.login-form p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
@media (max-width: 820px) {
    .wrap { width: min(calc(100% - 32px), var(--max)); }
    .topbar, .site-header { width: calc(100% - 20px); height: 60px; margin-top: 10px; padding: 0 11px; gap: 10px; border-radius: 16px; top: 7px; }
    .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
    .brand-word { font-size: 15px; }
    .main-nav { gap: 11px; font-size: 10px; }
    .main-nav a:nth-child(2), .main-nav a:nth-child(3) { display: none; }
    .tools { gap: 4px; }
    .tool-button, .publish-link { min-height: 30px; padding: 0 8px; font-size: 10px; }
    .theme-button span:last-child { display: none; }
    .publish-link { font-size: 0; }
    .publish-link span { font-size: 14px; }
    .follow-link { min-height: 30px; padding: 0 8px; font-size: 10px; }
    .follow-link span:last-child { display: none; }
    .hero { min-height: auto; margin-top: 12px; padding: 34px 24px 24px; grid-template-columns: 1fr; gap: 26px; border-radius: 22px; }
    .hero::after { right: 20px; bottom: -190px; }
    h1 { font-size: 37px; }
    .hero-text { font-size: 14px; }
    .hero-meter { padding: 20px; }
    .watch-section { padding: 54px 0 64px; }
    .section-heading { display: block; }
    .section-note { max-width: 410px; margin-top: 11px; text-align: left; }
    h2 { font-size: 29px; }
    .watch-grid, .install-grid { grid-template-columns: 1fr; }
    .codex-card, .signal-inputs { border-radius: 20px; }
    .codex-card { padding: 23px; }
    .codex-card-body { grid-template-columns: 1fr; gap: 27px; padding: 34px 0 28px; }
    .probability-value { font-size: 62px; }
    .signal-summary { padding: 18px; }
    .timeline-section { padding: 55px 0 65px; }
    .filter-bar { margin-top: 16px; }
    .timeline { margin-left: 7px; }
    .timeline-item { padding-left: 25px; }
    .timeline-item time { position: static; display: block; margin-bottom: 7px; }
    .timeline-pin { top: 36px; }
    .about-section { padding: 63px 0; }
    .install-section { padding: 64px 0 70px; }
    .install-card { min-height: 0; padding: 23px; border-radius: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { display: block; }
    .site-footer span { display: block; margin-top: 5px; }
    .admin-heading { display: block; }
    .admin-heading > p { margin-top: 9px; }
    .admin-grid, .admin-lists { grid-template-columns: 1fr; }
    .admin-list-row { grid-template-columns: 1fr; gap: 1px; }
}
