/* every page uses the full width of the window: no fixed 1360px column with empty space either side */
.wrap,.flash,.mg-in,.wu,.dz-tiltbar{max-width:none}
/* the terminal frame fills the window below the menus (height is set by the script in terminal.html) */
@media (min-width:761px){.term-host{padding-bottom:0}.term-frame{min-height:560px}}
/* (2026-12-01) phone fit pass: nothing runs off the right edge. Labels and pills wrap, button rows wrap, wide headers stack. */
@media (max-width:640px){
  .pill{white-space:normal;max-width:100%;overflow-wrap:anywhere}
  .rk-seg,.ebk-tf,.st-fpills,.scn-f,.othm{flex-wrap:wrap;max-width:100%}
  .rk-hd,.hd,.fr-top,.lgv-hd,.lgx-act,.ch-hd{flex-wrap:wrap}
  .orc details.lg{display:block}
  .orc details.lg summary .note{white-space:normal;overflow-wrap:anywhere;min-width:0}
  .eco .fr-top .stamp{min-width:0;max-width:100%}
  .st-lbl{flex-wrap:wrap}
  a.row.nt{flex-wrap:wrap}
  mark.lim-t{white-space:normal}
  .sp-m .sp-in{max-width:100%;overflow-wrap:anywhere}
}
