
:root {
    --danger: #ef4444;
    --header-h: 64px
}

.btn {
    font-size: .95rem
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: .75rem;
    line-height: 1;
    font-weight: 800
}

main {
    padding: 32px 0 64px
}

.grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px
}

@media (max-width:980px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.sidebar {
    top: calc(var(--header-h) + 20px);
    align-self: start
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px
}

.panel .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border)
}

.panel .body {
    padding: 16px
}

.h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: .25rem 0 1rem
}

.list {
    list-style: none;
    margin: 0;
    padding: 8px
}

.list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fg);
    align-items: center
}

.list a.active {
    background: var(--bg);
    border: 1px solid var(--border)
}

.list a:hover {
    background: var(--bg)
}

.kpi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

@media (max-width:980px) {
    .kpi {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:620px) {
    .kpi {
        grid-template-columns: 1fr
    }
}

.kpi .card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card)
}

.kpi .card .v {
    font-weight: 800;
    font-size: 1.4rem
}

.avatar {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2))
}

.input {
    inline-size: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--fg)
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

@media (max-width:700px) {
    .grid-2 {
        grid-template-columns: 1fr
    }
}

/* recommendations */
.recommendations {
    display: block;
}

/* test results */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    background: #f9f9f9;
}