#mascot-picker {width:min(640px,94vw);max-height:90dvh;padding:0;border:1px solid #d7e0e5;border-radius:16px;color:#233b4b}
#mascot-picker::backdrop {background:#20334180}
#mascot-form {display:flex;flex-direction:column;max-height:88dvh;padding:18px;gap:12px}
#mascot-form h2,#mascot-feedback {margin:0}
#mascot-feedback:empty {display:none}
#mascot-options {display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:6px;overflow:auto;padding:3px}
#mascot-options label {position:relative;display:grid;justify-items:center;align-content:start;gap:3px;padding:6px 2px;border:1px solid #dce3e7;border-radius:8px;background:#f5f8f7;text-align:center;font-size:12px;cursor:pointer}
#mascot-options input {position:absolute;opacity:0;width:1px;height:1px;min-height:0}
#mascot-options label:has(:checked) {border-color:var(--crm-primary);background:var(--crm-selected)}
#mascot-options label:has(:focus-visible) {outline:2px solid var(--crm-primary);outline-offset:1px}
.profile-mascot {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#mascot-options img {width:72px;height:72px;object-fit:contain}
#profile-mascot-image,.mascot-fitting img {object-fit:contain;background:#eaf2f3;border-radius:16px}
#profile-mascot-image {width:clamp(128px,16vw,168px);height:auto;aspect-ratio:1}
.mascot-fitting {display:flex;align-items:center;gap:16px}
.mascot-fitting img {width:clamp(84px,15vh,132px);height:auto;aspect-ratio:1}
#mascot-gear {border:0;padding:0;margin:4px 0 0}
#mascot-gear legend {font-size:.85rem;margin-bottom:4px}
#mascot-gear label {display:inline-flex;align-items:center;gap:5px;margin:2px 3px 2px 0;padding:6px 9px;border:1px solid #cfd9e0;border-radius:8px;cursor:pointer}
#mascot-gear label:has(:checked) {border-color:var(--crm-primary);background:var(--crm-selected)}
#mascot-gear input {width:1rem;height:1rem;min-height:0;margin:0;accent-color:var(--crm-primary)}
@media(max-height:525px) {.mascot-fitting img {width:64px} #mascot-form {gap:5px;padding:10px}}
#mascot-form footer {display:flex;justify-content:flex-end;gap:8px}
