:root {
  color-scheme: light;
  --page: #eef3f3;
  --surface: #ffffff;
  --ink: #183338;
  --muted: #576d73;
  --line: #d6e1e1;
  --green: #2f6d57;
  --green-soft: #edf5f0;
  --amber: #815022;
  --amber-soft: #faf1e5;
  --red: #973c3b;
  --red-soft: #fbefef;
  --gray-soft: #e8eeee;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
:focus-visible { outline: 3px solid #2a756f; outline-offset: 4px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 10px 16px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header, main, .site-footer { max-width: 1120px; margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 44px; color: var(--green); border-left: 3px solid var(--green); font-size: 25px; font-family: "Songti SC", "SimSun", serif; line-height: 1; }
.brand strong { display: block; font-size: 18px; line-height: 1.35; font-weight: 650; }
.brand div > span { color: var(--muted); font-size: 12px; }
main { padding: 8px 20px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 3.8vw, 32px); letter-spacing: -.035em; line-height: 1.3; font-weight: 650; margin-bottom: 8px; }
h2 { margin-bottom: 0; font-size: 18px; font-weight: 650; line-height: 1.5; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; font-weight: 650; }
p { margin-bottom: 12px; }
.muted, .small-note { color: var(--muted); }
.small-note { font-size: 12px; }
.button { min-height: 44px; border-radius: 6px; border: 1px solid transparent; padding: 9px 15px; font-size: 14px; font-weight: 600; line-height: 1.6; flex-shrink: 0; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover:not(:disabled) { background: #23553f; }
.button-quiet { background: transparent; color: var(--ink); border-color: #b6c8c9; }
.button-quiet:hover:not(:disabled) { background: #e3eded; }
.button:disabled { cursor: wait; opacity: .58; }
input, select { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; color: var(--ink); background: var(--surface); border: 1px solid #91a6aa; border-radius: 5px; line-height: 1.5; }
input::placeholder { color: #62767b; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.login-panel { max-width: 500px; margin: 6vh auto 7vh; padding: 30px 28px; background: var(--surface); border-top: 3px solid var(--green); border-radius: 0 0 10px 10px; }
.scope-label { color: var(--green); margin-bottom: 20px; font-size: 13px; }
.login-intro { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field-help { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.login-panel input { margin-bottom: 16px; }
.login-panel .button-primary { width: 100%; }
.form-message { font-size: 14px; margin: 14px 0 8px; min-height: 23px; }
.form-message[data-error="true"] { color: var(--red); }
.privacy-note { color: var(--muted); font-size: 12px; padding-top: 22px; margin-top: 22px; margin-bottom: 0; border-top: 1px solid var(--line); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-heading p { font-size: 13px; margin-bottom: 0; }
.status-panel { padding: 21px 22px; background: #e4eded; border-left: 4px solid #6c8589; border-radius: 0 8px 8px 0; }
.status-panel[data-state="attention"] { background: var(--amber-soft); border-left-color: var(--amber); }
.status-panel[data-state="observing"] { background: #e5efed; border-left-color: #587c73; }
.status-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 9px; }
.status-heading h2 { font-size: 21px; letter-spacing: -.02em; }
.status-panel p { font-size: 14px; max-width: 75ch; margin-bottom: 16px; }
.badge { display: inline-block; flex-shrink: 0; padding: 3px 8px; font-size: 12px; font-weight: 600; line-height: 1.6; border-radius: 4px; }
.badge-unknown, .badge-stale { background: #dce6e6; color: #405b61; }
.badge-ok { background: #e3f0e7; color: #275c43; }
.badge-observing { background: #d9e8e3; color: #375a50; }
.badge-warning { background: #f0e1cd; color: #794619; }
.badge-high, .badge-error { background: #f4dede; color: #84302f; }
.badge-info { background: #e3ecef; color: #425e6b; }
.status-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; color: #4a6268; font-size: 12px; }
.request-message { font-size: 13px; color: var(--muted); margin: 9px 0 22px; min-height: 22px; }
.section { background: var(--surface); padding: 22px; margin-bottom: 18px; border-radius: 9px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 17px; }
.heading-note { margin-left: 7px; font-size: 13px; font-weight: 500; color: var(--amber); }
.metrics { display: grid; margin: 0; gap: 16px; }
.metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { padding-right: 12px; min-width: 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 18px; }
.metric dt { font-size: 14px; color: var(--muted); }
.metric dd { margin: 7px 0 5px; font-size: clamp(23px, 4vw, 34px); font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metric dd[data-unknown="true"] { color: #718387; font-size: 24px; }
.metric dd.metric-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.65; margin: 0; }
.metric-compact dd { font-size: 27px; }
.section-note { color: var(--muted); font-size: 12px; margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.support-grid > .section { min-width: 0; }
.trend-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.trend-table caption { caption-side: bottom; padding-top: 13px; text-align: left; color: var(--muted); font-size: 12px; }
.trend-table th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 7px 4px 10px; text-align: right; }
.trend-table td, .trend-table tbody th { border-top: 1px solid var(--line); padding: 9px 4px; text-align: right; vertical-align: middle; font-size: 13px; }
.trend-table th:first-child, .trend-table td:first-child { text-align: left; width: 23%; font-weight: 500; }
.trend-value { display: block; line-height: 1.5; }
.trend-value[data-unknown="true"] { color: #718387; }
.trend-bar { display: block; width: 100%; height: 3px; margin-top: 4px; border: 0; border-radius: 2px; background: #eaf0ee; accent-color: var(--green); }
.trend-bar::-webkit-progress-bar { background: #eaf0ee; border-radius: 2px; }
.trend-bar::-webkit-progress-value { background: #658d7b; border-radius: 2px; }
.trend-bar::-moz-progress-bar { background: #658d7b; }
.source-list, .event-list, .notes-list { padding: 0; margin: 0; list-style: none; }
.source-item + .source-item { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.source-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.source-heading h3 { margin: 0; }
.source-meta { margin: 0; font-size: 12px; color: var(--muted); }
.source-meta div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.source-meta dt { min-width: 6em; }
.source-meta dd { margin: 0; }
.source-note { color: var(--muted); font-size: 12px; margin: 7px 0 0; white-space: pre-wrap; }
.filters { display: grid; grid-template-columns: 1fr 1fr minmax(170px, 1.8fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters label { font-size: 12px; font-weight: 500; color: var(--muted); }
.filters .button { min-height: 46px; }
.empty-state { font-size: 14px; padding: 23px 15px; background: #f3f6f6; color: var(--muted); border-radius: 5px; margin: 0; }
.event-item { padding: 17px 0; border-top: 1px solid var(--line); }
.event-header { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.event-header time { font-variant-numeric: tabular-nums; }
.event-title { margin-bottom: 7px; }
.event-ip { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.event-detail { color: #425d63; font-size: 13px; margin: 7px 0 0; white-space: pre-wrap; }
.event-disclosure { margin-top: 9px; font-size: 13px; }
.event-disclosure summary { cursor: pointer; width: fit-content; min-height: 44px; display: list-item; align-content: center; color: var(--green); padding: 10px 0; }
.event-disclosure dl { margin: 3px 0 0; padding: 12px 15px; background: #f1f5f5; border-radius: 5px; }
.event-disclosure dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.event-disclosure dt:first-child { margin-top: 0; }
.event-disclosure dd { margin: 3px 0 0; white-space: pre-wrap; }
.notes-section h2 { margin-bottom: 12px; }
.notes-list { font-size: 13px; color: var(--muted); }
.notes-list li { padding-left: 14px; position: relative; margin-bottom: 8px; white-space: pre-wrap; }
.notes-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; background: #748b8f; border-radius: 50%; }
.site-footer { padding: 10px 20px 28px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .support-grid { grid-template-columns: 1fr; gap: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filters .button { justify-self: start; }
}
@media (max-width: 480px) {
  .site-header { padding: 17px 16px; }
  main { padding-inline: 16px; }
  .site-footer { padding-inline: 16px; }
  .login-panel { margin-block: 3vh 5vh; padding: 25px 20px; }
  .section { padding: 18px 16px; }
  .status-panel { padding: 18px 16px; }
  .page-heading { align-items: flex-start; }
  .page-heading .button { padding-inline: 12px; }
  .metrics-three { grid-template-columns: 1fr; gap: 0; }
  .metrics-three .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 13px 0; }
  .metrics-three .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .metrics-three dd { grid-column: 2; grid-row: 1 / 3; padding-left: 10px; margin: 0; font-size: 29px; }
  .metrics-three dd.metric-hint { grid-column: 1; grid-row: auto; padding: 0; margin: 3px 0 0; }
  .metric + .metric { padding-left: 14px; }
  .metrics { gap: 12px; }
  .metrics-three { gap: 0; }
  .metric dd[data-unknown="true"] { font-size: 22px; }
  .status-heading h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}