:root { color-scheme: light; --background:#f5f6fc; --foreground:#20283d; --card:#fff; --primary:#7257eb; --muted:#69758e; --border:#dfe4f1; --healthy:#179954; --degraded:#d39716; --down:#db5550; --unknown:#bbc4d5; }
* { box-sizing:border-box; }
body { margin:0; background:var(--background); color:var(--foreground); font:14px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; -webkit-text-size-adjust:100%; }
button,input { font:inherit; }
button,summary { touch-action:manipulation; }
button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #9b8af0; outline-offset:3px; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
[hidden] { display:none!important; }
.site-header { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px max(24px,calc((100% - 1120px)/2)); background:var(--card); border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:10px; color:var(--foreground); text-decoration:none; font-size:17px; font-weight:700; }
.brand small { font-size:13px; font-weight:500; margin-left:9px; color:var(--muted); }
.public-badge { color:var(--primary); border:1px solid #e5dfff; background:#f3f0ff; border-radius:7px; padding:4px 9px; font-size:12px; white-space:nowrap; }
.dashboard { width:min(1120px,calc(100% - 48px)); margin:28px auto 0; }
.overview-card { padding:26px; border:1px solid var(--border); border-radius:18px; background:linear-gradient(120deg,var(--card) 60%,#efedff85); }
.overview-heading { display:flex; align-items:center; gap:17px; }
.overview-heading>.status-dot { width:15px; height:15px; box-shadow:0 0 0 9px #9b8af014; margin:10px; }
.eyebrow { margin:0; letter-spacing:.15em; color:var(--muted); font-size:10px; font-weight:700; }
h1 { font-size:25px; font-weight:650; letter-spacing:-.025em; margin:2px 0 3px; }
#snapshot-time { color:var(--muted); margin:0; font-size:12px; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:24px; }
.metric { padding:15px; border:1px solid #e7eaf4; border-radius:11px; background:#f7f9fde8; }
.metric span,.metric small { display:block; font-size:12px; color:var(--muted); }
.metric strong { display:block; margin:5px 0; font-size:28px; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.metric small { font-size:11px; }
.view-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 8px; }
.period-switch { display:flex; gap:4px; padding:4px; background:var(--card); border:1px solid var(--border); border-radius:11px; }
.period-switch button,.refresh-button { min-height:44px; border:0; padding:8px 18px; border-radius:8px; color:var(--muted); background:transparent; }
.period-switch button[aria-pressed=true] { color:white; background:var(--primary); }
.refresh-button { min-width:74px; border:1px solid var(--border); background:var(--card); color:var(--foreground); }
.data-notice { min-height:20px; color:var(--muted); font-size:12px; margin:7px 0 20px; }
.warning { border:1px solid #ebd390; border-radius:10px; background:#fff8e5; color:#806013; padding:12px 16px; font-size:13px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 13px; }
h2 { font-size:17px; font-weight:650; margin:0; }
.section-heading p { font-size:12px; color:var(--muted); margin:3px 0 0; }
.group-count { white-space:nowrap; color:var(--muted); font-size:12px; }
.card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.service-card { min-width:0; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px 20px 12px; }
.card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-title { display:flex; align-items:center; gap:8px; min-width:0; }
h3 { margin:0; font-weight:600; font-size:14px; overflow-wrap:anywhere; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.healthy { background:var(--healthy); }
.degraded { background:var(--degraded); }
.down { background:var(--down); }
.unknown { background:var(--unknown); }
.status-text { font-size:12px; color:var(--muted); white-space:nowrap; }
.card-metrics { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:14px 0 11px; font-size:11px; color:var(--muted); }
.card-metrics strong { font-size:23px; font-weight:600; color:var(--foreground); margin-right:7px; font-variant-numeric:tabular-nums; }
.timeline { display:flex; gap:3px; height:26px; }
.bar { flex:1; min-width:0; border-radius:3px; opacity:.86; }
.partial { background-image:repeating-linear-gradient(135deg,transparent 0,transparent 3px,#ffffff66 3px,#ffffff66 5px); }
.bar.selected { outline:2px solid var(--foreground); outline-offset:2px; opacity:1; }
.timeline-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; margin-top:4px; }
.history summary { min-height:44px; display:flex; align-items:center; gap:6px; font-size:12px; cursor:pointer; color:var(--primary); list-style:none; }
.history summary::-webkit-details-marker { display:none; }
.history summary::before { content:'+'; font-size:16px; }
.history[open] summary::before { content:'−'; }
.history input { display:block; width:100%; min-height:44px; margin:0; accent-color:var(--primary); }
.history output { display:block; color:var(--muted); font-size:12px; line-height:1.8; padding-bottom:10px; overflow-wrap:anywhere; }
.probe-section { margin-top:30px; }
.legend { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 20px; margin-top:28px; color:var(--muted); font-size:11px; }
.legend span { display:flex; align-items:center; gap:6px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:2px; }
footer { text-align:center; font-size:11px; color:var(--muted); margin:24px 0; padding-bottom:env(safe-area-inset-bottom); }
footer p { margin:5px 0; }
@media(max-width:720px) { .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .card-grid { grid-template-columns:1fr; } }
@media(max-width:440px) { .site-header { padding:13px 16px; min-height:68px; } .brand { font-size:15px; gap:8px; } .brand small { display:block; font-size:10px; margin:0; line-height:1.2; } .public-badge { font-size:11px; } .dashboard { width:calc(100% - 28px); margin-top:16px; } .overview-card { padding:18px 15px; } h1 { font-size:20px; } .overview-heading { gap:10px; } .metric-grid { gap:8px; margin-top:18px; } .metric { padding:12px; } .metric span { font-size:11px; } .metric strong { font-size:25px; } .metric small { font-size:10px; } .period-switch button { padding:8px 13px; } .refresh-button { padding:8px 12px; min-width:64px; } .service-card { padding:16px 15px 9px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
