.gl {
    --gl-accent: #13d4e2;
    --gl-panel: #171b1e;
    --gl-border: #2a3135;
    --gl-text: #e6eef0;
    --gl-muted: #7d8c92;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 16px 48px;
    box-sizing: border-box;
    color: var(--gl-text);
    font-family: 'Roboto Mono', monospace;
}

.gl *,
.gl *::before,
.gl *::after {
    box-sizing: border-box;
}

/* hidden wins over the display of the cards and the folders */
.gl [hidden] {
    display: none !important;
}

.gl a {
    color: var(--gl-accent);
}

.gl-title {
    font-size: 26px;
    font-weight: 500;
    margin: 8px 0 6px;
}

.gl-lead {
    color: var(--gl-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 760px;
}

.gl-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gl-search {
    flex: 0 1 360px;
    min-width: 0;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--gl-border);
    background: #101315;
    color: var(--gl-text);
    font: inherit;
    font-size: 14px;
    padding: 0 12px;
}

.gl-search:focus {
    outline: none;
    border-color: var(--gl-accent);
}

.gl-count {
    color: var(--gl-muted);
    font-size: 13px;
}

/* The channels and, on the right, the partner card; under the channels on a narrow screen */
.gl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.gl-side {
    position: sticky;
    top: 76px;
    margin-top: 26px;
}

.gl-side .pk {
    margin: 0;
}

@media (max-width: 960px) {
    .gl-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .gl-side {
        position: static;
        max-width: 380px;
        width: 100%;
        margin: 32px auto 0;
    }
}

.gl-folder {
    margin-top: 26px;
}

.gl-folder-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
}

.gl-folder-count {
    color: var(--gl-muted);
    font-size: 12px;
    font-weight: 400;
}

.gl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.gl-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* The place of the chart: kept while the chart is not made (out of the screen) */
.gl-chart {
    height: 190px;
    border-radius: 12px;
    background: var(--gl-panel);
    border: 1px solid var(--gl-border);
}

.gl-chart u00-chart {
    height: 100%;
}

.gl-chart:has(u00-chart) {
    border: none;
    background: none;
}

.gl-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--gl-muted);
    padding: 0 4px;
}

.gl-card-foot a {
    text-decoration: none;
    white-space: nowrap;
}

.gl-card-foot a:hover {
    text-decoration: underline;
}

.gl-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-empty {
    color: var(--gl-muted);
    font-size: 14px;
    margin-top: 24px;
}

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

    .gl-search {
        flex-basis: 100%;
    }
}
