/* GRVM — stil „instrument”: fundal negru spre petrol, carduri de sticlă, cifre dot‑matrix, accent galben pal */
@font-face{font-family:"Doto"; src:url("../fonts/doto-latin-700-normal.woff2") format("woff2"); font-weight:700; font-display:swap}
@font-face{font-family:"Doto"; src:url("../fonts/doto-latin-900-normal.woff2") format("woff2"); font-weight:900; font-display:swap}
@font-face{font-family:"Archivo Black"; src:url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight:400; font-display:swap}
.wordmark{font-family:"Archivo Black", Inter, sans-serif; font-weight:400 !important; letter-spacing:.02em !important; color:var(--accent)}

:root{
  --bg:#030405; --bg-2:#0B1114;
  --glass:rgba(255,255,255,.055); --glass-2:rgba(255,255,255,.09); --glass-hi:rgba(255,255,255,.14);
  --stroke:rgba(255,255,255,.13); --stroke-2:rgba(255,255,255,.22);
  --card:#12181B; --fill:rgba(255,255,255,.08);
  --label:#F4F6F7; --label-2:rgba(228,236,240,.62); --label-3:rgba(228,236,240,.36); --sep:rgba(255,255,255,.09);
  --accent:#F1EDA2; --on-accent:#0B0C08;
  --tint:var(--accent); --on-tint:var(--on-accent);
  --kcal:#F1EDA2; --prot:#A9E4F2; --water:#55BCD6; --carb:#E4D6A8; --fat:#F0A9A2; --fib:#A7E3B6;
  --supp:#A7E3B6; --gym:#C6B7F2; --kg:#F1EDA2; --meal:#F1EDA2; --red:#FF6B61;
  --ring-track:rgba(255,255,255,.1);
  --r:22px;
  --sys:"Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --round:-apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --dot:"Doto", ui-monospace, monospace;
  --blur:blur(22px) saturate(150%);
  color-scheme:dark;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html{background:var(--bg); -webkit-text-size-adjust:100%}
[hidden]{display:none!important}
body{margin:0; background:transparent; color:var(--label); font:16px/1.35 var(--sys); letter-spacing:-.005em; padding-inline:16px; padding-block:calc(env(safe-area-inset-top,0px) + 4px) calc(112px + env(safe-area-inset-bottom,0px)); -webkit-font-smoothing:antialiased; min-height:100vh}
/* fundalul: negru sus, petrol/turcoaz jos, cu o lumină difuză */
body::before{content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(120% 55% at 85% 110%, rgba(84,190,216,.5), transparent 60%),
    radial-gradient(80% 45% at 5% 100%, rgba(38,112,132,.4), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(3,6,8,.4) 35%, rgba(8,24,30,.5) 70%, rgba(20,70,84,.62) 100%),
    url("../img/bg-gym-m.webp") center / cover no-repeat, #000}
@media (min-aspect-ratio:1/1){ body::before{background:
    radial-gradient(90% 60% at 85% 110%, rgba(84,190,216,.45), transparent 60%),
    radial-gradient(60% 45% at 5% 100%, rgba(38,112,132,.38), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(3,6,8,.36) 35%, rgba(8,24,30,.48) 70%, rgba(20,70,84,.6) 100%),
    url("../img/bg-gym.webp") center / cover no-repeat, #000} }
.page{max-width:560px; margin:0 auto; display:flex; flex-direction:column; gap:24px; min-width:0}
.page > *{min-width:0}
button,input,select,textarea{font:inherit; color:inherit; letter-spacing:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:10px}
.rnd{font-family:var(--round); font-variant-numeric:tabular-nums}
.dot{font-family:var(--dot); font-weight:700; letter-spacing:.02em; font-variant-numeric:tabular-nums}
.sec{font-size:13px; color:var(--label-2)}

/* suprafețe de sticlă */
.card,.list,.qa,.stat,.tile,.item,.ex,.addrow,.sbtn,.danger-row,.insight,.iconbtn,.seg,.toast{
  background:var(--glass); border:1px solid var(--stroke); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur)}

.login{position:fixed; inset:0; z-index:80; background:transparent; display:flex; align-items:center; justify-content:center; padding:24px}
.login::before{content:""; position:absolute; inset:0; z-index:-1; background:inherit}
.login form{width:100%; max-width:340px; display:flex; flex-direction:column; gap:14px; text-align:center; background:var(--glass); border:1px solid var(--stroke); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur); border-radius:28px; padding:28px 22px}
.login .logo{width:72px; height:72px; margin:0 auto 6px; border-radius:18px}
.login h1{margin:0; font-size:26px; font-weight:600; letter-spacing:-.02em}
.login input{border:1px solid var(--stroke); background:rgba(0,0,0,.35); border-radius:14px; padding:14px 16px; font-size:17px; width:100%; color:var(--label)}
.login .err{color:var(--red); font-size:15px; min-height:20px; margin:0}

/* titlu mare */
.nav{display:flex; align-items:flex-end; justify-content:space-between; padding-top:14px; gap:12px}
.nav .date{font-size:12px; font-weight:500; color:var(--label-2); text-transform:uppercase; letter-spacing:.08em}
.nav h1{font-size:34px; font-weight:600; letter-spacing:-.03em; margin:4px 0 0; line-height:1.05}
.iconbtn{width:40px; height:40px; border-radius:50%; color:var(--label); display:grid; place-items:center; flex:none}
.iconbtn svg{width:19px; height:19px}
.back{border:0; background:none; color:var(--accent); padding:0; font-size:16px; display:inline-flex; align-items:center; gap:2px}
.syncdot{width:6px; height:6px; border-radius:50%; background:var(--label-3); display:inline-block; margin-left:6px; vertical-align:middle}
.syncdot.on{background:var(--fib)}
.syncdot.warn{background:var(--accent)}

/* săptămâna */
.week{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); margin-top:-8px}
.dchip{border:0; background:none; padding:4px 0; display:flex; flex-direction:column; align-items:center; gap:5px; min-width:0}
.dchip .wd{font-size:11px; font-weight:500; color:var(--label-3); letter-spacing:.06em}
.dchip svg{width:36px; height:36px}
.dchip svg text{font:600 12px var(--sys); fill:var(--label-2)}
.dchip[aria-current="date"] .wd{color:var(--accent)}
.dchip[aria-current="date"] .bg{fill:var(--accent)}
.dchip[aria-current="date"] svg text{fill:var(--on-accent)}
.dchip.future{opacity:.25; pointer-events:none}
.ringtrack{stroke:var(--ring-track)}
.arc{transition:stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1)}
.arc.draw{animation:draw 1.1s cubic-bezier(.2,.8,.2,1) both}
@keyframes draw{from{stroke-dashoffset:var(--len)}}
@media (prefers-reduced-motion: reduce){.arc,.arc.draw{transition:none; animation:none}}

/* rezumat: grilă de plăci */
.bento{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
.tile{border-radius:var(--r); padding:14px 15px 13px; display:flex; flex-direction:column; min-height:164px; position:relative; overflow:hidden; min-width:0}
.tile .tl{font-size:14px; font-weight:500; color:var(--label)}
.tile .big{font-size:40px; line-height:1; margin:auto 0 10px; white-space:nowrap; overflow:hidden; text-overflow:clip}
.tile .big small{font:500 12px var(--sys); letter-spacing:0; color:var(--label-2); margin-left:4px}
.tile .tf{display:flex; justify-content:space-between; gap:8px; font-size:11.5px; color:var(--label-2); margin-top:10px}
.tile .tf b{color:var(--label); font-weight:600}
.tile.hero{grid-column:1/-1; min-height:150px; padding-right:96px}
.tile.hero .big{font-size:54px; margin:22px 0 4px}
.tile.wide{grid-column:1/-1; min-height:0}
.tile.wide .big{margin:14px 0 2px; font-size:40px}
.tile.wide .tf{justify-content:flex-start; gap:16px; flex-wrap:wrap}
/* gauge vertical (placa de calorii) */
.tickv{position:absolute; right:22px; top:12px; bottom:12px; width:44px; display:flex; flex-direction:column; justify-content:space-between; align-items:center}
.tickv i{display:block; height:1px; background:var(--label); border-radius:1px}
.tickv b{position:absolute; right:-14px; width:0; height:0; margin-top:-5px; border-style:solid; border-width:5px 8px 5px 0; border-color:transparent var(--accent) transparent transparent}
/* slider orizontal */
.slider{position:relative; height:14px; margin-top:2px}
.slider::before{content:""; position:absolute; left:0; right:0; top:10px; height:1px; background:var(--stroke-2)}
.slider i{position:absolute; top:0; width:0; height:0; margin-left:-6px; border-style:solid; border-width:8px 6px 0 6px; border-color:var(--accent) transparent transparent transparent; transition:left .6s cubic-bezier(.2,.8,.2,1)}
/* riglă de linii verticale */
.ticksh{position:relative; display:flex; justify-content:space-between; align-items:flex-end; height:22px; padding-bottom:0; margin-bottom:6px}
.ticksh i{display:block; width:1px; height:14px; background:var(--label-3)}
.ticksh i.on{height:20px; background:var(--accent)}
.ticksh b{position:absolute; bottom:-9px; width:0; height:0; margin-left:-5px; border-style:solid; border-width:0 5px 7px 5px; border-color:transparent transparent var(--accent) transparent}
@media (max-width:360px){ .tile .big{font-size:32px} .tile.hero .big{font-size:44px} }

/* titluri de secțiune */
.sh{display:flex; justify-content:space-between; align-items:baseline; padding-inline:4px; margin-bottom:10px}
.sh h2{font-size:19px; font-weight:600; margin:0; letter-spacing:-.02em}

/* acțiuni rapide */
.quick{display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin-inline:-16px; padding-inline:16px; scroll-snap-type:x proximity}
.quick::-webkit-scrollbar{display:none}
.qa{flex:none; width:122px; border-radius:20px; padding:13px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:left; scroll-snap-align:start; cursor:pointer; color:var(--label)}
.qa .ic{width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--glass-2)!important; color:var(--label); border:1px solid var(--stroke)}
.qa:first-child .ic{background:var(--accent)!important; color:var(--on-accent); border-color:transparent}
.qa .ic svg{width:17px; height:17px}
.qa b{font-size:14px; font-weight:500; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.qa span{font-size:12px; color:var(--label-2); font-variant-numeric:tabular-nums}
.qa:active{transform:scale(.97)}

/* liste grupate */
.list{border-radius:var(--r); overflow:hidden}
.li{display:flex; align-items:center; gap:12px; min-height:54px; padding:9px 16px; position:relative; width:100%; border:0; background:none; text-align:left; color:var(--label)}
.li + .li::before, #supps .li::before, #activity .li::before{content:""; position:absolute; top:0; right:0; left:60px; border-top:1px solid var(--sep)}
.li .ic{width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:var(--label); flex:none; background:var(--glass-2)!important; border:1px solid var(--stroke)}
.li .ic svg{width:17px; height:17px}
.li .main{flex:1; min-width:0}
.li .t{font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.li .s{font-size:12.5px; color:var(--label-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:1px}
.li .val{font:500 15px var(--sys); color:var(--label-2); font-variant-numeric:tabular-nums; white-space:nowrap}
.li .chev{width:8px; height:13px; color:var(--label-3); flex:none}
.li.action .t{color:var(--accent)}
.li.action .ic{background:rgba(241,237,162,.12)!important; color:var(--accent); border-color:rgba(241,237,162,.25)}
.li .check{width:24px; height:24px; border-radius:50%; border:1.5px solid var(--label-3); display:grid; place-items:center; flex:none; transition:all .15s}
.li .check svg{width:14px; height:14px; color:var(--on-accent); opacity:0}
.li[aria-pressed="true"] .check{background:var(--accent); border-color:var(--accent)}
.li[aria-pressed="true"] .check svg{opacity:1}
.li[aria-pressed="true"] .t{color:var(--label-2)}
button.li:active,label.li:active{background:var(--fill)}
label.li{cursor:pointer}
.empty{padding:16px; color:var(--label-2); font-size:15px}

/* stepper */
.stepper{display:flex; background:var(--fill); border:1px solid var(--stroke); border-radius:12px; overflow:hidden; flex:none}
.stepper button{border:0; background:none; width:46px; height:34px; font-size:21px; line-height:1; color:var(--label); display:grid; place-items:center}
.stepper button + button{border-left:1px solid var(--stroke)}
.stepper button:disabled{color:var(--label-3)}
.wbar{height:3px; border-radius:2px; background:var(--ring-track); overflow:hidden; margin-top:8px}
.wbar i{display:block; height:100%; width:100%; background:var(--water); border-radius:2px; transform-origin:left; transition:transform .5s}
.li input.inl{border:0; background:none; text-align:right; font:700 22px var(--dot); color:var(--label); width:96px; padding:0; min-height:32px}
.li input.inl::placeholder{color:var(--label-3); font:500 15px var(--sys)}
.li input.inl:focus{outline:none}

/* bara de jos (mobil) */
.tabbar{position:fixed; left:14px; right:14px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); z-index:20; max-width:420px; margin:0 auto; background:rgba(18,24,27,.62); -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%); border:1px solid var(--stroke); border-radius:30px; padding:6px 18px}
.tabbar .brand,.tab.desk,.camtxt{display:none}
.tabbar .in{display:grid; grid-template-columns:1fr auto 1fr; align-items:center}
.tab{border:0; background:none; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:11px; font-weight:500; color:var(--label-3); padding:5px}
.tab svg{width:24px; height:24px}
.tab[aria-selected="true"]{color:var(--label)}
.cam{width:58px; height:58px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; margin-top:-22px; box-shadow:0 10px 30px rgba(0,0,0,.45), 0 0 0 6px rgba(3,4,5,.9); cursor:pointer; border:0}
.cam svg{width:26px; height:26px}
.cam:active{transform:scale(.95)}

/* fereastra care urcă de jos */
.backdrop{position:fixed; inset:0; background:rgba(0,0,0,.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); z-index:40; opacity:0; transition:opacity .25s; pointer-events:none}
.backdrop.on{opacity:1; pointer-events:auto}
.sheet{position:fixed; left:0; right:0; bottom:0; z-index:41; max-width:600px; margin:0 auto; max-height:92%; background:linear-gradient(180deg,#141B1F 0%,#0D1316 100%); border:1px solid var(--stroke); border-bottom:0; border-radius:26px 26px 0 0; transform:translateY(105%); transition:transform .35s cubic-bezier(.2,.9,.2,1); display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom,0px); visibility:hidden; box-shadow:0 -20px 60px rgba(0,0,0,.5)}
.sheet.on{transform:none; visibility:visible}
@media (prefers-reduced-motion: reduce){.sheet,.backdrop{transition:none}}
.grabber{width:36px; height:4px; border-radius:3px; background:var(--label-3); margin:8px auto 0}
.sbar{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:10px 18px 12px; gap:8px}
.sbar h3{margin:0; font-size:16px; font-weight:600; text-align:center}
.sbar .l{justify-self:start} .sbar .r{justify-self:end}
.tbtn{border:0; background:none; color:var(--label-2); font-size:16px; padding:4px 0}
.tbtn.b{font-weight:600; color:var(--accent)}
.sbody{overflow-y:auto; padding:0 16px 26px; display:flex; flex-direction:column; gap:18px}
.sheet .list,.sheet .item,.sheet .ex,.sheet .addrow,.sheet .sbtn,.sheet .danger-row,.sheet .insight{background:rgba(255,255,255,.045); -webkit-backdrop-filter:none; backdrop-filter:none}
.fgroup{display:flex; flex-direction:column; gap:8px}
.fgroup > .sec{padding-inline:16px; text-transform:uppercase; font-size:11px; letter-spacing:.08em; color:var(--label-3)}
.field{display:flex; align-items:center; gap:12px; min-height:50px; padding:6px 16px; position:relative}
.field + .field::before, .field + .checks::before{content:""; position:absolute; top:0; left:16px; right:0; border-top:1px solid var(--sep)}
.field label{font-size:16px; flex:none; min-width:70px}
.field input,.field select,.field textarea{flex:1; min-width:0; border:0; background:none; font-size:16px; padding:4px 0; text-align:right; color:var(--label)}
.field select option{background:#12181B}
.field textarea{text-align:left; resize:vertical; min-height:70px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none}
.field input::placeholder,.field textarea::placeholder{color:var(--label-3)}
.field.stack{flex-direction:column; align-items:stretch; gap:4px}
.field.stack textarea{padding:0}
input[type="date"]{color-scheme:dark}

/* editorul de alimente */
.item{border-radius:18px; padding:10px 12px 12px; display:flex; flex-direction:column; gap:8px}
.item .top{display:flex; gap:8px; align-items:center}
.item .top input{flex:1; min-width:0; border:0; background:none; font-size:16px; font-weight:600; padding:4px}
.item .top input:focus{outline:none}
.del{border:0; background:none; color:var(--red); font-size:14px; padding:4px}
.item .vals{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px}
.item .vals label{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--label-2)}
.item .vals input{width:100%; border:1px solid var(--stroke); background:rgba(0,0,0,.25); border-radius:10px; padding:7px 4px; text-align:center; font:500 15px var(--sys); font-variant-numeric:tabular-nums}
.item .vals label.g input{border-color:rgba(241,237,162,.55)}
.addrow{border-radius:16px; padding:13px 16px; color:var(--accent); text-align:left; font-size:16px}
.totalbar{display:flex; justify-content:space-between; align-items:baseline; padding-inline:4px; gap:12px; flex-wrap:wrap}
.totalbar b{font:700 34px var(--dot); letter-spacing:.02em}
.totalbar b small{font:500 14px var(--sys); letter-spacing:0; color:var(--label-2)}
.chips{display:flex; gap:12px; font-size:13px; color:var(--label-2); font-variant-numeric:tabular-nums}
.chips span{display:inline-flex; align-items:center; gap:5px}
.chips i{width:7px; height:7px; border-radius:50%}
.hint{font-size:13px; color:var(--label-2); padding-inline:4px; margin:0; line-height:1.45}
.danger-row{border-radius:16px; padding:13px 16px; color:var(--red); font-size:16px; width:100%}

.loading{display:flex; flex-direction:column; align-items:center; gap:16px; padding:20px 0 30px}
.loading img{width:180px; height:180px; object-fit:cover; border-radius:24px; border:1px solid var(--stroke)}
.spin{width:22px; height:22px; border:2px solid var(--ring-track); border-top-color:var(--accent); border-radius:50%; animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.spin{animation:none}}
.wtypes{display:flex; gap:8px; flex-wrap:wrap}
.seg{border-radius:18px; padding:7px 14px; font-size:14px; color:var(--label)}
.seg[aria-pressed="true"]{background:var(--accent); color:var(--on-accent); border-color:var(--accent)}
.pbtn{border:0; background:var(--accent); color:var(--on-accent); border-radius:16px; padding:15px; font-size:16px; font-weight:600; width:100%; display:block}
.sbtn{border-radius:16px; padding:13px 16px; color:var(--label); font-size:16px; width:100%}

/* istoric */
.stats{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
.stat{border-radius:var(--r); padding:14px 16px 16px; min-height:112px; display:flex; flex-direction:column; justify-content:space-between}
.stat .k{font-size:14px; font-weight:500; display:flex; align-items:center; gap:7px}
.stat .k i{width:7px; height:7px; border-radius:50%}
.stat .v{font:700 32px/1 var(--dot); letter-spacing:.02em; font-variant-numeric:tabular-nums; margin-top:14px; white-space:nowrap; overflow:hidden}
.stat .v small{font:500 12px var(--sys); letter-spacing:0; color:var(--label-2)}
.cal{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; padding:14px 10px}
.cal .h{font-size:11px; font-weight:500; text-align:center; color:var(--label-3); padding-bottom:4px; letter-spacing:.06em}
.cal button{border:0; background:none; padding:2px 0; display:flex; justify-content:center; border-radius:12px; min-width:0}
.cal button svg{width:100%; max-width:44px; aspect-ratio:1}
.cal button svg text{font:600 10px var(--sys); fill:var(--label-2)}
.cal button[aria-current="date"]{background:var(--fill)}
.cal button:disabled{opacity:.2; cursor:default}
.card{border-radius:var(--r)}
.chart{width:100%; height:auto; display:block}
.chart text{fill:var(--label-3); font:11px var(--sys)}
.chart .grid{stroke:var(--sep); stroke-width:1}
.chartwrap{padding:14px}
.calkey{display:flex; gap:14px; font-size:12px; color:var(--label-2); padding:14px 16px 0; flex-wrap:wrap}
.calkey span{display:inline-flex; align-items:center; gap:6px}
.calkey i{width:7px; height:7px; border-radius:50%}

/* setări */
.tpl{display:flex; flex-direction:column; gap:10px}
.tplhead{display:flex; justify-content:space-between; align-items:baseline; padding-inline:4px; gap:8px}
.tplhead h3{margin:0; font-size:16px; font-weight:600}
.switch{appearance:none; -webkit-appearance:none; width:50px; height:30px; border-radius:16px; background:rgba(255,255,255,.14); position:relative; flex:none !important; cursor:pointer; transition:background .2s; margin:0}
.switch::after{content:""; position:absolute; top:2px; left:2px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.3); transition:transform .2s}
.switch:checked{background:var(--accent)}
.switch:checked::after{transform:translateX(20px); background:#15191C}
.checks{display:flex; gap:8px; flex-wrap:wrap; padding:10px 16px 12px; position:relative}
.checks label{display:inline-flex; align-items:center; gap:6px; font-size:14px; background:var(--fill); border:1px solid var(--stroke); border-radius:16px; padding:6px 12px}
.checks input{accent-color:var(--accent); width:16px; height:16px; margin:0}

.toast{position:fixed; left:50%; top:calc(12px + env(safe-area-inset-top,0px)); transform:translateX(-50%); background:rgba(20,27,31,.85); color:var(--label); padding:11px 18px; border-radius:22px; font-size:14px; font-weight:500; max-width:calc(100% - 32px); z-index:60; box-shadow:0 12px 40px rgba(0,0,0,.45)}

/* poze, activitate, exerciții, integrări */
.minicam{width:36px; height:36px; border-radius:50%; background:rgba(241,237,162,.12); border:1px solid rgba(241,237,162,.25); color:var(--accent); display:grid; place-items:center; flex:none; cursor:pointer}
.minicam svg{width:17px; height:17px}
.li .ic.thumb{padding:0; overflow:hidden; background:var(--fill)!important}
.li .ic.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.badge{display:inline-block; font-size:10.5px; font-weight:600; padding:1px 7px; border-radius:10px; margin-left:7px; vertical-align:2px; border:1px solid var(--stroke-2); color:var(--label-2); letter-spacing:.02em}
.badge.strava{color:#FF8A57; border-color:rgba(252,76,2,.5)}
.badge.health{color:#FF8FA8; border-color:rgba(255,45,85,.45)}
.badge.pr{background:var(--accent); color:var(--on-accent); border-color:var(--accent)}
.bigval{display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 0}
.bigval input{font:700 56px var(--dot); letter-spacing:.02em; text-align:center; border:0; background:none; width:220px; color:var(--label)}
.bigval input:focus{outline:none}
.ex{border-radius:18px; padding:10px 12px 12px; display:flex; flex-direction:column; gap:8px}
.ex .top{display:flex; gap:8px; align-items:center}
.ex .top input{flex:1; min-width:0; border:0; background:none; font-size:16px; font-weight:600; padding:4px}
.ex .top input:focus{outline:none}
.ex .last{font-size:13px; color:var(--label-2); padding-inline:4px}
.sets{display:flex; flex-direction:column; gap:6px}
.set{display:grid; grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 32px; gap:8px; align-items:center}
.set .n{font:600 13px var(--sys); color:var(--label-3); text-align:center}
.set input{width:100%; border:1px solid var(--stroke); background:rgba(0,0,0,.25); border-radius:10px; padding:8px 6px; text-align:center; font:500 16px var(--sys)}
.set .x{border:0; background:none; color:var(--label-3); font-size:18px; padding:0}
.setlbl{display:grid; grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 32px; gap:8px; font-size:11px; color:var(--label-3); text-align:center}
.linkrow{border:0; background:none; color:var(--accent); font-size:15px; padding:4px; text-align:left}
.codebox{font:13px ui-monospace, SFMono-Regular, Menlo, monospace; background:rgba(0,0,0,.3); border:1px solid var(--stroke); border-radius:10px; padding:8px 10px; word-break:break-all; user-select:all; flex:1; min-width:0}
.steps{margin:0; padding:4px 16px 14px 34px; font-size:15px; line-height:1.5; color:var(--label)}
.steps li{margin-bottom:6px}
.steps code{font:13px ui-monospace, Menlo, monospace; background:var(--fill); border-radius:5px; padding:1px 5px}
.insight{white-space:pre-wrap; font-size:15px; line-height:1.5; border-radius:var(--r); padding:16px 18px}
.chart .ma{fill:none; stroke:var(--accent); stroke-width:1.5; stroke-dasharray:4 4; opacity:.7}

/* ---------- desktop ---------- */
@media (hover:hover){
  button.li:hover,label.li:hover,.qa:hover,.addrow:hover,.sbtn:hover{background:var(--glass-2)}
  .tab:hover{color:var(--label)}
  .cal button:not(:disabled):hover{background:var(--fill)}
}
@media (min-width:1000px){
  body{padding:0 40px 48px 300px}
  .page{max-width:1240px; gap:22px}
  .tabbar{left:20px; top:20px; bottom:20px; right:auto; width:240px; max-width:none; margin:0; border-radius:28px; padding:22px 14px; display:flex; flex-direction:column; gap:26px}
  .tabbar .brand{display:flex; align-items:center; gap:10px; padding:0 10px; font-weight:600; font-size:17px; letter-spacing:-.02em}
  .tabbar .brand img{width:30px; height:30px; border-radius:9px}
  .tabbar .in{display:flex; flex-direction:column; align-items:stretch; gap:4px}
  .tab,.tab.desk{display:flex; flex-direction:row; justify-content:flex-start; gap:12px; font-size:15px; padding:11px 12px; border-radius:14px; color:var(--label-2)}
  .tab svg{width:20px; height:20px}
  .tab[aria-selected="true"]{background:var(--glass-2); color:var(--label)}
  .cam{order:-1; width:auto; height:auto; margin:0 0 14px; border-radius:16px; padding:13px 14px; display:flex; gap:10px; justify-content:flex-start; box-shadow:none; font-size:15px; font-weight:600}
  .cam svg{width:20px; height:20px}
  .camtxt{display:inline}
  #openSettings{display:none}

  /* Azi: grilă simetrică — rezumat pe toată lățimea, apoi două coloane egale cu carduri de aceeași înălțime pe rând */
  #view-azi:not([hidden]){display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 24px; align-items:stretch;
    grid-template-areas:"nav rw" "week week" "sum sum" "quick quick" "meals water" "work body" "sync sync"}
  #view-azi > .nav{grid-area:nav} #view-azi > .rewardbar{grid-area:rw; align-self:end; display:grid} #view-azi > .week{grid-area:week} #view-azi > .s-sync{grid-area:sync}
  #view-azi > .s-sum{grid-area:sum} #view-azi > .s-quick{grid-area:quick} #view-azi > .s-water{grid-area:water}
  #view-azi > .s-meals{grid-area:meals} #view-azi > .s-work{grid-area:work} #view-azi > .s-body{grid-area:body}
  #view-azi > section{display:flex; flex-direction:column; min-width:0}
  #view-azi > section > .list{flex:1}
  #view-azi > .week{grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px}
  .bento{grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px}
  .tile{min-height:190px}
  .tile.hero,.tile.wide{grid-column:span 2}
  .tile.hero .big{font-size:64px; margin-top:auto}
  .tile.wide .big{margin-top:auto; font-size:48px}
  .quick{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); overflow:visible; margin:0; padding:0; gap:14px}
  .qa{width:auto}
  /* Istoric */
  #view-istoric:not([hidden]){display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 24px; align-items:stretch}
  #view-istoric > .nav,#view-istoric > .stats,#view-istoric > .s-pr{grid-column:1/-1}
  #view-istoric > section{display:flex; flex-direction:column; min-width:0}
  #view-istoric > .s-cal > .card,#view-istoric > .s-weight > .card{flex:1}
  .stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px}
  #view-istoric > #insightBtn{grid-column:1/-1; justify-self:center; max-width:420px}

  /* Setări: meniu în stânga, subpagina în dreapta */
  #view-setari:not([hidden]){display:grid; grid-template-columns:minmax(300px,360px) minmax(0,1fr); gap:0 36px; align-items:start; max-width:1120px}
  #closeSettings,.stp-head .back{display:none}
  .stp-head h1{font-size:30px}
  .st-row[aria-current="page"]{background:rgba(241,237,162,.1)}
  .st-row[aria-current="page"] .st-t{color:var(--accent)}
  .st-acc[aria-current="page"]{border-color:rgba(241,237,162,.45); background:rgba(241,237,162,.08)}
  .stp{max-width:640px}
  .st-savebar{bottom:24px}

  /* fereastra devine dialog centrat */
  .sheet{left:50%; right:auto; top:50%; bottom:auto; width:min(600px, calc(100vw - 80px)); max-height:86vh; border-radius:26px; border-bottom:1px solid var(--stroke); padding-bottom:6px; transform:translate(-50%,-46%) scale(.97); opacity:0; transition:transform .25s cubic-bezier(.2,.9,.2,1), opacity .2s}
  .sheet.on{transform:translate(-50%,-50%); opacity:1}
  .grabber{display:none}
  .toast{top:24px}
}
@media (min-width:1000px) and (max-width:1200px){
  body{padding-left:280px}
  .tabbar{width:220px}
}

/* culoare după progres (roșu → galben → verde), setată din JS în --g */
.tile .tl{display:flex; align-items:center; gap:7px}
.pdot{width:7px; height:7px; border-radius:50%; flex:none; box-shadow:0 0 10px currentColor}
.tickv b{border-color:transparent var(--g,var(--accent)) transparent transparent}
.tickv i.on,.tickv i.past{background:var(--g,var(--accent))}
.slider u{position:absolute; left:0; right:0; top:9.5px; height:2px; border-radius:2px; background:var(--g,var(--accent)); transform-origin:left; transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.slider i{border-color:var(--g,var(--accent)) transparent transparent transparent}
.ticksh i.past{background:color-mix(in srgb, var(--g,var(--accent)) 55%, transparent)}
.ticksh i.on{background:var(--g,var(--accent))}
.ticksh b{border-color:transparent transparent var(--g,var(--accent)) transparent}
.tile.empty-act{cursor:pointer}
.tile.empty-act .big{color:var(--label-3)}
.tile.empty-act .tf span{color:var(--accent)}

/* avertisment de depășire pe placă */
.tile .warn{margin-left:auto; width:24px; height:24px; border-radius:50%; border:0; display:grid; place-items:center; font:800 14px/1 var(--sys); background:hsl(32 95% 60%); color:#1A1206; box-shadow:0 0 0 4px hsla(32,95%,60%,.18); cursor:pointer; flex:none; animation:warnpulse 2.4s ease-in-out infinite}
.tile.lv2 .warn{background:hsl(8 88% 62%); box-shadow:0 0 0 4px hsla(8,88%,62%,.2)}
.tile.over{border-color:hsla(32,95%,60%,.35)}
.tile.lv2{border-color:hsla(8,88%,62%,.4)}
@keyframes warnpulse{50%{box-shadow:0 0 0 7px hsla(32,95%,60%,.06)}}
@media (prefers-reduced-motion: reduce){.tile .warn{animation:none}}

/* recompense */
.tile.rw{cursor:pointer}
.tile.rw .tf span:last-child{color:var(--label-3)}
.badges{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
.bdg{border:1px solid var(--stroke); border-radius:18px; padding:12px 13px; display:flex; flex-direction:column; gap:3px; background:rgba(255,255,255,.03); opacity:.5}
.bdg b{font-size:20px; line-height:1; color:var(--label-3)}
.bdg .t{font-size:14px; font-weight:600}
.bdg .s{font-size:12px; color:var(--label-2); line-height:1.35}
.bdg.got{opacity:1; border-color:rgba(241,237,162,.45); background:rgba(241,237,162,.07)}
.bdg.got b{color:var(--accent)}
@media (min-width:1000px){ .badges{grid-template-columns:repeat(3,minmax(0,1fr))} }
.tile.wide.rw .tf{justify-content:space-between}

/* salut + citatul zilei */
.hello{min-width:0}
.quote{margin:8px 0 0; font-size:14.5px; line-height:1.45; color:var(--label-2); font-style:italic; max-width:46ch}
.quote::before{content:"„"; color:var(--accent); font-style:normal; font-weight:700; margin-right:1px}
.quote::after{content:"”"; color:var(--accent); font-style:normal; font-weight:700}
.nav h1#dayTitle{font-size:30px}

/* bara de nivel și recompense — diferită de plăci: accent cald, orizontală */
.rewardbar{display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"lvl info" "chips chips"; gap:12px 14px; align-items:center;
  padding:14px 16px; border-radius:26px; position:relative; overflow:hidden;
  background:linear-gradient(120deg, rgba(241,237,162,.16) 0%, rgba(241,237,162,.05) 45%, rgba(84,190,216,.1) 100%);
  border:1px solid rgba(241,237,162,.38); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  box-shadow:0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08)}
.rewardbar button{border:0; background:none; color:inherit; padding:0; text-align:left; cursor:pointer}
.rb-level{grid-area:lvl; position:relative; width:64px; height:64px}
.rb-level svg{width:64px; height:64px; display:block}
.rb-track{fill:rgba(0,0,0,.25); stroke:rgba(255,255,255,.12); stroke-width:5}
.rb-arc{fill:none; stroke:var(--accent); stroke-width:5; stroke-linecap:round; transition:stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); filter:drop-shadow(0 0 6px rgba(241,237,162,.5))}
.rb-level b{position:absolute; inset:0; display:grid; place-items:center; font-size:26px; color:var(--accent)}
.rb-info{grid-area:info; display:flex; flex-direction:column; gap:6px; min-width:0}
.rb-name{font-size:18px; font-weight:600; letter-spacing:-.01em}
.rb-name small{font-size:12px; font-weight:500; color:var(--label-2); margin-left:4px; text-transform:uppercase; letter-spacing:.08em}
.rb-bar{display:block; height:6px; border-radius:4px; background:rgba(255,255,255,.1); overflow:hidden}
.rb-bar i{display:block; height:100%; background:linear-gradient(90deg, rgba(241,237,162,.55), var(--accent)); border-radius:4px; transform-origin:left; transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.rb-xp{font-size:12px; color:var(--label-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rb-chips{grid-area:chips; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.rb-chip{display:flex; align-items:baseline; justify-content:center; gap:6px; padding:9px 8px; border-radius:16px; background:rgba(0,0,0,.28)!important; border:1px solid var(--stroke)!important}
.rb-chip b{font-size:22px; color:var(--c, var(--label))}
.rb-chip small{font-size:11.5px; color:var(--label-2)}
.rb-ico{font-size:13px; color:var(--accent); align-self:center}
.rb-chip:active,.rb-level:active,.rb-info:active{transform:scale(.98)}
@media (hover:hover){ .rb-chip:hover{background:rgba(255,255,255,.08)!important} }
@media (min-width:1000px){
  .rewardbar{grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"lvl info chips"; padding:16px 18px; max-width:640px; justify-self:end; width:100%}
  .rb-chips{grid-template-columns:repeat(3,76px)}
  .rb-chip{flex-direction:column; align-items:center; gap:2px; padding:8px 6px}
  .nav h1#dayTitle{font-size:36px}
}
#view-azi > .nav{align-items:flex-start}
#view-azi > .nav > div:last-child{padding-top:6px}

/* căutare */
.fs-row{padding:0 6px 0 0; gap:0}
.fs-main{flex:1; min-width:0; border:0; background:none; color:inherit; text-align:left; padding:10px 16px; cursor:pointer}
.fs-main .t,.fs-main .s{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.fs-main .t{font-size:16px} .fs-main .s{font-size:12.5px; color:var(--label-2); margin-top:2px}
.fs-star{border:0; background:none; color:var(--label-3); width:40px; height:40px; display:grid; place-items:center; cursor:pointer; flex:none}
.fs-star svg{width:19px; height:19px}
.fs-star.on{color:var(--accent)}
@media (hover:hover){ .fs-main:hover{background:var(--glass-2)} }
input[type="search"]{-webkit-appearance:none; appearance:none}

/* sală */
.sugg{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--accent); background:rgba(241,237,162,.08); border:1px solid rgba(241,237,162,.22); border-radius:12px; padding:7px 10px}
.sugg span{flex:1; line-height:1.35}
.sugg .linkrow{font-weight:600; flex:none}
.rest{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.rest .sec{display:inline-flex; align-items:center; gap:6px; margin-right:2px}
.rest .sec svg{width:16px; height:16px}
.seg.prog small{color:var(--label-3); margin-left:4px}
.restpill{position:sticky; bottom:8px; z-index:3; align-self:center; display:flex; align-items:baseline; gap:10px; border:1px solid rgba(241,237,162,.5); border-radius:24px; padding:10px 20px; cursor:pointer;
  background:linear-gradient(90deg, rgba(241,237,162,.28) calc(var(--p,0) * 100%), rgba(20,27,31,.92) calc(var(--p,0) * 100%)); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur); color:var(--label); box-shadow:0 10px 30px rgba(0,0,0,.45)}
.restpill b{font:700 28px var(--dot); letter-spacing:.02em; color:var(--accent)}
.restpill span{font-size:12px; color:var(--label-2)}

/* rezumatul săptămânii */
.recap{padding:6px 16px 14px}
.rc-head,.rc-row{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.9fr) 34px; align-items:baseline; gap:8px}
.rc-head{padding:8px 0 4px; font-size:11px; text-transform:uppercase; letter-spacing:.08em}
.rc-row{padding:9px 0; border-top:1px solid var(--sep); font-size:15px}
.rc-row b{font:700 19px var(--dot); letter-spacing:.02em; white-space:nowrap}
.rc-row b small{font:500 11px var(--sys); letter-spacing:0; color:var(--label-2)}
.rc-row > span:first-child{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.ar{font-style:normal; font-size:12px; text-align:right; color:var(--label-2)}
.ar.up{color:hsl(130 70% 58%)} .ar.dn{color:hsl(12 90% 64%)}
.rc-tips{border-top:1px solid var(--sep); margin-top:4px; padding-top:12px; display:flex; flex-direction:column; gap:8px}
.rc-tips .sec{text-transform:uppercase; font-size:11px; letter-spacing:.08em}
.rc-tips p{margin:0; font-size:14.5px; line-height:1.45; padding-left:14px; position:relative}
.rc-tips p::before{content:""; position:absolute; left:0; top:.6em; width:6px; height:6px; border-radius:50%; background:var(--accent)}
.rb-recap{grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; padding:10px 14px!important; border-radius:14px!important; background:rgba(241,237,162,.14)!important; color:var(--accent)!important; font-weight:600; font-size:14px}
.rb-recap span{font-size:20px; line-height:1}
@media (min-width:1000px){
  #view-istoric > .s-recap{grid-column:1/-1}
  .rewardbar .rb-recap{grid-column:1/-1}
}

/* ---------- conturi: login, înscriere ---------- */
body.locked .page, body.locked .tabbar{visibility:hidden}
.login{overflow-y:auto; align-items:safe center}
.login form{margin:auto 0}
.login .linkrow.center{text-align:center; align-self:center; padding:6px 10px}
.login a,.hint a{color:var(--accent)}
.consent{display:flex; gap:10px; align-items:flex-start; text-align:left; font-size:13.5px; line-height:1.45; color:var(--label-2); cursor:pointer; padding:2px 2px}
.consent input{accent-color:var(--accent); width:20px; height:20px; margin:1px 0 0; flex:none}
.sheet .consent{background:rgba(255,255,255,.045); border:1px solid var(--stroke); border-radius:16px; padding:14px; color:var(--label); font-size:14.5px}

/* ---------- antrenor pe Azi ---------- */
.s-coach{display:grid; grid-template-columns:minmax(0,1fr); gap:10px}
.ccard{border-radius:var(--r); padding:16px; display:flex; flex-direction:column; gap:10px; text-align:left; color:var(--label); min-width:0;
  background:var(--glass); border:1px solid var(--stroke); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur)}
.ccard.checkin{cursor:pointer; border-color:rgba(241,237,162,.55); background:linear-gradient(135deg, rgba(241,237,162,.2), rgba(241,237,162,.05) 60%, rgba(84,190,216,.08)); box-shadow:0 10px 40px rgba(0,0,0,.3)}
.ccard.checkin:active{transform:scale(.99)}
.cc-top{display:flex; align-items:center; gap:10px; min-width:0}
.cc-ic{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--on-accent); flex:none}
.cc-ic svg{width:15px; height:15px}
.cc-lbl{font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--label-2)}
.ccard.checkin .cc-lbl{color:var(--accent); flex:1}
.cc-pill{font-size:11px; font-weight:600; background:var(--accent); color:var(--on-accent); border-radius:10px; padding:2px 8px}
.cc-title{font-size:21px; font-weight:600; letter-spacing:-.02em}
.cc-sub{font-size:14px; color:var(--label-2); line-height:1.45}
.cc-go{font-size:15px; font-weight:600; color:var(--accent)}
.cc-who{display:flex; flex-direction:column; min-width:0}
.cc-who b{font-size:18px; font-weight:600; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.avatar{width:42px; height:42px; border-radius:50%; flex:none; display:grid; place-items:center; font:600 15px var(--sys); letter-spacing:.02em; color:var(--on-accent); background:linear-gradient(135deg, var(--accent), #BFD9C9)}
.avatar.sm{width:32px; height:32px; font-size:12px}
.cc-notes{border:0; background:rgba(0,0,0,.2); border-radius:14px; padding:10px 12px; margin:0; color:var(--label); font-size:14px; line-height:1.45; text-align:left; cursor:pointer}
.cc-notes span{white-space:pre-line; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.cc-notes.empty{color:var(--label-3); cursor:default}
.cc-btns{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.1fr); gap:8px}
.cc-btns > *{justify-content:center; white-space:nowrap; min-width:0; padding-inline:8px!important}
.pbtn.sm,.sbtn.sm{width:auto; padding:10px 14px; font-size:14.5px; border-radius:14px; display:inline-flex; align-items:center; gap:7px}
.pbtn.sm{flex:1 1 auto; justify-content:center}
.pbtn.sm svg{width:17px; height:17px; flex:none}
.count{min-width:20px; height:20px; border-radius:10px; padding:0 6px; background:var(--on-accent); color:var(--accent); font:700 12px/20px var(--sys); text-align:center}
@media (min-width:1000px){
  #view-azi.has-coach:not([hidden]){grid-template-areas:"nav rw" "week week" "coach coach" "sum sum" "quick quick" "meals water" "work body" "sync sync"}
  #view-azi > .s-coach{grid-area:coach; display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:14px}
}
@media (max-width:999px){ #view-azi > .s-coach{margin-top:-6px} }

/* insigne mici */
.badge.coach{color:var(--accent); border-color:rgba(241,237,162,.45)}
.badge.talk{display:inline-flex; align-items:center; gap:3px; color:var(--prot); border-color:rgba(169,228,242,.45)}
.badge.talk svg{width:11px; height:11px}
.seg.prog.coach{border-color:rgba(241,237,162,.45)}
.seg.prog em{font-style:normal; font-size:10.5px; color:var(--accent); margin-left:6px; text-transform:uppercase; letter-spacing:.06em}
.talkbtn{display:flex; align-items:center; gap:10px; color:var(--prot)!important}
.talkbtn svg{width:18px; height:18px}
.talkbtn small{margin-left:auto; font-size:13px; color:var(--label-2)}
.field.ro input{color:var(--label-2)}
.coachnote{color:var(--accent)}
.coachhead{display:flex; align-items:center; gap:12px; padding:4px}
.coachhead > div{display:flex; flex-direction:column}
.coachhead b{font-size:18px}
.linkbtn{display:block; text-align:left; text-decoration:none; color:var(--accent)}

/* check-in */
.scales{display:flex; flex-direction:column}
.scale{padding:12px 16px 14px; display:flex; flex-direction:column; gap:10px; position:relative}
.scale + .scale::before{content:""; position:absolute; top:0; left:16px; right:0; border-top:1px solid var(--sep)}
.sc-h{display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:15.5px}
.sc-h .sec{font-size:11.5px; white-space:nowrap}
.sc-row{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px}
.sc-b{height:42px; border-radius:12px; border:1px solid var(--stroke); background:rgba(0,0,0,.25); color:var(--label); font:700 18px var(--dot); letter-spacing:.02em}
.sc-b[aria-checked="true"]{background:var(--accent); color:var(--on-accent); border-color:var(--accent)}
.pslots{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px}
.pslot{aspect-ratio:3/4; border-radius:18px; border:1.5px dashed var(--stroke-2); background:rgba(255,255,255,.03); cursor:pointer; position:relative; overflow:hidden; display:block}
.pslot .ph-in{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--label-2); font-size:13px}
.pslot .ph-in svg{width:24px; height:24px; color:var(--accent)}
.pslot .ph-in b{font-weight:500}
.pslot.has{border-style:solid; border-color:rgba(241,237,162,.5)}
.pslot.has img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.pslot.has b{position:absolute; left:8px; bottom:8px; background:rgba(0,0,0,.6); color:var(--label); border-radius:8px; padding:2px 8px; font-size:12px}
.pslot.busy{opacity:.5; pointer-events:none}
.ph-x{position:absolute; top:6px; right:6px; width:28px; height:28px; border-radius:50%; border:0; background:rgba(0,0,0,.65); color:#fff; font-size:18px; line-height:1; display:grid; place-items:center}
.cicard{border:1px solid var(--stroke); background:rgba(255,255,255,.045); border-radius:var(--r); padding:14px 16px; display:flex; flex-direction:column; gap:8px}
.cicard p{margin:0; font-size:14.5px; line-height:1.45}
.ci-h{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
.ci-h b{font-size:16px; text-transform:capitalize}
.ci-sc{display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; color:var(--label-2)}
.ci-sc b{font-size:17px; color:var(--label); margin-left:3px}
.ci-ph{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.ci-ph img{width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:12px; border:1px solid var(--stroke)}
.ci-fb{border-left:2px solid var(--accent); padding:4px 0 4px 12px; display:flex; flex-direction:column; gap:4px}

/* mesaje */
.sheet.chat{height:92%}
.sheet.chat .sbody{padding-bottom:0; gap:0; flex:1}
.thread{display:flex; flex-direction:column; gap:8px; padding:4px 0 16px; flex:1}
.th-day{align-self:center; font-size:11.5px; color:var(--label-3); text-transform:uppercase; letter-spacing:.08em; margin:10px 0 4px}
.th-empty{text-align:center; padding:30px 10px; font-size:14.5px}
.bub{max-width:82%; padding:9px 13px 7px; border-radius:18px; display:flex; flex-direction:column; gap:4px; font-size:15px; line-height:1.4; word-wrap:break-word; overflow-wrap:anywhere}
.bub.them{align-self:flex-start; background:rgba(255,255,255,.08); border:1px solid var(--stroke); border-bottom-left-radius:6px}
.bub.me{align-self:flex-end; background:rgba(241,237,162,.16); border:1px solid rgba(241,237,162,.35); border-bottom-right-radius:6px}
.bt{white-space:pre-wrap}
.bm{font-size:11px; color:var(--label-3); align-self:flex-end}
.refchip{display:inline-flex; align-items:center; gap:6px; align-self:flex-start; max-width:100%; font-size:12.5px; color:var(--label); background:rgba(0,0,0,.28); border:1px solid var(--stroke-2); border-radius:12px; padding:4px 9px}
.refchip > span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.refchip svg{width:13px; height:13px; flex:none; color:var(--accent)}
button.refchip{cursor:pointer}
.refchip .rx{border:0; background:none; color:var(--label-2); font-size:16px; line-height:1; padding:0 0 0 4px}
.composer{position:sticky; bottom:0; margin:0 -16px; padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px)); background:linear-gradient(180deg, rgba(13,19,22,.85), #0D1316 30%); border-top:1px solid var(--sep); display:flex; flex-direction:column; gap:8px}
.cmp-row{display:flex; gap:8px; align-items:flex-end}
.cmp-row textarea{flex:1; min-width:0; resize:none; border:1px solid var(--stroke); background:rgba(255,255,255,.06); border-radius:20px; padding:10px 14px; font-size:16px; line-height:1.35; color:var(--label); max-height:140px}
.cmp-row textarea:focus{outline:none; border-color:rgba(241,237,162,.5)}
.sendbtn{width:42px; height:42px; border-radius:50%; border:0; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; flex:none}
.sendbtn svg{width:20px; height:20px}
.sendbtn:disabled{opacity:.5}
@media (min-width:1000px){ .sheet.chat{height:80vh} .composer{padding-bottom:12px} }

/* politica de confidențialitate */
.doc{max-width:720px; margin:0 auto; padding:28px 0 60px; display:flex; flex-direction:column; gap:18px}
.doc h1{font-size:30px; margin:6px 0 0; letter-spacing:-.02em}
.doc h2{font-size:18px; margin:0 0 6px; letter-spacing:-.01em}
.doc section{border-radius:var(--r); padding:16px 18px; background:var(--glass); border:1px solid var(--stroke); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur)}
.doc p,.doc li{font-size:15px; line-height:1.55; color:var(--label)}
.doc p{margin:0 0 8px} .doc p:last-child{margin:0}
.doc ul{margin:0; padding-left:20px}
.doc a{color:var(--accent)}
body.plain{padding-bottom:40px}

/* ---------- setări: meniu (hub) + subpagini ---------- */
.st-menu,.st-pane,.stp{display:flex; flex-direction:column; gap:22px; min-width:0}
.stp:not(.on){display:none}
#view-setari[data-sub] .st-menu{display:none}
#view-setari:not([data-sub]) .st-pane{display:none}
.st-grp{display:flex; flex-direction:column; gap:8px}
.st-grp > .sec,.stp .fgroup > .sec{padding-inline:16px; text-transform:uppercase; font-size:11px; letter-spacing:.08em; color:var(--label-3)}
.st-row,.st-acc,.st-panel{display:flex; align-items:center; gap:13px; min-height:58px; padding:10px 16px; width:100%; border:0; background:none; color:var(--label); text-align:left; text-decoration:none; position:relative; font-size:16px; cursor:pointer}
.st-row + .st-row::before{content:""; position:absolute; top:0; right:0; left:61px; border-top:1px solid var(--sep)}
.st-ic{width:32px; height:32px; border-radius:10px; flex:none; display:grid; place-items:center; color:var(--c, var(--accent)); background:color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); border:1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, transparent)}
.st-ic svg{width:18px; height:18px}
.st-main{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.st-t{font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.st-s{font-size:13px; line-height:1.35; color:var(--label-2); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical}
.st-v{font-size:15px; color:var(--label-2); white-space:nowrap; flex:none}
.st-row .chev,.st-acc .chev,.st-panel .chev{width:8px; height:13px; color:var(--label-3); flex:none}
.st-row.danger .st-t{color:var(--red)}
.st-count{min-width:22px; height:22px; border-radius:11px; padding:0 7px; background:var(--accent); color:var(--on-accent); font:700 12.5px/22px var(--sys); text-align:center; flex:none}
.st-row:active,.st-acc:active,.st-panel:active{background:var(--fill)}
@media (hover:hover){ .st-row:hover,.st-acc:hover,.st-panel:hover{background:var(--glass-2)} }
/* card de cont */
.st-acc{border-radius:var(--r); padding:14px 16px; min-height:76px; background:var(--glass); border:1px solid var(--stroke); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur)}
.st-acc .avatar{width:48px; height:48px; font-size:17px}
.st-acc .st-t{font-size:18px; font-weight:600; letter-spacing:-.01em}
.st-chip{flex:none; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:3px 9px; border-radius:10px; border:1px solid var(--stroke-2); color:var(--label-2)}
.st-chip[data-role="admin"],.st-chip[data-role="coach"]{color:var(--accent); border-color:rgba(241,237,162,.45)}
/* panoul de antrenor: rând evidențiat */
.st-panel{border-radius:var(--r); background:linear-gradient(120deg, rgba(241,237,162,.18), rgba(241,237,162,.05) 60%, rgba(84,190,216,.08)); border:1px solid rgba(241,237,162,.4); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur)}
.st-panel .st-ic{background:var(--accent); color:var(--on-accent); border-color:transparent}
.st-panel .st-t{font-weight:600; color:var(--accent)}
.st-foot{padding-inline:16px; margin-top:-8px}
/* antet subpagină */
.stp-head{align-items:flex-end}
.stp-head h1{font-size:30px}
.st-saved{font-size:13px; font-weight:600; color:var(--fib); opacity:0; transition:opacity .25s; white-space:nowrap; padding-bottom:6px; display:inline-flex; align-items:center; gap:5px}
.st-saved::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
.st-saved.on{opacity:1}
.st-saved.warn{color:var(--accent)}
.st-lock{border:1px solid rgba(241,237,162,.3); background:rgba(241,237,162,.07); border-radius:16px; padding:12px 14px!important; font-size:14px}
.stp .field .unit{width:34px; flex:none; text-align:left}
.stp .field label .s{display:block; color:var(--label-2); font-size:13px; margin-top:1px}
.stp .field{min-height:52px}
.stp .li{min-height:58px}
.stp .li .s{white-space:normal}
.supprow input.dose{color:var(--label-2); max-width:40%}
.tpls{display:flex; flex-direction:column; gap:26px}
/* bara de salvare lipită jos */
.st-savebar{position:sticky; bottom:calc(14px + env(safe-area-inset-bottom,0px)); z-index:5; margin-top:4px}
.st-savebar .pbtn{box-shadow:0 12px 34px rgba(0,0,0,.55)}
.st-savebar .pbtn:disabled{background:rgba(255,255,255,.1); color:var(--label-3); box-shadow:none; -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur); cursor:default}
.pbtn:disabled{opacity:1}
/* antrenor */
.st-stack{display:flex; flex-direction:column; gap:22px}
.st-coach{display:flex; flex-wrap:wrap; align-items:center; gap:12px 13px; padding:14px 14px 14px 16px}
.st-coach .st-t{font-size:18px; font-weight:600}
.st-coach .st-s{white-space:normal}
.st-coach .pbtn.sm{flex:none; min-height:44px; justify-content:center}
@media (max-width:520px){ .st-coach .pbtn.sm{flex:1 1 100%} }
.st-empty{display:flex; gap:13px; padding:16px; align-items:flex-start}
.st-empty b{font-size:17px; font-weight:600; display:block; margin-bottom:4px}
.st-empty .hint{padding:0}
.st-danger .danger-row{text-align:left}
/* pe mobil, în subpagini ascund bara de jos (butonul de salvare stă jos) */
@media (max-width:999px){
  body.st-sub .tabbar{display:none}
  body.st-sub{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
}
/* confirmări în aplicație */
.sheet.confirm{max-width:460px}
.confirm-txt{font-size:15px!important; color:var(--label)!important; padding:4px 4px 8px!important}
.tbtn.danger{color:var(--red)}
@media (min-width:1000px){
  #view-setari .st-menu,#view-setari[data-sub] .st-menu{display:flex; padding-bottom:24px}
  #view-setari .st-pane,#view-setari:not([data-sub]) .st-pane{display:flex}
  .stp-head h1{font-size:34px}
  .stp-head{min-height:0}
}
