:root {
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5ef;
  color: #253329;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page-shell { max-width: 1240px; min-height: 100vh; margin: auto; padding: 0 clamp(18px, 3vw, 40px); }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d4d9ce; }
.brand { display: inline-flex; gap: 9px; align-items: center; color: inherit; text-decoration: none; font-size: 16px; font-weight: 850; letter-spacing: -.05em; }
.brand-symbol { width: 29px; height: 29px; display: grid; place-items: center; background: #27352c; color: #def46a; border-radius: 7px; font-size: 22px; line-height: 1; }
.brand-light { font-weight: 500; }
.topbar-note { display: flex; gap: 8px; align-items: center; color: #67736a; font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #8cb32b; }
.intro { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 19px 0 14px; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.045em; margin: 0; white-space: nowrap; }
.lead { color: #657067; font-size: 14px; line-height: 1.5; margin: 0; text-align: right; }
.controls { background: #e9eddc; padding: 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 8px; min-height: 56px; }
.control-main, .control-meta { display: flex; align-items: center; gap: 15px; }
.primary-button { border: 0; background: #27352c; color: #f7faeb; min-height: 39px; padding: 0 20px; border-radius: 5px; font-weight: 700; font-size: 14px; transition: background .18s ease; }
.primary-button:hover { background: #40583f; }
.primary-button:focus-visible, select:focus-visible, .brand:focus-visible, summary:focus-visible { outline: 3px solid #a5c548; outline-offset: 3px; }
.stop-button { background: #70473c; }
.repeat-control { display: flex; align-items: center; gap: 8px; color: #566657; font-size: 14px; white-space: nowrap; }
select { appearance: none; background: #f7f8f2; color: #26362b; border: 1px solid #c9d2bc; border-radius: 5px; padding: 7px 29px 7px 10px; font-size: 14px; font-weight: 650; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%233c503d' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.control-meta { font-size: 13px; color: #6a7666; white-space: nowrap; }
#run-status { font-weight: 700; color: #3d633f; }
.separator { opacity: .5; }
.progress-line { min-height: 14px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #6e796e; }
progress { flex: 1; height: 3px; appearance: none; border: 0; background: #dfe5d6; }
progress::-webkit-progress-bar { background: #dfe5d6; }
progress::-webkit-progress-value { background: #8daa43; }
progress::-moz-progress-bar { background: #8daa43; }
.results { padding-top: 11px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.section-count { font-size: 13px; color: #849080; }
.site-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; border-top: 1px solid #cbd4c7; }
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 100px 68px; align-items: center; gap: 8px; min-height: 57px; padding: 8px 3px; border-bottom: 1px solid #dce2d7; }
.site-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-mark { background: color-mix(in srgb, var(--mark-color), transparent 90%); color: var(--mark-color); border: 1px solid color-mix(in srgb, var(--mark-color), transparent 85%); width: 32px; height: 32px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 17px; font-weight: 800; font-family: Georgia, serif; }
.site-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.site-name strong { font-size: 14px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-name small { color: #929b91; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-measure { display: flex; align-items: baseline; gap: 3px; }
.measure-value { font-size: 21px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.measure-unit { font-size: 11px; color: #9ba49a; }
.site-outcome { display: flex; align-items: center; gap: 6px; color: #8b9588; font-size: 12px; white-space: nowrap; }
.outcome-dot { width: 6px; height: 6px; background: #bbc4b5; border-radius: 50%; flex: none; }
[data-state="running"] .outcome-dot { background: #e0ac45; animation: pulse 1.15s ease-in-out infinite; }
[data-state="ok"] .site-outcome, [data-state="partial"] .site-outcome { color: #4d7848; }
[data-state="ok"] .outcome-dot, [data-state="partial"] .outcome-dot { background: #7eaf60; }
[data-state="failed"] .site-outcome { color: #af6855; }
[data-state="failed"] .outcome-dot { background: #cd7a63; }
.site-samples { color: #889387; font-size: 11px; white-space: nowrap; }
.method-note { border-bottom: 1px solid #d4d9ce; margin: 16px 0 0; padding-bottom: 13px; color: #697768; }
.method-note summary { cursor: pointer; font-size: 13px; }
.method-note p { font-size: 13px; line-height: 1.7; margin: 10px 0 0; max-width: 980px; }
footer { padding: 12px 0 16px; display: flex; justify-content: space-between; gap: 20px; color: #949e91; font-size: 11px; }
.footer-star { color: #7f9c43; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 950px) {
  .intro { display: block; }
  .lead { text-align: left; margin-top: 5px; }
  .site-list { grid-template-columns: 1fr; }
  .site-row { grid-template-columns: minmax(0, 1fr) 90px 110px 90px; min-height: 47px; padding: 5px 3px; }
}
@media (max-width: 620px) {
  .topbar { height: 51px; }
  .intro { padding: 19px 0 15px; }
  h1 { font-size: 25px; }
  .lead { font-size: 13px; }
  .controls { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 12px; }
  .control-main { justify-content: space-between; width: 100%; }
  .control-meta { font-size: 12px; }
  .results { padding-top: 12px; }
  .section-heading { margin-bottom: 6px; }
  .site-row { grid-template-columns: minmax(0, 1fr) 68px 95px; min-height: 48px; gap: 5px; padding: 6px 0; }
  .site-mark { width: 28px; height: 28px; font-size: 15px; }
  .site-name small, .site-samples { display: none; }
  .site-measure { justify-content: flex-end; }
  .measure-value { font-size: 18px; }
  .site-outcome { justify-content: flex-end; font-size: 12px; }
  .method-note { margin-top: 11px; padding-bottom: 10px; }
  footer { padding-top: 12px; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
