/* ADAPTUM visual language: local refinement layer based on the approved mockup. */
:root{--bg:#050707;--panel:#101414;--panel-2:#151a19;--line:#303634;--gold:#d99d24;--gold-2:#f4bc43;--ink:#f6f4ed;--muted:#aeb5af}
body{background:radial-gradient(ellipse 50% 32% at 50% -4%,#3a2a0e66,transparent 72%),radial-gradient(ellipse 40% 30% at 100% 38%,#1d241d66,transparent 70%),var(--bg)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.18;background:repeating-linear-gradient(135deg,transparent 0 46px,#d99d2412 47px 48px,transparent 49px 96px)}
.shell{position:relative;max-width:760px;padding-top:18px}.top{margin-bottom:20px;padding:0 2px}.brand{font-size:1.08rem;letter-spacing:.18em}.brand img{filter:drop-shadow(0 0 9px #e8af3277)}.top-right .eyebrow{display:none}
.title{letter-spacing:-.035em}.subtitle{font-size:.98rem}.eyebrow{color:var(--gold-2);letter-spacing:.16em}.card{background:linear-gradient(145deg,#151a19 0%,#0c0f0f 100%);border-color:#313734;box-shadow:0 13px 33px #0008}.card:hover{border-color:#57431a}
.hero{position:relative;overflow:hidden;min-height:204px;padding:23px;background:linear-gradient(115deg,#16160e,#111615 56%,#29200c);border-color:#75591d}.hero:after{content:"";position:absolute;right:-38px;bottom:-50px;width:180px;height:230px;border:1px solid #e8af3255;border-radius:48% 45% 40% 48%;transform:rotate(23deg);box-shadow:inset 0 0 35px #e8af321a}.hero>*{position:relative;z-index:1}.hero h2{font-size:clamp(1.55rem,7vw,2.2rem);margin:9px 0 5px}.hero .button{margin-top:22px;min-width:175px}
.button{letter-spacing:.015em;transition:transform .16s ease,filter .16s ease}.button:active{transform:scale(.98)}.button.primary{background:linear-gradient(135deg,#f8cd63,#c98a15);box-shadow:0 8px 18px #0007}.button.secondary{background:#202625}.button.ghost{border-color:#9b7426}.choice{position:relative;min-height:132px;padding:18px;background:linear-gradient(145deg,#1a201e,#111514);border-color:#343d39}.choice:after{content:"›";position:absolute;right:16px;bottom:13px;color:var(--gold-2);font-size:1.8rem;line-height:1}.choice strong{font-size:1.15rem;margin-top:8px}.choice small{padding-right:22px}.choice .order{font-size:.64rem}
.stat{min-width:0;background:#0c0f0f;border-color:#29302e}.stat b{min-width:0;font-size:1.14rem;overflow-wrap:anywhere;word-break:break-word}.grid.three{gap:8px}.grid.three .stat{min-width:0;padding:11px 8px}.grid.three .stat small{font-size:.65rem;overflow-wrap:anywhere}.tabs{max-width:760px;background:#0d1110f5;border-color:#40371e;box-shadow:0 -12px 30px #0008}.tab{position:relative;padding:5px 2px;color:#9da49e}.tab span{font-size:1.28rem}.tab.active{color:var(--gold-2)}.tab.active:before{content:"";position:absolute;top:-8px;left:30%;right:30%;height:2px;border-radius:2px;background:var(--gold-2);box-shadow:0 0 10px var(--gold)}
.workout-layout .card{border-radius:16px}.session-status{font-size:.65rem}.exercise-top h3{font-size:1.14rem;margin:7px 0}.status-buttons{margin-top:15px}.status{background:#171c1b}.set-head{letter-spacing:.04em}.set-row input{min-height:42px;background:#090c0c}.workout-actions{background:linear-gradient(145deg,#19180e,#111514)}.history-row{background:linear-gradient(145deg,#171c1b,#101313)!important}.history-row:focus-visible{outline:2px solid var(--gold-2);outline-offset:2px}.history-row h3{font-size:1.05rem}.history-row .pill{background:#3b2d0c;border-color:#80611f}.history-row .row>span:last-child{min-width:24px;text-align:center}.evolution-chart{border-color:#57431a;background:linear-gradient(145deg,#141814,#0d1010)}
@media(min-width:760px){.shell{padding-top:26px}.hero{min-height:218px}.tabs{width:min(700px,calc(100% - 40px))}}@media(max-width:410px){.hero{min-height:188px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.three .stat{padding:10px 5px}.grid.three .stat b{font-size:clamp(.77rem,4vw,1rem);line-height:1.1}.grid.three .stat small{font-size:.56rem;line-height:1.15}}

/* Entry/loading and profile receive their own hierarchy instead of generic cards. */
.adaptum-splash{position:fixed;z-index:99;inset:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 60% 42%,#2c210c55,transparent 28%),#050707;transition:opacity .34s ease,visibility .34s ease}.adaptum-splash-frame{position:absolute;inset:13px;border:1px solid #b8872d;border-radius:13px;box-shadow:inset 0 0 60px #d99d2408}.adaptum-splash:before,.adaptum-splash:after{content:"";position:absolute;border:1px solid #d99d2452;transform:rotate(-36deg)}.adaptum-splash:before{width:120vw;height:22vh;top:8%;left:-27%}.adaptum-splash:after{width:120vw;height:22vh;bottom:8%;right:-31%}.adaptum-splash-lines{position:absolute;inset:0;background:repeating-linear-gradient(130deg,transparent 0 67px,#e8af3210 68px 69px,transparent 70px 138px)}.adaptum-splash-core{position:relative;z-index:1;display:grid;justify-items:center;gap:13px;text-align:center;transform:translateY(-2vh)}.adaptum-splash-core img{width:114px;height:114px;filter:drop-shadow(0 0 28px #e8af3290)}.adaptum-splash-core strong{font-size:2.05rem;letter-spacing:.29em;margin-left:.29em;color:#f8f2e4}.adaptum-splash-core span{font-size:.65rem;font-weight:800;letter-spacing:.24em;color:#dcb24a}.adaptum-splash-core i{width:36px;height:36px;margin-top:25px;border:2px solid #4b401f;border-top-color:var(--gold-2);border-radius:50%;animation:adaptum-spin 1s linear infinite}.adaptum-splash-core small{font-size:.62rem;letter-spacing:.18em;color:#dcb24a}.adaptum-splash.is-leaving{opacity:0;visibility:hidden}@keyframes adaptum-spin{to{transform:rotate(360deg)}}
#app[data-view="login"] .login{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding-top:6vh;background:radial-gradient(ellipse 70% 30% at 50% 15%,#2c210d55,transparent 65%)}#app[data-view="login"] .login .brand{justify-content:center;font-size:1.3rem}#app[data-view="login"] .login .eyebrow{text-align:center;margin-top:12px}#app[data-view="login"] .login .title{text-align:center;font-size:clamp(2.15rem,10vw,2.8rem)}#app[data-view="login"] .login .subtitle{text-align:center;max-width:330px;margin:0 auto 10px}#app[data-view="login"] .login .card{margin-top:26px;border-color:#51411c;padding:20px;background:linear-gradient(145deg,#151914,#0e1110)}
#app[data-view="profile"] .title:after{content:"Datos, objetivos y privacidad";display:block;margin-top:8px;color:var(--muted);font-size:.92rem;line-height:1.4;font-weight:450;letter-spacing:0}#app[data-view="profile"] .card{position:relative;overflow:hidden}#app[data-view="profile"] .card:first-of-type:before{content:"A";position:absolute;right:18px;top:10px;width:55px;height:55px;display:grid;place-items:center;border:1px solid #80611f;border-radius:50%;color:var(--gold-2);font-weight:800;font-size:1.45rem;background:#19160d}#app[data-view="profile"] .card:first-of-type .field:first-child{padding-right:72px}#app[data-view="profile"] .card h3{font-size:1.1rem}#app[data-view="profile"] .button.danger{background:#2d1515;border:1px solid #7b3434}

/* Focused workout: visual hierarchy mirrors the approved training screen. */
#app[data-subview="workout"] .title{font-size:clamp(1.8rem,8vw,2.35rem)}#app[data-subview="workout"] .focus-control{position:relative;z-index:3;margin:14px 0;padding:13px;background:linear-gradient(145deg,#17170f,#101313);border-color:#71571d;box-shadow:0 10px 25px #0007}#app[data-subview="workout"] .focus-progress{justify-content:center}#app[data-subview="workout"] .focus-progress>span{display:none}#app[data-subview="workout"] .focus-progress>div{gap:12px;justify-content:center}#app[data-subview="workout"] .focus-progress button{width:29px;height:29px;background:#111514;border-color:#303735;color:#969e97}#app[data-subview="workout"] .focus-progress button.active{background:linear-gradient(145deg,#f7c95b,#c98715);color:#1d1608;border-color:#f8d171;box-shadow:0 0 11px #e8af3266}#app[data-subview="workout"] .focus-move .button{min-height:45px;background:#171c1b}#app[data-subview="workout"] .focus-move .button:last-child{background:#2a210e;border-color:#916b1e;color:#ffe1a0}
#app[data-subview="workout"] .exercise-top{display:block;text-align:center;padding:2px 4px 12px;border-bottom:1px solid var(--line)}#app[data-subview="workout"] .exercise-top .session-status{display:block;margin-bottom:7px;color:#cf9e36}#app[data-subview="workout"] .exercise-top h3{font-size:clamp(1.25rem,6vw,1.6rem);line-height:1.14;margin:0 30px 7px}#app[data-subview="workout"] .exercise-top .muted{font-size:.82rem}#app[data-subview="workout"] .exercise-top .pill{position:absolute;right:18px;top:20px;background:transparent;border-color:#5b5136;color:#dfc878}
#app[data-subview="workout"] .set-head{margin-top:17px!important;padding:9px 5px 5px;border-radius:10px 10px 0 0;background:#121615}#app[data-subview="workout"] .set-row{gap:9px;padding:6px 5px;background:#0c0f0f;border-bottom:1px solid #202624}#app[data-subview="workout"] .set-row input{font-size:1.02rem;font-weight:800;border-color:#2d3532;background:#131817}#app[data-subview="workout"] .set-row:has(input:focus){background:#19170e}#app[data-subview="workout"] .set-num{display:grid;place-items:center;width:28px;height:28px;margin:auto;border-radius:50%;background:#211c10;color:var(--gold-2)}#app[data-subview="workout"] .set-complete{margin:5px 0 9px;border-color:#776022;color:#ddc78e;background:#17160f}#app[data-subview="workout"] .set-complete.done{background:#163620;border-color:#4c9864;color:#c6f0d1}#app[data-subview="workout"] .exercise-rest{border-color:#3e4a45;background:#151a19;color:#e9eee9}#app[data-subview="workout"] .workout-actions{margin-top:15px;border-color:#73591d}#app[data-subview="workout"] .workout-actions h3:before{content:"✓";display:inline-grid;place-items:center;width:25px;height:25px;margin-right:8px;border-radius:50%;background:#d99d24;color:#161106;font-size:.9rem}
