/* Complemento iPhone/iPad: no cambia rutas, datos, sesiones ni acciones. */
:root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
@supports (padding: max(0px)) {
  body { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
}
#alfred-host { right:max(14px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); }
#alfred-fab { min-width:58px; min-height:58px; }
#alfred-panel { height:min(640px,calc(100dvh - 110px)); }
#alfred-panel button, .alfred-compose textarea { font-size:16px; }
@media (max-width:760px) {
  #alfred-host { right:14px; bottom:calc(88px + env(safe-area-inset-bottom)); }
  #alfred-panel { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; border:0; border-radius:0; grid-template-rows:auto minmax(0,1fr) auto; }
  #alfred-panel header { padding:calc(14px + env(safe-area-inset-top)) 16px 14px; }
  #alfred-panel header button { min-width:44px; min-height:44px; }
  #alfred-msgs { min-height:0; padding:14px 16px; overscroll-behavior:contain; }
  .alfred-compose { padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .alfred-compose textarea { min-height:48px; max-height:22dvh; }
  .alfred-send,.alfred-activity { min-height:44px; }
}
@media (min-width:761px) and (max-width:1024px) {
  #alfred-panel { width:min(460px,calc(100vw - 38px)); height:min(680px,calc(100dvh - 88px)); }
}
@media (prefers-reduced-transparency:reduce) {
  #alfred-panel { background:#20252b; }
}
