.profile-select { display: grid; gap: 6px; min-width: 0; font: var(--font-text-14-r); }
.profile-select-label { color: var(--body-text); font: var(--font-text-14-m); }
.profile-select-native { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; pointer-events: none; }
.profile-select details { position: relative; min-width: 0; }
.profile-select summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); color: var(--body-text); cursor: pointer; list-style: none; }
.profile-select summary::-webkit-details-marker { display: none; }
.profile-select summary > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-select summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); margin: 0 2px 3px; flex: none; }
.profile-select summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.profile-select details[data-disabled] summary { background: var(--surface-soft); color: var(--muted); cursor: default; }
.profile-select-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); }
.profile-select-panel input[type="search"] { width: 100%; min-width: 0; min-height: 34px; padding: 6px 9px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; }
.profile-select-clear { justify-self: start; font: inherit; }
.profile-select-options { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.profile-select-options label.profile-select-option { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px; margin: 0; cursor: pointer; border-radius: 4px; }
.profile-select-option:hover { background: var(--row-hover); }
.profile-select-options label.profile-select-option[hidden], .profile-select-empty[hidden] { display: none; }
.profile-select .profile-select-options .profile-select-option input { width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--brand); }
.profile-select-options label.profile-select-option > span { color: var(--body-text); font: inherit; overflow-wrap: anywhere; }
.profile-select-empty { padding: 10px 6px; color: var(--muted); }
.account-panel .profile-select { font-size: 13px; }
.account-panel .profile-select-label { font-size: 12px; color: var(--muted); }
.account-panel .profile-select summary { min-height: 34px; padding-block: 6px; }
