:root{font-family:Inter,system-ui,"PingFang SC","Microsoft YaHei",sans-serif;color:#142542;background:#f1f5fa;line-height:1.5;color-scheme:light}
*{box-sizing:border-box}
body{margin:0} header{background:#111f37;color:white;border-bottom:3px solid #4daed0}
.bar,main{max-width:1130px;margin:auto;padding-inline:24px}
.bar{height:66px;display:flex;align-items:center;gap:12px}.mark{font-size:1.9rem;color:#70ddf3}
main{padding-bottom:52px}.intro{padding:32px 0 18px}h1,h2,h3,p{margin:0}h1{font-size:2.3rem;letter-spacing:-.04em}h2{font-size:1.3rem}h3{font-size:1.08rem}.intro p,.hint,#status,.meta{color:#465973}
.card,.report{background:#fff;border:1px solid #d7e2ef;border-radius:14px;box-shadow:0 4px 14px #182f4c08}.card{padding:24px}
label,legend{font-weight:650;font-size:.92rem}input:not([type=checkbox]):not([type=radio]){width:100%;padding:10px 12px;border:1px solid #acbfd4;border-radius:8px;font:inherit;color:inherit;margin-top:5px;background:#f9fbfd}#target{font-family:ui-monospace,monospace}
fieldset{margin:16px 0;padding:0;border:0}.chip{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;margin:5px 6px 0 0;border:1px solid #ccdaeb;border-radius:8px}input[type=checkbox]{accent-color:#1866b2}
.options{display:grid;grid-template-columns:minmax(125px,1fr) 4fr;gap:14px}.hint,.meta{font-size:.875rem;margin-top:8px}
.actions,.result-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.actions{margin-top:18px}.result-head{justify-content:space-between;margin:26px 0 6px}
button{border:1px solid #175ca2;border-radius:8px;background:#175ca2;color:white;padding:8px 14px;cursor:pointer;font:inherit;font-weight:650}button:disabled{opacity:.55;cursor:wait}.secondary{color:#174777;background:white;border-color:#bacfe4}a{color:#145895}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #40a7dc;outline-offset:3px}
.report{margin-top:14px;overflow:hidden}.report-head{padding:14px 18px;background:#f8fbff;overflow-wrap:anywhere}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:.9rem}th,td{padding:10px 14px;border-top:1px solid #e2eaf4;vertical-align:top}td{font-variant-numeric:tabular-nums}.bad{color:#a12136;font-weight:650}.bars{display:grid;gap:3px;min-width:115px}meter{width:100%;height:9px}details{max-width:42rem}summary{cursor:pointer;color:#145895}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:28rem;overflow:auto;background:#edf4fb;padding:10px;border-radius:8px}td pre{min-width:14rem}.empty{padding:14px 18px}
@media(max-width:560px){.bar,main{padding-inline:14px}.card{padding:16px}.options{grid-template-columns:1fr}.actions a{flex-basis:100%}}
.node-panel{padding:0 18px 16px;border:1px solid #d7e2ef;background:#f8fbff;border-radius:10px}.node-panel fieldset{margin:14px 0}.node-options{max-height:12rem;overflow:auto}.node-panel #count{display:block;max-width:8rem}.node-panel #search{display:block;max-width:20rem;margin-bottom:8px}.node-panel .actions{font-size:.9rem}
#probe{position:relative}
.protocols{display:flex;gap:24px;margin:0 0 14px;border-bottom:1px solid #d7e2ef}
.protocols label{position:relative;cursor:pointer}
.protocols input{position:absolute;opacity:0}
.protocols span{display:block;padding:10px 5px;border-bottom:3px solid transparent}
.protocols input:checked+span{color:#175ca2;border-color:#175ca2}
.protocols input:focus-visible+span{outline:3px solid #40a7dc}
.probe-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr) auto;gap:8px}
.probe-toolbar #target{margin:0}
#node-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.chevron{width:8px;height:8px;flex:none;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
[aria-expanded=true] .chevron{transform:rotate(225deg)}
#node-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:2;padding:12px 20px 18px;box-shadow:0 14px 36px #1425422e}
.panel-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #d7e2ef;padding-top:14px;margin-top:16px}
.panel-footer div{display:flex;gap:8px}
@media(max-width:620px){.probe-toolbar{grid-template-columns:minmax(0,1fr) auto}.probe-toolbar #node-toggle{grid-column:1/-1}#node-panel{position:static;margin-top:8px;box-shadow:none}}
.result-filter{padding:10px 14px}.result-filter input[type=search]{display:inline-block;width:min(100%,17rem);margin:0 0 0 6px}
.http-results th,.http-results td{padding:13px 14px;vertical-align:middle}
.http-results th{background:#edf3f9}.http-results td{background:#fff}.http-results tr:nth-child(even) td{background:#f6f9fc}
.http-results th:first-child,.http-results td:first-child{position:sticky;left:0;min-width:8.5rem;max-width:12rem;white-space:normal;box-shadow:3px 0 5px #14254212}
.http-results th:last-child,.http-results td:last-child{position:sticky;right:0;box-shadow:-3px 0 5px #14254212}
.table-action{background:transparent;border:0;color:#174777;padding:0;font-size:inherit}
.http-results td .table-action+.table-action{margin-left:8px;padding-left:8px;border-left:1px solid #bbcce0;border-radius:0}
#node-detail{width:min(44rem,calc(100% - 24px));border:1px solid #d7e2ef;border-radius:12px;padding:18px;color:#142542}
#node-detail::backdrop{background:#14254266}.detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
@media(max-width:560px){.http-results th:first-child,.http-results td:first-child{min-width:7rem}.http-results th:last-child,.http-results td:last-child{position:static}}

/* Probe point selector */
#node-toggle[aria-expanded=true]{background:#eaf4ff;border-color:#5d9cd7}
#node-panel{padding:0 22px 16px;background:#fff;border-radius:15px}
.node-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e3eaf3}
.node-heading h2{font-size:1.1rem}
#node-close{width:34px;height:34px;padding:0;background:#f4f7fb;border-color:#dce6f1;font-size:1.25rem;line-height:1}
.node-setup{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:14px;margin-top:6px}
.node-panel .node-group{min-width:0;padding:8px 12px 12px;border:1px solid #dce6f1;border-radius:10px;background:#f7faff}
.node-setup .chip,#match-count{white-space:nowrap}
.node-group legend{padding:0 5px;color:#2c4969}
.node-panel .chip{min-height:38px;margin:4px 5px 0 0;padding:6px 10px;background:white;color:#354d68;cursor:pointer}
.node-panel .chip input{flex:none;margin:0;accent-color:#175ca2}
.node-panel .chip:has(input:checked){color:#124e87;border-color:#7eb1e2;background:#e8f3ff}
.node-panel .chip:hover,#node-close:hover{border-color:#7eb1e2}
.node-panel .chip:focus-within{outline:2px solid #40a7dc;outline-offset:2px}
.node-options{padding:3px;scrollbar-width:thin}
.node-panel #random{padding:4px 0 0}
.node-panel #random label{display:flex;align-items:center;gap:12px}
.node-panel #count{width:5rem;margin:0}
.node-panel #search{max-width:24rem;background:#fff}
.node-panel #reload{margin-top:8px}
.node-panel .panel-footer{background:#f7faff;margin:16px -22px -16px;padding:12px 22px;border-radius:0 0 15px 15px}
#match-count{max-width:100%;overflow-x:auto;color:#3b536f;font-size:.9rem}
#confirm{min-width:90px}
@media(max-width:720px){.node-setup{grid-template-columns:1fr;gap:0}.node-setup .node-group{margin:9px 0}}
@media(max-width:450px){#node-panel{padding-inline:12px}.node-panel .panel-footer{margin-inline:-12px;padding-inline:12px}.panel-footer div{margin-left:auto}}
.city-scope:not([hidden]){display:flex;flex-wrap:wrap;gap:10px 14px;margin-bottom:12px}
.city-scope select{display:block;max-width:100%;min-height:38px;margin-top:5px;padding:6px 10px;border:1px solid #acbfd4;border-radius:8px;background:white;color:inherit;font:inherit}
.city-scope select:focus-visible{outline:3px solid #40a7dc;outline-offset:2px}
.quality{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:5px;font-size:.8rem;font-weight:650;white-space:nowrap}
.quality-0{color:#066246;background:#dcf6ea}.quality-1{color:#18558f;background:#e4f1ff}.quality-2{color:#765000;background:#fff2c8}.quality-3{color:#973c0a;background:#ffebd9}.quality-4{color:#9d2337;background:#fde9ed}.quality-unknown{color:#43536a;background:#edf0f4}
.standards-card{margin-top:18px}.standards-scroll{margin-top:12px;border:1px solid #dce6f1;border-radius:8px}.standards-scroll thead{background:#f2f7fc}.standards-scroll .quality,.standards-notes .quality{margin-left:0}.standards-scroll tbody th{font-weight:650}.standards-notes{display:grid;gap:6px;margin-top:12px;font-size:.875rem;color:#465973}.standards-scroll td{min-width:7rem}
.result-actions,.history-pages{display:flex;gap:8px;flex-wrap:wrap}
#probe-progress,#probe-history{border:1px solid #d7e2ef;border-radius:14px;padding:22px;color:#142542;max-width:calc(100% - 28px)}
#probe-progress::backdrop,#probe-history::backdrop{background:#14254266}
.probe-progress{display:flex;align-items:center;gap:14px}
.probe-progress p{color:#465973;margin-top:5px}
.spinner{width:31px;height:31px;flex:none;border:3px solid #d9e8f7;border-top-color:#175ca2;border-radius:50%;animation:probe-spin .8s linear infinite}
@keyframes probe-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
#probe-history{width:46rem;max-height:85vh;overflow:auto}
.history-record{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #e2eaf4}
.history-record strong{overflow-wrap:anywhere}.history-record button{flex:none}
.history-pages{justify-content:flex-end;margin-top:12px}
.standards-details{max-width:none}.standards-details>summary{color:inherit;font-size:1.3rem;font-weight:700}
.history-location{display:grid;gap:5px;margin:.5rem 0}
.history-tag-row{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:6px;align-items:baseline}
.history-tag-label{font-size:.875rem;color:#465973}
.history-tags{display:flex;gap:5px;flex-wrap:wrap;min-width:0}
.history-tag{padding:2px 9px;border:1px solid transparent;border-radius:999px;font-size:.875rem;overflow-wrap:anywhere}
.history-tag--destination{background:#e5efff;color:#204d8a;border-color:#c8dcf7}
.history-tag--address{background:#edeafb;color:#4d4083;border-color:#d9d2f4;font-family:ui-monospace,monospace}
.history-tag--probe{background:#e1f4ef;color:#146354;border-color:#c1e7dd}
.history-tag--missing{background:#f1f4f8;color:#53637b;border-color:#dce4ee}
@media(max-width:560px){.history-tag-row{grid-template-columns:1fr;gap:2px}.history-record{align-items:flex-start}}
.account-menu:not([hidden]){margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.account-menu button{padding:5px 9px;background:#233b58;border-color:#63819e;font-size:.875rem}
.login-card{width:min(100%,27rem);margin:48px auto 0}.login-card h1{font-size:1.6rem}
.login-card label,.account-dialog label{display:block;margin:12px 0}
.login-card p,.account-dialog p{margin:8px 0}
.account-dialog{width:min(46rem,calc(100% - 24px));border:1px solid #d7e2ef;border-radius:12px;padding:18px;color:#142542}
.account-dialog::backdrop{background:#14254266}.account-fields{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.account-fields label{margin-bottom:0}
#users-list .table-action + .table-action{margin-left:10px}
@media(max-width:620px){header .bar{height:auto;min-height:66px;padding-block:10px}.account-menu:not([hidden]){margin-left:0}}
