/* Shared dropdown component used by H5 settings and the component guide. */
html body select:not(.composer-demo select),html body #dialog select,html body #dialog.ai-character-modal select,html body .ai-character-specimen select,html body #panel-select{--select-padding-inline:12px;--select-icon-size:12px;--select-icon-gap:12px;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-height:44px;border:3px solid #000;border-radius:8px;background-color:#fff;color:#333;font-size:16px;font-weight:500;padding:8px calc(var(--select-padding-inline) + var(--select-icon-size) + var(--select-icon-gap)) 8px var(--select-padding-inline);box-shadow:2px 2px 0 #000;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1.25 1.25 4.75 5.5 4.75-5.5' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-origin:padding-box;background-position:right var(--select-padding-inline) center;background-size:var(--select-icon-size) 8px}
select.select-component:disabled{background-color:#eee;color:#888;box-shadow:none;cursor:not-allowed}
.select-specimens{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;max-width:800px}.select-specimens label{display:grid;gap:12px;font-size:14px}

/* Framed selects share this component; inline composer settings keep their own variant. */
html body .panel-select-field::after{display:none}

#dialog .cast-dialog-fields select:invalid{color:#999}
#dialog .cast-dialog-fields select option{color:#333}
#dialog .cast-dialog-fields select option[value=""]{color:#999}

#dialog #ai-role-gender:invalid,.ai-character-specimen #ai-role-gender:invalid{color:#999}
#ai-role-gender option{color:#333}#ai-role-gender option[value=""]{color:#999}
/* Paired character fields share the same outer height on every device. */
html body #dialog .cast-dialog-fields>label>input:not([type=checkbox]),html body #dialog .cast-dialog-fields>label>select{box-sizing:border-box;height:48px;min-height:48px;padding-top:0;padding-bottom:0;line-height:normal;margin-top:9px}

#dialog #manual-character-gender:has(option[value=""]:checked){color:#999}
