:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 260px;
    background: transparent;
}

main {
    padding: 4px;
}

.report-card {
    --accent: #51606d;
    --surface: #f4f6f8;
    --border: #9aa5af;
    display: block;
    width: 100%;
    max-width: 640px;
    min-height: 208px;
    overflow: hidden;
    color: #17212b;
    text-decoration: none;
    background: #fff;
    border: 2px solid var(--border);
    border-left: 8px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(23, 33, 43, .14);
}

.report-card.compliant {
    --accent: #18794e;
    --surface: #e9f7ef;
    --border: #58a77f;
}

.report-card.non-compliant {
    --accent: #b4232c;
    --surface: #fff0f0;
    --border: #d6757b;
}

.report-card:focus-visible {
    outline: 3px solid #1264a3;
    outline-offset: 1px;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(23, 33, 43, .22);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 14px;
    color: #46525e;
    border-bottom: 1px solid #d9dee3;
    font-size: 13px;
    font-weight: 650;
}

.brand-row img {
    width: auto;
    max-width: 104px;
    height: 28px;
    object-fit: contain;
}

.report-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 94px;
    padding: 14px 16px;
    background: var(--surface);
}

.report-details {
    min-width: 0;
}

h1 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

p {
    margin: 0;
    color: #46525e;
    font-size: 13px;
}

.status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 14px;
}

.status-symbol {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border-top: 1px solid #d9dee3;
}

.counts div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
}

.counts div + div {
    border-left: 1px solid #d9dee3;
}

.counts dt {
    color: #46525e;
    font-size: 12px;
}

.counts dd {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
}

@media (max-width: 420px) {
    .brand-row span {
        display: none;
    }

    .report-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding-block: 10px;
    }

    .status-symbol {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }

    .counts div {
        align-items: center;
        flex-direction: column;
        gap: 2px;
        padding-block: 7px;
    }
}
