@layer youjia-dropdown-reduced,youjia-dropdown-controls;
/* Shared ledger palette for select pickers and existing business dropdowns. */
@media screen and (min-width:851px){
:root,:host{
 --select-fill:var(--theme-soft,#dceaf4);--select-hover:color-mix(in srgb,var(--theme-accent,#246397) 12%,var(--theme-soft,#dceaf4));
 --select-ink:var(--theme-ink,var(--ink,#243d52));--select-strong:var(--theme-accent,#246397);
 --select-menu:var(--theme-surface,#fcfbf8);--select-shadow:0 12px 32px #0b203529;
 /* Opt-in option metadata: numeric emphasis, secondary facts, and status. */
 --select-meta-ink:#825221;--select-note-ink:#356f87;--select-muted-ink:#647487;--select-warning-ink:#8e622f;--select-danger-ink:#a04747;
}
/* Keep the lesson action prominent while retaining the shared picker motion. */
.classpick.lesson-switch[data-lesson-menu]{--select-fill:#246397;--select-hover:#2d74a6;--select-ink:#fff;--select-strong:#fff}
.management-page{--select-fill:#383044;--select-hover:#4a3b5b;--select-ink:#e1d8ec;--select-strong:#d3bbfb;--select-menu:#292635;--select-shadow:0 12px 32px #0a071a55}
 :is(html[data-color-mode=dark],:host([data-color-mode=dark]),:host([data-theme=dark])){--select-fill:#263e53;--select-hover:#304e67;--select-ink:#dce7f2;--select-strong:#9bc9e7;--select-menu:#1c2e40;--select-shadow:0 12px 32px #050c1755}
 :is(html[data-color-mode=dark],:host([data-color-mode=dark]),:host([data-theme=dark])){--select-meta-ink:#ecc18b;--select-note-ink:#9ed9e6;--select-muted-ink:#b6c5d5;--select-warning-ink:#f1ce92;--select-danger-ink:#ffbdb7}
}
/* Important declarations in this layer also override legacy module-specific skins. */
@layer youjia-dropdown-controls{
@media screen and (min-width:851px){
 :is(html,:host) :where(.classpick,.org-select-trigger,.manual-choice>summary,.cf-lesson-dropdown>summary,.cf-category-dropdown>summary,[data-lesson-menu],[data-eq-mode-menu]):not(.youjia-dock-item){
  min-height:32px!important;padding-block:6px!important;border:0!important;border-radius:8px!important;
  background:var(--select-fill)!important;color:var(--select-ink)!important;outline:0!important;box-shadow:none!important;
  transition:background-color .18s,color .18s!important;
 }
 :is(html,:host) :where(.classpick,.org-select-trigger,.manual-choice>summary,.cf-lesson-dropdown>summary,.cf-category-dropdown>summary,[data-lesson-menu],[data-eq-mode-menu]):not(.youjia-dock-item):is(:hover,:focus-visible,[aria-expanded=true]),
 :is(html,:host) :where(.manual-choice,.cf-lesson-dropdown,.cf-category-dropdown)[open]>summary{background:var(--select-hover)!important;color:var(--select-strong)!important}
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) select:where(:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not([hidden]):not([aria-hidden="true"])){
  min-height:32px!important;padding-block:6px!important;border-radius:8px!important;background-color:var(--select-fill)!important;color:var(--select-ink)!important;box-shadow:none!important;
  transition:background-color .18s,color .18s,box-shadow .18s;outline:0!important;
 }
 :is(html,:host) select:where(:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not([hidden]):not([aria-hidden="true"])):is(:hover,:focus-visible,:open,.yj-select-open){background-color:var(--select-hover)!important;color:var(--select-strong)!important;box-shadow:0 3px 10px #1736530d!important}
 select.yj-select-open{background-repeat:no-repeat!important;background-size:14px 14px!important;background-position:right 12px center!important}
 .ts-center .ts-category-cell select{min-width:calc(3em + 46px)!important;width:auto!important;max-width:none!important;line-height:1.5!important}
 select.yj-select-open{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 10 4-4 4 4' fill='none' stroke='%237b8b9f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
 @supports(appearance:base-select){
  select:where(:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not([hidden]):not([aria-hidden="true"])),select:where(:not([multiple]):is(:not([size]),[size="0"],[size="1"]):not([hidden]):not([aria-hidden="true"]))::picker(select){appearance:base-select!important;-webkit-appearance:base-select!important}
  :is(html,:host) select::picker(select){border:0!important;border-radius:10px!important;padding:6px!important;background:var(--select-menu)!important;color:var(--select-ink)!important;box-shadow:var(--select-shadow)!important;opacity:0;transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
  select:open::picker(select){opacity:1}
  @starting-style{select:open::picker(select){opacity:0}}
  :is(html,:host) select option{border:0;border-radius:7px;min-height:32px;padding:8px 10px;color:var(--select-ink);font-size:13px;line-height:1.4}
  :is(html,:host) select option:is(:checked,:focus,:hover){background:var(--select-hover);color:var(--select-strong)}
  select::picker-icon{transition:rotate .3s cubic-bezier(.2,.8,.2,1.2)!important}
 }
 /* These selectors target floating choice panels, never sidebars, full records or editable grids. */
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) :is(
  .yj-select-popover,.cloud-menu,.popmenu,:where(#popmenu),.cls-drop-panel,.org-select-menu,.picker-menu,
  .cf-lesson-dropdown>.cf-lesson-options,.cf-category-dropdown>.cf-category-options,.feedback-column-options,
  .hwf-apply-list,.record-template-options,.prep-filter-options,.ts-filter-options,
  .composing-management-menu,.composing-subject-menu,.composing-bank-options,.composing-bank-menu,
  .directory-options,.df-quick-options,.df-focus-insert-menu>div,.df-focus-document-menu>div,.df-function-options,
  .dfd-manage-menu,.df-header-menu-actions,.df-header-column-options,.manual-choice-menu,
  .import-picker-list,.qr-node-options,.qr-empty-options,.exam-upload-select-menu,.guide-topic-menu,
  .cp-picker-grid,.pk-grid,.ts-column-filter,.classroom-resource-picker>aside
 ){
  background:var(--select-menu)!important;color:var(--select-ink)!important;border:0!important;border-radius:10px!important;
  box-shadow:var(--select-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  animation:yj-dropdown-enter .2s cubic-bezier(.22,1,.36,1)!important;--menu-glide-fill:var(--select-hover)!important;
 }
 :is(html[data-theme][data-color-mode],:host([data-theme][data-color-mode]),html,:host) :is(
  .yj-select-popover,.cloud-menu,.popmenu,:where(#popmenu),.cls-drop-panel,.org-select-menu,.picker-menu,
  .cf-lesson-options,.cf-category-options,.feedback-column-options,.hwf-apply-list,.record-template-options,
  .prep-filter-options,.ts-filter-options,.composing-management-menu,.composing-subject-menu,
  .directory-options,.df-quick-options,.df-function-options,.dfd-manage-menu,.df-header-menu-actions,
  .df-header-column-options,.manual-choice-options,.import-picker-list,.qr-node-options,.qr-empty-options,
  .exam-upload-select-menu,.guide-topic-menu,.cp-picker-grid,.pk-grid
 ) :where(button,a[role],a[href],[role=option],[role^=menuitem],label){
  border-radius:7px!important;outline:0!important;color:var(--dropdown-choice-color,var(--select-ink))!important;box-shadow:none!important;
  transition:background-color .18s,color .18s;--capsule-fill:transparent;--capsule-surface:transparent;
 }
 :is(html,:host) :is(.cloud-menu,.popmenu,.cls-drop-panel,.org-select-menu,.picker-menu,.cf-lesson-options,.cf-category-options,.prep-filter-options,.composing-management-menu,.directory-options,.manual-choice-options,.exam-upload-select-menu,.guide-topic-menu) :is(button,[role=option],label):not(.menu-glide-item):is(:hover,:focus-visible,.on,.active,[aria-selected=true]){background:var(--select-hover)!important;color:var(--dropdown-choice-color,var(--select-strong))!important}
 :is(.danger,.df-soft-danger,.clr,[data-tone=danger]){--dropdown-choice-color:var(--theme-danger,#c65768)}
 .yj-select-popover{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;max-width:calc(100vw - 24px);font:inherit;z-index:100}
 .yj-select-option{display:flex;align-items:center;gap:12px;min-height:32px;box-sizing:border-box;padding:8px 10px;border-radius:7px;font-size:13px;line-height:1.4;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
 .yj-select-option[aria-selected=true]::after{content:'✓';margin-left:auto;font-weight:600;color:var(--select-strong)}
 .yj-select-option:not(.menu-glide-item):is([data-active=true],:hover){background:var(--select-hover);color:var(--select-strong)}
 .yj-select-option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
 .yj-select-group{padding:7px 10px;font-size:11px;color:var(--select-ink);opacity:.65}
}
@keyframes yj-dropdown-enter{from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}
}
@layer youjia-dropdown-reduced{
@media(prefers-reduced-motion:reduce){:is(.classpick,.org-select-trigger,.manual-choice>summary,.cf-lesson-dropdown>summary,.cf-category-dropdown>summary,[data-lesson-menu],[data-eq-mode-menu]){transition:none!important}:is(select,.yj-select-popover,.cloud-menu,.popmenu,:where(#popmenu),.cls-drop-panel,.org-select-menu,.picker-menu,.cf-lesson-options,.cf-category-options,.feedback-column-options,.hwf-apply-list,.record-template-options,.prep-filter-options,.ts-filter-options,.composing-management-menu,.composing-subject-menu,.directory-options,.df-quick-options,.df-focus-insert-menu>div,.df-focus-document-menu>div,.df-function-options,.dfd-manage-menu,.df-header-menu-actions,.df-header-column-options,.manual-choice-menu,.import-picker-list,.qr-node-options,.qr-empty-options,.exam-upload-select-menu,.guide-topic-menu,.cp-picker-grid,.pk-grid,.ts-column-filter,.classroom-resource-picker>aside){animation:none!important;transition:none!important}select::picker(select),select::picker-icon{transition:none!important}}
}

@layer youjia-dropdown-controls{
 @media screen and (min-width:851px){
  select[data-choice-details]{appearance:none!important;-webkit-appearance:none!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;padding-right:32px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%237b8b9f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 12px center}
  select[data-choice-details]::picker-icon{display:none}
  .yj-select-option-rich{position:relative;flex-wrap:wrap;gap:6px 12px;padding-right:32px}
  .yj-select-option-rich .yj-select-title{flex:1 1 140px;min-width:0;font-weight:600}
  .yj-select-meta{color:var(--select-meta-ink,#825221);font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
  .yj-select-note{color:var(--select-note-ink,#356f87);font-weight:600}
  .yj-select-option-rich[data-choice-tone=muted] .yj-select-note{color:var(--select-muted-ink,#647487)}
  .yj-select-option-rich[data-choice-tone=warning] .yj-select-note{color:var(--select-warning-ink,#8e622f)}
  .yj-select-option-rich[data-choice-tone=danger] .yj-select-note{color:var(--select-danger-ink,#a04747)}
  .yj-select-reason{flex-basis:100%;color:var(--select-muted-ink,#647487);font-size:12px}
  .yj-select-option-rich[aria-selected=true]::after{position:absolute;right:10px;top:50%;transform:translateY(-50%);margin-left:0}
 }
}
