.ec-set-origin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: .45rem;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.ec-set-origin > button {
    min-height: 1.8rem;
    padding: .35rem .45rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: 700 .81rem/1.25 var(--font-display);
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.ec-set-origin > button:is(:hover, :focus-visible) {
    color: var(--accent-primary);
}

.ec-set-origin > button[aria-pressed="true"] {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.ec-set-origin > button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.scedar-set-entry {
    position: relative;
    flex: none;
}

.scedar-set-entry > .scedar-set-option-body { width: 100%; }

.scedar-set-entry.has-segment-toggle .scedar-set-heading {
    display: block;
    min-height: 23px;
    padding-inline-end: 10rem;
}

.scedar-set-toggle {
    position: absolute;
    z-index: 1;
    top: .36rem;
    inset-inline-end: .45rem;
    padding: .24rem .45rem;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--accent-primary);
    font: 650 .75rem/1.25 var(--font-display);
    text-align: center;
    cursor: pointer;
}

.scedar-set-entry .is-match { color: var(--accent-primary); font-weight: 700; }
.scedar-set-toggle:hover { background: var(--accent-primary-light); }
.scedar-set-toggle:focus-visible { outline: 2px solid var(--accent-primary); }

@media (max-width: 520px) {
    .scedar-set-entry.has-segment-toggle .scedar-set-heading { padding-inline-end: 8.75rem; }
    .scedar-set-toggle { font-size: .69rem; }
}
