/* Apps Parceiros: uma coluna no celular, duas no tablet, modais roláveis. */
.an-pa-screen,
.an-pa-page,
.an-pa-stage,
.an-pa-page-main,
.an-pa-scroll,
.an-pa-panel,
.an-pa-grid,
.an-pa-card,
.an-pa-card-body{max-width:100%;min-width:0}
.an-pa-screen{
  box-sizing:border-box;
  width:100%;
  overflow-x:hidden;
  padding-right:max(12px, env(safe-area-inset-right));
  padding-bottom:max(12px, env(safe-area-inset-bottom));
  padding-left:max(12px, env(safe-area-inset-left));
}
.an-pa-scroll,.an-pa-form-body,.an-pa-form-scrim{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.an-pa-screen .an-pa-grid,.an-pa-page .an-pa-grid{
  width:100%;
  grid-template-columns:repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap:16px;
}
.an-pa-screen .an-pa-card,.an-pa-page .an-pa-card{width:100%;max-width:100%;min-width:0;min-height:0}
.an-pa-card h3,.an-pa-detail h3,.an-pa-compat li,.an-pa-meta li,.an-pa-guide li{overflow-wrap:anywhere}
.an-pa-art,.an-pa-art img{max-width:100%}
.an-pa-screen .an-pa-launch,.an-pa-page .an-pa-launch,.an-pa-screen .an-pa-open,.an-pa-page .an-pa-open{
  width:100%;
  max-width:100%;
  min-height:44px;
  height:auto;
  white-space:normal;
  line-height:1.2;
  touch-action:manipulation;
}
.an-pa-manage button,.an-pa-manage label,.an-pa-form-foot button,.an-pa-head-actions button,.an-pa-close{
  min-height:44px;
  touch-action:manipulation;
}
.an-pa-form-scrim{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  align-items:center;
  justify-content:flex-start;
  height:100%;
  max-height:100%;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}
.an-pa-form{
  display:flex;
  flex-direction:column;
  align-self:center;
  width:min(680px, 100%);
  max-width:100%;
  height:auto;
  max-height:100%;
  min-height:0;
  flex:1 1 auto;
  margin-bottom:0;
  box-sizing:border-box;
}
.an-pa-form-body{
  overflow-x:hidden;
  overflow-y:auto;
  flex:1 1 auto;
  min-height:0;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:max(16px, env(safe-area-inset-bottom), env(keyboard-inset-height, 0px));
}
.an-pa-mp-actions{display:flex;flex-direction:column;gap:8px;min-width:0}
.an-pa-mp-actions .an-pa-launch{margin-top:0}
.an-pa-launch.is-danger{
  background:transparent;
  border:1px solid rgba(252,165,165,.55);
  color:#fecaca;
  box-shadow:none;
}
.an-pa-form .an-input,.an-pa-form textarea,.an-pa-form select,.an-pa-screen .an-input,.an-pa-page .an-input{
  font-size:16px;
  max-width:100%;
  box-sizing:border-box;
}
.an-pa-form-head{flex-wrap:nowrap}
.an-pa-form-head h3{flex:1 1 auto;overflow-wrap:anywhere;min-width:0}
.an-pa-form-head button{min-height:44px;touch-action:manipulation}
.an-pa-form-foot{flex-wrap:wrap}
.an-pa-form-foot button{min-width:44px}
@media (min-width:721px) and (max-width:1100px){
  .an-pa-screen .an-pa-grid,.an-pa-page .an-pa-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width:720px), (max-height:500px) and (orientation:landscape){
  .an-pa-screen .an-pa-scroll,.an-pa-page .an-pa-scroll{padding-left:12px;padding-right:12px}
  .an-pa-screen .an-pa-grid,.an-pa-page .an-pa-grid{grid-template-columns:1fr;gap:12px}
  .an-pa-screen .an-pa-card .an-pa-art,.an-pa-page .an-pa-card .an-pa-art{height:72px}
  .an-pa-head{flex-direction:column}
  .an-pa-head-actions,.an-pa-add,.an-pa-close{width:100%}
  .an-pa-detail-hero,.an-pa-form-image,.an-pa-screen .an-pa-channels,.an-pa-screen .an-pa-flow{grid-template-columns:1fr}
  .an-pa-form-head{flex-wrap:wrap}
  .an-pa-form{width:100%;max-height:100%;margin-bottom:0}
  .an-pa-form-body{padding-bottom:max(24px, 32vh, env(keyboard-inset-height, 0px))}
  .an-pa-form-foot button{width:100%}
  .an-pa-manage button,.an-pa-manage label{flex:1 1 calc(50% - 8px)}
}
@media (max-height:500px) and (orientation:landscape){
  .an-pa-screen .an-pa-card .an-pa-art,.an-pa-page .an-pa-card .an-pa-art{height:48px}
  .an-pa-screen{padding-top:max(12px, env(safe-area-inset-top))}
}
