:root {
  font: 16px/1.5 "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182522;
  background: #f3f5f3;
  --muted: #50605b;
  --line: #dbe3dd;
  --up: #166344;
  --up-light: #dfefe6;
  --checking: #855513;
  --checking-light: #f5e9d2;
  --down: #a2353e;
  --down-light: #f8e5e5;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1088px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.identity { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: #1c4436; display: flex; align-items: center; justify-content: center; gap: 3px; }
.mark i { width: 3px; border-radius: 2px; background: #b7efc7; }
.mark i:nth-child(1) { height: 8px; }
.mark i:nth-child(2) { height: 15px; }
.mark i:nth-child(3) { height: 11px; }
.node, .section-header > span, .last-sync > span, .history-caption { font-size: .875rem; color: var(--muted); }
.node strong { margin-left: 6px; color: #243b33; }
main { padding-block: 46px 52px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.18; margin-bottom: 23px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 23px 25px; background: #e8eeeb; border: 1px solid #dbe6df; border-radius: 14px; }
.summary[data-tone="up"] { background: #e5f2e9; border-color: #cfe3d3; }
.summary[data-tone="checking"] { background: #f8f0df; border-color: #e9dabb; }
.summary[data-tone="down"] { background: #f8e9e9; border-color: #ebd3d3; }
.summary-main { display: flex; gap: 16px; align-items: center; }
.signal { flex: none; width: 39px; height: 39px; border: 1px solid #a5b7ae; border-radius: 50%; display: grid; place-items: center; }
.signal::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #71857b; }
[data-tone="up"] .signal::after { background: #237855; }
[data-tone="checking"] .signal::after { background: #a97422; }
[data-tone="down"] .signal::after { background: #b34b4c; }
.summary h2 { font-size: 1.25rem; }
.summary p { color: #3e544a; font-size: .9375rem; margin-top: 3px; }
.last-sync { display: grid; text-align: right; gap: 3px; white-space: nowrap; }
.last-sync time { font-variant-numeric: tabular-nums; font-weight: 650; }
.services, .notifications { margin-top: 33px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-header h2 { font-size: 1.22rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card, .alert-panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.card { min-width: 0; padding: 19px; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h3 { font-size: 1.06rem; }
.badge { font-size: .875rem; font-weight: 650; padding: 2px 9px; border-radius: 100px; color: #46554f; background: #edf0ee; white-space: nowrap; }
.badge.up { color: var(--up); background: var(--up-light); }
.badge.checking, .badge.stale { color: var(--checking); background: var(--checking-light); }
.badge.down { color: var(--down); background: var(--down-light); }
.detail { margin-top: 12px; font-size: .925rem; overflow-wrap: anywhere; }
.facts { margin: 5px 0 17px; display: grid; gap: 4px; min-height: 43px; color: var(--muted); font-size: .875rem; }
.timeline { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.tick { display: block; min-width: 0; height: 23px; border-radius: 2px; background: #e8ede9; }
.tick.up { background: #74ad90; }
.tick.checking { background: #d5a954; }
.tick.down { background: #ce7579; }
.history-caption { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.portal-service { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.portal-service h3 { font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }
.portal-grid > .empty { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.empty, .alert-row { padding: 15px 19px; }
.empty { color: var(--muted); }
.alert-row { white-space: pre-line; overflow-wrap: anywhere; }
.alert-row + .alert-row, details { border-top: 1px solid var(--line); }
.alert-meta, .demo-copy { font-size: .875rem; color: var(--muted); }
.alert-meta { margin-top: 4px; }
details { padding: 12px 19px; }
summary { cursor: pointer; font-weight: 650; }
.demo-copy { margin: 8px 0 12px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.examples > div { padding: 12px; background: #f3f6f4; border-radius: 8px; }
.examples p { margin-top: 3px; color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  main { padding-block: 29px 34px; }
  .cards { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 16px; }
}
@media (max-width: 490px) {
  .summary { align-items: flex-start; flex-direction: column; padding: 16px; gap: 10px; }
  .last-sync { display: flex; gap: 8px; text-align: left; }
  .examples { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  #portal-updated { text-align: right; }
  .node { font-size: .8rem; }
  .section-header > span { font-size: .8rem; }
}
