/* Reference layout is kept in assets/reference/css/style.css.
   These overrides supply semantic controls, measured test states and accessibility. */
body { background: #00191b; }
.speedtest__content .moto__testspeed { border-radius: 10px; }
.wrap-banner button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.wrap-banner button > img { width: 100%; }
.speedtest__content .moto__testspeed .speed__line { opacity: 1; }
.speedtest__content .speed__line .copy { padding: 0; border: 0; background: none; flex-shrink: 0; }
.speedtest__content .speed__line .copy img { display: block; width: 22px; height: 22px; }
.speed__run { display: block; }
.speedtest__content .moto__testspeed .speed__line .num__speed { white-space: nowrap; }
.speedtest__content .moto__testspeed .speed__line .num__speed .icon__sprites { flex-shrink: 0; }
.speedtest__content .moto__testspeed .speed__line.is-testing .btn__speed,
.speedtest__content .moto__testspeed .speed__line.is-error .btn__speed { background: linear-gradient(#839a99, #496968); }
.is-error .measurement { font-size: 12px; }
.is-testing .measurement { font-size: 12px; }
#wrapsBg { z-index: 10000; opacity: 0; transition: opacity 400ms ease-in-out; }
#wrapsBg.is-visible { opacity: 1; }
#wrapsBg:not([hidden]) { display: block; }
#wrapsBg[hidden] { display: none; }
#guide-title { margin: 20px; }
.guide-highlight { color: #f1c40f; }
.close-icon { padding: 0; border: 0; background: none; }
.guide-1, .guide-2 { text-align: center; }
.guide-1-app, .guide-2-app { display: none; }
body.guide-open { overflow: hidden; }
.no-script { color: #bedad0; text-align: center; padding: 20px; }
:focus-visible { outline: 2px solid #ffd602; outline-offset: 3px; }
@media (max-width: 767px) {
    .guide-1, .guide-2 { display: none; }
    .guide-1-app, .guide-2-app { display: block; }
    .speedtest__content .moto__testspeed .speed__line .num__speed { margin: 0 4px; font-size: 14px; }
    .speedtest__content .moto__testspeed .speed__line .num__speed .icon__sprites { margin-right: 6px; }
}
@media (max-width: 359px) {
    .moto__testspeed .speed__line .web__name { min-width: 110px; }
    .speedtest__content .speed__line .copy { margin: 6px 3px; }
}
/* Neutralize reference desktop result-state and mobile label blinking. */
#list-domain .speed__line .btn__speed { -webkit-animation: none; animation: none; }
#list-domain {
    max-height: 60vh;
    max-height: 60dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    padding: 0 4px 6px;
}
/* Grid replaces the reference's percentage widths, mobile floats and hidden CTA. */
#list-domain .speed__line {
    display: grid !important;
    grid-template-columns: minmax(90px, 190px) 22px 110px minmax(40px, 1fr) 130px;
    gap: 12px;
    padding: 10px !important;
}
#list-domain .speed__line::before, #list-domain .speed__line::after { display: none; }
#list-domain .speed__line > * { float: none; min-width: 0; margin: 0; }
#list-domain .speed__line .btn__speed {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    height: 46px !important;
    line-height: 1.2 !important;
}
#list-domain .speed__line .num__speed { width: auto !important; margin: 0; }
#list-domain .speed__line .speed__process { position: static; width: 100% !important; }
#list-domain .speed__line .arrow__circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    line-height: 1;
}
/* Keep the reference's 20px circle and optical -1px glyph offset. */
#list-domain .speed__line .arrow__circle span { position: relative; top: -1px; left: 0; line-height: 1; }
.qr-panel {
    border: 1px solid #06564d;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #03282c70;
}
@media (max-width: 767px) {
    #list-domain .speed__line {
        grid-template-columns: minmax(60px, 1fr) 22px minmax(85px, 1fr) minmax(90px, 1fr);
        gap: 8px;
    }
    #list-domain .speed__line .btn__speed { height: 35px !important; font-size: 13px; gap: 4px; }
    #list-domain .speed__line .speed__process { grid-column: 1 / -1; grid-row: 2; height: 4px !important; }
    #list-domain .speed__line .speed__link { grid-column: 4; grid-row: 1; }
    #list-domain .speed__line .num__speed { font-size: 12px; }
    #list-domain .speed__line .num__speed .icon__sprites { margin-right: 4px; }
}
@media (max-width: 374px) {
    #list-domain .speed__line { grid-template-columns: minmax(45px, 1fr) 22px minmax(75px, 1fr) 85px; gap: 4px; }
    #list-domain .speed__line .num__speed .icon__sprites { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
