/* PROVAÍ 0.10.151 — um card ocupa TODA a área útil abaixo do cabeçalho.
 * O cabeçalho é medido em tempo real (inclui zoom, mudanças de orientação e PWA).
 * O deck de trás usa as MESMAS dimensões do card principal; a foto só é revelada após carregar.
 */
body.app-body {--pv151-header:64px}
body.app-body .screen{
 width:100%!important; height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 padding-top:var(--pv151-header)!important;overflow:hidden!important;position:relative!important;
}
body.app-body .screen #card.swipe-card{
 box-sizing:border-box!important;min-height:0!important;
 height:calc(100dvh - var(--pv151-header))!important;max-height:calc(100dvh - var(--pv151-header))!important;
}
body.app-body .screen #nextCard.next-card{
 top:var(--pv151-header)!important;bottom:0!important;height:calc(100dvh - var(--pv151-header))!important;
 max-height:calc(100dvh - var(--pv151-header))!important;transform-origin:center center!important;
 pointer-events:none!important;visibility:hidden;
}
/* beta layout — stage, content and controls share all available area, no blank margin. */
body.app-body.pv149-ready .screen #card.swipe-card.pv149-card:not([style*="display: none"]):not([style*="display:none"]){
 display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;
 margin:0 auto!important;padding:0!important;
 height:calc(100dvh - var(--pv151-header))!important;
 max-height:calc(100dvh - var(--pv151-header))!important;
 overflow:hidden!important;
}
body.app-body.pv149-ready .screen #nextCard.next-card.pv150-next-card:not([style*="display: none"]):not([style*="display:none"]){
 top:var(--pv151-header)!important;bottom:0!important;height:calc(100dvh - var(--pv151-header))!important;
 max-height:calc(100dvh - var(--pv151-header))!important;
 width:100%!important;max-width:550px!important;left:50%!important;right:auto!important;
 margin:0!important;opacity:1!important;transform:translateX(-50%) scale(.985)!important;
 border-radius:0!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-meta{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:repeat(7,auto)!important;align-content:center!important;
 gap:3px 7px!important;
 height:var(--pv151-info-height,150px)!important;min-height:0!important;max-height:none!important;
 padding:11px 16px 7px!important;overflow:hidden!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-title{grid-row:1!important;grid-column:1!important;font-size:clamp(17px,5vw,24px)!important;margin:0!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-rating{grid-row:1!important;grid-column:2!important;justify-self:end!important;margin:0!important;white-space:nowrap!important;font-size:11px!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-rest{grid-row:2!important;grid-column:1/-1!important;margin:0!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-area{grid-row:3!important;grid-column:1/-1!important;margin:0!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-status{grid-row:4!important;grid-column:1/-1!important;margin:0!important;color:var(--pv149-muted)!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-badges{grid-row:5!important;grid-column:1/-1!important;margin:0!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-hint{grid-row:6!important;grid-column:1!important;margin:0!important;font-size:10px!important;color:var(--pv149-muted)!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-featured{grid-row:7!important;grid-column:1/-1!important;font-size:9px!important;color:#825b08!important;justify-self:end!important;background:#fff2bd!important;border-radius:99px!important;padding:2px 7px!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-featured[hidden],
body.app-body.pv149-ready .screen #nextCard.pv150-next-card [hidden]{display:none!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-actions{
 display:flex!important;grid-row:3!important;position:relative!important;
 flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;
 width:100%!important;height:var(--pv151-footer-height,115px)!important;min-height:0!important;
 padding:4px 12px max(9px,env(safe-area-inset-bottom))!important;
 gap:5px!important;margin:0!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-surprise-row{
 width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;
 height:40px!important;min-height:0!important;overflow:hidden!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-surprise{
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 padding:7px 14px!important;max-width:100%!important;max-height:40px!important;
 font-size:clamp(12px,3.3vw,16px)!important;font-weight:850!important;line-height:1.15!important;
 border-radius:999px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-controls{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:1px!important;align-items:center!important;justify-items:center!important;flex:1 1 auto!important;width:100%!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;min-width:0!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control>span{
 display:grid!important;place-items:center!important;width:clamp(35px,10vw,48px)!important;height:clamp(35px,10vw,48px)!important;
 border-radius:50%!important;background:#e5e6e8!important;color:#343a43!important;
 box-shadow:0 2px 9px #0002!important;font-size:22px!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control:nth-child(2)>span{background:#f4354a!important;color:#fff!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control:nth-child(3)>span{background:#ffbc09!important;color:#fff!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control:nth-child(4)>span{background:#11af65!important;color:#fff!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control>small{font-size:clamp(8px,2.2vw,11px)!important;color:var(--pv149-muted)!important;white-space:nowrap!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-photo{padding:12px 14px 3px!important;min-height:0!important}
body.app-body.pv149-mode-1 .screen #nextCard.pv150-next-card .pv150-next-photo{padding:16px 18px 4px!important}
body.app-body.pv149-mode-1 .screen #nextCard.pv150-next-card .pv150-next-frame{border:9px solid #fff3dc!important}
body.app-body.pv149-mode-2 .screen #nextCard.pv150-next-card .pv150-next-photo{padding:0!important}
body.app-body.pv149-mode-2 .screen #nextCard.pv150-next-card .pv150-next-frame{border:0!important;border-radius:0!important}
body.app-body.pv149-mode-4 .screen #nextCard.pv150-next-card .pv150-next-photo{padding:9px 14px 5px!important}
body.app-body.pv149-mode-4 .screen #nextCard.pv150-next-card .pv150-next-frame{border:0!important;border-radius:9px!important}
body.app-body.pv149-mode-7 .screen #nextCard.pv150-next-card .pv150-next-photo{padding:15px 21px 5px!important}
body.app-body.pv149-mode-7 .screen #nextCard.pv150-next-card .pv150-next-frame{border:5px solid #fff6e8!important}
body.app-body.pv149-mode-7 .screen #nextCard.pv150-next-card{--pv149-photo:var(--pv151-next-photo,none);background-image:linear-gradient(rgba(10,12,16,var(--pv149-dim,.45)),rgba(10,12,16,var(--pv149-dim,.45))),var(--pv151-next-photo,none)!important;background-size:cover!important;background-position:center!important}
/* On mobile no gutters, no rounded card corners, and absolutely no gap below the logo bar. */
@media(max-width:699px){
 body.app-body .screen{max-width:100%!important;margin:0!important}
 body.app-body .screen #card.swipe-card{width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important}
 body.app-body.pv149-ready .screen #card.swipe-card.pv149-card{width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important}
 body.app-body.pv149-ready .screen #nextCard.next-card.pv150-next-card{width:100%!important;max-width:100%!important;left:0!important;right:0!important;transform:scale(.985)!important;border-radius:0!important}
 body.app-body.pv149-ready .screen #card.pv149-card .pv149-photo-stage{padding-top:clamp(5px,1.4vh,15px)!important}
 body.app-body.pv149-ready .screen #card.pv149-card .pv149-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
}
@media(max-height:620px){
 body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-meta{padding:6px 11px!important;gap:2px!important}
 body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-surprise-row{height:32px!important}
 body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control>span{width:36px!important;height:36px!important}
}
/* Admin: preview the REAL global theme in its own iframe. */
.pv151-global-theme-settings .pv151-theme-form{display:grid;grid-template-columns:minmax(160px,1.7fr) repeat(2,minmax(130px,1fr)) auto;gap:11px;align-items:end}
.pv151-global-theme-settings .pv151-theme-form label{min-width:0;font-size:12px;font-weight:750}
.pv151-global-theme-settings .pv151-theme-form input,.pv151-global-theme-settings .pv151-theme-form select{margin:6px 0 0}
.pv151-global-theme-settings .pv151-theme-form button{margin-bottom:0;min-height:42px}
.pv151-live-preview{width:min(100%,410px);aspect-ratio:9/17.8;max-height:745px;border:7px solid #25262a;border-radius:22px;overflow:hidden;margin:14px auto;box-shadow:0 12px 30px #0003;background:#161616}
.pv151-live-preview iframe{width:100%;height:100%;border:0;display:block;pointer-events:none}
.pv151-parameters-preview{margin-top:16px}.pv151-parameters-preview>summary{cursor:pointer;font-weight:850;padding:10px 0}
@media(max-width:850px){.pv151-global-theme-settings .pv151-theme-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pv151-global-theme-settings .pv151-theme-form label:first-of-type{grid-column:1/-1}}

/* Last-load corrections: eliminate legacy 150 minimums that can distort the rear card. */
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-meta{
 min-height:0!important;max-height:none!important;box-sizing:border-box!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv150-next-actions{
 max-height:none!important;box-sizing:border-box!important;
}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control[hidden],
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control small[hidden],
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-surprise-row[hidden]{display:none!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-control>span svg{width:19px!important;height:19px!important}
body.app-body.pv149-ready .screen #nextCard.pv150-next-card .pv151-next-hint::before{content:'\2315';margin-right:4px}
/* Ensure the top toolbar stays above the fully expanded main card. */
body.app-body .top.app-top{z-index:100!important}
