:root {
    color-scheme: dark;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #090909;
    color: #ddd;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid #292929;
}

h1,
h2 {
    margin: 0;
    font-weight: 500;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 15px;
}

.subtitle {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

.badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 9px;
    border: 1px solid;
    font-size: 11px;
}

.badge.ok {
    color: #8fff9c;
    border-color: #315d37;
    background: #102515;
}

.badge.bad {
    color: #ff8d8d;
    border-color: #663434;
    background: #281313;
}

main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
}

.metrics {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 1px;

    background: #292929;
    border: 1px solid #292929;

    margin-bottom: 24px;
}

.metric {
    background: #101010;
    padding: 12px;
    min-height: 65px;
}

.metric span {
    display: block;
    color: #6f6f6f;
    font-size: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel {
    margin-bottom: 24px;
    border: 1px solid #292929;
    background: #0d0d0d;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;
    border-bottom: 1px solid #292929;
}

.panel-header span {
    color: #777;
    font-size: 11px;
}

canvas {
    display: block;
    width: 100%;
    background: #000;
}

#spectrum {
    height: 260px;
}

#waterfall {
    height: 300px;
    image-rendering: auto;
}

.frequency-axis {
    display: flex;
    justify-content: space-between;

    color: #777;

    padding: 7px 10px;

    border-top: 1px solid #202020;

    font-size: 10px;
}

footer {
    display: flex;
    justify-content: space-between;

    color: #666;
    font-size: 11px;

    padding-bottom: 20px;
}

a {
    color: #888;
}
