
/* Short phone landscape screens: header rows stay in normal document flow. */
@media (orientation:landscape) and (max-width:1100px) and (max-height:600px) and (hover:none) and (pointer:coarse){
 .byd-v14-topbar{position:static!important;top:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;grid-template-columns:160px minmax(0,1fr) 64px!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:8px!important;padding:8px 12px!important;align-items:center!important}
 .byd-v14-topbar .byd-theme-stack{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;justify-self:stretch!important;align-self:center!important;width:100%!important;min-width:0!important;gap:5px!important}
 .byd-v14-topbar .byd-status-row{order:0!important;flex:0 0 100%!important;justify-content:flex-start!important;gap:7px!important;margin:0!important}
 .byd-v14-topbar .byd-connection{font-size:12px!important}
 .byd-v14-topbar #bydHelpButton{position:static!important;width:22px!important;height:22px!important;flex:0 0 22px!important;font-size:13px!important}
 .byd-v14-topbar .byd-theme-control{order:1!important;flex:0 0 auto!important;gap:3px!important}
 .byd-v14-topbar .byd-theme-symbol{font-size:16px!important}
 .byd-v14-topbar .byd-theme-toggle{width:42px!important;height:25px!important;padding:3px!important}
 .byd-v14-topbar .byd-theme-knob{width:17px!important;height:17px!important}
 html:not([data-byd-theme="light"]) .byd-v14-topbar .byd-theme-knob{transform:translateX(17px)!important}
 html[data-byd-theme="light"] .byd-v14-topbar .byd-theme-knob{transform:translateX(0)!important}
 .byd-v14-topbar .bydi-header-update{order:2!important;flex:0 0 auto!important;padding:4px 6px!important;min-height:26px!important;font-size:11px!important}
 .byd-v14-topbar .brand{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:center!important}
 .byd-v14-topbar .brand-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;width:100%!important;min-width:0!important;gap:4px!important;margin:0!important}
 .byd-v14-topbar .byd-brand-name{font-size:clamp(16px,2.4vw,25px)!important;line-height:1.15!important;letter-spacing:-.045em!important;white-space:normal!important;overflow-wrap:normal!important}
 .byd-v14-topbar .byd-brand-sub{font-size:clamp(10px,1.4vw,13px)!important;line-height:1.25!important;letter-spacing:.025em!important;white-space:normal!important;margin:0!important;text-align:center!important;justify-content:center!important}
 .byd-v14-topbar .byd-brand-logo{grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:center!important;width:64px!important;height:64px!important;min-width:0!important;max-width:64px!important;max-height:64px!important;flex-basis:64px!important;margin:0!important}
 .byd-v14-topbar .byd-fixed-actions{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;margin:0!important}
 .byd-v14-topbar .byd-test-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
 .byd-v14-topbar .byd-test-actions button{min-height:36px!important;padding:7px 8px!important;font-size:12px!important;line-height:1.2!important}
 .byd-v14-topbar .byd-test-actions button:last-child{grid-column:auto!important}
 .page{padding-top:14px!important}
}

/* Paint the entire iPhone viewport; keep controls inside the notch safe area. */
html{background:var(--bydi-ui-residual-092544)}
html[data-byd-theme="light"]{background:var(--bydi-ui-residual-eef7fd)}
@media (orientation:landscape) and (max-width:1100px) and (max-height:600px) and (hover:none) and (pointer:coarse){
 body{width:100%;max-width:none;margin:0;box-sizing:border-box;padding-left:env(safe-area-inset-left,0px)!important;padding-right:env(safe-area-inset-right,0px)!important}
}
