/* Native selects remain the value source; the picker is rendered in the top layer. */
.custom-select { display:block; position:relative; min-width:0; width:100%; }
select.custom-select-native { position:absolute!important; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; overflow:hidden!important; clip-path:inset(50%); white-space:nowrap; opacity:0; pointer-events:none; }
.custom-select .select-trigger { width:100%; min-width:0; min-height:42px; display:flex; align-items:center; gap:12px; padding:10px 12px; text-align:left; background:#fff; border:1px solid #dcdcdc; border-radius:9px; box-shadow:0 1px 2px #00000004; font:500 12px/1.5 var(--body); color:#181818; transition:background .15s,border-color .15s,box-shadow .15s; }
.select-value { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.custom-select .select-trigger:hover:not(:disabled) { border-color:#adadad; background:#fafafa; }
.custom-select .select-trigger[aria-expanded=true] { border-color:var(--blue); box-shadow:0 0 0 2px #0f766e12; }
.custom-select .select-trigger:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.custom-select .select-trigger:disabled { background:#f5f5f5; color:#858585; opacity:1; box-shadow:none; }
.select-chevron { width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); margin:0 3px; flex:none; color:#858585; transition:transform .15s; }
[aria-expanded=true]>.select-chevron { transform:translateY(2px) rotate(225deg); color:#181818; }
.select-popover { position:fixed; inset:auto; margin:0; padding:6px; border:1px solid #dedede; border-radius:12px; background:#fff; color:#181818; box-shadow:0 12px 36px #0000001c,0 2px 7px #0000000a; font:400 13px/1.5 var(--body); overflow:hidden; box-sizing:border-box; }
.select-popover:popover-open { display:flex; flex-direction:column; }
.select-search { padding:4px 4px 9px; margin-bottom:4px; border-bottom:1px solid #ededed; flex:none; }
.select-search input { display:block; width:100%; min-height:36px; padding:8px 10px 8px 30px; border:0; border-radius:7px; background:#f5f5f5; color:#181818; font-size:12px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737373' stroke-width='1.5'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 3 3'/%3E%3C/svg%3E"); background-position:9px center; background-repeat:no-repeat; }
.select-search input:focus-visible { outline:1px solid #a3a3a3; outline-offset:0; }
.select-options { overflow-y:auto; overscroll-behavior:contain; min-height:0; scrollbar-width:thin; scrollbar-color:#d4d4d4 transparent; }
.select-option { display:flex; align-items:center; gap:12px; padding:10px; min-height:39px; border-radius:7px; cursor:pointer; color:#525252; user-select:none; }
.select-option>span:not(.select-check):not(.select-ratio) { flex:1; }
.select-option.is-highlighted { background:var(--soft-violet); color:#574075; }
.select-option[aria-selected=true] { background:var(--soft-blue); color:var(--blue-dark); font-weight:600; }
.select-option[aria-disabled=true] { opacity:.4; cursor:not-allowed; }
.select-check { display:block; width:7px; height:11px; border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:rotate(45deg); margin:-3px 5px 0 auto; visibility:hidden; flex:none; }
[aria-selected=true]>.select-check { visibility:visible; }
.select-empty { padding:18px 12px; color:#737373; font-size:12px; }
.select-ratio { width:var(--ratio-width); height:var(--ratio-height); border:1.3px solid #858585; border-radius:2px; flex:none; margin-inline:calc((18px - var(--ratio-width))/2); }
.editor-style-panel .select-trigger { min-height:40px; }
@media(max-width:760px) { .custom-select .select-trigger { min-height:44px; } .select-option { min-height:44px; } .select-search input { font-size:16px; min-height:40px; } }
@media(prefers-reduced-motion:reduce) { .custom-select .select-trigger,.select-chevron { transition:none; } }
