/* t1379u: one UI scale for the editor's ELEMENTS (fonts, control heights, paddings, gaps, icons, column widths).
   Every size in editor/*.css is written as calc(Npx * var(--ui, 1)) (tools/ui-scale-css.py), so this is real layout:
   no zoom, no transform, the editor always fills the viewport and pointer / slider coordinates are untouched.
   ~78% from 768 to 1180 wide (and at least 500 tall), easing back to 100% by ~1380 (a 1440 window; the desktop page frame is ~1390 wide). Phones stay at 100%. */
:root { --ui: 1; }
@media (min-width: 768px) and (min-height: 500px) { :root { --ui: .78; } }
@media (min-width: 1180px) and (min-height: 500px) { :root { --ui: .8; } }
@media (min-width: 1220px) and (min-height: 500px) { :root { --ui: .84; } }
@media (min-width: 1260px) and (min-height: 500px) { :root { --ui: .88; } }
@media (min-width: 1300px) and (min-height: 500px) { :root { --ui: .92; } }
@media (min-width: 1340px) and (min-height: 500px) { :root { --ui: .96; } }
@media (min-width: 1380px) { :root { --ui: 1; } }   /* the desktop page frame at a 1440 window is ~1390 wide */
html.phone { --ui: 1; }
