.karl-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.karl-video-card {
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.karl-video-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.karl-video-card h3 {
    margin: 12px 0 8px;
}

.karl-video-card.is-locked {
    opacity: .76;
}

.karl-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 6px;
    overflow: hidden;
}

.karl-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.karl-member-account {
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: 8px;
    padding: 18px;
}

.karl-member-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.karl-member-plans span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--karl-plan-color) 14%, white);
    color: #111827;
}

.karl-member-plans span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--karl-plan-color);
}

.karl-subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.karl-subscribe-button:hover,
.karl-subscribe-button:focus {
    color: #fff;
    background: #2563eb;
}

.karl-subscribe-button.is-secondary {
    background: #374151;
}

.karl-invoices {
    overflow-x: auto;
}

.karl-invoices table {
    width: 100%;
    border-collapse: collapse;
}

.karl-invoices th,
.karl-invoices td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, .12);
    text-align: left;
}

.karl-invoices a + a {
    margin-left: 10px;
}
