/* Shared native select affordance. Loaded last so feature background shorthands
   cannot erase the arrow. Fields without a custom adapter retain their native menu. */
select:not([multiple]):is(:not([size]),[size="1"]),
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView.ui-view,#editorDialog.editor-dialog,#authDialog.auth-dialog) select:not([multiple]):is(:not([size]),[size="1"]) {
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box;
  min-width:0;
  min-height:44px;
  padding-right:48px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 16px center!important;
  background-size:20px 20px!important;
}

/* Shared option panel for account, review and shooting selectors; original selects back the forms. */
.ui-select-native { display:none!important; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .ui-select-trigger {
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;
  padding:10px 16px;border:0;border-radius:18px!important;
  background:var(--select-background,var(--minimal-soft))!important;color:var(--select-color,var(--minimal-ink))!important;
  box-shadow:none!important;font:inherit;font-size:16px!important;font-weight:400!important;text-align:left;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-page .ui-select-trigger {
  background:var(--minimal-paper,#fff)!important;color:var(--minimal-ink)!important;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .ui-select-value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .ui-select-trigger>svg { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
html[data-visual-mode="minimal"] body.theme-liquid dialog.ui-select-dialog {
  position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;
  border:0;background:transparent;overflow:hidden;box-shadow:none;color:var(--minimal-ink);
}
html[data-visual-mode="minimal"] body.theme-liquid dialog.ui-select-dialog[open] { display:block; }
html[data-visual-mode="minimal"] body.theme-liquid dialog.ui-select-dialog::backdrop { background:#20232418!important; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-panel {
  position:absolute;display:flex;flex-direction:column;max-width:calc(100vw - 32px);padding:8px;
  border:1px solid var(--minimal-line);border-radius:20px;background:var(--minimal-paper,#fff);
  box-shadow:0 12px 36px #20232424;overflow:hidden;
}
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-panel>header { display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding-left:8px; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-panel h2 { margin:0;font-size:14px!important;line-height:1.5;font-weight:600!important; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-close { flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:16px;background:transparent;color:var(--minimal-muted); }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-options { display:grid;gap:4px;min-height:0;overflow:auto;overscroll-behavior:contain; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-option {
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;
  padding:12px;border:0;border-radius:14px;background:transparent;color:var(--minimal-ink);
  font:inherit;font-size:14px!important;line-height:1.5;font-weight:400!important;text-align:left;overflow-wrap:anywhere;
}
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-option[aria-selected="true"] { background:var(--minimal-dark);color:var(--minimal-paper,#fff);font-weight:600!important; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-check { flex:none;width:20px;height:20px; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-dialog svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-option:disabled { opacity:.45; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-dialog button:focus-visible { outline:2px solid var(--minimal-ink);outline-offset:-2px; }
html[data-visual-mode="minimal"] body.theme-liquid .ui-select-option[aria-selected="true"]:focus-visible { outline-color:var(--minimal-paper,#fff); }
@media (hover:hover) {
  html[data-visual-mode="minimal"] body.theme-liquid .ui-select-option:not([aria-selected="true"]):not(:disabled):hover,
  html[data-visual-mode="minimal"] body.theme-liquid .ui-select-close:hover { background:var(--minimal-soft); }
}
@media (forced-colors:active) {
  /* Let the system render a visible indicator in forced-color modes. */
  select:not([multiple]):is(:not([size]),[size="1"]),
  html[data-visual-mode="minimal"] body.theme-liquid :is(#appView.ui-view,#editorDialog.editor-dialog,#authDialog.auth-dialog) select:not([multiple]):is(:not([size]),[size="1"]) {
    -webkit-appearance:auto!important;
    appearance:auto!important;
    background-image:none!important;
  }
}

/* Shooting fields keep their existing 46px form rhythm and regular text weight. */
html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .ui-select-trigger { min-height:46px;padding:12px 16px;font-size:16px!important;font-weight:400!important;line-height:1.6; }

/* Long values remain readable in both trigger and expanded choices. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .ui-select-value{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .ui-select-trigger{min-height:48px;font-size:var(--mf-type-input-size,16px)!important;font-weight:400!important}

