/* Signed-in kitchen typography. Each explicit size adds this value once;
   inherited text follows its parent. Auth, public pages and Operations use 0. */
@media screen {
body:has(> #app-shell:not([hidden])) {
  --workspace-font-increase: 2px;
}

/* Preserve the same +2px for browser-default relative text sizes. Zero
   specificity lets every explicit component size retain its normal cascade. */
:where(body:has(> #app-shell:not([hidden]))) :where(h1) { font-size: calc(2em - var(--workspace-font-increase)); }
:where(body:has(> #app-shell:not([hidden]))) :where(h2) { font-size: calc(1.5em - var(--workspace-font-increase) * .5); }
:where(body:has(> #app-shell:not([hidden]))) :where(h3) { font-size: calc(1.17em - var(--workspace-font-increase) * .17); }
:where(body:has(> #app-shell:not([hidden]))) :where(h4) { font-size: inherit; }
:where(body:has(> #app-shell:not([hidden]))) :where(h5) { font-size: calc(.83em + var(--workspace-font-increase) * .17); }
:where(body:has(> #app-shell:not([hidden]))) :where(h6) { font-size: calc(.67em + var(--workspace-font-increase) * .33); }
:where(body:has(> #app-shell:not([hidden]))) :where(small, sub, sup) { font-size: calc(.833333em + var(--workspace-font-increase) * .166667); }
:where(body:has(> #app-shell:not([hidden]))) :where(big) { font-size: calc(1.2em - var(--workspace-font-increase) * .2); }

/* Native file controls grow with their font; keep them inside phone forms. */
:where(body:has(> #app-shell:not([hidden]))) input[type="file"] { max-width: 100%; min-width: 0; }
}
