/* A consistent choice surface, from anchored desktop menus to mobile sheets. */
select.runt-native-select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;pointer-events:none}
.runt-select{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-width:0;min-height:58px;margin:0 0 22px;padding:10px 12px 10px 17px;border:1px solid #dcd5e7;border-radius:13px;background:linear-gradient(145deg,#fff,#f8f5fc);box-shadow:0 2px 3px #23133103,inset 0 1px 0 white;color:#272032;font-weight:500;font-family:inherit;font-size:15px;line-height:1.45;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s,background .2s,transform .2s}
.runt-select:hover{border-color:#ac8bec;box-shadow:0 5px 16px #48267b0a}
.runt-select:focus-visible,.runt-select[aria-expanded=true]{outline:0;border-color:#7638ff;box-shadow:0 0 0 4px #7638ff15}
.runt-select[aria-invalid=true]{border-color:#b73954}
.runt-select:disabled{opacity:.5;cursor:not-allowed}
.runt-select-value{min-width:0;overflow-wrap:anywhere;flex:1}
.runt-select-arrow{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #e6def3;border-radius:10px;background:#eee7fb;color:#7141bd;transition:background .2s}
.runt-select-arrow svg{width:20px;height:20px;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.runt-select[aria-expanded=true] .runt-select-arrow{background:#7638ff;color:white;border-color:#7638ff}
.runt-select[aria-expanded=true] .runt-select-arrow svg{transform:rotate(180deg)}
.runt-choice-dialog{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:0;width:350px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border:1px solid #ddd1ef;border-radius:19px;background:#fbf9ff;color:#282030;box-shadow:0 28px 70px #23113538,0 5px 20px #23113515;overflow:hidden}
.runt-choice-dialog[open]{display:flex;flex-direction:column;animation:choice-appear .22s cubic-bezier(.2,.8,.2,1)}
.runt-choice-dialog::backdrop{background:#20152b0a}
.choice-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 18px 15px;background:linear-gradient(120deg,#f5eeff,#fbf9ff);border-bottom:1px solid #e9e1f2;flex-shrink:0}
.choice-heading>div{min-width:0}.choice-heading span{line-height:1.4;font-family:inherit;font-size:9px;font-weight:650;letter-spacing:.12em;color:#8156b9}.choice-heading h2{font-family:inherit;font-size:18px;line-height:1.35;letter-spacing:-.025em;margin:5px 0 0;overflow-wrap:anywhere}
.choice-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #e3d9ef;background:#ffffffb3;border-radius:50%;color:#755b90;cursor:pointer}.choice-close svg{width:20px;height:20px}
.choice-options{padding:8px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#c9b5eb transparent}
.choice-option{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:48px;margin:2px 0;padding:11px 13px;border:1px solid transparent;border-radius:11px;text-align:left;background:transparent;color:#44364f;font-family:inherit;font-size:15px;line-height:1.45;cursor:pointer}
.choice-option>span:first-child{min-width:0;overflow-wrap:anywhere}.choice-option:hover{background:#f0e9fc}.choice-option:focus-visible{outline:2px solid #9d72eb;outline-offset:-2px;background:#f0e9fc}
.choice-option[aria-selected=true]{background:#ece1ff;border-color:#d8c4fa;color:#5b25b0;font-weight:650}
.choice-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:1px solid #dcd3e7;border-radius:50%;color:transparent}.choice-check svg{width:16px;height:16px}.choice-option[aria-selected=true] .choice-check{background:#7638ff;color:white;border-color:#7638ff}
.choice-option:disabled{opacity:.45;cursor:default}.choice-hint{font-size:11px;line-height:1.5;color:#84748f;margin:0;padding:12px 20px 16px;border-top:1px solid #eee8f5;flex-shrink:0}.choice-sheet-handle{display:none}
@keyframes choice-appear{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:620px){
 .runt-select{font-size:16px;min-height:58px;padding-left:15px}
 .runt-choice-dialog{inset:auto 10px max(10px,env(safe-area-inset-bottom));width:auto;max-width:none;max-height:min(76dvh,600px);border-radius:24px;padding-bottom:4px}
 .runt-choice-dialog[open]{animation:choice-sheet-in .28s cubic-bezier(.16,1,.3,1)}
 .runt-choice-dialog::backdrop{background:#1b10264f;backdrop-filter:blur(5px)}
 .choice-sheet-handle{display:block;width:34px;height:4px;border-radius:99px;background:#d7cce5;margin:10px auto 0;flex-shrink:0}
 .choice-heading{padding:12px 18px 15px;background:transparent}.choice-heading h2{font-size:20px}.choice-close{width:44px;height:44px;flex-basis:44px}
 .choice-option{min-height:54px;font-size:16px;padding:12px 15px}.choice-options{padding:8px 10px}.choice-hint{padding:12px 24px 14px}
}
@keyframes choice-sheet-in{from{opacity:.2;transform:translateY(35px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.runt-choice-dialog[open]{animation:none}.runt-select,.runt-select-arrow svg{transition:none}}
@media(forced-colors:active){.runt-select,.choice-option[aria-selected=true],.runt-choice-dialog{border:1px solid ButtonText}.choice-check{border:1px solid ButtonText}.choice-option[aria-selected=true] .choice-check{background:Highlight;color:HighlightText}}

html:has(.runt-choice-dialog[open]){overflow:hidden;scrollbar-gutter:stable}

/* Multiple choices stay open, with clear selections and an explicit Done action. */
.runt-select-multiple .runt-select-value{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.runt-choice-chip,.runt-choice-more{display:inline-flex;align-items:center;min-width:0;max-width:100%;padding:5px 9px;border:1px solid #ddcef6;border-radius:8px;background:#eee5fc;color:#5b308e;font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.runt-choice-more{background:#7638ff;color:white;border-color:#7638ff;white-space:nowrap}
.is-multiple .choice-check{border-radius:6px}
.is-multiple .choice-hint{border-top:0;padding:7px 21px 10px;font-size:12px}
.choice-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:13px 18px;border-top:1px solid #e5dbee;background:#f4eefc}
.choice-actions[hidden]{display:none}
.choice-count{font-size:12px;color:#71528d;font-weight:600}
.choice-actions>div{display:flex;align-items:center;gap:8px}
.choice-clear,.choice-done{min-height:44px;padding:10px 15px;border-radius:11px;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;font-family:inherit}
.choice-clear{border:1px solid #ddd0eb;background:#fff;color:#71528d}
.choice-clear:disabled{opacity:.45;cursor:default}
.choice-done{display:flex;align-items:center;gap:14px;border:1px solid #7438f2;background:#7638ff;color:#fff;box-shadow:0 3px 8px #7638ff20}
.choice-clear:focus-visible,.choice-done:focus-visible{outline:2px solid #a877ff;outline-offset:3px}
@media(max-width:620px){.choice-actions{padding:12px 17px}.is-multiple .choice-hint{padding:5px 24px 10px}.choice-count{font-size:11px}.choice-clear,.choice-done{padding:10px 13px}}

/* Workspace navigation uses the same choice panel, with a dark RUNT trigger. */
.op-mobile-workspace .runt-select{margin:0;min-height:56px;border-color:#695080;border-radius:14px;background:linear-gradient(135deg,#352345,#281c38);color:#faf6ff;box-shadow:inset 0 1px 0 #ffffff0c,0 4px 12px #0e08142b;font-size:16px;font-weight:600;padding:10px 12px 10px 16px}
.op-mobile-workspace .runt-select:hover{border-color:#a785df;background:linear-gradient(135deg,#3d2952,#2f2041)}
.op-mobile-workspace .runt-select:focus-visible,.op-mobile-workspace .runt-select[aria-expanded=true]{border-color:#bc95ff;box-shadow:0 0 0 3px #a778ff29}
.op-mobile-workspace .runt-select-arrow{background:#60418b;border-color:#8662b4;color:#eee2ff}
.op-mobile-workspace .runt-select[aria-expanded=true] .runt-select-arrow{background:#7638ff;border-color:#ad84f4;color:white}
.op-mobile-workspace>label{display:block;cursor:pointer}
