/* One size scale for the user app, the institute portal and the other tool pages (not the landing pages, which have their own).
   Fonts:  xs .8125rem captions and badges · sm .9375rem labels, notes, small buttons · md 1rem body, inputs, buttons, menus · lg 1.1875rem card titles
   Icons:  sm 1.125rem inline · md 1.375rem menu and drawer · lg 1.5rem bottom bar
   Change a number here and it changes everywhere. Loaded after polish.css and appdesk.css. */
:root{--ui-xs:.8125rem;--ui-sm:.9375rem;--ui-md:1rem;--ui-lg:1.1875rem;--ui-ic-sm:1.125rem;--ui-ic-md:1.375rem;--ui-ic-lg:1.5rem}
body:not(.lp){font-size:var(--ui-md)}
body:not(.lp) :is(.btn,button.btn,a.btn){font-size:var(--ui-md)}
body:not(.lp) :is(.btn.sm,.btn.small,.btn-sm){font-size:var(--ui-sm)}
body:not(.lp) :is(input,select,textarea){font-size:var(--ui-md)}
body:not(.lp) :is(label,th,td){font-size:var(--ui-sm)}
body:not(.lp) :is(small,.note-sm,.mut,.hint,.sub,.lbl,.badge){font-size:var(--ui-xs)}
body:not(.lp) .card h3{font-size:var(--ui-lg)}
/* menus: side menu of the institute portal, drawer, top nav, bottom nav of the app */
.side .btn,.menu .btn{font-size:var(--ui-md)}
.side .btn i,.side .btn .ic,.menu .btn i,.menu .btn .ic{font-style:normal;font-size:var(--ui-ic-md);line-height:1}
.dw-i{font-size:var(--ui-md)}.dw-i i{font-size:var(--ui-ic-md);width:1.75rem}
.dw-g{font-size:var(--ui-xs)}
.dw-x{font-size:var(--ui-ic-md)}.dw-hb{font-size:var(--ui-ic-md)}
.appnav .menu .btn{font-size:var(--ui-xs)}.appnav #st{font-size:var(--ui-xs)}
.appnav .menu .btn i,.appnav .menu .btn .ic{font-size:var(--ui-ic-md)}
#mvbar a,#mvbar button{font-size:var(--ui-xs)}
#mvbar svg{width:var(--ui-ic-lg);height:var(--ui-ic-lg)}
#mvbar .ic,#mvbar i{font-size:var(--ui-ic-lg);font-style:normal;line-height:1}
/* small round or square icon buttons in the app header */
#favb,#micb,#ttsb,#hc,#plus,#minus{font-size:var(--ui-md)}
#favb svg,#micb svg,#ttsb svg{width:var(--ui-ic-md);height:var(--ui-ic-md)}
/* an icon inside a button or link is always the same size, whatever the text beside it */
body:not(.lp) .btn svg,body:not(.lp) .dw-i svg,.side svg{width:var(--ui-ic-sm);height:var(--ui-ic-sm);flex:none}
/* tap targets in the user app: at least 48 x 48 */
body.shell :is(button,.btn,select,a.btn,[role=button],summary):not(.cs-x){min-height:48px}
body.shell :is(button,.btn,[role=button]):not(.wide){min-width:48px}
body.shell input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]){min-height:48px}
body.shell input[type=checkbox],body.shell input[type=radio]{width:24px;height:24px}
body.shell label:has(>input[type=checkbox]),body.shell label:has(>input[type=radio]){min-height:48px;display:inline-flex;align-items:center;gap:.5rem}
body.shell :is(#fht,.modebar .btn,.modebar button){min-height:48px!important}
body.shell #modebar .btn,body.shell #modebar select{min-height:48px!important;height:auto!important}
