/* One small set of finishing rules, loaded last (dashboard and public): contrast of the two weak colours, one corner radius for
   fields, one small-button size, one table-head weight. Add nothing page-specific here. */
.q-stars{color:#9a6400}
body .btn-accent:not(.theme-preview-accent){background:color-mix(in srgb,var(--accent) 86%,#000);border-color:color-mix(in srgb,var(--accent) 86%,#000)}
.dash-main.dash-main.dash-main :is(input,select,textarea).form-control{border-radius:10px !important}
body :is(.btn-sm,.sc-btn-sm){border-radius:10px;font-size:13px}
.dash-main.dash-main.dash-main.dash-main.dash-main.dash-main.dash-main.dash-main table:is(.ql-table,.data-table,.st-t,.sc-table,.q-data-table,.table):not(.ap-data-table):not(.q-unified-responsive-table):not(.ar-table):not(.site-review-table):not(.q-exam-admin-table):not(.finance-compact-table) thead th{font-weight:800 !important}

/* One control size: buttons and fields are 42px tall with 14px text; small buttons (inside tables, toolbars of icons) are 34px
   with 13px text. The selectors repeat `body` / `.dash-main` because older compact rules are !important. */
body:not(.q-n0):not(.q-n1):not(.q-n2) :is(.btn,button.btn,a.btn,input.btn,.sc-btn,.sc-actions .btn,.sc-toolbar .btn,.filters .btn,.filter-bar .btn,.table-toolbar .btn,.page-toolbar .btn):not(.btn-sm):not(.sc-btn-sm):not(.btn-icon):not(.sc-iconbtn):not(.qpg-nav button){min-height:42px !important;font-size:14px !important;border-radius:12px !important}
body:not(.q-n0):not(.q-n1):not(.q-n2) :is(.btn-sm,.sc-btn-sm,td .btn,td button.btn){min-height:34px !important;height:auto;font-size:13px !important;border-radius:10px !important;padding-block:5px}
.dash-main.dash-main.dash-main :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),select).form-control{min-height:42px !important;font-size:14px !important}
.dash-main.dash-main.dash-main textarea.form-control{font-size:14px !important}
.dash-main.dash-main.dash-main :is(.qimma-list-toolbar__filters,.filters,.filter-bar,.table-filters) :is(select,input,.form-control){height:42px !important;min-height:42px !important;font-size:14px !important}
.dash-main.dash-main.dash-main table :is(td){font-size:14px}
.qpg-size select,.qpg-nav button{min-height:36px}

/* A section inside the dashboard grid may shrink to the screen; without this a long legend line stretched the whole section past the phone edge. */
.q-modern-dashboard>*{min-width:0}
.q-admin-distribution-legend :is(li,span,div){min-width:0;overflow-wrap:anywhere}

/* The "About" item of the user menu looks like its sibling links (they set their own weight and size). */
.dash-user-dropdown button.dash-user-about{color:var(--text-soft,#4b5870);font-weight:600;font-size:14px}
.dash-user-dropdown button.dash-user-about:hover{color:var(--primary-dark,#07543c)}

/* A single-form card (add user, create course, create quiz) sits in the middle of the page, in both reading directions. The width comes from
   --q-form-w on the element; the second selector beats the "full width" rule of the q-cards-page pages. */
main.dash-main > .q-form-card,
body.q-cards-page main.dash-main > .q-form-card:not([hidden]){width:100%;max-width:var(--q-form-w,520px);margin-inline:auto}
/* Phones and tablets: iPhone zooms the page when a field with text under 16px gets focus. Must stay after the 14px rules above. */
@media (max-width:900px) and (pointer:coarse){
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px !important}
html body .dash-main.dash-main.dash-main.dash-main :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),select,textarea).form-control{font-size:16px !important}
html body .dash-main.dash-main.dash-main.dash-main :is(.qimma-list-toolbar__filters,.filters,.filter-bar,.table-filters) :is(select,input,.form-control){font-size:16px !important}
}
