/* Shared Miloria form controls. Keep the native form and keyboard behavior. */
select{color-scheme:light;accent-color:#503548}
input[type="checkbox"],input[type="radio"]{accent-color:#503548}
input[type="file"]::file-selector-button{margin-inline-end:12px;padding:10px 15px;border:1px solid #d9cbd3;border-radius:12px;background:#f0e8ed;color:#503548;font:inherit;cursor:pointer}
input[type="file"]::file-selector-button:hover{background:#e8dce4}
@supports (appearance:base-select){
  select:not([multiple]):not([size]),select:not([multiple]):not([size])::picker(select){appearance:base-select}
  select:not([multiple]):not([size]){display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;font:inherit;line-height:1.4;background-image:none;text-align:start;cursor:pointer}
  select:not([multiple]):not([size]):disabled{cursor:not-allowed;opacity:.6}
  select:not([multiple]):not([size])::picker-icon{content:"";width:8px;height:8px;flex-shrink:0;margin-inline-start:12px;border-right:1.5px solid #765e6c;border-bottom:1.5px solid #765e6c;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
  select:not([multiple]):not([size]):open::picker-icon{transform:translateY(2px) rotate(225deg)}
  select:not([multiple]):not([size])::picker(select){margin-block:6px;padding:6px;max-block-size:min(360px,60dvh);max-inline-size:calc(100vw - 24px);overflow:auto;border:1px solid #d9cbd3;border-radius:16px;background:#fcfaf7;color:#4b3543;box-shadow:0 16px 40px -14px rgb(62 40 53 / 28%);font:inherit;line-height:1.4;scrollbar-width:thin;scrollbar-color:#b9a2af #fcfaf7;color-scheme:light}
  select:not([multiple]):not([size]) option{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#4b3543;font:inherit;line-height:1.4;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
  select:not([multiple]):not([size]) option:hover,select:not([multiple]):not([size]) option:focus-visible{background:#f0e8ed;color:#503548;outline:2px solid #b9a2af;outline-offset:-2px}
  select:not([multiple]):not([size]) option:checked{background:#eee3ea;color:#503548;font-weight:600}
  select:not([multiple]):not([size]) option:disabled{color:#9b9097;background:transparent;cursor:not-allowed}
  select:not([multiple]):not([size]) option::checkmark{content:"✓";order:1;margin-inline-start:auto;flex-shrink:0;color:#503548;font-size:1rem}
}
@media (prefers-reduced-motion:reduce){select::picker-icon{transition:none}}
@media (forced-colors:active){select::picker(select){border-color:CanvasText}select option:checked{background:Highlight;color:HighlightText}select option::checkmark{color:HighlightText}}
