.pe-boot #sidebar,.pe-boot #topbar,.pe-boot #bottom{display:none!important}.pe-boot #app{visibility:hidden}.pe-boot:before{content:'Abrindo seu espaço local…';position:fixed;inset:40% 0 auto;text-align:center;color:#aaa;z-index:99}
html{scroll-padding-top:calc(90px + env(safe-area-inset-top))}body{min-width:0}#app{min-width:0}#topbar{padding-top:calc(18px + env(safe-area-inset-top))}#bottom{padding-bottom:calc(12px + env(safe-area-inset-bottom))}input,select,textarea{font-size:16px!important}button{min-height:44px}button:disabled{opacity:.5;cursor:not-allowed}dialog{max-height:calc(94dvh - env(safe-area-inset-top));overscroll-behavior:contain}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.pe-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.pe-actions>*{min-width:0}.pe-planned{display:block;font-size:10px;color:var(--muted);line-height:1.4}.pe-guide{padding:12px 18px}.pe-guide summary,.pe-instruction summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:600}.pe-instruction{border-bottom:1px solid var(--line)}.pe-instruction p{white-space:pre-line;line-height:1.65;color:var(--muted);margin:8px 0 14px;overflow-wrap:anywhere}.pe-gif{display:block;width:100%;max-height:360px;object-fit:contain;background:#f7f7f7;border-radius:16px;margin:16px 0}.pe-gif-wrap{min-height:100px}.pe-library-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:16px 0}.pe-library-row>div:first-child{flex:1;min-width:0}.pe-library-row .pe-actions{flex-wrap:nowrap;margin:0}.pe-library-row p{margin:6px 0 0}.pe-editor-row{margin:16px 0}.pe-editor-row h3{overflow-wrap:anywhere}.pe-sticky{position:sticky;bottom:-24px;background:var(--card);padding:12px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:2}.pe-chart{width:100%;height:auto;display:block;margin-top:20px;overflow:visible}.pe-chart text{fill:var(--muted);font:11px system-ui}.pe-extra-progress{margin-top:24px}.pe-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-cover{position:relative;overflow:hidden}.profile-cover .dax{z-index:1}.storage-error{color:var(--red)!important}.pe-login{max-width:1080px;margin:20px auto;display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}.pe-login .hero-copy{padding:16px}.pe-entry .hero-copy h1 em{color:var(--red);font-style:normal}.pe-entry .hero-copy img{display:block;max-width:260px;width:80%;height:auto;margin:auto}.pe-entry .auth-card form{margin-top:20px}.pe-entry .auth-card .password-wrap{position:relative}.pe-entry .auth-card .password-wrap input{padding-right:100px}.pe-entry .auth-card .password-toggle{position:absolute;right:4px;top:4px;padding:0 10px;min-height:38px;background:transparent;border:0}.pe-entry [hidden]{display:none!important}.pe-entry .onboarding-shell{margin:20px auto;max-width:760px}.pe-entry fieldset{border-color:var(--line);border-radius:12px;padding:16px;margin:18px 0}.pe-entry .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pe-entry .choice{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:14px;padding:14px;margin:0;background:var(--card);cursor:pointer}.pe-entry .choice input{width:22px;min-width:22px;flex:0 0 22px;accent-color:var(--red)}.pe-entry .choice strong,.pe-entry .choice small{display:block}.pe-entry .choice small{color:var(--muted);margin-top:6px}.pe-entry .date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pe-entry .form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.pe-entry progress{width:100%;accent-color:var(--red)}.pe-entry .field-error{display:block;color:var(--red);font-size:12px;margin-top:8px}.pe-entry .invalid{border-color:var(--red)}.pe-entry .health-question legend{padding:0 5px}.pe-entry .step-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.pe-entry .privacy-note{margin:20px 0;color:var(--muted)}.pe-entry .conditional-detail{margin-top:18px}.pe-entry .plain-fieldset{border:none;padding:0}.pe-entry .plain-fieldset legend{font-weight:700}.pe-entry input[type=checkbox],.pe-entry input[type=radio]{min-height:20px;width:22px}.pe-entry h1{font-size:clamp(28px,5vw,48px)}
@media(max-width:760px){.pe-login{display:block;margin:0}.pe-login .hero-copy{min-height:0!important;padding:0}.pe-login .hero-copy h1{font-size:38px!important;margin:12px 0}.pe-login .hero-copy>p{font-size:14px!important}.pe-login .hero-copy img{max-height:160px!important;width:160px!important;object-fit:contain;margin:0 auto}.pe-entry .auth-card{margin:16px 0}.pe-entry .choice-grid{grid-template-columns:1fr}.pe-entry .health-choice,.pe-entry .choice-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-entry .date-grid{gap:6px}.pe-entry .date-grid select{padding:10px 4px}.pe-library-row{align-items:flex-start;flex-wrap:wrap}.pe-library-row .pe-actions{flex-wrap:wrap}.pe-chart text{font-size:10px}#pe-storage{display:none}#app{padding-bottom:calc(105px + env(safe-area-inset-bottom))}.inline-sets{padding:12px}.inline-set,.rowhead{grid-template-columns:56px minmax(0,1fr) minmax(0,1fr) 44px;gap:7px}.inline-set input{min-width:0;padding:12px 8px}.rowhead span{font-size:10px}.v-subnav{max-width:100%;overflow-x:auto}.pe-sticky{bottom:-20px}.pe-entry .form-actions button{flex:1;padding:12px 10px}.top-right{gap:5px}.profile-ident h1{overflow-wrap:anywhere}}

/* Keep the brand stable and the iOS safe area opaque. */
#topbar{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}
#topbar .brand{gap:14px!important;flex-wrap:nowrap}
#topbar .brand img{flex-shrink:0;display:block;object-fit:contain}
#topbar .brand>div{white-space:nowrap}
@media(max-width:760px){#topbar{height:auto;min-height:calc(76px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 14px 12px;align-items:center}#topbar .mobile-only{flex-shrink:0}}
#modal:has(.demo-ready-actions){text-align:center}
#modal:has(.demo-ready-actions) .modal-head{position:relative;justify-content:center;padding:0 34px;margin-bottom:24px}
#modal:has(.demo-ready-actions) .modal-head h2{text-align:center}
#modal:has(.demo-ready-actions) .close{position:absolute;right:-8px;top:-8px;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none}
#modal:has(.demo-ready-actions)>p{line-height:1.65;margin:0 auto;max-width:440px}
.demo-ready-actions{display:grid;grid-template-columns:1fr;gap:12px;width:100%;max-width:320px;margin:26px auto 0}
.demo-ready-actions button{width:100%;min-height:52px}
.demo-ready-view{display:block;margin:16px auto 0;min-height:44px;text-align:center}
.pe-profile-pet{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--muted);font-size:13px}
.pe-profile-pet .dax{position:static!important;width:56px!important;height:64px!important;object-fit:contain;transform:none!important;margin:0!important}
.lab-ex-summary{text-align:center;line-height:1.6;color:var(--muted);margin:16px 0 12px;font-size:14px}
.pe-instruction>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:14px 16px;border-radius:12px;background:var(--panel2);border:1px solid var(--line);font-size:14px}
.pe-instruction>summary::-webkit-details-marker{display:none}.pe-instruction>summary::after{content:'⌄';color:var(--red);font-size:20px;transition:transform .18s}.pe-instruction[open]>summary::after{transform:rotate(180deg)}
.lab-instruction-body{padding:4px 12px 0}.pe-guide>.pe-instruction{margin-top:16px;padding-bottom:18px;margin-bottom:0}
.v-ex{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.v-ex input,.v-ex textarea{-webkit-user-select:text;user-select:text}
.drag-handle{touch-action:none;cursor:grab}.v-ex.lab-dragging{transform:scale(1.025);box-shadow:0 16px 40px #0006;outline:none!important;opacity:1;pointer-events:none;transition:transform .16s;will-change:top}
.exercise-drop-slot{box-sizing:border-box;border:1px solid #ff393f55;border-radius:16px;background:#ff393f09;margin-bottom:12px}
.exercise-sorting,.exercise-sorting *{cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important}
@media(prefers-reduced-motion:reduce){.v-ex.lab-dragging{transform:none;transition:none}.pe-instruction>summary::after{transition:none}}
.pe-instruction p{white-space:normal;text-align:left;word-break:normal;overflow-wrap:break-word;line-height:1.65;margin:12px 0;font-size:14px}
.pe-instruction{padding-bottom:14px;margin-bottom:14px}
.pe-exercise-done{background:#24845c!important;color:#fff!important;border-color:#24845c!important;white-space:nowrap}
.lab-method{margin:18px 0;padding-top:16px;border-top:1px solid var(--line)}
.lab-method-launch{padding:0 15px 18px}.lab-method-launch button{white-space:nowrap}
.lab-rest{align-items:center}.lab-rest-actions{display:flex;flex-direction:column;gap:8px}.lab-rest-actions button{white-space:nowrap}
.lab-rest small{display:block;font-variant-numeric:tabular-nums;color:var(--muted);margin-top:6px}
dyxac-clock{--dyxac-primary:var(--red);width:100%;min-width:0}
.heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 24px}
.heading>div{min-width:0}.heading>button{align-self:start;white-space:nowrap;margin-top:0;max-width:100%}
.profile-top{gap:16px;align-items:flex-end}.profile-ident{margin-top:20px}.profile-bio{line-height:1.65;margin:18px 0}
.profile-numbers{display:flex;flex-wrap:wrap;gap:20px;margin-top:24px}.profile-numbers>*{min-width:0}
@media(max-width:850px){
 .heading{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:24px}.heading>button{justify-self:start;width:auto;min-height:42px;padding:10px 16px}
 .heading p{margin-top:10px}.heading h1{margin-top:8px}.profile-body{padding:0 18px 24px}
 #bottom .center-tab svg{flex-shrink:0}.lab-coach #bottom .center-tab svg{background:#f4f4f5;color:var(--red);box-shadow:none}.lab-coach.light #bottom .center-tab svg{background:#202024;color:var(--red)}
 .exercise-actions{gap:12px;flex-wrap:wrap}.exercise-actions button{white-space:nowrap}.lab-rest{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.lab-rest-actions .secondary{font-size:11px;padding:8px}
 .profile-numbers{justify-content:space-between;gap:12px}.profile-numbers>*{flex:1;text-align:center}
}

/* Collection always fits its dialog: two equal, shrinkable columns. */
.medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0}
.medal-grid>*{min-width:0;overflow-wrap:anywhere}.medal{padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:8px}
.medal h3{line-height:1.4}.medal p{margin:0;line-height:1.5}.medal .chip{margin-top:auto;max-width:100%;white-space:normal;justify-content:center}.medal .medal-symbol{flex-shrink:0;margin-bottom:4px}
#modal .modal-head .close{border:0;border-radius:10px;background:transparent;flex-shrink:0;width:40px;height:40px;padding:0}
#modal .modal-head .close:focus:not(:focus-visible){outline:none}
.inline-set,.rowhead{grid-template-columns:30px minmax(0,1fr) minmax(0,1fr) 44px;gap:8px}
.inline-set input{min-width:0}.pe-guide{padding:0 15px 16px}.pe-guide .pe-gif{margin-top:0}
.pe-exercise-done{font-size:12px;padding:10px 12px;min-height:44px}.exercise-actions{gap:12px;flex-wrap:wrap}.exercise-actions>.textbtn{font-size:12px}
@supports(-webkit-touch-callout:none){#topbar{position:relative;z-index:6;transform:translateZ(0);backface-visibility:hidden}#bottom{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--bg)}dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}

.pe-plan-view{text-align:left;--panel:var(--card,#19191c);--panel2:var(--input,#202023);--gold:#efc06c}
.pe-plan-view .plan-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.pe-plan-view .card{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:22px;overflow:hidden;min-width:0}
.pe-plan-view .chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);padding:5px 10px;border-radius:7px;font-size:12px;font-weight:600}
.pe-plan-view .chip.red{color:#ff787d;background:#ff393f12;border-color:#ff393f30}.pe-plan-view .chip.gold{color:var(--gold);border-color:#efc06c40}
.pe-plan-view h2{font-size:21px;letter-spacing:-.5px;line-height:1.4}.pe-plan-view .plan.pro{border-color:var(--red)}
.pe-plan-view .price{font-size:37px;font-weight:700;margin:12px 0}.pe-plan-view .price small{font-size:14px;font-weight:400}
.pe-plan-view .feature{display:flex;gap:10px;margin:14px 0;font-size:14px}.pe-plan-view .yes{color:var(--green)}.pe-plan-view .no{color:#777}
.pe-plan-view .tier{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.pe-plan-view .tier.active{border-color:var(--gold);background:#efc06c09}
.pe-plan-view .tier>div{min-width:0}.pe-plan-view .tier b{font-size:18px}.pe-plan-view .tier p{margin:0}.pe-plan-view .price-compact{font-size:25px;font-weight:700}
.pe-plan-view .secondary{background:var(--panel2);border:1px solid var(--line)}.pe-plan-view .primary,.pe-plan-view .secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border-radius:10px;font-weight:600;min-height:48px}.pe-plan-view .wide{width:100%}
.pe-plan-view .demo-note{font-size:12px;line-height:1.6;margin-top:18px;color:var(--muted)}.pe-plan-view select{width:100%;min-width:0;margin:8px 0}.pe-plan-view .small,.pe-plan-view small{font-size:13px;color:var(--muted)}
@media(max-width:850px){.pe-plan-view .plan-grid{grid-template-columns:minmax(0,1fr);gap:15px}.pe-plan-view .card{padding:19px;border-radius:14px}.pe-plan-view .tier{padding:14px}.pe-plan-view .tier .secondary{padding:12px 16px;font-size:14px}}
