/* Kept separate from the legacy per-file format dropdowns. */
.convert_title { background: #f6f4fb; border-bottom: 1px solid #ece7f4; }
.convert_title > .container { color: #272136; padding-top: 2.75rem; padding-bottom: 2.75rem; }
.convert_title .intro p { color: #6b6479; }
.convert-selector { position: relative; text-align: left; width: 100%; }
.convert-selector button, .convert-selector input { font: inherit; }
.convert-selector button { cursor: pointer; }
.convert-selector button:disabled { cursor: default; }
.convert-selector button:focus-visible, .convert-selector input:focus-visible { outline: 3px solid #a28bd4; outline-offset: 3px; }
.convert-selector__fields { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 10px; align-items: start; position: relative; }
.convert-selector__field { min-width: 0; position: static; }
.convert-selector__label { display: block; font-size: 12px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; font-weight: 700; color: #716781; margin: 0 0 8px 2px; }
.convert-selector__trigger { width: 100%; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 1px solid #ded5ec; border-radius: 12px; background: #fff; color: #392151; box-shadow: 0 3px 8px #35205705; font-weight: 750 !important; font-size: 26px !important; text-align: left; transition: border-color .15s, box-shadow .15s; }
.convert-selector__trigger:hover, .convert-selector__trigger.is-open { border-color: #7c4ab4; box-shadow: 0 0 0 3px #7746a510; }
.convert-selector__trigger.is-empty { font-size: 15px !important; font-weight: 600 !important; color: #7b7088; }
.convert-selector__trigger:disabled { background: #efedf3; color: #82798c; border-color: #e3ddec; box-shadow: none; }
.convert-selector__trigger.is-summary:disabled { background: #fff; color: #392151; border-color: #ded5ec; opacity: 1; }
.convert-selector__trigger > span { overflow-wrap: anywhere; }
.convert-batch-summary { color: #51465f; text-align: start; font-size: 14px; line-height: 1.6; padding-top: 0; padding-bottom: 18px; }
.convert-selector__chevron { flex-shrink: 0; transition: transform .15s; }
.convert-selector__trigger.is-open .convert-selector__chevron { transform: rotate(180deg); }
.convert-selector__count { display: block; color: #6b6078; font-size: 11px; line-height: 1.5; margin: 7px 0 0 2px; }
.convert-selector__swap-wrap { margin-top: 41px; }
.convert-selector__swap { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid #ded5ec; border-radius: 50%; background: #fff; color: #713e9f; }
.convert-selector__swap:hover:not(:disabled) { background: #eae1f6; border-color: #a083bd; }
.convert-selector__swap:disabled { color: #aaa1b4; border-color: #e6e0ec; background: #f5f2f9; }
.convert-selector__hint { color: #6b6078; margin: 14px 2px 0; font-size: 12px; line-height: 1.6; }
.convert-selector__panel { position: absolute; top: 108px; left: 0; width: 100%; max-width: calc(100vw - 40px); z-index: 1050; background: #fff; color: #30263e; border: 1px solid #e2d9ec; border-radius: 16px; box-shadow: 0 16px 45px #30204026; overflow: hidden; }
.convert-selector__field--to .convert-selector__panel { left: auto; right: 0; }
.convert-selector__panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px 10px; font-size: 14px; }
.convert-selector__close { display: flex; align-items: center; justify-content: center; border: 0; background: #f4f0f8; border-radius: 50%; width: 28px; height: 28px; color: #6c5a7e; padding: 0; }
.convert-selector__search { display: flex; align-items: center; gap: 9px; margin: 0 18px 16px; padding: 0 11px; border: 1px solid #ddd4e7; border-radius: 8px; background: #fcfbfd; color: #92859f; }
.convert-selector__search svg { flex-shrink: 0; }
.convert-selector__search input { color: #30263e; padding: 10px 0; background: transparent; border: 0; width: 100%; min-width: 0; font-size: 13px; line-height: 1.5; }
.convert-selector__search input::placeholder { color: #8c8098; }
.convert-selector__search:focus-within { border-color: #8c61b1; box-shadow: 0 0 0 3px #7746a510; }
.convert-selector__search input:focus-visible { outline: none; }
.convert-selector__browser { display: flex; min-height: 160px; max-height: 310px; }
.convert-selector__categories { flex: 0 0 142px; padding: 0 8px 12px 12px; border-right: 1px solid #eee8f4; overflow-y: auto; }
.convert-selector__categories button { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; border: 0; border-radius: 7px; padding: 10px 8px; margin-bottom: 3px; background: transparent; color: #786a88; text-align: left; font-size: 12px; }
.convert-selector__categories button:hover { background: #f7f3fb; }
.convert-selector__categories button.is-active { background: #eee5f8; color: #693795; font-weight: 700; }
.convert-selector__category-count { font-size: 10px; opacity: .7; }
.convert-selector__results { flex: 1; min-width: 0; overflow-y: auto; padding: 0 16px 16px; }
.convert-selector__group-title { margin: 1px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: #887695; }
.convert-selector__results section + section { margin-top: 17px; }
.convert-selector__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.convert-selector__options button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 37px; padding: 7px 4px; border: 1px solid #e9e1f0; border-radius: 7px; background: #f7f4fa; color: #655372; font-size: 11px; font-weight: 600; }
.convert-selector__options button:hover { background: #ede3f7; border-color: #b297cd; color: #572980; }
.convert-selector__options button.is-selected { color: #fff; background: #74429f; border-color: #74429f; }
.convert-selector__options button svg { flex-shrink: 0; }
.convert-selector__empty { color: #80718c; text-align: center; font-size: 13px; line-height: 1.7; margin: 25px 0; }
.convert-selector__panel-note { padding: 10px 18px; margin: 0; border-top: 1px solid #eee8f4; background: #fcfafd; color: #8a7b96; font-size: 10px; line-height: 1.5; }
@media (max-width: 991px) {
    .convert-selector__trigger { padding-left: 12px; padding-right: 12px; font-size: 23px !important; }
    .convert-selector__trigger.is-empty { font-size: 12px !important; }
    .convert-selector__fields { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 7px; }
    .convert-selector__swap { width: 32px; height: 32px; }
    .convert-selector__swap-wrap { margin-top: 45px; }
}
@media (max-width: 767px) {
    .convert_title > .container { padding: 2rem 1.25rem; }
    .convert-selector { margin-top: 20px; }
    .convert-selector__field { position: static; }
    .convert-selector__panel, .convert-selector__field--to .convert-selector__panel { left: 0; right: 0; width: 100%; max-width: 100%; }
    .convert-selector__trigger { font-size: 26px !important; }
    .convert-selector__trigger.is-empty { font-size: 14px !important; }
    .convert-selector__categories { flex-basis: 130px; padding-left: 8px; }
    .convert-selector__results { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 380px) {
    .convert-selector__categories { flex-basis: 105px; }
    .convert-selector__categories button { font-size: 11px; padding-left: 5px; padding-right: 5px; }
    .convert-selector__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .convert-selector__trigger, .convert-selector__chevron { transition: none; }
}
