:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #172e2a; background: #f6f7f3; font-synthesis: none; --muted: #72817b; --green: #14785d; --border: #e1e7df; --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.topbar, main, footer { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 12px var(--mono); letter-spacing: 1.3px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #173d30; color: #d3f794; font-size: 24px; font-weight: 400; }
.brand-divider { color: #a2afa5; padding: 0 2px; }
.edition { color: var(--green); font: 12px var(--mono); }
.edition span { color: var(--muted); margin-left: 10px; font-family: sans-serif; }
.intro { padding: 48px 0 30px; }
.eyebrow { margin: 0 0 16px; font: 11px var(--mono); letter-spacing: 1.8px; color: var(--green); }
.signal { display: inline-block; width: 7px; height: 7px; background: #6f9f43; border-radius: 50%; margin-right: 8px; }
h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -1.8px; line-height: 1.3; }
.intro-copy { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.small-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.server-strip { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 20px; align-items: center; padding: 21px 25px; background: #eaf0e4; border: 1px solid #e0e8d8; border-radius: 12px; }
.server-strip .small-label { font-size: 11px; margin-bottom: 8px; }
.server-strip strong { font: 500 12px var(--mono); overflow-wrap: anywhere; }
.route-label { color: #638350; display: flex; align-items: center; gap: 9px; font-size: 11px; }
.route-label > span { font-size: 20px; }
.controls { margin-top: 26px; }
.control-buttons { display: flex; gap: 12px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; cursor: pointer; transition: opacity .15s, background-color .15s; }
.button > span { font-size: 19px; line-height: 1; }
.button-primary { background: #d0ecac; color: #274d26; }
.button-primary:hover:enabled { background: #c0e692; }
.button-dark { background: #213f34; color: #fff; }
.button-dark:hover:enabled { background: #2e5546; }
.button-stop, .button-outline { color: #546d61; border-color: var(--border); background: transparent; justify-content: center; }
.button-stop { margin-left: auto; }
.button-outline:hover:enabled, .button-stop:hover:enabled { background: #edf2e9; }
.button:disabled { cursor: default; opacity: .45; }
.button:focus-visible, a:focus-visible { outline: 3px solid #77ab54; outline-offset: 4px; }
.run-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 21px; }
.run-status[data-error="true"], .test-status[data-error="true"] { color: #b14a40; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.panel { min-width: 0; border: 1px solid var(--border); background: #fff; border-radius: 15px; padding: 27px 30px 20px; --route-color: #38856a; --bar-color: #a8ce84; }
.tunnel-panel { --route-color: #497dab; --bar-color: #a2c5e2; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel .eyebrow { color: var(--route-color); font-size: 10px; letter-spacing: 1.4px; margin-bottom: 9px; }
h2 { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.4; letter-spacing: -.5px; }
.tag { font: 10px var(--mono); color: #668058; border: 1px solid #dde8d4; background: #f7faf4; padding: 6px 8px; border-radius: 5px; white-space: nowrap; }
.tag-blue { color: #6286a7; background: #f5f9fc; border-color: #e1eaf2; }
.route-host { display: inline-block; font: 12px var(--mono); color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.route-host span { margin-left: 6px; }
.route-host:hover { color: var(--route-color); }
.route-path { color: #96a094; font-size: 11px; margin: 9px 0 20px; line-height: 1.7; min-height: 19px; }
.route-path span { margin: 0 5px; color: #b4bdb0; }
.connection-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #edf0e9; padding-top: 17px; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b4a16a; box-shadow: 0 0 0 3px #b4a16a15; flex: 0 0 7px; }
[data-state="online"] .status-dot { background: #37a178; box-shadow: 0 0 0 3px #37a17815; }
[data-state="offline"] .status-dot { background: #be5656; box-shadow: 0 0 0 3px #be565615; }
.first-response { color: var(--muted); font-size: 11px; }
.first-response strong { font: 12px var(--mono); color: #566d61; }
.latency-heading { display: flex; justify-content: space-between; margin-top: 25px; gap: 12px; }
.latency-heading .small-label { margin: 0; }
.sample-count { font: 11px var(--mono); color: #8b968e; }
.latency-reading { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; min-height: 66px; }
.latency-reading > :first-child { font: 500 54px/1.2 var(--mono); letter-spacing: -3px; }
.reading-unit { color: var(--muted); font: 12px var(--mono); }
.chart { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; height: 90px; align-items: end; padding-top: 7px; background: repeating-linear-gradient(to top, transparent, transparent 26px, #f1f4ef 26px, #f1f4ef 27px); border-bottom: 1px solid var(--border); margin-top: 9px; }
.sample { height: 6%; min-height: 4px; background: #edf1e8; border-radius: 3px 3px 0 0; transition: height .2s, background-color .2s; }
.sample[data-result="success"] { background: var(--bar-color); }
.sample[data-result="failed"] { background: #d99b91; }
.sample[data-active="true"][data-result="success"] { background: var(--route-color); }
.chart-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #8b968e; margin-top: 10px; line-height: 1.6; }
.chart-caption > :last-child { font-family: var(--mono); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 13px; }
.stats > div { padding-left: 20px; border-left: 1px solid var(--border); }
.stats > div:first-child { padding-left: 0; border-left: none; }
.stats dt { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.stats dd { margin: 0; display: flex; align-items: baseline; gap: 3px; font: 20px var(--mono); white-space: nowrap; }
.stats small { color: #879189; font-size: 10px; }
.test-status { color: #8b968e; font-size: 11px; line-height: 1.8; margin: 10px 0 0; min-height: 40px; }
.download-section { border-top: 1px dashed var(--border); padding-top: 20px; margin-top: 7px; }
.download-heading { display: flex; align-items: center; justify-content: space-between; }
.download-heading .small-label { margin: 0; }
.download-reading { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.download-reading > :first-child { font: 500 36px/1.3 var(--mono); letter-spacing: -1.5px; }
.download-secondary { color: var(--muted); font-size: 11px; margin: 7px 0 15px; min-height: 16px; }
.progress-track { height: 5px; background: #eef2e9; border-radius: 5px; overflow: hidden; }
.progress-track > div { height: 100%; width: 0; background: var(--bar-color); transition: width .15s; }
.individual-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.individual-controls .button { min-height: 39px; font-size: 12px; }
.route-meta { font: 10px/1.7 var(--mono); color: #95a090; margin: 14px 0 0; min-height: 17px; overflow-wrap: anywhere; }
.comparison-summary { display: flex; gap: 17px; align-items: center; background: #eaf0e4; border: 1px solid #e0e8d8; border-radius: 10px; padding: 18px 23px; margin-top: 24px; }
.summary-mark { font-size: 25px; color: #799361; }
.comparison-summary p { color: #62735c; font-size: 12px; line-height: 1.8; margin: 0; }
.measurement-note { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0 35px; padding: 0 3px; }
.note-icon { flex: 0 0 16px; display: grid; place-items: center; height: 16px; margin-top: 3px; border: 1px solid #a9b5a8; border-radius: 50%; font: 10px Georgia, serif; color: #7f8f7b; }
.measurement-note p { margin: 0; color: #889486; font-size: 11px; line-height: 1.9; }
.measurement-note strong { font-weight: 500; color: #61715e; margin-right: 12px; }
.noscript { padding: 16px; background: #fff2df; border-radius: 8px; font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 26px; border-top: 1px solid var(--border); color: #879381; font: 10px/1.8 var(--mono); }
.footer-dot { margin: 0 9px; }
@media (max-width: 760px) {
  .topbar, main, footer { width: calc(100% - 36px); }
  .topbar { height: 76px; }
  .brand { font-size: 10px; gap: 7px; letter-spacing: .6px; }
  .edition { display: none; }
  .intro { padding: 33px 0 24px; }
  h1 { letter-spacing: -1px; font-size: 30px; }
  .intro-copy { font-size: 13px; }
  .server-strip { grid-template-columns: 1fr 1fr; padding: 19px; gap: 19px 12px; }
  .server-strip strong { font-size: 11px; }
  .route-label { font-size: 10px; }
  .control-buttons { flex-wrap: wrap; gap: 9px; }
  .control-buttons .test-button { flex: 1; gap: 8px; padding: 11px 12px; font-size: 12px; white-space: nowrap; }
  .button-stop { min-height: 32px; padding: 5px 11px; font-size: 11px; }
  .run-status { font-size: 11px; }
  .test-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .panel { padding: 25px 22px 20px; }
  h2 { font-size: 21px; }
  .chart { gap: 3px; }
  .chart-caption { font-size: 9px; }
  .stats > div { padding-left: 12px; }
  .stats > div:first-child { padding-left: 0; }
  .stats dd { font-size: 18px; }
  .stats small { font-size: 9px; }
  .test-status { min-height: 20px; }
  .download-section { margin-top: 18px; }
  .individual-controls { margin-top: 17px; }
  .comparison-summary { padding: 16px; gap: 12px; }
  .comparison-summary p { font-size: 11px; }
  footer { font-size: 9px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
