/* BeFit Performance: presentation only. Keep existing DOM, IDs and role logic. */
:root{color-scheme:dark;--bf-bg:#11170e;--bf-surface:#1e2918;--bf-edge:#425535;--bf-text:#edf3e5;--bf-muted:#a6b797;--bf-lime:#c6e96b}
body{background:radial-gradient(ellipse at top right,#34472a33,transparent 55%),var(--bf-bg)!important;color:var(--bf-text)!important;font-family:Arial,Helvetica,sans-serif!important;padding:24px!important;display:block!important;line-height:1.5}
body>.box{max-width:1280px!important;margin:0 auto;background:linear-gradient(150deg,#202b19,#131c0f)!important;border:1px solid #50653d66;border-radius:16px!important;padding:32px!important;box-shadow:0 25px 70px #0005,inset 0 1px 0 #daf4b514;overflow:visible!important}
.box>h1{font-size:0!important;height:104px;margin:0 0 15px!important;background:url('logo.png') left center/200px auto no-repeat;border-bottom:1px solid #71835433}
.box>h1:after{content:'MADE FOR YOU';float:right;font-size:10px;letter-spacing:3px;color:var(--bf-muted);padding-top:44px}
p,small,label{color:var(--bf-muted)}h1,h2,h3,h4,strong,legend{color:var(--bf-text)}h2{font-size:25px!important;letter-spacing:-.6px}h3{font-size:21px!important;letter-spacing:-.3px}a{color:#c5de9f!important;text-underline-offset:4px}a:hover{color:#e3fac4!important}
input,select,textarea{font:inherit!important;color:var(--bf-text)!important;background:#121d0e!important;border:1px solid #566a426e!important;border-radius:10px!important;min-height:46px;padding:12px!important;box-shadow:inset 0 2px 5px #0002;max-width:100%}
select{width:100%;cursor:pointer;padding-right:32px!important}option{background:#202d17;color:#eef4e6}textarea{line-height:1.7}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #c6e96b;outline-offset:3px;border-color:#c6e96b!important}
input[type=checkbox],input[type=radio]{accent-color:#c6e96b;width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;flex-shrink:0}input[readonly],input:disabled,select:disabled{background:#26311f!important;color:#b3bfa6!important;opacity:.75}
button{font:600 14px Arial,Helvetica,sans-serif!important;min-height:46px;border-radius:12px!important;padding:12px 19px!important;color:#25351b!important;background:linear-gradient(180deg,#d0ef86,#b6d959)!important;border:1px solid #e1f8b344!important;box-shadow:0 2px 0 #6b8c2e,0 6px 15px #0002,inset 0 1px 0 #f3ffca66;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;cursor:pointer}
button:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 3px 0 #6b8c2e,0 9px 20px #0003}button:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 #6b8c2e}button:focus-visible{outline:3px solid #efffd0;outline-offset:4px}button:disabled{opacity:.45!important;cursor:not-allowed}
button.secondary,#logout,[data-recovery-back],#forgot-password{background:linear-gradient(180deg,#34442a,#25331d)!important;color:#dbe8ca!important;border:1px solid #71885b66!important;box-shadow:inset 0 1px 0 #d4edb40c,0 4px 12px #0002}
#forgot-password{width:auto!important;font-size:13px!important}#befit-environment-banner{max-width:1280px;margin:0 auto 14px!important;border-radius:8px;background:#423a1c!important;color:#eedca1!important;font-size:12px;border:1px solid #9e863d44}
#account-navigation{gap:8px!important;padding:20px 0!important;border-color:#839b6430!important}#account-navigation button{font-size:13px!important;background:#26351d!important;color:#a6bb92!important;box-shadow:none;border:1px solid #52694044!important;border-radius:9px!important;padding:11px 15px!important}#account-navigation button.selected{background:linear-gradient(180deg,#d0ef86,#b6d959)!important;color:#243519!important;box-shadow:0 3px 10px #0002}
#account-section-title{margin:22px 0 14px!important;font-size:32px!important;text-transform:uppercase;letter-spacing:1px!important}#access-role{background:#34472a!important;color:#cee0ba!important;border:1px solid #708c4d33}#access-message{font-size:12px!important;color:#96ae80!important;padding-bottom:15px;border-bottom:1px solid #71835433}
hr{border:0!important;border-top:1px solid #71835433!important;margin:25px 0!important}.shared-toolbar{gap:14px!important}.shared-toolbar h2{background:none!important;border:0!important;padding-left:0!important}.shared-toolbar label{min-width:170px}.shared-toolbar input,.shared-toolbar select{display:block;width:100%}
.training-card,.food-goal,.food-entry,.agenda-day,.readiness-card,.shared-expense-stats>div,.shared-expense-card,.assessment-card,.privacy-card,.tabata-card,.training-running,.food-feedback,.food-encouragement{background:linear-gradient(145deg,#2b3a22,#192512)!important;color:var(--bf-text)!important;border:1px solid #68834b44!important;border-radius:13px!important;box-shadow:0 13px 30px #0002,inset 0 1px 0 #dbefbc0c}
.training-card{padding:24px!important;margin:22px 0!important}.shared-student{border-color:#71835433!important;padding:20px 0!important}.shared-student>div{background:linear-gradient(140deg,#2e4122,#1b2b14)!important;color:var(--bf-text)!important;border:1px solid #75994a33;border-radius:12px!important;padding:20px!important;box-shadow:0 10px 22px #0002}.shared-student strong,.shared-student small{color:var(--bf-text)!important}.shared-student small{color:#a2b88e!important;font-size:12px!important}.active-count,.badge,.finance-badge{background:#729a3e1a!important;color:#c7dfac!important;border:1px solid #91af6533;border-radius:8px!important}.active-count{display:inline-block;padding:13px 18px!important}.finance-muted{opacity:.55}
#shared-form form,.membership-report-form,#agenda-editor form,#food-editor form{background:#1b2814!important;border:1px solid #68834b55!important;border-radius:14px!important;padding:25px!important;box-shadow:0 15px 35px #0003}
.training-exercise,.training-history-row,.agenda-card,.shared-expense-card,td,th{border-color:#71835433!important}.training-exercise{padding:22px 0!important}.training-thumb{background-color:white!important;box-shadow:0 12px 25px #0004;border-radius:12px!important;flex-basis:96px!important;width:96px!important;height:96px!important}.training-exercise small,.training-heading span,.training-note,.training-save-hint{color:#a6b797!important}.training-tabs button.chosen{background:#d0e99b!important;color:#233518!important}
.training-chart text{fill:#c6d6b4!important}.training-chart line,.training-chart path{stroke:#738d58}.training-chart svg{background:transparent!important}table{width:100%;border-collapse:collapse}th{color:#a5bb8d!important;background:#28381e!important;font-size:12px!important}td{color:#d6e2c9!important}fieldset{border:1px solid #68834b55!important;border-radius:10px;padding:18px}summary{cursor:pointer;color:#c4dda7}details{color:#b0c39b}progress{accent-color:#c6e96b}
dialog{color:var(--bf-text)!important;background:#1d2b15!important;border:1px solid #809c5b66!important;border-radius:16px!important;box-shadow:0 25px 90px #0008;padding:26px!important;max-width:calc(100vw - 24px)}dialog::backdrop{background:#081103b3;backdrop-filter:blur(5px)}dialog a{color:#d6e9bb!important}
.training-error,[role=alert]{color:#f1aa9b!important}#recovery-status,#status,#shared-message,#training-message{color:#c4d9ad!important}.tabata-clock,.tabata-timer{color:#edf4df!important}
#shared-training:before{content:'MADE FOR YOU / O TEU PRÓXIMO PASSO';display:flex;align-items:flex-end;min-height:180px;padding:28px;margin:20px 0 30px;color:#e5f3cc;font-size:13px;font-weight:700;letter-spacing:2px;border:1px solid #829e5940;border-radius:12px;background:linear-gradient(90deg,#091405e8,#10230955),url('befit-espaco.jpeg') center 48%/cover;box-shadow:0 20px 35px #0003}
.training-card,.shared-student>div,.training-thumb{transition:box-shadow .25s ease}.training-card:hover{box-shadow:0 17px 35px #0003,inset 0 1px 0 #dbefbc16}.training-thumb:hover{box-shadow:0 17px 28px #0005}
@media(max-width:700px){body{padding:10px!important}.box,body>.box{padding:18px!important;border-radius:12px!important}.box>h1{height:85px;background-size:170px auto}.box>h1:after{font-size:8px;padding-top:35px;letter-spacing:1px}.training-card{padding:16px!important}.training-thumb{flex-basis:70px!important;width:70px!important;height:70px!important}#account-navigation{flex-wrap:nowrap!important;overflow-x:auto;position:relative;max-width:100%;padding:14px 0!important}#account-navigation button{white-space:nowrap;flex-shrink:0;min-height:44px!important}#account-section-title{font-size:26px!important}.shared-toolbar label{min-width:140px}.training-table-scroll{overflow-x:auto}#shared-training:before{min-height:140px;padding:20px;font-size:10px}.shared-student>div{padding:16px!important}button{min-height:44px!important}input,select,textarea{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}button:hover,button:active{transform:none!important}}
/* Contrast correction after review of the published admin screen. */
body #panel h2,body #panel h3,body #panel h4,body #panel legend{color:#edf3e5!important}
body #panel p,body #panel label,body #panel small{color:#b4c4a5!important}
body #panel [role="alert"],body #panel .training-error{color:#ffb4a8!important}
body #panel button,body #panel button strong{color:#25351b!important}
body #panel button.secondary,body #panel #account-navigation button{color:#dbe8ca!important}
body #panel #account-navigation button.selected{color:#243519!important}
body:has(#panel:not([hidden])) .box>h1+p{display:none}/* Align finance selector and action buttons by their lower edge. */
#shared-finance .shared-toolbar:has(#finance-student){align-items:flex-end!important}
#shared-finance .shared-toolbar:has(#finance-student)>label{margin:0!important;flex:1 1 220px!important;min-width:180px}
#shared-finance .shared-toolbar:has(#finance-student)>.training-actions{align-items:center!important;margin:0!important;padding:0!important;gap:12px!important}
#shared-finance .shared-toolbar:has(#finance-student) button{margin:0!important;min-height:48px!important}
#shared-finance #finance-student{min-height:48px!important;margin:0!important}
@media(max-width:700px){#shared-finance .shared-toolbar:has(#finance-student)>label{flex-basis:100%!important}#shared-finance .shared-toolbar:has(#finance-student)>.training-actions{width:100%;display:flex;flex-wrap:wrap}#shared-finance .shared-toolbar:has(#finance-student) button{flex:1 1 140px}}