/* Scoped independently of the legacy theme grid; uses both existing palettes. */
#themes-picker { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-family: var(--sans); }
#themes-picker, #themes-picker * { box-sizing: border-box; }
#themes-picker summary { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 12px; border-radius: 13px; cursor: pointer; list-style: none; }
#themes-picker summary::-webkit-details-marker { display: none; }
#themes-picker .themes-picker-summary-copy { flex: 1; min-width: 0; }
#themes-picker .themes-picker-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .875rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
#themes-picker .themes-picker-count { color: var(--muted); font-size: .8125rem; font-weight: 400; }
#themes-picker .themes-picker-chips { display: flex; min-width: 0; gap: 5px; margin-top: 6px; font-size: .75rem; line-height: 1.5; }
#themes-picker .themes-picker-chip { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 3px 7px; border-radius: 20px; background: var(--wash); }
#themes-picker .themes-picker-more { flex: none; align-self: center; color: var(--muted); }
#themes-picker .themes-picker-chevron { flex: none; font-size: 1.25rem; line-height: 1; color: var(--accent); }
#themes-picker[open] .themes-picker-chevron { transform: rotate(180deg); }
#themes-picker .themes-picker-panel { padding: 0 12px 12px; border-top: 1px solid var(--line); }
#themes-picker:not([open]) .themes-picker-panel { display: none; }
#themes-picker-note { margin: 12px 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
#themes-picker .themes-picker-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 7px; }
#themes-picker .themes-picker-choice { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 44px; min-height: 44px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: .875rem; line-height: 1.5; text-align: start; cursor: pointer; }
#themes-picker .themes-picker-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--wash); }
#themes-picker .themes-picker-choice:disabled { opacity: 1; color: var(--ink); cursor: default; }
#themes-picker .themes-picker-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#themes-picker .themes-picker-mark, #themes-picker .themes-picker-check { flex: none; color: var(--accent); }
#themes-picker .themes-picker-mark { font-size: 1.125rem; }
#themes-picker :is(summary, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { #themes-picker .themes-picker-choice:not(:disabled):hover { border-color: var(--accent); background: var(--wash); } }
@media (forced-colors: active) { #themes-picker .themes-picker-choice[aria-pressed="true"] { border: 2px solid Highlight; } }
