.gem-teambeheer-counter {
    --gem-tc-columns: 2;
    --gem-tc-edge-size: 4px;
    --gem-tc-gap: 16px;
    --gem-tc-stat-gap: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    color: #102335;
    padding: 24px;
}

.gem-teambeheer-counter__header {
    margin: 0 0 18px;
}

.gem-teambeheer-counter__title {
    color: inherit;
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.gem-teambeheer-counter__subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
    margin: 6px 0 0;
}

.gem-teambeheer-counter__metrics {
    display: grid;
    gap: var(--gem-tc-gap);
    grid-template-columns: repeat(var(--gem-tc-columns), minmax(0, 1fr));
}

.gem-teambeheer-counter__metric {
    --gem-tc-accent: #245ed1;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.gem-teambeheer-counter__metric::before {
    background: var(--gem-tc-accent);
    content: "";
    display: none;
    position: absolute;
}

.gem-teambeheer-counter--edge-left .gem-teambeheer-counter__metric::before {
    display: block;
    inset: 0 auto 0 0;
    width: var(--gem-tc-edge-size);
}

.gem-teambeheer-counter--edge-right .gem-teambeheer-counter__metric::before {
    display: block;
    inset: 0 0 0 auto;
    width: var(--gem-tc-edge-size);
}

.gem-teambeheer-counter--edge-top .gem-teambeheer-counter__metric::before {
    display: block;
    height: var(--gem-tc-edge-size);
    inset: 0 0 auto 0;
}

.gem-teambeheer-counter--edge-bottom .gem-teambeheer-counter__metric::before {
    display: block;
    height: var(--gem-tc-edge-size);
    inset: auto 0 0 0;
}

.gem-teambeheer-counter--edge-left .gem-teambeheer-counter__metric::before,
.gem-teambeheer-counter--edge-right .gem-teambeheer-counter__metric::before {
    height: auto;
}

.gem-teambeheer-counter--edge-top .gem-teambeheer-counter__metric::before,
.gem-teambeheer-counter--edge-bottom .gem-teambeheer-counter__metric::before {
    width: auto;
}

.gem-teambeheer-counter--outline {
    background: transparent;
}

.gem-teambeheer-counter--minimal {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.gem-teambeheer-counter--minimal .gem-teambeheer-counter__metric {
    border-color: transparent;
    box-shadow: none;
}

.gem-teambeheer-counter--split .gem-teambeheer-counter__metric {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.gem-teambeheer-counter__metric--highest-finishes {
    --gem-tc-accent: #15803d;
}

.gem-teambeheer-counter__metric-header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    min-width: 0;
}

.gem-teambeheer-counter__icon {
    align-items: center;
    background: #f1f5ff;
    border-radius: 999px;
    color: var(--gem-tc-accent);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 52px;
    min-width: 52px;
    padding: 8px 10px;
    text-align: center;
}

.gem-teambeheer-counter__icon svg,
.gem-teambeheer-counter__icon i {
    display: block;
    height: 1em;
    width: 1em;
}

.gem-teambeheer-counter__metric-title {
    color: inherit;
    font-size: 17px;
    line-height: 1.2;
    margin: 0;
}

.gem-teambeheer-counter__scope {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 4px;
}

.gem-teambeheer-counter__stats {
    display: grid;
    gap: var(--gem-tc-stat-gap);
}

.gem-teambeheer-counter__stat {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: var(--gem-tc-stat-gap);
}

.gem-teambeheer-counter__stat:first-child {
    border-top: 0;
    padding-top: 0;
}

.gem-teambeheer-counter__stat-label {
    color: #64748b;
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
}

.gem-teambeheer-counter__number {
    color: #102335;
    display: block;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.gem-teambeheer-counter__meta {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 8px;
}

@media (max-width: 720px) {
    .gem-teambeheer-counter {
        --gem-tc-columns: 1;
    }

    .gem-teambeheer-counter__number {
        font-size: 40px;
    }
}
