/* Field labels must remain visually larger than their editable values. */
:root{--field-label-size:15px;--field-value-size:14px}
:is(form,.field,.project-switch,#editor,#detail) :is(label,legend){font-size:var(--field-label-size)!important;font-weight:500;line-height:1.45}
:is(form,.field,.project-switch,#editor,#detail) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){font-size:var(--field-value-size)!important;font-weight:400;line-height:1.5}
:is(form,.field,.project-switch,#editor,#detail) :is(input,textarea)::placeholder{font-size:var(--field-value-size)!important;font-weight:400;opacity:.7}
:is(form,.field,.project-switch,#editor,#detail) select option{font-size:var(--field-value-size)!important;font-weight:400}
@media(max-width:760px){
 :root{--field-label-size:15px;--field-value-size:13px;--type-page:17px;--type-section:16px;--type-entry:14px;--type-control:13px;--type-secondary:12px;--type-caption:11px}
 /* Search and toolbar controls also live outside forms. */
 :is(#main,#mobile-screen,.header-right) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){font-size:var(--field-value-size)!important;font-weight:400}
 :is(#main,#mobile-screen,.header-right) :is(input,textarea)::placeholder{font-size:var(--field-value-size)!important;font-weight:400;opacity:.7}
 .mobile-bottom-layout #global-search,.mobile-bottom-layout #record-search{font-size:var(--field-value-size)!important}
 .mobile-bottom-layout :is(#editor,#detail) .dialog-header h2,.mobile-bottom-layout #main h1{font-size:var(--type-page)!important;line-height:1.4}
 .mobile-bottom-layout #main :is(h2,h3),.mobile-bottom-layout #mobile-screen :is(h2,h3),.mobile-bottom-layout :is(#editor,#detail) .dialog-body h3{font-size:var(--type-section)!important;line-height:1.4}
 .mobile-bottom-layout .science-mobile-header [data-mobile-science-group]{font-size:var(--type-section)!important;font-weight:600}
 .mobile-bottom-layout .mobile-project-top #mobile-project-select{font-size:var(--type-page)!important;font-weight:600}
 .mobile-bottom-layout #main :is(.toolbar>button,.mobile-view-toggle,.mobile-record-sort>summary,.mobile-category-toggle,.science-node-select,.science-project-item,.science-preview-item){font-size:var(--type-control)!important}
 .mobile-bottom-layout #main :is(.mobile-record-sort>div>button,.mobile-record-more>div>button){font-size:var(--type-control)!important}
 .mobile-bottom-layout :is(.mobile-record-title,.record-title,.global-result strong,.mobile-library-list button>span:not(:last-child),.attachment-name){font-size:var(--type-entry)!important}
 .mobile-bottom-layout :is(.mobile-record-meta,.mobile-record-result,.global-result .global-match,.detail-meta,.mobile-overview-counts,.table-footer,.attachment-body>small){font-size:var(--type-secondary)!important}
 .mobile-bottom-layout :is(.mobile-record-item>small,.notification-item small,.science-project-item small,.science-node-select small){font-size:var(--type-caption)!important}
 .mobile-bottom-layout :is(.mobile-overview-counts strong,.stat strong){font-size:var(--type-entry)!important}
 .mobile-bottom-layout .mobile-library-section h2{font-size:var(--type-section)!important}
 .mobile-bottom-layout .mobile-profile .my-profile strong{font-size:18px!important}
 .mobile-bottom-layout .mobile-profile .my-profile small{font-size:var(--type-secondary)!important}
 .mobile-bottom-layout .mobile-profile .my-menu-items>button{font-size:var(--type-entry)!important}
 .mobile-bottom-layout .notification-item strong{font-size:var(--type-entry)!important}
 .mobile-bottom-layout .notification-item>span{font-size:var(--type-secondary)!important}
 .mobile-bottom-layout .mobile-greeting{font-size:22px!important}
}
