/* Consistent form controls — replaces browser-default selects and checkboxes. */
html body select{appearance:none;-webkit-appearance:none;min-height:44px;padding:10px 42px 10px 14px;border:1px solid color-mix(in srgb,var(--line,#9aacbd) 82%,transparent);border-radius:12px;background-color:var(--field,#fff);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 19px) 19px,calc(100% - 14px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;color:var(--ink);font:inherit;line-height:1.3;cursor:pointer;transition:border-color 160ms ease,box-shadow 160ms ease,background-color 160ms ease}
html body select:hover{border-color:var(--blue,#2476f3);background-color:color-mix(in srgb,var(--field,#fff) 92%,var(--blue,#2476f3))}
html body input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;margin:0 9px 0 0;vertical-align:-4px;border:1.5px solid color-mix(in srgb,var(--line,#8094a8) 85%,transparent);border-radius:6px;background:var(--field,#fff);display:inline-grid;place-content:center;cursor:pointer;transition:background 150ms ease,border-color 150ms ease,transform 150ms ease}
html body input[type=checkbox]::before{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) scale(0);transform-origin:center;transition:transform 130ms ease}
html body input[type=checkbox]:checked{background:var(--blue,#2476f3);border-color:var(--blue,#2476f3)}
html body input[type=checkbox]:checked::before{transform:rotate(-45deg) scale(1)}
html body :is(select,input[type=checkbox]):focus-visible{outline:3px solid color-mix(in srgb,var(--blue,#2476f3) 38%,transparent);outline-offset:3px}
html body input[type=checkbox]:active{transform:scale(.9)}
@media(prefers-reduced-motion:reduce){html body :is(select,input[type=checkbox],input[type=checkbox]::before){transition:none}}

/* Tactile, pill-shaped actions used across the public pages and portal. */
html body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button){
  border-radius:999px!important;
  border:1px solid color-mix(in srgb,currentColor 20%,transparent)!important;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .55),0 7px 18px rgb(5 24 45 / .13)!important;
  transition:transform 160ms ease,box-shadow 160ms ease,filter 160ms ease,background-color 160ms ease!important;
}
html[data-theme=light] body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button){background:rgb(255 255 255 / .84)!important;color:#142c4a!important}
html[data-theme=dark] body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button){background:rgb(14 42 72 / .84)!important;color:#eef8ff!important}
html body :is(.pill.primary,.glass-primary){
  border-radius:999px!important;
  background:linear-gradient(135deg,#58bdff,#2678ef)!important;
  border-color:#8dd4ff!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .55),0 9px 22px rgb(24 106 220 / .28)!important;
}
html body .header-join .arrow-box{width:30px!important;height:30px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:rgb(10 31 53 / .9)!important;color:#fff!important}
@media(hover:hover) and (pointer:fine){html body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button):hover{transform:translateY(-2px);filter:brightness(1.035);box-shadow:inset 0 1px 0 #fff,0 12px 24px rgb(5 24 45 / .2)!important}}
html body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button):active{transform:translateY(0) scale(.975)!important}
@media(prefers-reduced-motion:reduce){html body :is(.pill,.header-join,.site-theme-control,#theme-toggle,.discord-button){transition:none!important}}
