/* Short phones (owner 2026-11-07: "make iphone se layout match screen. its too big"; reviewers often use an older
   iPhone). iPhone SE / 8 / 8 Plus (≤740 px tall): the same app, packed tighter so the first screen shows more than the
   header. Only sizes and spacing change; nothing is hidden or moved. Taps stay ≥ 34 px. */
@media (max-width:430px) and (max-height:740px){
  /* header row 1 */
  .hdr{padding:calc(6px + var(--sat)) var(--gut) 6px!important;gap:5px!important}
  .hdr>.hbtn{width:36px!important;height:36px!important;min-width:36px!important;border-radius:12px!important}
  .hdr>.hbtn .ico,.hdr>.hbtn svg{width:18px;height:18px}
  .hdr>.hbrand{width:38px!important}
  .hdr .hdr-pts{height:32px;padding:0 9px 0 6px;font-size:12.5px}
  .hdr .hdr-pts i{width:14px;height:14px}
  .hdr .hdr-stk{height:32px;padding:0 7px 0 6px;font-size:12px}
  /* header row 2: Social Jump + Invite / God / Street */
  .hdr > .hdr-inv{margin-top:5px!important;padding-top:11px!important}
  .hdr-inv .hi-lbl{font-size:8.5px!important}
  .hdr-inv .hi-hop{width:30px!important;height:30px!important}
  .hdr-inv .hi-hop svg{width:15px!important;height:15px!important}
  .hdr-inv:has(.hi-staff) .hi-sti,.hdr-inv:has(.hi-staff) .hi-inv{height:38px!important;width:46px!important;gap:2px!important;border-radius:11px!important;font-size:9.5px!important}
  .hdr-inv:has(.hi-staff) .hi-sti svg,.hdr-inv:has(.hi-staff) .hi-inv svg{width:15px!important;height:15px!important}
  .hdr-inv .hi-inv .hi-pts,.hdr-inv .hi-pts{font-size:9px!important;padding:1px 5px!important;top:-6px!important}
  .hdr-inv:not(:has(.hi-staff)) .hi-sti,.hdr-inv:not(:has(.hi-staff)) .hi-inv{height:32px!important}
  /* tab bar and the floating buttons */
  .tabbar{padding:5px 6px calc(6px + var(--sab))!important}
  .tab{padding-top:4px!important;gap:2px!important;min-height:40px!important}
  .tab .em{width:24px!important;height:24px!important}
  .tab .em .ico{width:21px!important;height:21px!important}
  .tab .lb{font-size:10.5px!important}
  .mapfab{width:48px!important;height:48px!important;right:12px!important;bottom:calc(var(--sab) + 62px)!important}
  .mapfab svg{width:22px;height:22px}
  /* Home: area card, clock card, section heads */
  .h-area{min-height:52px!important;margin-top:6px!important;padding-top:6px!important;padding-bottom:6px!important}
  .h-area .ha-pin{width:36px!important;height:36px!important}
  .h-area .ha-t b{font-size:19px!important}
  .h-area .ha-ch{height:34px!important;padding:0 12px!important;font-size:13px!important}
  .hx-t{padding:10px 11px 9px!important;border-radius:18px!important}
  .hx-t-clk b{font-size:28px!important}
  .hx-t-date b{font-size:12.5px!important}
  .hx-t-line{margin:11px 4px 18px!important}
  .hx-t-b{min-height:38px!important}
  .hx-t-b b{font-size:12px!important}
  .hx-wxc{margin:0 0 6px!important}
  .hx-sec h2,.hx .sec h2,.h-kind .sec h2{font-size:17px!important}
}
/* 4-inch iPhones (SE 1st gen, 320 px wide): the Social Jump row and the staff buttons fit on one line */
@media (max-width:350px){
  .hdr-inv .hi-hops{gap:3px!important}
  .hdr-inv .hi-hop{width:26px!important;height:26px!important}
  .hdr-inv .hi-hop svg{width:13px!important;height:13px!important}
  .hdr-inv:has(.hi-staff){gap:4px!important}
  .hdr-inv:has(.hi-staff) .hi-staff{gap:3px!important}
  .hdr-inv:has(.hi-staff) .hi-sti,.hdr-inv:has(.hi-staff) .hi-inv{width:40px!important;font-size:8.5px!important}
  .dd-tk{max-width:46%!important}
}
/* while you edit your page the app header steps away on phones, so the page shows above the editor (Done closes it) */
@media (max-width:699px){html.ms-editing .frame>.hdr{display:none!important}html.ms-editing .dg-pill{display:none!important}}
@media (max-width:430px) and (max-height:740px){
  html.ms-editing .ms-page .ed-panel{max-height:56vh!important}
  .dg-pill{bottom:calc(62px + env(safe-area-inset-bottom,0px))!important}
}
