*{box-sizing:border-box}body{margin:0;background:#171411;color:#f4eee7;font-family:system-ui,sans-serif}main{max-width:1080px;margin:auto;padding:36px 30px}header{display:flex;justify-content:space-between;color:#bbaea0;font-size:13px}.brand{color:#ff9b42;font-weight:800;letter-spacing:2px}h1{font-size:48px;line-height:1.12;margin:36px 0 20px}em{font-style:normal;color:#ff9b42}.intro,.note{color:#bbaea0;line-height:1.6}.live{display:flex;align-items:center;justify-content:space-between;margin:30px 0}.live span,article span{display:block;font-size:13px;color:#c9b8a6}.live strong{display:block;font-size:62px}.live small{font-size:22px;color:#bbaea0}button{background:#ff9b42;color:#25170c;border:0;border-radius:8px;padding:14px 20px;font-weight:750;cursor:pointer}button:disabled{opacity:.4;cursor:default}#cancel,#export{background:#3b3026;color:#f4eee7}progress{width:100%;height:8px;accent-color:#ff9b42}#status{min-height:28px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}article{background:#27211b;border:1px solid #4c3a29;border-radius:12px;padding:22px}article b{display:block;font-size:30px;margin:14px 0}article small{color:#bbaea0}.featured{border-color:#ff9b42}.chart{background:#211c17;border-radius:12px;padding:20px;margin-bottom:20px}.chartTitle{display:flex;justify-content:space-between;align-items:center}h2{font-size:16px}.chartTitle span{font-size:13px;color:#bbaea0}canvas{width:100%;height:auto}.note{font-size:13px}button:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:650px){main{padding:24px 16px}h1{font-size:34px}.cards{grid-template-columns:1fr}.live{align-items:flex-start;gap:20px;flex-direction:column}.live strong{font-size:48px}header{gap:15px}.chartTitle{align-items:flex-start;flex-direction:column}}

a{color:#ff9b42}form{max-width:650px;margin:30px 0;padding:24px;background:#27211b;border-radius:12px}label{display:block;margin:16px 0;color:#c9b8a6}input,select{display:block;width:100%;padding:12px;margin-top:8px;background:#171411;border:1px solid #6b513b;color:#f4eee7;border-radius:6px;font:inherit}#message{color:#ffb36b}[hidden]{display:none!important}

.tabs{display:flex;gap:10px;margin:28px 0;flex-wrap:wrap}.tabs button{background:#30271f;color:#dfcfc0}.tabs button[aria-selected=true]{background:#ff9b42;color:#25170c}.controls{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0}.direction{border-top:1px solid #4c3a29;margin-top:25px;padding-top:15px}.direction .live{margin:12px 0}.direction .live strong{font-size:48px}.cards:has(article:not([hidden])){grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.knowledge{display:grid;gap:18px}.kb-text{white-space:pre-wrap;line-height:1.6;color:#d4c4b2}.knowledge a{display:inline-block;margin-right:15px;margin-top:10px}.check{display:flex;align-items:center;gap:12px}.check input{width:auto;margin:0;accent-color:#ff9b42}fieldset{border:1px solid #6b513b;border-radius:10px;padding:18px;margin:24px 0}legend{color:#ffb36b}textarea{width:100%;min-height:130px;resize:vertical;padding:12px;background:#171411;color:#f4eee7;border:1px solid #6b513b;border-radius:6px;font:inherit}.article-editor{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #6b513b}.article-editor h3{color:#ffb36b}.remove-article{background:#5d352a;color:#ffe2d2}#config{max-width:850px}

#diagnostic-output{white-space:pre-wrap;overflow-wrap:anywhere;background:#27211b;border:1px solid #6b513b;padding:18px;border-radius:10px;font:14px/1.6 system-ui}#diagnose{background:#3b3026;color:#f4eee7}

/* Infinity Speed 0.4.3 — responsive measurement interface */
.speed-page main{max-width:1000px;padding:24px 32px}.speed-page header{align-items:center;gap:16px}.identity{display:flex;align-items:center;gap:12px;min-width:0}.identity strong{font-size:16px;letter-spacing:1px;color:#f4eee7;overflow-wrap:anywhere}.identity small{display:block;font-size:12px;margin-top:4px;color:#bbaea0}#brand-symbol{font-size:44px;color:#ff9b42;line-height:1}#brand-logo{width:96px;height:81px;object-fit:contain;flex-shrink:0}.admin-link{font-size:12px;padding:14px 0}.speed-page .tabs{border-bottom:1px solid #49372a;margin:20px 0;gap:24px;flex-wrap:nowrap}.speed-page .tabs button{background:none;border-radius:0;padding:12px 0;font-size:13px;color:#bbaea0}.speed-page .tabs button[aria-selected=true]{color:#ffad63;border-bottom:2px solid #ff9b42}.test-heading{text-align:center}.speed-page h1{font-size:28px;margin:14px 0 8px}.test-heading p{font-size:12px;color:#bbaea0;line-height:1.5;margin:0 auto 20px;max-width:480px}.steps{display:flex;justify-content:center;gap:28px;font-size:12px;color:#bbaea0}.steps .active{color:#ffb574}.steps .finished:before{content:'✓ ';color:#ffb574}#meter-panel{max-width:370px;margin:auto;text-align:center}#gauge-phase{color:#ffb574;font-size:14px;margin:24px 0 0}.gauge{position:relative;max-width:320px;margin:auto}.gauge svg{display:block;width:100%;height:auto}.gauge-track{fill:none;stroke:#3b2e23;stroke-width:9;stroke-linecap:round}.gauge-arc{fill:none;stroke:#ff9b42;stroke-width:9;stroke-linecap:round;transition:stroke-dasharray .35s ease-out}.gauge-ticks line{stroke:#6c5847;stroke-width:1.5}.gauge-labels text{fill:#c5b5a7;font-size:11px;text-anchor:middle}.gauge-needle{fill:#ffb574;transition:transform .35s ease-out}.gauge-needle circle{fill:#f4eee7;stroke:#4d3421;stroke-width:4}.gauge-reading{position:absolute;top:74%;left:0;right:0;text-align:center}.gauge-reading strong{display:block;font-size:42px;letter-spacing:-1.5px;font-weight:600;line-height:1.05;font-variant-numeric:tabular-nums}.gauge-reading span{font-size:12px;color:#bbaea0}#gauge-note{font-size:12px;color:#bbaea0;margin:8px 0 14px}#progress{height:5px;display:block;width:90%;margin:0 auto 15px}#status{text-align:center;font-size:13px;line-height:1.5;max-width:640px;margin:12px auto 18px;overflow-wrap:anywhere}.main-controls{display:flex;flex-direction:column;align-items:center;gap:6px}#start{width:100%;max-width:360px;min-height:48px;border-radius:12px}#cancel{background:none;font-size:12px;min-height:44px;padding:10px 18px}.consumption{text-align:center;font-size:11px;color:#bbaea0;margin:12px 0 22px}#tools{max-width:740px;margin:auto;border-top:1px solid #49372a}summary{cursor:pointer;padding:16px 0;min-height:44px;font-size:13px;color:#c9b8a6}.speed-page footer{text-align:center;font-size:11px;color:#bbaea0;margin:28px 0 0}#results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}#results .direction{border:1px solid #4c3a29;border-radius:14px;background:#27211b;padding:20px;margin:0;min-width:0}#results .direction:only-child{grid-column:1/-1;max-width:560px;width:100%;justify-self:center}#results .chartTitle{gap:8px}#results h2{color:#ffb574;margin:0;font-size:15px}#results .chartTitle>span{font-size:11px;text-align:right;overflow-wrap:anywhere}.result-metrics{display:flex;flex-direction:column;margin:16px 0;gap:8px}.result-metrics article{padding:10px 0;border:none;background:none;border-radius:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;justify-content:space-between}.result-metrics article span{font-size:12px}.result-metrics article b{font-size:20px;margin:0;font-variant-numeric:tabular-nums}.result-metrics article small{width:100%;font-size:11px}.result-metrics article[id$="average-box"]{order:-1;border-bottom:1px solid #4c3a29;padding:0 0 14px;display:block}.result-metrics article[id$="average-box"] b{font-size:32px;margin:6px 0}.result-metrics article[id$="average-box"] small{display:none}#results .chart{padding:12px;margin:12px 0;background:#211c17}#results .chart h2{font-size:12px}#results .note{font-size:11px}.speed-page canvas{width:100%;height:150px}.logo-editor-preview{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.logo-editor-preview img{width:100px;height:80px;object-fit:contain}.logo-editor-preview button{font-size:13px}input[type=file]{max-width:100%;font-size:14px}form{max-width:100%}fieldset{min-width:0}pre{max-width:100%}
@media(max-width:650px){.speed-page main{padding:18px 16px}.identity strong{font-size:13px}.identity small{font-size:11px}.admin-link{font-size:11px}#brand-logo{width:72px;height:66px}#brand-symbol{font-size:36px}.speed-page .tabs{gap:20px;margin:16px 0}.speed-page .tabs button{font-size:12px}.speed-page h1{font-size:22px}.test-heading p{font-size:11px;margin-bottom:16px}.steps{gap:20px;font-size:11px}#gauge-phase{margin-top:20px}#results{grid-template-columns:1fr;gap:12px}#results .chartTitle{flex-direction:row;align-items:center}.speed-page .controls{gap:8px}.speed-page .controls button{font-size:12px}body:not(.speed-page) main{padding:20px 16px}body:not(.speed-page) h1{font-size:28px}body:not(.speed-page) form{padding:16px}body:not(.speed-page) fieldset{padding:12px}.gauge{max-width:290px}}
@media(prefers-reduced-motion:reduce){.gauge-arc,.gauge-needle{transition:none}}

.result-metrics article small{display:none}.result-metrics article{padding:5px 0}.result-metrics article b{font-size:18px}.result-metrics{gap:4px;margin:14px 0 8px}#results details.chart{padding:0;background:transparent;margin:10px 0 0;border-top:1px solid #4c3a29;border-radius:0}#results details.chart summary{font-size:12px;padding:12px 0}#results details.chart>span{display:block;font-size:11px;color:#bbaea0;margin-bottom:8px}

#gauge-scale{font-size:11px;color:#c5b5a7;margin:5px 0 0}.identity>div{min-width:0}

#network-output{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 system-ui}

.smoothing-caption{font-size:11px;color:#c5b5a7;margin:8px 0 0}
