.rsvlcc {
    --rsvlcc-accent: #0a1332;
    --rsvlcc-border: #dcdfe6;
    --rsvlcc-muted: #5b6070;
    --rsvlcc-surface: #f6f7fa;
    color: inherit;
    container-type: inline-size;
    font: inherit;
    line-height: 1.5;
    margin: 0 0 2em;
}

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

.rsvlcc-card {
    background: #fff;
    border: 1px solid var(--rsvlcc-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10, 19, 50, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    overflow: hidden;
}

.rsvlcc-fields {
    display: grid;
    gap: 1.25em;
    padding: 1.75em;
}

.rsvlcc-field label {
    display: block;
    font-weight: 600;
    margin: 0 0 0.4em;
}

.rsvlcc-field select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6070' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.9em center;
    border: 1px solid var(--rsvlcc-border);
    border-radius: 8px;
    color: inherit;
    font: inherit;
    height: auto;
    margin: 0;
    max-width: none;
    padding: 0.6em 2.4em 0.6em 0.8em;
    width: 100%;
}

.rsvlcc-field select:focus-visible {
    border-color: var(--rsvlcc-accent);
    outline: 2px solid var(--rsvlcc-accent);
    outline-offset: 1px;
}

.rsvlcc-slider-label {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.4em;
}

.rsvlcc-slider-label label {
    margin: 0;
}

.rsvlcc-slider-label output {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.rsvlcc-slider input[type="range"] {
    --rsvlcc-fill: 0%;
    appearance: none;
    background: linear-gradient(to right, var(--rsvlcc-accent) var(--rsvlcc-fill), var(--rsvlcc-border) var(--rsvlcc-fill));
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 6px;
    margin: 0.9em 0;
    padding: 0;
    width: 100%;
}

.rsvlcc-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #fff;
    border: 3px solid var(--rsvlcc-accent);
    border-radius: 50%;
    height: 22px;
    width: 22px;
}

.rsvlcc-slider input[type="range"]::-moz-range-thumb {
    background: #fff;
    border: 3px solid var(--rsvlcc-accent);
    border-radius: 50%;
    height: 16px;
    width: 16px;
}

.rsvlcc-slider input[type="range"]:focus-visible {
    outline: 2px solid var(--rsvlcc-accent);
    outline-offset: 6px;
}

.rsvlcc-result {
    align-items: center;
    background: var(--rsvlcc-accent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75em 1em;
    text-align: center;
}

.rsvlcc-result-label {
    font-size: 0.8125em;
    letter-spacing: 0.06em;
    opacity: 0.8;
    text-transform: uppercase;
}

.rsvlcc-total {
    font-size: 3em;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.15em 0;
}

.rsvlcc-per-chat {
    font-size: 0.9375em;
    opacity: 0.8;
}

.rsvlcc-source {
    color: var(--rsvlcc-muted);
    font-size: 16px !important;
    margin: 1em 0;
}

.rsvlcc a {
    color: inherit;
    text-decoration: underline;
}

.rsvlcc-all {
    border: 1px solid var(--rsvlcc-border);
    border-radius: 12px;
    margin: 0;
}

.rsvlcc-all summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.9em 1.25em;
}

.rsvlcc-table-wrap {
    overflow-x: auto;
    padding: 0 1.25em 1.25em;
}

.rsvlcc-all table {
    border-collapse: collapse;
    font-size: 0.9375em;
    margin: 0;
    width: 100%;
}

.rsvlcc-all caption {
    caption-side: top;
    color: var(--rsvlcc-muted);
    padding: 0 0 0.75em;
    text-align: left;
}

.rsvlcc-all th,
.rsvlcc-all td {
    border: 0;
    border-bottom: 1px solid var(--rsvlcc-border);
    padding: 0.55em 0.75em;
    text-align: right;
    white-space: nowrap;
}

.rsvlcc-all th:first-child {
    text-align: left;
}

.rsvlcc-all thead th {
    color: var(--rsvlcc-muted);
    font-size: 0.875em;
    font-weight: 600;
    white-space: normal;
}

.rsvlcc-all tbody th {
    font-weight: 400;
}

.rsvlcc-all .rsvlcc-platform-row th {
    background: var(--rsvlcc-surface);
    font-weight: 600;
}

.rsvlcc-all .rsvlcc-platform-row a {
    color: var(--rsvlcc-muted);
    font-weight: 400;
}

.rsvlcc-all tr.is-selected th,
.rsvlcc-all tr.is-selected td {
    font-weight: 700;
}

.rsvlcc-all tr.is-selected th::before {
    color: var(--rsvlcc-accent);
    content: "▸ ";
}

/* The calculator's own width, not the screen's: it sits in a theme's content column. */
@container (max-width: 540px) {
    .rsvlcc-card {
        grid-template-columns: 1fr;
    }

    .rsvlcc-fields,
    .rsvlcc-result {
        padding: 1.25em;
    }

    .rsvlcc-total {
        font-size: 2.5em;
    }
}
