/* Shared native controls. Keep listboxes native and preserve keyboard semantics. */
html[data-mtch-brand='signal'] { --mtch-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-mtch-brand='signal'][data-theme='dark'] { --mtch-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-mtch-brand='signal'] select:not([multiple]):is(:not([size]), [size='1']) {
  appearance: none; -webkit-appearance: none;
  background-image: var(--mtch-select-chevron); background-repeat: no-repeat;
  background-position: right 16px center; background-size: 18px 18px;
  padding-inline-end: 48px;
}
html[data-mtch-brand='signal'] :is(input:not([type='hidden']), textarea, select):where(:not(#canvas-plane *)):focus {
  border-color: var(--mtch-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mtch-text) 10%, transparent);
}
html[data-mtch-brand='signal'] :is(input:not([type='hidden']), textarea, select):where(:not(#canvas-plane *)):focus-visible {
  outline: 2px solid var(--mtch-text); outline-offset: -2px;
  border-color: var(--mtch-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mtch-text) 10%, transparent);
}
html[data-mtch-brand='signal'] :is(a, button, summary, [role='button']):where(:not(#canvas-plane *)):focus-visible {
  outline: 2px solid var(--mtch-text); outline-offset: 2px;
}
html[data-mtch-brand='signal'] :is(input, textarea, select)[aria-invalid='true']:where(:not(#canvas-plane *)):focus-visible { outline-style: dashed; }
@media (forced-colors: active) {
  html[data-mtch-brand='signal'] select:not([multiple]):is(:not([size]), [size='1']) { appearance: auto; background-image: none; }
  html[data-mtch-brand='signal'] :focus-visible { outline: 2px solid Highlight; box-shadow: none; }
}
