.mix { display: flex; gap: 2px; width: var(--w, 100%); height: 10px; border-radius: 5px; overflow: hidden; }
.mix i { flex-basis: 0; min-width: 3px; background: var(--c); }

.kf-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.kf-group + .kf-group { margin-top: 6px; }
.kf-chips { display: flex; flex: 1 1 15rem; flex-wrap: wrap; gap: 4px; min-width: 0; }

.kf-theme { position: relative; display: inline-flex; flex: 0 0 9rem; align-items: center; gap: 9px; min-height: 30px; padding: 0 4px 0 0; border: 0; background: none; color: var(--ink); font: italic 500 16px/1.2 var(--serif); text-align: left; white-space: nowrap; }
.kf-theme::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
button.kf-theme { cursor: pointer; }
button.kf-theme::after { content: ""; position: absolute; inset: -4px -4px; }
.kf-theme .n { color: var(--dim); font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
button.kf-theme:hover { color: var(--accent-ink); }
.kf-theme[aria-pressed="true"] { text-decoration: underline 2px color-mix(in oklab, var(--c) 70%, var(--ink)); text-underline-offset: 5px; }

.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 3px; background: color-mix(in oklab, var(--c) 17%, var(--ground)); color: var(--ink); font: 500 14px/1.15 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 140ms ease-out, box-shadow 140ms ease-out; }
.chip::after { content: ""; position: absolute; inset: -2px; }
.chip .n { color: color-mix(in oklab, var(--c) 38%, var(--ink)); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { background: color-mix(in oklab, var(--c) 32%, var(--ground)); }
.chip[aria-pressed="true"] { background: color-mix(in oklab, var(--c) 50%, var(--ground)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 52%, var(--ink)); }
.chip[aria-pressed="true"]::before { content: ""; flex: none; width: 16px; height: 16px; margin: 0 -1px 0 -3px; border-radius: 2px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.4 5.3l1.8 1.8 3.5-3.9' fill='none' stroke='%23f4f8f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.chip[aria-pressed="true"] .n { color: var(--ink); }

@media (pointer: coarse), (max-width: 759px) {
	.chip { min-height: 40px; }
	button.kf-theme { min-height: 44px; }
}

@media (max-width: 759px) {
	.kl .kf-theme { flex-basis: 100%; min-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.chip { transition: none; }
}

.glyph { flex: none; width: 18px; height: 18px; }
.print { display: block; flex: none; width: var(--print, 56px); height: var(--print, 56px); background: color-mix(in srgb, var(--c, var(--ink)) 64%, var(--ink)); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
