.dn-test-hub {
    --hub-bg: #171717;
    --hub-surface: #2f2f2f;
    --hub-hover: #424242;
    --hub-text: #ececec;
    --hub-muted: #b4b4b4;
    --hub-faded: #8e8e8e;
    --hub-border: #424242;
    --hub-accent: #10a37f;
    --hub-accent-hover: #0d8f70;
    position: relative;
    overflow: hidden;
    padding: clamp(1.15rem, 2.8vw, 2rem);
    color: var(--hub-text);
    border: 1px solid var(--hub-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(16, 163, 127, .16), transparent 32%),
        linear-gradient(145deg, var(--hub-surface), var(--hub-bg));
    box-shadow: 0 20px 52px rgba(0, 0, 0, .26);
}

.dn-test-hub__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    align-items: end;
    gap: 1.25rem;
    margin-bottom: 1.2rem;
}

.dn-test-hub__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--hub-accent);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dn-test-hub__header h2,
.dn-test-hub__progress-head h3 {
    margin: 0;
    color: var(--hub-text);
    font-weight: 900;
    letter-spacing: -.025em;
}

.dn-test-hub__header h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.dn-test-hub__header p {
    margin: .55rem 0 0;
    color: var(--hub-muted);
    line-height: 1.6;
}

.dn-test-hub__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(0, 0, 0, .14);
}

.dn-test-hub__step {
    min-width: 0;
    color: var(--hub-muted);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
}

.dn-test-hub__step strong {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    margin-bottom: .35rem;
    color: #fff;
    border: 1px solid rgba(16, 163, 127, .4);
    border-radius: 9px;
    background: rgba(16, 163, 127, .18);
    font-size: .75rem;
}

.dn-test-hub__selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.dn-test-hub__issue {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .85rem;
    color: var(--hub-text) !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.dn-test-hub__issue:hover {
    transform: translateY(-2px);
    color: #fff !important;
    border-color: rgba(16, 163, 127, .5);
    background: rgba(16, 163, 127, .1);
}

.dn-test-hub__issue:focus-visible,
.dn-test-hub__progress-item:focus-visible,
.dn-test-hub__recent:focus-visible {
    outline: 3px solid rgba(16, 163, 127, .45);
    outline-offset: 3px;
}

.dn-test-hub__issue-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(16, 163, 127, .35);
    border-radius: 14px;
    background: rgba(16, 163, 127, .14);
}

.dn-test-hub__issue-copy {
    min-width: 0;
}

.dn-test-hub__issue-copy strong,
.dn-test-hub__issue-copy small {
    display: block;
}

.dn-test-hub__issue-copy strong {
    margin-bottom: .2rem;
    color: var(--hub-text);
    font-size: .92rem;
    font-weight: 850;
}

.dn-test-hub__issue-copy small {
    color: var(--hub-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.dn-test-hub__issue-action {
    color: var(--hub-accent);
}

.dn-test-hub__progress {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(0, 0, 0, .14);
}

.dn-test-hub__progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.dn-test-hub__progress-head h3 {
    font-size: 1rem;
}

.dn-test-hub__progress-head p {
    margin: .25rem 0 0;
    color: var(--hub-faded);
    font-size: .78rem;
}

.dn-test-hub__progress-count {
    color: var(--hub-text);
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.dn-test-hub__progress-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .65rem;
}

.dn-test-hub__clear {
    padding: .42rem .62rem;
    color: var(--hub-muted);
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: transparent;
    font-size: .7rem;
    font-weight: 800;
}

.dn-test-hub__clear:hover {
    color: #fff;
    border-color: var(--hub-accent);
    background: rgba(16, 163, 127, .12);
}

.dn-test-hub__clear:focus-visible {
    outline: 3px solid rgba(16, 163, 127, .45);
    outline-offset: 3px;
}

.dn-test-hub__meter {
    height: 9px;
    margin-bottom: .85rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.dn-test-hub__meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hub-accent), #10a37f);
    transition: width .25s ease;
}

.dn-test-hub__progress-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .45rem;
}

.dn-test-hub__progress-item {
    min-width: 0;
    padding: .65rem .45rem;
    color: var(--hub-muted) !important;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.dn-test-hub__progress-item i,
.dn-test-hub__progress-item span,
.dn-test-hub__progress-item small {
    display: block;
}

.dn-test-hub__progress-item i {
    margin-bottom: .3rem;
    color: var(--hub-faded);
}

.dn-test-hub__progress-item span {
    overflow: hidden;
    color: var(--hub-text);
    font-size: .74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dn-test-hub__progress-item small {
    margin-top: .2rem;
    overflow: hidden;
    color: var(--hub-faded);
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dn-test-hub__progress-item.is-complete {
    border-color: rgba(16, 163, 127, .42);
    background: rgba(16, 163, 127, .1);
}

.dn-test-hub__progress-item.is-complete i,
.dn-test-hub__progress-item.is-complete small {
    color: var(--hub-accent);
}

.dn-test-hub__recent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .85rem;
    padding: .8rem .9rem;
    color: var(--hub-text) !important;
    text-decoration: none;
    border: 1px solid rgba(16, 163, 127, .3);
    border-radius: 14px;
    background: rgba(16, 163, 127, .08);
}

.dn-test-hub__recent[hidden] {
    display: none !important;
}

.dn-test-hub__recent strong,
.dn-test-hub__recent small {
    display: block;
}

.dn-test-hub__recent strong {
    color: var(--hub-text);
    font-size: .84rem;
}

.dn-test-hub__recent small {
    margin-top: .2rem;
    color: var(--hub-muted);
    font-size: .72rem;
}

.dn-test-hub__recent > i {
    color: var(--hub-accent);
}

@media (max-width: 991.98px) {
    .dn-test-hub__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dn-test-hub__progress-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dn-test-hub__selector {
        grid-template-columns: 1fr;
    }

    .dn-test-hub__progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dn-test-hub {
        border-radius: 20px;
    }

    .dn-test-hub__steps {
        grid-template-columns: 1fr;
    }

    .dn-test-hub__step {
        display: grid;
        grid-template-columns: 26px 1fr;
        align-items: center;
        gap: .5rem;
    }

    .dn-test-hub__step strong {
        margin: 0;
    }

    .dn-test-hub__issue {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: .65rem;
    }

    .dn-test-hub__issue-icon {
        width: 40px;
        height: 40px;
    }

    .dn-test-hub__progress-head,
    .dn-test-hub__recent {
        align-items: flex-start;
        flex-direction: column;
    }

    .dn-test-hub__progress-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dn-test-hub__issue,
    .dn-test-hub__meter span {
        transition: none;
    }
}
