/* 4LIFEE v15 — "Night Shift": one system for every page. Navy ground, white type, one yellow signal. Square-ish, hairline, quiet. */
:root,:root[data-theme],body,.x,.x-athlete,.x-coach{--n0:#070D26;--n1:#0A1230;--n2:#141E4A;--n3:#1B2658;--yl:#FFC20E;--yl2:#FFD65C;--wh:#F2F5FF;--ms:#AEB9DD;--hl:rgba(242,245,255,.14);--rd:4px;
 --o1:#FFC20E;--inv-bg:#141E4A;--ac-d:#FFD65C}
html,body{background:#0A1230!important;color:var(--wh)}
body{font-feature-settings:"ss01";letter-spacing:0}
h1,h2,h3{font-weight:700;letter-spacing:-.01em;line-height:1.25;text-wrap:balance}
h1{font-size:clamp(30px,5vw,52px)}h2{font-size:clamp(22px,3vw,32px)}
::selection{background:#FFC20E;color:#0A1230}
:focus-visible{outline:2px solid #FFC20E!important;outline-offset:3px}
/* controls */
.btn,.qb,.b-btn{border-radius:var(--rd)!important;font-weight:700;transition:transform .25s cubic-bezier(.2,.8,.2,1),background .2s,color .2s,box-shadow .25s}
.btn:not(.line):not(.ghost),.qb.solid,.b-btn.solid{background:#FFC20E!important;color:#0A1230!important;border-color:#FFC20E!important}
.btn.line,.qb:not(.solid){background:transparent!important;color:var(--wh)!important;border:1px solid rgba(242,245,255,.35)!important}
.btn:hover,.qb:hover{transform:translateY(-2px)}.btn.line:hover,.qb:not(.solid):hover{border-color:#FFC20E!important;color:#FFC20E!important}
.btn:active,.qb:active{transform:none}
input,select,textarea{background:#0D1638!important;color:var(--wh)!important;border:1px solid rgba(242,245,255,.22)!important;border-radius:var(--rd)!important;min-height:48px;padding-inline:14px;font:inherit;transition:border-color .2s,box-shadow .2s}
textarea{padding-block:12px}input:focus,select:focus,textarea:focus{border-color:#FFC20E!important;box-shadow:0 0 0 3px rgba(255,194,14,.2)!important;outline:none!important}
input::placeholder{color:rgba(174,185,221,.6)}
label.fld,.fld{display:grid;gap:6px;margin-bottom:16px}.fld>span{font-size:13px;font-weight:600;color:var(--ms)}
.form{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
fieldset{border:0;padding:0;margin:0}
/* cards */
.card,.qd-c,.qd-k,.mc,.xempty{background:#141E4A!important;border:1px solid var(--hl)!important;border-radius:var(--rd)!important;box-shadow:none!important}
.card-h h2,.qd-c h2{font-size:17px}
/* sidebar + app shell */
.xs{background:#070D26!important;border-inline-end:1px solid var(--hl)!important;border-radius:0!important}
.xs nav a{border-radius:var(--rd)!important;color:var(--ms);position:relative}
.xs nav a:hover{color:#fff;background:rgba(242,245,255,.06)}
.xs nav a.on{background:transparent!important;color:#FFC20E!important;box-shadow:inset 3px 0 0 #FFC20E}
.xs-h{background:#141E4A!important;border:1px solid var(--hl)!important;border-radius:var(--rd)!important}
.xs-h .role{color:#FFC20E}
.xm{background:transparent!important}
.xcrumb{font-size:12px;color:var(--ms)}
.ic-scan{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3Cpath d='M7 18c.8-3 2.6-4 5-4s4.2 1 5 4'/%3E%3C/svg%3E")}
.ic-scan{-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;background:currentColor;display:inline-block;width:20px;height:20px}
/* today hero (was bright blue) */
.xhero,.x-hero,.today,.qa-hero,[class*="hero-card"],.xt-hero{background:linear-gradient(135deg,#1B2658,#0D1638)!important;border:1px solid rgba(255,194,14,.45)!important;border-radius:var(--rd)!important;position:relative;overflow:hidden}
.xhero::before,.x-hero::before,.today::before{content:"";position:absolute;inset-inline-end:-40px;top:-40px;width:180px;height:180px;border:1px solid rgba(255,194,14,.25);border-radius:50%}
.tag{border-radius:2px!important}
/* auth */
.auth,.auth-card{background:#141E4A!important;border:1px solid var(--hl)!important;border-radius:var(--rd)!important;padding:clamp(22px,4vw,40px)!important;position:relative;box-shadow:0 30px 80px -40px rgba(0,0,0,.8)!important}
.auth::before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:3px;background:#FFC20E}
.auth h1{font-size:clamp(26px,4vw,36px);margin-bottom:8px}
.auth .sw{margin-top:18px;font-size:14px;color:var(--ms)}.auth .sw a{color:#FFC20E}
.auth2{display:grid;grid-template-columns:1.05fr .95fr;gap:0;border-radius:var(--rd)!important;overflow:hidden;border:1px solid var(--hl);box-shadow:none!important;min-height:min(640px,76vh)}
.auth2 .lv{background:linear-gradient(160deg,#1B2658,#070D26)!important;color:#fff;position:relative}
.auth2 .lv::after{content:"";position:absolute;inset-inline-start:-20%;bottom:-30%;width:70%;aspect-ratio:1;border:1px solid rgba(255,194,14,.35);border-radius:50%;box-shadow:0 0 0 40px rgba(255,194,14,.04),0 0 0 90px rgba(255,194,14,.03)}
@media(max-width:800px){.auth2{grid-template-columns:1fr}}
/* onboarding stepper */
.ob{max-width:640px;margin:0 auto}.ob-top{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.ob-bar{flex:1;height:3px;background:rgba(242,245,255,.14);border-radius:2px;overflow:hidden}.ob-bar b{display:block;height:100%;width:0;background:#FFC20E;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.ob-n{font-size:12px;color:var(--ms);min-width:44px;text-align:end}
.ob-st{display:none}.ob-st.on{display:block;animation:obin .5s cubic-bezier(.2,.8,.2,1)}@keyframes obin{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.ob-q{font-size:clamp(22px,4vw,30px);margin:6px 0 20px}.ob-nav{display:flex;gap:10px;margin-top:22px;justify-content:space-between}
.ob-nav .skip{background:none;border:0;color:var(--ms);cursor:pointer;text-decoration:underline;font:inherit}
.ob-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.ob-o{position:relative}.ob-o input{position:absolute;opacity:0;inset:0;min-height:0!important;cursor:pointer}
.ob-o span{display:block;padding:14px;border:1px solid rgba(242,245,255,.22);border-radius:var(--rd);text-align:center;transition:.2s}
.ob-o input:checked+span{border-color:#FFC20E;background:rgba(255,194,14,.12);color:#FFC20E;font-weight:700}.ob-o input:focus-visible+span{outline:2px solid #FFC20E;outline-offset:2px}
/* footer / header unify */
.q-foot,.foot{background:#070D26!important;border-top:1px solid var(--hl)!important}
.hdr,.q-top,header.top,.site-h{background:rgba(10,18,48,.92)!important;backdrop-filter:blur(10px)}
.hdr .btn,header .btn{min-height:40px}
/* motion: one orchestrated entrance, nothing else */
main>*:first-child,.xm>*:nth-child(2){animation:v15in .7s cubic-bezier(.2,.8,.2,1) both}@keyframes v15in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:700px){.xs{border-inline-end:0!important;border-top:1px solid var(--hl)!important}}
/* specificity pass: remove every remaining blue */
body .x .xs .xs-h,body .x-athlete .xs-h,body .x-coach .xs-h{background:#141E4A!important;color:#fff!important;border:1px solid rgba(242,245,255,.14)!important}
body .x .xs nav a.on,body .x-athlete .xs nav a.on,body .x-coach .xs nav a.on{background:rgba(255,194,14,.08)!important;color:#FFC20E!important;box-shadow:inset 3px 0 0 #FFC20E!important}
body .x .xs nav a.on i{background:#FFC20E!important}
body .qd-today{background:linear-gradient(135deg,#1B2658,#0D1638)!important;border:1px solid rgba(255,194,14,.45)!important;border-radius:4px!important;position:relative;overflow:hidden}
body .qd-today::after{content:"";position:absolute;inset-inline-end:-50px;top:-50px;width:200px;height:200px;border:1px solid rgba(255,194,14,.25);border-radius:50%;pointer-events:none}
body .ai-hi,body .ai-fab,body button.ai-fab{background:#FFC20E!important;color:#0A1230!important}
body .ai-fab{border-radius:4px!important}
body select,body .fld select{border-radius:4px!important;background-image:none!important;padding-inline:14px}
body .auth2 h1,body .auth2 .lv h2,body .auth h1{font-weight:700!important;color:#fff!important}
body .auth2 .lv h2,body .lv h1{font-size:clamp(30px,4vw,48px)}
body .auth2 .rv,body .auth2>div:last-child{padding:clamp(22px,4vw,48px);background:#141E4A}
body .auth2 .lv{padding:clamp(24px,4vw,56px)}
body .auth2 .lv h2,body .auth2 .lv h1{color:#fff!important}
/* auth: split screen */
body .au{display:grid;grid-template-columns:1.05fr .95fr;min-height:calc(100vh - 140px);max-width:1180px;margin:24px auto;border:1px solid rgba(242,245,255,.14);border-radius:4px;overflow:hidden;background:#141E4A}
body .au-v{position:relative;background:linear-gradient(165deg,#1B2658,#070D26);overflow:hidden;display:flex;align-items:flex-end}
body .au-v picture,body .au-v img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.28;mix-blend-mode:luminosity}
body .au-v::after{content:"";position:absolute;inset-inline-start:-15%;top:-20%;width:65%;aspect-ratio:1;border:1px solid rgba(255,194,14,.4);border-radius:50%;box-shadow:0 0 0 36px rgba(255,194,14,.05),0 0 0 80px rgba(255,194,14,.03)}
body .au-v-in{position:relative;z-index:1;padding:clamp(24px,4vw,56px)}
body .au-h{font-size:clamp(30px,4vw,50px)!important;font-weight:700!important;color:#fff!important;line-height:1.3;margin:0 0 14px}
body .au-s{color:#D6DDF5!important;font-size:17px;line-height:1.9}
body .au-steps li{border-color:rgba(242,245,255,.14)!important}body .au-steps i{border-color:#FFC20E!important;color:#FFC20E}
body .au-f{display:grid;align-items:center;padding:clamp(22px,4vw,56px);position:relative}
body .au-f::before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:3px;background:#FFC20E}
body .au-in{width:100%;max-width:440px;margin:0 auto}
@media(max-width:900px){body .au{grid-template-columns:1fr;margin:0;border:0;min-height:0}body .au-v{display:none}}
html body .x.x.x .xs.xs nav a.on,html body .x.x.x .xs nav a.on[data-k]{background:rgba(255,194,14,.1)!important;color:#FFC20E!important;box-shadow:inset 3px 0 0 #FFC20E!important;border-color:transparent!important}
html body .x.x.x .xs nav a.on i{background:#FFC20E!important;color:#FFC20E!important}
html body .qd-today .btn.line,html body .qd-today a.line,html body .btn.line{background:transparent!important;color:#F2F5FF!important;border:1px solid rgba(242,245,255,.4)!important}
html body .qd-today .btn.line:hover{border-color:#FFC20E!important;color:#FFC20E!important}
body .au-v{align-self:stretch;height:auto;min-height:100%}body .au{align-items:stretch}
body .au{min-height:0!important;display:grid!important}body .au>aside.au-v{align-self:stretch!important;height:auto!important;min-height:520px}
body .au-f{align-self:stretch}
body .au::before,body .au::after{content:none!important;display:none!important}body .au>aside.au-v{grid-row:1}body .au>.au-f{grid-row:1}
body .au>aside.au-v{top:0!important;inset-block-start:0!important;inset-inline-start:auto}
.xs .ic-subscription{width:20px;height:20px;display:inline-block;-webkit-mask-size:contain!important;mask-size:contain!important;-webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;-webkit-mask-position:center!important;mask-position:center!important;border:0!important}
html body .x .xs .xs-h .role{color:#FFC20E!important;font-size:12px}
html body .qd-k.b,html body .qd-k:last-child.b{background:linear-gradient(135deg,#1B2658,#0D1638)!important;border:1px solid rgba(255,194,14,.45)!important}
header.top{background:rgba(10,18,48,.92)!important;border-bottom:1px solid rgba(242,245,255,.14)!important}
select{height:48px}select[multiple],select[size]{height:auto}
.qd-kpis,.qd-k{border-radius:4px!important}
html body select,html body .fld select,html body .auth select{border-radius:4px!important}
html body header.top,html body.is-app header.top,html body header.top.top-app{background:#0A1230!important;border-bottom:1px solid rgba(242,245,255,.14)!important}
.ob-n{direction:ltr}
html body .xs nav a i.ic-subscription{background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E") center/contain no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E") center/contain no-repeat!important}

/* v15.0.2 — coach pages pass */
html body input[type=file]{padding:8px!important;color:rgba(242,245,255,.7)}
html body input[type=file]::file-selector-button{background:#FFC400;color:#0A1230;border:0;border-radius:4px;padding:8px 14px;margin-inline-end:12px;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:640px){
 html body .card.tw:has(table.tbl.dir){overflow:visible;background:none;border:0;padding:0}
 html body table.tbl.dir,html body table.tbl.dir tbody{display:block}
 html body table.tbl.dir thead{display:none}
 html body table.tbl.dir tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:14px;margin-bottom:10px;background:#0E1740;border:1px solid rgba(242,245,255,.14);border-radius:4px}
 html body table.tbl.dir td{display:block;padding:0!important;border:0!important;font-size:13px;text-align:start}
 html body table.tbl.dir td:first-child{grid-column:1/-1}
}
