/* One menu language for asset pickers, formats and editor controls. */
.orea-select{position:relative;display:inline-flex;align-items:center;width:100%;max-width:100%;min-width:0;vertical-align:middle}
html body select.orea-select-native{position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;border:0!important}
html body .orea-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:9px 3px;border:0;border-radius:0;background:transparent;color:#e1dcd3;font:400 13px/1.6 var(--dw-font);text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none;cursor:pointer}
.orea-select-trigger>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:var(--orea-icon-stroke,1.5);flex:none;transition:transform 160ms ease}
html body .orea-select-trigger:hover{color:#e7c99f;background:transparent}
.orea-select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
html body .orea-select-menu{position:fixed;inset:auto;margin:0;padding:6px;width:250px;max-width:calc(100vw - 24px);max-height:320px;overflow:auto;overscroll-behavior:contain;border:1px solid #514637;border-radius:16px;background:#10100f;color:#e5dfd5;box-shadow:0 16px 50px #000a}
.orea-select-menu:popover-open{animation:orea-picker-in 130ms ease-out}
html body .orea-select-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#c7c0b6;text-align:start;font:400 13px/1.6 var(--dw-font);cursor:pointer}
.orea-select-option>span{min-width:0;overflow-wrap:anywhere}.orea-select-option>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:var(--orea-icon-stroke,1.5);opacity:0;flex:none}
html body .orea-select-option[aria-selected=true]{background:#c8ac8a12;color:#e0c5a2}.orea-select-option[aria-selected=true]>svg{opacity:1}
html body .orea-select-option:hover:not(:disabled){background:#c8ac8a1c;color:#f2e6d5}.orea-select-option:disabled{opacity:.4;cursor:default}

@media(prefers-reduced-motion:reduce){.orea-select-menu:popover-open{animation:none}.orea-select-trigger>svg{transition:none}}
@keyframes orea-picker-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* Short lists are never dropdowns. The component picks the shape that fits the content (one rule site-wide):
   - is-segment: separate things (genres, sort, sources) sit inside one dark box; a raised warm slider moves behind the chosen one.
   - is-rail: a scale (years, ratios, sizes) sits on a hairline; a glowing bead marks the choice and can be dragged along it.
   Long lists keep the menu. No per-option boxes, no underline + chevron. */
html:not(#_) body:not(#_) .orea-select.orea-choices{display:block;width:100%;max-width:100%}
html:not(#_) body:not(#_) .orea-choice-row{position:relative;isolation:isolate;display:flex!important;align-items:stretch;width:max-content;max-width:100%;margin:0;scrollbar-width:none;overscroll-behavior-inline:contain}
html:not(#_) body:not(#_) .orea-choice-row::-webkit-scrollbar{display:none}
html:not(#_) body:not(#_) .orea-choice{appearance:none;position:relative;z-index:1;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;margin:0;
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;font:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;transition:color .22s ease,transform .22s ease}
html:not(#_) body:not(#_) .orea-choice::after{content:none}
html:not(#_) body:not(#_) .orea-choice:focus-visible{outline:1.5px solid #c8ac8a;outline-offset:-3px}
html:not(#_) body:not(#_) .orea-choice:disabled{opacity:.35;cursor:default}
html:not(#_) body:not(#_) .orea-choice-row[aria-disabled]{opacity:.55}
html:not(#_) body:not(#_) .orea-choice-thumb{position:absolute;top:0;left:0;pointer-events:none}

/* segment: one dark box, a slider behind the chosen option */
html:not(#_) body:not(#_) .orea-choice-row.is-segment{flex-wrap:wrap;gap:2px;padding:3px!important;background:var(--orea-well,#1b1a19)!important;border-radius:13px;box-shadow:inset 0 1px 2px #000a,inset 0 0 0 1px #f3ece112!important;overflow:visible}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice-rail{display:none}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice-thumb{z-index:0;border-radius:10px;background:var(--orea-thumb,linear-gradient(180deg,#d3b997,#bfa17d));box-shadow:inset 0 1px 0 #f6d9a424,0 0 0 1px #c8ac8a3d,0 3px 10px -2px #000c;
 transition:transform .32s cubic-bezier(.2,.8,.2,1),width .32s cubic-bezier(.2,.8,.2,1),height .32s ease,opacity .2s ease}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice{min-height:38px;padding:0 15px;border-radius:10px;color:#9a8f7e}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice:hover:not(:disabled):not([aria-checked=true]){color:#e6dccb}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice:active:not(:disabled){transform:scale(.97)}
html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice[aria-checked=true]{color:var(--orea-thumb-ink,#1a140e)}
html:not(#_) body:not(#_) :is(.image-controls,.studio-app,aside) .orea-choice-row.is-segment{width:100%}
html:not(#_) body:not(#_) :is(.image-controls,.studio-app,aside) .orea-choice-row.is-segment>.orea-choice{flex:1 1 auto;padding:0 10px}

/* rail: a hairline through the options, a tick for each, a glowing bead on the chosen one */
html:not(#_) body:not(#_) .orea-choice-row.is-rail{flex-wrap:nowrap;gap:0;padding:16px 0 0!important;background:transparent!important;box-shadow:none!important;overflow-x:auto;overflow-y:hidden}
html:not(#_) body:not(#_) .orea-choice-row.is-rail.is-overflow{-webkit-mask:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);mask:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice-rail{position:absolute;top:0;left:0;z-index:0;width:var(--rail,100%);height:16px;cursor:grab;
 background:linear-gradient(90deg,transparent,#f3ece124 18px,#f3ece124 calc(100% - 18px),transparent) 0 7.5px/100% 1px no-repeat}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice-thumb{top:2px;left:-6px;z-index:2;width:12px;height:12px;border-radius:50%;pointer-events:auto;cursor:grab;
 background:radial-gradient(circle at 35% 35%,#fff3df,#d9bd96 55%,#a8885f);box-shadow:0 0 0 3px #c8ac8a26,0 0 14px 2px #c8ac8a59;transition:transform .38s cubic-bezier(.2,.9,.25,1.15),opacity .2s ease}
html:not(#_) body:not(#_) .orea-choice-row.is-rail.is-dragging :is(.orea-choice-thumb,.orea-choice-rail){cursor:grabbing}
html:not(#_) body:not(#_) .orea-choice-row.is-rail.is-dragging>.orea-choice-thumb{transition:transform .12s ease-out;box-shadow:0 0 0 5px #c8ac8a33,0 0 18px 3px #c8ac8a73}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice{min-height:40px;padding:0 13px;border-radius:8px;color:#8f8574}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice::before{content:"";position:absolute;top:-11px;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:#f3ece147;transition:background .2s ease,transform .2s ease}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice:hover:not(:disabled):not([aria-checked=true]){color:#e6dccb}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice:hover:not(:disabled)::before{background:#f3ece199;transform:scale(1.4)}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice[aria-checked=true]{color:#f6e6cc;transform:translateY(-1px)}
html:not(#_) body:not(#_) .orea-choice-row.is-rail>.orea-choice[aria-checked=true]::before{background:transparent}
@media (prefers-reduced-motion:reduce){html:not(#_) body:not(#_) :is(.orea-choice-thumb,.orea-choice){transition:none!important}}
@media (pointer:coarse){html:not(#_) body:not(#_) .orea-choice-row.is-segment>.orea-choice{min-height:40px}}
/* the dropdowns that stay: a value and a light chevron, no line under it */
html:not(#_) body:not(#_) .orea-select:not(.orea-choices) .orea-select-trigger{border-bottom:0!important}

/* ratios: each option shows its frame drawn in the real proportion */
html:not(#_) body:not(#_) .orea-choice-row.is-ratio>.orea-choice{gap:8px}
html:not(#_) body:not(#_) .orea-ratio-shape{flex:none;display:inline-block;border:1.5px solid currentColor;border-radius:2.5px;opacity:.75}
html:not(#_) body:not(#_) .orea-ratio-shape.is-free{width:15px;height:11px;border-style:dashed}
html:not(#_) body:not(#_) .orea-choice[aria-checked=true]>.orea-ratio-shape{opacity:1;border-color:var(--orea-thumb-ink,#1a140e)}
/* ratios as small tiles: the frame drawn in its real shape above its name, side by side; the slider moves behind the chosen tile */
html:not(#_) body:not(#_) .orea-choice-row.is-ratio{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));width:100%;gap:2px}
html:not(#_) body:not(#_) .orea-choice-row.is-ratio>.orea-choice{flex-direction:column;gap:7px!important;min-height:64px;padding:8px 4px!important;white-space:normal;text-align:center;line-height:1.25;font-size:11.5px}
html:not(#_) body:not(#_) .orea-choice-row.is-ratio>.orea-choice>.orea-ratio-shape{transform:scale(1.25)}
html:not(#_) body:not(#_) .orea-ratio-text{unicode-bidi:isolate}
html:not(#_) body:not(#_) .orea-ratio-text{display:grid;gap:2px;justify-items:center}
html:not(#_) body:not(#_) .orea-ratio-sub{font-size:10.5px;opacity:.7;font-weight:400}
