/* PHONE LAYOUT: everything under body.phone (one scrolling column). Applied automatically when the screen is narrower than 800 px, or with ?phone=1.
   Loaded AFTER the desktop rules on purpose, so it wins; keep it before flow.css only because the flow phone rules live in flow.css. */

  /* ---- phone: one scrolling column (automatic when the screen is narrower than 800 px, or ?phone=1) ---- */
  body.phone { overflow:auto; }
  body.phone header { height:auto; flex-wrap:wrap; gap:.45rem .9rem; padding:.55rem .8rem; }
  body.phone h1 { font-size:.95rem; letter-spacing:.14em; }
  body.phone .sp, body.phone #scr { display:none; }
  body.phone #clock { margin-left:auto; font-size:1.1rem; }
  body.phone #tabs { order:5; width:100%; }
  body.phone .tab { flex:1; text-align:center; padding:.45rem .3rem; }
  body.phone #views { height:auto; }
  body.phone .view { position:static; }
  body.phone #v-status.on { display:flex; flex-direction:column; gap:1.1rem; padding:1.1rem .7rem; }
  body.phone #core { height:auto; display:block; order:1; }
  body.phone #coresvg { width:100%; height:auto; aspect-ratio:1; display:block; }
  body.phone #coreleg { margin:0; }
  body.phone #checks { position:relative; left:auto; bottom:auto; width:auto; margin:.8rem .3rem .3rem; font-size:.82rem; }
  body.phone #rightcol { order:3; }
  body.phone #rightcol { display:flex; flex-direction:column; gap:1.1rem; }
  body.phone #alarmbox { height:21rem; }
  body.phone #logbox { height:21rem; }
  body.phone #log { overflow-y:auto; }
  body.phone #v-blocks.on { display:block; }
  body.phone #grid { display:grid; grid-template-columns:1fr; grid-template-rows:none; grid-auto-rows:16rem; gap:.6rem; padding:.6rem; height:auto; }
  body.phone #strip { display:none !important; }
  body.phone .title { flex-wrap:wrap; font-size:1rem; gap:.3rem .7rem; }
  body.phone .v, body.phone .w { font-size:1.4rem; }
  body.phone #v-site.on { display:flex; flex-direction:column; gap:1.1rem; padding:1.1rem .7rem; }
  body.phone #metrics { position:static; margin:.3rem .5rem .7rem; flex-wrap:wrap; }
  body.phone .mt { padding:.4rem .7rem; }
  body.phone #sitewrap { display:block; overflow-x:auto; }
  body.phone #sitesvg { width:920px; height:auto; }
  body.phone #detail { height:auto; }
  body.phone #dplot { height:11rem; }
  body.phone #dbars { flex:none; height:18rem; }
  body.phone #cfg { width:100vw; }
  body.phone #gear, body.phone #histbtn, body.phone #relbtn { padding:.45rem .8rem; opacity:1; }
