/* Frost controls keep the original upload and voting form behaviour. */
html[data-theme] .community-page .vote-card .vote-option input[type=radio]{appearance:none;-webkit-appearance:none;display:inline-grid;place-items:center;position:relative;width:22px;height:22px;min-width:22px;padding:0;margin:0;border:2px solid #459cbd;border-radius:50%;background:linear-gradient(145deg,#fff,#d7f1fc);box-shadow:inset 0 1px 3px #ffffffb0,0 1px 5px #0b70941a;cursor:pointer;vertical-align:middle;transition:background .18s,border-color .18s,box-shadow .18s;flex:none}
html[data-theme] .community-page .vote-card .vote-option input[type=radio]:before{content:'';width:10px;height:10px;border-radius:2px;background:#08769e;transform:rotate(45deg) scale(.3);opacity:0;transition:transform .18s,opacity .18s}
html[data-theme] .community-page .vote-card .vote-option input[type=radio]:checked{background:linear-gradient(145deg,#effcff,#bceafb);border-color:#117fa9;box-shadow:inset 0 0 0 3px #e6faff,0 0 0 3px #47c6ed24}
html[data-theme] .community-page .vote-card .vote-option input[type=radio]:checked:before{opacity:1;transform:rotate(45deg) scale(1)}
html[data-theme] .community-page .vote-card .vote-option input[type=radio]:focus-visible{outline:3px solid #0d80aa;outline-offset:4px}
html[data-theme=dark] .community-page .vote-card .vote-option input[type=radio]{background:linear-gradient(145deg,#244f68,#102c40);border-color:#8dcce4;box-shadow:inset 0 1px #d9f8ff30,0 2px 6px #0003}
html[data-theme=dark] .community-page .vote-card .vote-option input[type=radio]:checked{background:linear-gradient(145deg,#315f76,#163e52);border-color:#b1efff;box-shadow:inset 0 0 0 3px #1c465c,0 0 0 3px #6ddcfa2a,0 0 13px #6ddcfa20}
html[data-theme=dark] .community-page .vote-card .vote-option input[type=radio]:before{background:#bbf2ff;box-shadow:0 0 8px #7edfff55}
html[data-theme=dark] .community-page .vote-card .vote-option input[type=radio]:focus-visible{outline-color:#b1efff}
html[data-theme] .community-page .vote-card .vote-option input[type=radio]:disabled{cursor:not-allowed;opacity:.65}
/* Native file input: retains the system picker, selected filename and keyboard access. */
html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:64px;padding:8px;border:1px solid #8bbbd0;border-radius:16px;background:linear-gradient(135deg,#f9feff,#e7f6fd);color:#28576f;font:650 13px/1.7 system-ui;cursor:pointer;box-shadow:inset 0 1px #fff;transition:border-color .2s,box-shadow .2s}
html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button{margin:0 14px 0 0;padding:11px 17px;min-height:44px;border:1px solid #72b8d1;border-radius:11px;background:linear-gradient(125deg,#d0f3ff,#93d9f0);color:#093d55;font:850 12px/1.5 system-ui;cursor:pointer;box-shadow:inset 0 1px #ffffffb0;transition:background .2s,border-color .2s}
html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]:hover{border-color:#278db5;box-shadow:0 0 0 3px #54c9ed18}
html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button:hover{background:linear-gradient(125deg,#effcff,#b9ecfc);border-color:#268bb2}
html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]:focus-visible{outline:3px solid #137fa8;outline-offset:4px}
html[data-theme=dark] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]{background:linear-gradient(135deg,#173d52,#0d293d);color:#d2edfc;border-color:#598aa2;box-shadow:inset 0 1px #d0f1ff13}
html[data-theme=dark] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button{background:linear-gradient(125deg,#c0efff,#82cee9);color:#082f44;border-color:#a3deef}
html[data-theme=dark] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button:hover{background:linear-gradient(125deg,#e4fbff,#b0e7fa);border-color:#d0f6ff}
html[data-theme=dark] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]:hover{border-color:#a2e6fc;box-shadow:0 0 0 3px #64d3f522}
html[data-theme=dark] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]:focus-visible{outline-color:#a2e6fc}
html[data-theme] .community-page .avatar-upload-form>.btn.primary{min-height:49px;border:1px solid #7ebfd6;border-radius:13px;background:linear-gradient(125deg,#cef4ff,#8bd5ed);color:#093c54;box-shadow:inset 0 1px #ffffff80;font-weight:850}
html[data-theme] .community-page .avatar-upload-form>.btn.primary:hover:not(:disabled){background:linear-gradient(125deg,#edfcff,#b5ebfa);color:#093c54;transform:translateY(-1px)}
html[data-theme] .community-page .avatar-upload-form>.btn.primary:disabled{opacity:1;background:#e0edf4;color:#506c7e;border-color:#a8c8d8;cursor:not-allowed}
html[data-theme=dark] .community-page .avatar-upload-form>.btn.primary:disabled{background:#1a3a50;color:#bed5e5;border-color:#5d8197}
@media(max-width:450px){html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]{font-size:11px;padding:7px;min-height:60px}html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button{font-size:11px;padding:11px;margin-right:8px}}
@media(prefers-reduced-motion:reduce){html[data-theme] .community-page .vote-card .vote-option input[type=radio],html[data-theme] .community-page .vote-card .vote-option input[type=radio]:before,html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar],html[data-theme] :is(.avatar-upload-form,.admin-shell) input[type=file][name=avatar]::file-selector-button{transition:none}}
@media(forced-colors:active){html[data-theme] .community-page .vote-card .vote-option input[type=radio]{appearance:auto;-webkit-appearance:auto;background:Canvas;box-shadow:none}html[data-theme] .community-page .vote-card .vote-option input[type=radio]:before{display:none}}
