:root{
  --bg:#08090C;--s1:#101217;--s2:#161920;--line:#222630;--line2:#2E3340;
  --txt:#F8FAFC;--txt2:#94A3B8;--mute:#64748B;
  --gold:#FFC837;--gold-h:#E6B02E;--gold-s:#2B2411;
  --blue:#2563EB;--blue-s:#0F1E36;
  --red:#EF4444;--red-s:#2A1414;--green:#10B981;--green-s:#0B2A20;--violet:#A78BFA;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--txt);font:14px/1.5 Inter,"IBM Plex Sans Arabic",system-ui,sans-serif}
[dir=rtl] body,[dir=rtl]{font-family:"IBM Plex Sans Arabic",Inter,system-ui,sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--gold)}
*{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--line2);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:var(--mute)}
.hidden{display:none!important}

/* ---------- shell ---------- */
.app{position:relative;display:grid;grid-template-columns:360px 1fr;grid-template-rows:auto 1fr;height:100dvh;overflow:hidden}
.top{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--bg)}
.logo{font-weight:800;letter-spacing:.3px;display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--txt)}
.logo img{width:26px;height:26px;border-radius:7px}
.tabs{display:flex;gap:2px;margin-inline-start:10px;overflow-x:auto}
.tabs a{padding:7px 12px;border-radius:9px;color:var(--txt2);text-decoration:none;white-space:nowrap}
.tabs a.on{background:var(--s2);color:var(--txt)}
.n{background:var(--gold);color:#111;font-size:10px;font-weight:700;border-radius:999px;padding:0 6px;margin-inline-start:5px}
.sp{flex:1}
.ic{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--s2);display:grid;place-items:center;flex:none;padding:0;text-decoration:none;color:var(--txt)}
.ic svg{width:17px;height:17px}
.ic.go{background:var(--gold);border-color:var(--gold);color:#111}
.bell{position:relative}.bell b{position:absolute;top:-5px;inset-inline-end:-5px;background:var(--gold);color:#111;font-size:10px;border-radius:999px;padding:0 5px;line-height:16px}
.lang{font-weight:700;font-size:13px;width:auto;padding:0 10px}
.av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;flex:none;background:var(--blue);text-decoration:none}
.seg{display:flex;background:var(--s2);border:1px solid var(--line);border-radius:999px;padding:3px;flex:none}
.seg button{border:0;background:none;padding:5px 12px;border-radius:999px;font-size:12px;color:var(--txt2);display:flex;gap:6px;align-items:center}
.seg button.on{background:var(--gold);color:#111;font-weight:600}
.agbtn{display:none;place-items:center;border:0;width:34px;height:34px;border-radius:50%;padding:0;background:radial-gradient(circle at 35% 30%,#FFE08A,var(--gold) 45%,#7a5a08)}

/* ---------- agent ---------- */
.agent{grid-row:2;display:flex;flex-direction:column;background:linear-gradient(180deg,#0C0D11,var(--bg));border-inline-end:1px solid var(--line);min-height:0;z-index:5;transition:transform .25s}
.ag-h{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.orb{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFE08A,var(--gold) 45%,#7a5a08);box-shadow:0 0 16px #ffc83740;flex:none}
.ag-h b{display:block}.ag-h small{color:var(--green);font-size:11px}
.ag-h .x{margin-inline-start:auto;display:none}
.scroller{flex:1;overflow:auto;min-height:0}
.msgs{padding:14px;display:flex;flex-direction:column;gap:10px;font-size:13.5px;width:100%;margin-inline:auto}
.m{padding:9px 12px;border-radius:14px;max-width:88%;overflow-wrap:anywhere}
.m.u{align-self:flex-end;background:var(--blue);color:#fff;border-end-end-radius:4px}
.m.a{background:var(--s2);border:1px solid var(--line);border-end-start-radius:4px;align-self:flex-start}
.m.a p{margin:.3em 0}.m.a ul{margin:.3em 0;padding-inline-start:1.2em}.m.a h4{margin:.6em 0 .2em;font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:var(--txt2)}
.auto{font-size:10px;opacity:.8;display:block;margin-top:3px}
.acts-log{font-size:10.5px;color:var(--mute);margin-top:6px}
.sys{align-self:center;font-size:11px;color:var(--txt2);background:var(--s2);padding:3px 10px;border-radius:999px}
.typing{display:flex;gap:4px;padding:10px}.typing i{width:6px;height:6px;border-radius:50%;background:var(--txt2);animation:bo 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes bo{50%{transform:translateY(-4px);opacity:.4}}
.sugg{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 8px;width:100%;margin-inline:auto}
.sugg button{font-size:11px;border:1px solid var(--line2);background:none;border-radius:999px;padding:4px 10px;color:var(--txt2)}
.sugg button:hover{border-color:var(--gold);color:var(--gold)}
.compose{display:flex;gap:6px;align-items:center;margin:0 12px 12px;padding:6px;background:var(--s2);border:1px solid var(--line2);border-radius:14px}
.compose input,.compose textarea{flex:1;min-width:0;background:none;border:0;outline:0;padding:6px 8px;font-size:14px;resize:none}
.compose input::placeholder{color:var(--mute)}

/* ---------- main ---------- */
.main{grid-row:2;display:flex;flex-direction:column;min-width:0;min-height:0}
.content{flex:1;overflow:auto;padding:18px;min-height:0}.content.flush{padding:0}
h2{margin:0 0 14px;font-size:20px}h2 small{font-size:12px;color:var(--txt2);font-weight:400;margin-inline-start:8px}
h3{font-size:15px;margin:18px 0 8px}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.g2{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:12px}
.card{background:var(--s2);border:1px solid var(--line);border-radius:16px;padding:16px}
.card h4{margin:0 0 10px;font-size:11.5px;text-transform:uppercase;letter-spacing:.7px;color:var(--txt2);font-weight:600}
.kpi{display:flex;align-items:center;gap:14px}
.ring{--p:0;--c:var(--green);width:78px;height:78px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--p)*1%),var(--line) 0);display:grid;place-items:center;flex:none}
.ring::before{content:attr(data-v);width:62px;height:62px;border-radius:50%;background:var(--s2);display:grid;place-items:center;font-weight:800;font-size:18px}
.big{font-size:28px;font-weight:800}.sub{color:var(--txt2);font-size:12px}
.chip{display:inline-block;font-size:11px;padding:2px 8px;border-radius:999px;background:var(--s1);border:1px solid var(--line);color:var(--txt2);white-space:nowrap}
.chip.green{background:var(--green-s);border-color:#10b98140;color:var(--green)}.chip.gold{background:var(--gold-s);border-color:#ffc83740;color:var(--gold)}
.chip.red{background:var(--red-s);border-color:#ef444440;color:#F87171}.chip.blue{background:var(--blue-s);border-color:#2563eb50;color:#7FA6FF}
.list>div{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.list>div:last-child{border:0}
.list .t{width:58px;color:var(--txt2);font-size:12px;flex:none}.list .grow{flex:1;min-width:0}
.bar-s{width:4px;align-self:stretch;border-radius:4px;flex:none}
.spark{display:flex;align-items:flex-end;gap:3px;height:70px;direction:ltr}.spark i{flex:1;border-radius:3px 3px 0 0;min-height:2px;position:relative}
.spark i:hover::after{content:attr(title);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#000;padding:2px 6px;border-radius:6px;font-size:10px;white-space:nowrap;font-style:normal}
.banner{display:flex;gap:10px;align-items:center;background:linear-gradient(90deg,var(--gold-s),transparent);border:1px solid #ffc83733;border-radius:14px;padding:10px 14px;margin-bottom:14px;font-size:13px}
[dir=rtl] .banner{background:linear-gradient(-90deg,var(--gold-s),transparent)}
.btn{border:0;border-radius:10px;padding:8px 14px;background:var(--gold);color:#111;font-weight:600;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.btn:hover{background:var(--gold-h)}.btn:disabled{opacity:.5;cursor:default}
.btn.g{background:var(--s1);border:1px solid var(--line2);color:var(--txt);font-weight:500}.btn.sm{padding:4px 9px;font-size:12px}
.btn.danger{background:var(--red-s);color:#F87171;border:1px solid #ef444440}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-inline-end:6px}
.filters{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.filters button{padding:5px 12px;border-radius:999px;background:var(--s2);border:1px solid var(--line);font-size:12px;color:var(--txt2)}
.filters button.on{background:var(--gold);color:#111;border-color:var(--gold);font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.th{aspect-ratio:1;border-radius:14px;position:relative;border:1px solid var(--line);overflow:hidden;background:var(--s2);cursor:pointer;display:grid;place-items:center;font-size:30px}
.th:hover{border-color:var(--gold)}
.th img,.th video{width:100%;height:100%;object-fit:cover;display:block}
.th span{position:absolute;inset-inline-start:8px;bottom:8px;font-size:11px;background:#000b;padding:2px 7px;border-radius:7px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table{width:100%;border-collapse:collapse}th,td{padding:10px 8px;text-align:start;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--txt2);font-weight:500;font-size:12px}
.tog{width:32px;height:18px;border-radius:999px;background:var(--line2);position:relative;display:inline-block;border:0;padding:0;vertical-align:middle}
.tog::after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:var(--txt2);top:2px;inset-inline-start:2px;transition:.2s}
.tog.on{background:var(--green)}.tog.on::after{inset-inline-start:16px;background:#fff}
.scroll-x{overflow-x:auto}
.who{display:flex;gap:8px;align-items:center}
.field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.field label{font-size:12px;color:var(--txt2)}
.inp{background:var(--s1);border:1px solid var(--line2);border-radius:10px;padding:9px 11px;outline:0;width:100%}
.inp:focus{border-color:var(--gold)}
.row{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.row>*{flex:1;min-width:120px}
.empty{color:var(--mute);text-align:center;padding:30px 10px}
.err{color:#F87171;font-size:13px;margin-top:6px}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--s2);border:1px solid var(--line2);padding:10px 16px;border-radius:12px;z-index:50;box-shadow:0 8px 30px #000a}

/* ---------- inbox ---------- */
.ibx{display:grid;grid-template-columns:340px 1fr;height:100%;min-height:0}
.lp{border-inline-end:1px solid var(--line);overflow:auto;padding:14px 10px;min-height:0}
.lp h2{padding:0 6px;margin-bottom:4px}.lp>.sub{padding:0 6px;display:block;margin-bottom:10px}
.thr{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;cursor:pointer;text-decoration:none;color:var(--txt)}
.thr:hover{background:var(--s2)}.thr.on{background:var(--s2);box-shadow:inset 3px 0 0 var(--gold)}
[dir=rtl] .thr.on{box-shadow:inset -3px 0 0 var(--gold)}
.ti{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:20px;flex:none;border:1px solid var(--line);background:var(--s2)}
.bd{flex:1;min-width:0}.bd .r{display:flex;gap:6px;align-items:center}.bd b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv{color:var(--txt2);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.badge{background:var(--gold);color:#111;font-size:10px;font-weight:700;border-radius:999px;padding:0 7px;line-height:17px}
.tm2{font-size:11px;color:var(--mute)}
.tp{display:flex;flex-direction:column;min-height:0;min-width:0}
.tp-h{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.tp-h .back{display:none}
.media{max-height:300px;width:100%;border-radius:14px;background:#000;object-fit:contain;display:block;border:1px solid var(--line)}
.tmsgs{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px;min-height:0}
.tm{display:flex;gap:8px;align-items:flex-end;max-width:85%}.tm.mine{align-self:flex-end;flex-direction:row-reverse}
.tm .m{max-width:100%}.tm .nm{font-size:11px;color:var(--txt2);margin-bottom:2px}
.tm.mine .nm{display:none}
.trn{display:block;font-size:10.5px;opacity:.75;margin-top:5px}.trn a{color:var(--gold);cursor:pointer;text-decoration:underline}
.m.u .trn a{color:#fff}
.hint{font-size:11px;color:var(--mute);padding:0 16px 4px;text-align:center}

/* ---------- login ---------- */
.login{min-height:100dvh;display:grid;place-items:center;padding:20px}
.login .card{width:min(400px,100%);padding:28px}
.login h1{margin:14px 0 4px;font-size:24px}
.gbtn{width:100%;justify-content:center;background:#fff;color:#1f1f1f;border:0;border-radius:10px;padding:10px;font-weight:600;display:flex;gap:10px;align-items:center;text-decoration:none}
.or{display:flex;align-items:center;gap:10px;color:var(--mute);font-size:12px;margin:16px 0}.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}

.bottom{display:none}.scrim{display:none}

/* ---------- agent mode ---------- */
.app.am{grid-template-columns:1fr}.app.am .main{display:none}
.app.am .agent{border:0}.app.am .ag-h{display:none}
.app.am .msgs,.app.am .sugg{max-width:780px}.app.am .compose{width:calc(100% - 24px);max-width:756px;margin-inline:auto;margin-bottom:16px}
.app.am .tabs{display:none}

/* ---------- tablet: agent drawer ---------- */
@media (max-width:1050px){
  .app{grid-template-columns:1fr}
  .app:not(.am) .agent{position:absolute;top:0;bottom:0;inset-inline-start:0;width:min(380px,90%);transform:translateX(-102%);box-shadow:20px 0 40px #000c;z-index:8}
  [dir=rtl] .app:not(.am) .agent{transform:translateX(102%)}
  .app.open:not(.am) .agent{transform:none!important}
  .app.open:not(.am) .scrim{display:block;position:absolute;inset:0;background:#000a;z-index:7}
  .app:not(.am) .ag-h .x,.app:not(.am) .agbtn{display:grid}
  .ibx{grid-template-columns:280px 1fr}
}
/* ---------- phone ---------- */
@media (max-width:700px){
  .tabs,.hide-m,.seg .lbl{display:none}
  .top{padding:10px 12px;gap:8px}.logo span{display:none}
  .content{padding:14px 14px 90px}.content.flush{padding:0 0 70px}
  .g3{grid-template-columns:1fr 1fr}.g3>.card:first-child{grid-column:1/-1}.g2{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(3,1fr);gap:6px}.th{border-radius:10px}.th span{display:none}
  .ibx{grid-template-columns:1fr}.ibx.has .lp{display:none}.ibx:not(.has) .tp{display:none}.tp-h .back{display:grid}
  .app:not(.am) .bottom{display:flex;position:absolute;inset-inline:0;bottom:0;height:70px;background:#08090Cf2;border-top:1px solid var(--line);align-items:center;justify-content:space-around;z-index:6;backdrop-filter:blur(8px)}
  .bottom a{display:flex;flex-direction:column;align-items:center;font-size:10px;color:var(--txt2);gap:2px;position:relative;width:56px;text-decoration:none}
  .bottom a.on{color:var(--gold)}.bottom a i{font-style:normal;font-size:19px;line-height:1}
  .bottom a .badge{position:absolute;top:-4px;inset-inline-end:8px;padding:0 5px;line-height:15px}
  .bottom .cap{width:56px;height:56px;border-radius:50%;background:var(--gold);color:#111;display:grid;place-items:center;margin-top:-30px;box-shadow:0 6px 22px #ffc83755,0 0 0 5px var(--bg);border:0;padding:0}
  .bottom .cap svg{width:24px;height:24px;display:block}
  .app:not(.am) .agent{width:100%}
}

/* ---------- day planner ---------- */
.week{display:flex;gap:6px;align-items:center;margin-bottom:12px}
.week .days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;flex:1}
.day{border:1px solid var(--line);background:var(--s2);border-radius:12px;padding:8px 4px;text-align:center;cursor:pointer;color:var(--txt2);font-size:12px;position:relative}
.day b{display:block;font-size:17px;color:var(--txt)}
.day.on{border-color:var(--gold);background:var(--gold-s)}.day.on b{color:var(--gold)}
.day.today b{text-decoration:underline;text-underline-offset:4px}
.day i{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--gold)}
.sess{margin-bottom:12px}
.sess-h{display:flex;gap:10px;align-items:center;margin-bottom:6px}
.ex{display:flex;gap:12px;align-items:center;padding:8px;border-radius:12px;border:1px solid var(--line);background:var(--s1);margin-top:8px}
.ex img{width:64px;height:64px;border-radius:10px;object-fit:cover;background:#fff;flex:none;cursor:zoom-in}
.ex .grow{flex:1;min-width:0}
.ex .presc{color:var(--gold);font-weight:600;font-size:13px}
.ex input{width:64px;padding:4px 6px;font-size:12px}
.ex .edit{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
/* exercise picker modal */
.modal{position:fixed;inset:0;background:#000b;z-index:40;display:grid;place-items:center;padding:16px}
.mbox{background:var(--s1);border:1px solid var(--line2);border-radius:20px;width:min(1200px,100%);height:min(800px,100%);display:grid;grid-template-columns:250px minmax(300px,1fr) 320px;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 28px 90px #0009}
.mbox>header{grid-column:1/-1;display:flex;gap:10px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,var(--s1),var(--s2))}
.mbox>header>b{font-size:16px}.mbox>header .inp{border-radius:11px}.mbox>header .btn{white-space:nowrap}
.xfilters{grid-column:1;grid-row:2;overflow:auto;border-inline-end:1px solid var(--line);padding:16px 12px;background:linear-gradient(180deg,var(--s2),var(--s1) 50%)}
.xfilter-label{font-size:10px;letter-spacing:.12em;font-weight:800;color:var(--mute);padding:2px 8px 9px}
.area-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.area-nav button{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--txt2);padding:9px 8px;text-align:start;font-size:12px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .15s}
.area-nav button span{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:8px;background:var(--s1);color:var(--txt2);font-size:13px}
.area-nav button:hover{background:var(--s1);color:var(--txt);transform:translateY(-1px)}
.area-nav button.on{background:var(--gold-s);border-color:color-mix(in srgb,var(--gold) 45%,transparent);color:var(--txt)}
.area-nav button.on span{background:var(--gold);color:#111}
.xmus-label{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.mus{display:flex;flex-direction:column;gap:3px;overflow:auto}
.mus button{display:flex;justify-content:flex-start;width:100%;border:1px solid transparent;background:none;padding:8px 10px;border-radius:9px;color:var(--txt2);text-align:start;font-size:12px;cursor:pointer}
.mus button:hover{background:var(--s1);color:var(--txt)}
.mus button.on{background:var(--s2);border-color:var(--line2);color:var(--gold);font-weight:700}
.xmus-hint{font-size:11px;color:var(--mute);line-height:1.45;padding:8px}
.lib{grid-column:2;grid-row:2;overflow:auto;padding:16px;min-width:0}
.lib .grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.xresults-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px;color:var(--txt2);font-size:12px}
.xresults-head b{color:var(--txt);font-size:13px}.xresults-head span{color:var(--mute)}
.ext{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:14px;cursor:pointer;background:var(--s2);color:var(--txt);text-align:start;transition:transform .18s,border-color .18s,box-shadow .18s}
.ext:hover{transform:translateY(-2px);border-color:var(--line2);box-shadow:0 9px 22px #0003}
.ext.on{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-s),0 10px 24px #0004}
.ext img{width:100%;aspect-ratio:1;object-fit:cover;background:#fff;display:block}
.ext>div{display:flex;flex-direction:column;gap:4px;padding:9px 10px 11px;min-height:58px;font-size:12px;line-height:1.3}
.ext>div b{font-size:12px;line-height:1.35}.ext small{color:var(--mute);font-size:10px}
.ext>i{position:absolute;inset-inline-end:7px;top:7px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#111b;color:#fff;font-style:normal;font-size:17px;opacity:0;transform:scale(.85);transition:.15s}
.ext:hover>i,.ext.on>i{opacity:1;transform:scale(1)}.ext.on>i{background:var(--gold);color:#111}
.x-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--txt2);text-align:center}
.x-empty>span{font-size:36px;color:var(--gold)}.x-empty small{color:var(--mute)}
.prev{grid-column:3;grid-row:2;border-inline-start:1px solid var(--line);overflow:auto;padding:16px;background:var(--s2)}
.prev img{width:100%;border-radius:12px;background:#fff}
.prev ol{padding-inline-start:1.2em;color:var(--txt2);font-size:12.5px}
.gifzoom{max-width:min(520px,92vw);border-radius:14px;background:#fff}
@media (max-width:900px){
  .mbox{grid-template-columns:1fr;grid-template-rows:auto auto minmax(180px,1fr) auto;height:100%;border-radius:16px}
  .mbox>header{flex-wrap:wrap}.mbox>header>b{flex:1}
  .mbox>header #xq{order:3;flex:1 1 100%!important}
  .xfilters{grid-column:1;grid-row:2;overflow:visible;border:0;border-bottom:1px solid var(--line);padding:10px 12px}
  .xfilter-label{padding:0 4px 6px}.area-nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}
  .area-nav button{flex:none;white-space:nowrap;padding:7px 9px}.area-nav button span{width:21px;height:21px}
  .xmus-label{display:none}.xmus-hint{padding:4px 2px 0}
  .mus{display:flex;flex-direction:row;gap:5px;overflow-x:auto;padding-top:5px}
  .mus button{width:auto;flex:none;white-space:nowrap;padding:7px 10px}
  .lib{grid-column:1;grid-row:3;padding:12px}
  .prev{grid-column:1;grid-row:4;border:0;border-top:1px solid var(--line);max-height:42vh}
  .prev:empty{display:none}
}
@media (max-width:700px){.week .days{gap:3px}.day{padding:6px 2px;font-size:10px}.day b{font-size:15px}}
.ex-check{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid var(--line);background:transparent;color:#08090C;font-weight:800;cursor:pointer;display:grid;place-items:center}
.ex-check.on{background:var(--green);border-color:var(--green)}
.ex.ex-done{opacity:.6}.ex.ex-done .ex-name{text-decoration:line-through}
.ex-name{cursor:pointer}.ex-name:hover{color:var(--gold)}
.live-sess{border-color:var(--gold);margin-bottom:12px}
.ex-info{max-width:520px;width:calc(100% - 32px);max-height:88vh;overflow:auto;cursor:auto}
.ex-info-gif{width:100%;max-height:320px;object-fit:contain;background:#fff;border-radius:12px;margin:12px 0}
.ex-info ol{padding-inline-start:20px;line-height:1.55}
.act-row{margin-top:8px;padding:8px 10px;border-radius:12px;background:var(--s1);border:1px solid var(--line)}
.act-top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.act-top .sp{flex:1}
.zones{display:flex;height:6px;border-radius:4px;overflow:hidden;margin-top:8px;gap:1px}
.lb-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line)}
.lb-row.me{background:color-mix(in srgb,var(--gold) 8%,transparent);border-radius:10px}
.lb-rank{width:26px;text-align:center;font-weight:700;font-size:18px}
.lb-pts{text-align:end}.lb-pts b{font-size:22px;color:var(--gold);display:block;line-height:1}.lb-pts small{color:var(--txt2)}
.lb-how{margin-top:10px}.lb-how summary{cursor:pointer;color:var(--gold);font-weight:600}.lb-how ul{padding-inline-start:20px;line-height:1.6;color:var(--txt2)}
.compose textarea{line-height:1.4;max-height:120px;font-family:inherit;color:inherit}.compose textarea::placeholder{color:var(--mute)}

/* Nutrition dashboard inspired by the supplied reference */
.eat-page{max-width:1240px;margin:0 auto}.eat-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 14px}.eat-heading h2{margin:2px 0 0;font-size:26px;letter-spacing:-.03em}.eat-history{font-size:12px;color:var(--gold);font-weight:700;text-decoration:none;white-space:nowrap}.eat-dashboard{display:grid;grid-template-columns:minmax(170px,.85fr) minmax(170px,.85fr) minmax(235px,1.12fr) minmax(280px,1.25fr);gap:11px;align-items:stretch}.eat-card{min-width:0;padding:13px 14px;background:linear-gradient(155deg,var(--s2),var(--s1));border:1px solid var(--line);border-radius:15px}.eat-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:12px}.eat-card-head>span{color:var(--mute);font-size:9px;letter-spacing:.08em;font-weight:800}.eat-card-head a{color:var(--gold);font-size:11px;text-decoration:none}.eat-weight-value{font-size:26px;font-weight:800;letter-spacing:-.04em}.eat-weight-value small{font-size:12px;color:var(--mute);font-weight:600}.eat-weight .spark{height:38px;margin:5px 0 8px}.eat-weight-hint{height:43px;display:flex;align-items:center;color:var(--mute);font-size:11px;line-height:1.4}.eat-weight-form{display:flex;gap:6px}.eat-weight-form .inp{min-width:0;height:34px;padding:6px 9px;font-size:12px}.eat-weight-form .btn{width:36px;min-width:36px;padding:0;justify-content:center}.eat-last-weight{font-size:9px;margin-top:6px;line-height:1.3}.eat-water-content{display:flex;align-items:center;justify-content:center;gap:12px;min-height:139px}.eat-water-ring{--water-pct:0%;position:relative;width:104px;height:104px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#54c7ec var(--water-pct),var(--line2) 0);transform:rotate(-35deg)}.eat-water-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--s1)}.eat-water-ring>span{position:relative;display:flex;flex-direction:column;align-items:center;transform:rotate(35deg)}.eat-water-ring b{font-size:20px;line-height:1.1}.eat-water-ring small{font-size:10px;color:var(--mute)}.eat-water-actions{min-width:0}.eat-water-actions>b{display:block;font-size:16px}.eat-water-actions>b small{display:block;font-size:10px;color:var(--mute);font-weight:500}.eat-2{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.eat-2 .btn{padding:6px 8px;font-size:10px;white-space:nowrap}.eat-water-note{font-size:9px;line-height:1.3;margin-top:6px}.eat-kcal-row{display:flex;align-items:baseline;gap:5px;margin:1px 0 7px}.eat-kcal-row>b{font-size:20px;letter-spacing:-.03em}.eat-kcal-row>span,.eat-mac small{font-size:10px;color:var(--mute)}.eat-kcal-row em,.eat-ml em{font-style:normal;color:var(--gold);font-size:11px}.eat-bar{height:7px;position:relative;overflow:hidden;border-radius:99px;background:var(--line2)}.eat-bar i{position:absolute;inset:0 auto 0 0;display:block;border-radius:inherit}.eat-bar i.ghost{opacity:.25}.eat-kcal-bar i:not(.ghost){background:linear-gradient(90deg,#d9a928,var(--gold))}.eat-macros{display:grid;gap:10px;margin-top:17px}.eat-ml{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:5px;font-size:10px}.eat-ml>span{display:flex;align-items:center;gap:6px;color:var(--txt2)}.eat-ml>span i{width:7px;height:7px;border-radius:50%;background:var(--macro-color)}.eat-ml>b{white-space:nowrap;font-size:10px}.eat-mac .eat-bar{height:5px}.eat-forecast{font-size:9px;color:var(--mute);margin-top:9px}.eat-box>.sub{font-size:10px;margin:-7px 0 8px;line-height:1.4}.eat-box textarea{width:100%;min-height:62px;resize:vertical;font-size:12px;line-height:1.4;padding:9px 10px}.eat-tools{display:flex;align-items:center;gap:5px;margin-top:7px}.eat-tools .ic{width:33px;height:33px;flex:none}.eat-estimate{white-space:nowrap}.eat-lower{margin-top:20px}.eat-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px}.eat-section-head h3{margin:0;font-size:16px}.eat-section-head p{margin:3px 0 0;color:var(--mute);font-size:11px}.eat-recent{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px}.eat-recent-item{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--s1);color:var(--txt);text-align:start;cursor:pointer;transition:border-color .15s,transform .15s}.eat-recent-item:hover{border-color:var(--line2);transform:translateY(-1px)}.eat-recent-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--s2);font-size:19px}.eat-recent-item .grow{min-width:0}.eat-recent-item b,.eat-recent-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eat-recent-item b{font-size:11px}.eat-recent-item small{margin-top:3px;color:var(--mute);font-size:9px}.eat-recent-item>i{color:var(--gold);font-style:normal;font-size:17px}.eat-day{padding:3px 13px}.eat-day .eat-ent{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.eat-day .eat-ent:last-child{border-bottom:0}.eat-day .eat-ent .t{width:42px;flex:none;color:var(--mute);font-size:10px}.eat-day .eat-ent .grow{min-width:0}.eat-day .eat-ent .grow b{font-size:12px}.eat-day .eat-ent .sub{font-size:10px}.eat-plan{margin-top:18px}.eat-plan .eat-gl{margin-bottom:0}
@media(max-width:1120px){.eat-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.eat-box{grid-column:span 2}}
@media(max-width:640px){.eat-heading h2{font-size:23px}.eat-dashboard{grid-template-columns:1fr}.eat-box{grid-column:auto}.eat-water-content{justify-content:flex-start;padding-inline:10px}.eat-recent{grid-template-columns:1fr 1fr}.eat-recent-item{padding:8px;gap:7px}.eat-tools .sp{flex:1}.eat-estimate{font-size:11px}}

/* Media preview, item conversation and explicit recipient selection */
.media-tile{width:100%;padding:0;text-align:inherit;color:inherit;font-family:inherit}.media-modal{position:fixed;inset:0;z-index:160;background:#05070bdc;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:18px}.media-dialog{width:min(760px,100%);max-height:min(92vh,900px);overflow:auto;background:var(--s1);border:1px solid var(--line2);border-radius:18px;box-shadow:0 24px 80px #0009}.media-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:13px 16px;background:var(--s1);border-bottom:1px solid var(--line)}.media-dialog>header>div{flex:1;min-width:0}.media-dialog>header b,.media-dialog>header small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-dialog>header small{font-size:10px;color:var(--mute)}.media-detail{display:grid;place-items:center;max-height:48vh;min-height:120px;padding:14px;background:#08090c}.media-preview{display:block;max-width:100%;max-height:44vh;object-fit:contain;border-radius:10px}.media-sharing,.media-chat{padding:14px 16px;border-top:1px solid var(--line)}.media-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.media-section-title b,.media-section-title small{display:block}.media-section-title b{font-size:13px}.media-section-title small{margin-top:3px;color:var(--mute);font-size:10px}.media-recipients{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-bottom:10px}.media-rec-group{display:grid;align-content:start;gap:5px;padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--s2)}.media-rec-group>b{font-size:10px;color:var(--txt2);margin-bottom:2px}.media-rec-group label{display:flex;align-items:center;gap:6px;font-size:11px;cursor:pointer}.media-rec-group input{accent-color:var(--gold)}#mediaShareStatus{margin-inline-start:8px;font-size:10px}.media-messages{display:grid;gap:8px;max-height:210px;overflow:auto;padding:2px}.media-message{max-width:85%;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:var(--s2)}.media-message.mine{justify-self:end;border-color:#564717;background:#28220f}.media-message b{font-size:10px}.media-message small{float:inline-end;color:var(--mute);font-size:9px;margin-inline-start:8px}.media-message p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.4}.media-compose{display:flex;gap:7px;margin-top:9px}.media-compose .inp{min-width:0;flex:1}.media-compose .btn{flex:none;padding:8px 12px}
.compose textarea#agIn{min-height:44px;height:44px;max-height:120px;align-self:center;padding:8px 9px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto}.compose textarea#agIn::placeholder{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:640px){.media-modal{padding:8px}.media-dialog{max-height:95vh;border-radius:14px}.media-sharing,.media-chat{padding:12px}.media-recipients{grid-template-columns:1fr 1fr}.media-message{max-width:94%}}

/* Quiet, glanceable Today surface */
.today-page{max-width:900px;margin:0 auto}.today-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:2px 0 18px}.today-heading .sub{font-size:11px}.today-heading h2{font-size:30px;letter-spacing:-.04em;margin:1px 0 0}.today-heading-mark{font-size:11px;color:var(--mute);padding-bottom:5px}.today-focus{display:flex;align-items:center;gap:14px;padding:18px 20px;margin-bottom:13px;border:1px solid #6d5a25;background:radial-gradient(ellipse at 0 0,#ffc83713,transparent 65%),linear-gradient(140deg,#191811,var(--s1) 58%);border-radius:18px;color:var(--txt);text-decoration:none;transition:border-color .18s,transform .18s}.today-focus:hover{border-color:#a3832d;transform:translateY(-1px)}.today-focus-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:#ffc83718;color:var(--gold);font-size:19px}.today-focus .grow{display:grid;gap:2px;min-width:0}.today-focus small{color:var(--gold);font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.today-focus b{font-size:15px;line-height:1.35;overflow-wrap:anywhere}.today-focus .grow>span{font-size:11px;color:var(--txt2)}.today-focus>i{font-style:normal;font-size:21px;color:var(--mute)}.today-focus>span:first-child{color:var(--gold)}.today-focus:has(.today-focus-icon:first-child){min-height:82px}.today-focus:has(.today-focus-icon:first-child) .today-focus-icon{box-shadow:inset 0 0 0 1px #ffc83720}.today-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.today-widget{display:flex;align-items:center;gap:12px;min-width:0;min-height:82px;padding:14px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--s2),#111318);color:var(--txt);text-decoration:none;transition:border-color .18s,transform .18s}.today-widget:hover{border-color:var(--line2);transform:translateY(-1px)}.today-widget-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#ffffff08;font-size:18px}.today-widget-copy{display:grid;gap:2px;min-width:0}.today-widget-copy>small{font-size:10px;color:var(--mute)}.today-widget-copy>b{font-size:16px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.today-widget-copy>b small{font-size:10px;color:var(--mute);font-weight:500}.today-widget-copy>em{font-style:normal;font-size:10px;color:var(--txt2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.today-widget>i{margin-inline-start:auto;font-style:normal;color:var(--mute);font-size:18px}.orb>svg,.cap .orb>svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#17130a}.agbtn .orb>svg{width:19px;height:19px}.ag-h .orb{display:grid;place-items:center;box-shadow:none}.bottom .cap .orb::before{content:none!important}.bottom .cap .orb>svg{width:25px;height:25px;color:#17130a}.bottom .cap.on .orb>svg{color:var(--gold)}

/* Shared mobile rhythm: one readable column, horizontal filter rails, and reliable touch targets. */
@media(max-width:700px){
  .today-heading{align-items:center;margin:0 0 14px}.today-heading h2{font-size:25px}.today-heading-mark{font-size:10px}.today-focus{padding:15px;gap:11px;border-radius:15px}.today-focus-icon{width:40px;height:40px}.today-focus b{font-size:14px}.today-widgets{grid-template-columns:1fr;gap:8px}.today-widget{min-height:72px;padding:12px;border-radius:13px}
  .content>h2{font-size:22px;line-height:1.25;margin-bottom:12px}.content h3{margin-top:16px}.content .card{border-radius:14px}.content .filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px;scrollbar-width:none}.content .filters::-webkit-scrollbar{display:none}.content .filters button{flex:none;white-space:nowrap;min-height:38px}.content .row{align-items:stretch}.content .row>.field{min-width:min(100%,220px)}.content .row>.btn{align-self:flex-end}.content .scroll-x{max-width:calc(100vw - 28px)}.content table{min-width:600px}.content input.inp,.content select.inp,.content textarea.inp{font-size:16px}.content .btn.sm{min-height:36px}.content .g3,.content .g2{gap:8px}.content .g3>.card{min-width:0}
}
@media(max-width:390px){.today-heading-mark{display:none}.today-focus{padding:13px}.today-widgets{grid-template-columns:1fr}.content{padding-inline:12px}.content .scroll-x{max-width:calc(100vw - 24px)}}

/* Schedule: clear week navigation, calm session cards, and a compact create flow */
.schedule-page{max-width:1000px;margin:0 auto}.schedule-page-heading{margin:2px 0 16px}.schedule-page-heading h2{margin:0;font-size:27px;letter-spacing:-.035em}.schedule-week-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(120deg,var(--s2),var(--s1))}.schedule-week-head>div:first-child{display:grid;gap:2px}.schedule-week-head small,.schedule-day-head small{font-size:9px;color:var(--mute);letter-spacing:.12em;font-weight:800}.schedule-week-head b{font-size:13px}.schedule-week-actions{display:flex;align-items:center;gap:6px}.schedule-week-actions .ic{width:36px;height:36px}.week{margin-bottom:16px}.week .days{gap:7px}.day{min-height:76px;padding:9px 4px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:15px;background:linear-gradient(155deg,var(--s2),var(--s1));transition:transform .15s,border-color .15s,background .15s}.day:hover{border-color:var(--line2);transform:translateY(-1px)}.day small{font-size:10px;color:var(--mute);text-transform:capitalize}.day b{font-size:19px;line-height:1.2}.day.today{box-shadow:inset 0 0 0 1px #ffc83750}.day.today b{text-decoration:none}.day.on{border-color:var(--gold);background:linear-gradient(145deg,#2a2414,var(--s1));box-shadow:0 4px 14px #0003}.day.on small,.day.on b{color:var(--gold)}.day-mark{height:12px;display:flex;align-items:center;gap:3px}.day-mark i{position:static;display:block;width:5px;height:5px;transform:none;border-radius:50%;background:var(--gold)}.day-mark em{font-style:normal;font-size:9px;color:var(--txt2)}.schedule-day-head{display:flex;align-items:center;gap:9px;margin:2px 2px 10px}.schedule-day-head>div{margin-inline-end:auto}.schedule-day-head h3{margin:2px 0 0;font-size:18px;letter-spacing:-.02em}.schedule-day-count{color:var(--txt2);font-size:10px;padding:5px 9px;border-radius:99px;background:var(--s2);border:1px solid var(--line)}.schedule-day-head .cal-btn{color:var(--txt2)}.schedule-day-head .cal-btn:hover{color:var(--gold)}.schedule-page .sess{padding:14px 15px;margin:0 0 9px;border-radius:16px;background:linear-gradient(140deg,var(--s2),var(--s1) 75%)}.schedule-session-head{align-items:center;gap:12px;margin-bottom:0}.schedule-session-head>.bar-s{width:3px;align-self:stretch;min-height:42px;border-radius:99px}.schedule-session-main{flex:1;min-width:0;cursor:pointer}.schedule-session-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.schedule-session-title>b{font-size:14px}.schedule-session-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:3px;color:var(--txt2);font-size:10px}.schedule-session-meta i{font-style:normal;color:var(--mute)}.schedule-session-actions{display:flex;align-items:center;gap:5px}.schedule-session-actions .btn{white-space:nowrap}.schedule-session-actions .ic{width:34px;height:34px}.schedule-delete{color:#dc7777}.schedule-session-note{margin:10px 0 0;padding:8px 10px;border-inline-start:2px solid var(--line2);color:var(--txt2);font-size:11px}.schedule-exercises{margin-top:11px;border-top:1px solid var(--line);padding-top:8px}.schedule-exercises>summary{display:flex;align-items:center;gap:7px;width:fit-content;list-style:none;cursor:pointer;color:var(--txt2);font-size:11px;user-select:none}.schedule-exercises>summary::-webkit-details-marker{display:none}.schedule-exercises>summary>b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:7px;background:var(--s2);color:var(--txt);font-size:10px}.schedule-exercises>summary>i{font-style:normal;color:var(--mute);transition:transform .18s}.schedule-exercises[open]>summary>i{transform:rotate(180deg)}.schedule-exercise-list{margin-top:4px}.schedule-page .ex{gap:9px;padding:8px;background:#0e1015;border-radius:12px}.schedule-page .ex img{width:52px;height:52px}.schedule-page .ex .sub{font-size:10px}.schedule-page .ex .edit{margin-top:7px}.schedule-session-tools{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}.schedule-session-tools .btn{min-height:34px}.schedule-no-exercises{margin-top:10px;color:var(--mute);font-size:11px}.schedule-create{margin-top:13px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--s2),var(--s1));overflow:hidden}.schedule-create>summary{display:flex;align-items:center;gap:10px;padding:12px;list-style:none;cursor:pointer}.schedule-create>summary::-webkit-details-marker{display:none}.schedule-create-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--gold-s);color:var(--gold);font-size:19px}.schedule-create>summary>span:nth-child(2){display:grid;gap:1px;flex:1}.schedule-create>summary b{font-size:12px}.schedule-create>summary small{font-size:10px;color:var(--mute)}.schedule-create>summary>i{font-style:normal;color:var(--mute);transition:transform .18s}.schedule-create[open]>summary>i{transform:rotate(180deg)}.schedule-create form{padding:0 13px 13px}.schedule-create-fields{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(100px,1fr));gap:8px}.schedule-create-fields .field{min-width:0;margin-bottom:10px}.schedule-create-fields .inp{min-height:40px}.schedule-page .empty{margin:0 0 10px;padding:20px 12px;border:1px dashed var(--line2);border-radius:14px;background:#ffffff03}
@media(max-width:700px){.schedule-page-heading{display:none}.schedule-week-head{padding:9px 10px;margin-bottom:8px}.schedule-week-actions{gap:4px}.schedule-week-actions .btn{min-height:36px}.schedule-week-actions .ic{width:36px;height:36px}.week .days{display:flex;gap:5px;overflow-x:auto;padding:1px 1px 5px;scroll-snap-type:x mandatory;scrollbar-width:none}.week .days::-webkit-scrollbar{display:none}.day{flex:1 0 44px;min-height:68px;border-radius:13px;scroll-snap-align:start;padding-inline:2px}.day small{font-size:9px}.day b{font-size:17px}.schedule-day-head{margin-top:4px}.schedule-day-head h3{font-size:16px}.schedule-page .sess{padding:12px;margin-bottom:8px}.schedule-session-head{flex-wrap:wrap;gap:9px}.schedule-session-main{flex-basis:calc(100% - 48px)}.schedule-session-actions{margin-inline-start:auto}.schedule-session-actions .btn{min-height:36px}.schedule-session-actions .btn span{display:inline}.schedule-page .ex{flex-wrap:wrap;gap:7px}.schedule-page .ex .grow{flex:1 1 calc(100% - 100px)}.schedule-page .ex .edit{width:100%}.schedule-page .ex .edit .inp{min-height:36px}.schedule-session-tools .btn{flex:1;justify-content:center}.schedule-create-fields{grid-template-columns:1fr 1fr}.schedule-create-fields .field:first-child{grid-column:1/-1}.schedule-create form>.btn{width:100%;justify-content:center}}
@media(max-width:380px){.schedule-week-head b{font-size:11px}.schedule-week-actions .btn{padding-inline:7px;font-size:10px}.day{flex-basis:40px}.schedule-session-meta{gap:4px;font-size:9px}.schedule-session-actions .btn{padding-inline:7px;font-size:10px}}
.schedule-page .ex .edit{display:grid;grid-template-columns:repeat(4,minmax(58px,1fr));gap:6px;margin-top:7px}.schedule-page .ex .edit .inp{width:100%;min-width:0;min-height:36px}.schedule-page .ex .edit .inp:last-child{grid-column:1/-1}

/* Schedule concept: week-first planning with a clear week/day switch */
.schedule-page{max-width:1120px}.schedule-page-heading{margin:0 0 12px}.schedule-page-heading h2{font-size:25px;letter-spacing:-.04em}.schedule-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 15px;padding:0 1px}.schedule-period{display:grid;gap:5px}.schedule-kicker{font-size:9px;letter-spacing:.17em;color:#c4a644;font-weight:800}.schedule-period>div{display:grid;gap:2px}.schedule-period h2{font-size:18px;line-height:1.2;letter-spacing:-.025em;margin:0;font-weight:700}.schedule-period>div>span{font-size:10px;color:var(--mute)}.schedule-toolbar-actions{display:flex;align-items:center;gap:7px}.schedule-toolbar-actions>.btn{min-height:36px}.schedule-week-arrow{width:36px;height:36px}.schedule-view-toggle{display:flex;align-items:center;padding:3px;border:1px solid #292c33;background:#101216;border-radius:11px;gap:2px}.schedule-view-toggle button{min-width:53px;height:29px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#999eaa;font-size:10px;font-weight:650;cursor:pointer}.schedule-view-toggle button.on{background:#282315;color:#f2d477;box-shadow:inset 0 0 0 1px #52451f}.schedule-week-strip{padding:7px;border:1px solid #24272e;border-radius:15px;background:linear-gradient(105deg,#14161b,#111318);margin-bottom:13px}.schedule-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.schedule-date{height:58px;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr 1fr;align-items:center;text-align:left;padding:7px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#d9d9dc;cursor:pointer;transition:background .16s,border-color .16s}.schedule-date:hover{background:#ffffff06}.schedule-date>span{align-self:end;font-size:9px;color:#999eaa;text-transform:uppercase;letter-spacing:.06em}.schedule-date>b{grid-column:2;grid-row:1/3;font-size:18px;font-weight:650;color:#dedfe2}.schedule-date>i{grid-column:1;grid-row:2;align-self:start;min-height:7px;font-size:9px;line-height:8px;font-style:normal;color:#dbbb4a}.schedule-date.on{background:linear-gradient(145deg,#302817,#211d14);border-color:#655427;box-shadow:inset 0 0 0 1px #e7c75616}.schedule-date.on>span,.schedule-date.on>b{color:#f4d879}.schedule-date.today:not(.on)>span{color:#e2c76c}.schedule-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:stretch}.schedule-week-card{min-width:0;min-height:174px;display:flex;flex-direction:column;padding:9px;border:1px solid #24272e;border-radius:13px;background:linear-gradient(155deg,#15171c,#111318 72%);transition:border-color .16s,transform .16s,background .16s}.schedule-week-card:hover{transform:translateY(-2px);border-color:#42434a}.schedule-week-card.selected{border-color:#69592a;background:radial-gradient(ellipse at 50% 0,#d0a71c0c,transparent 65%),linear-gradient(155deg,#1b1913,#121318 75%)}.schedule-week-card.is-today .schedule-week-card-head>span small{color:#d8b84d}.schedule-week-card-head{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1px 1px 8px;border:0;border-bottom:1px solid #292b31;background:transparent;text-align:left;cursor:pointer}.schedule-week-card-head>span{display:grid;gap:1px}.schedule-week-card-head small{font-size:8px;line-height:1.3;letter-spacing:.07em;color:#9297a1;text-transform:uppercase}.schedule-week-card-head b{font-size:16px;line-height:1.15;font-weight:650}.schedule-week-card-head>i{font-style:normal;color:#bfaa61;font-size:12px}.schedule-week-card-items{display:grid;gap:6px;align-content:start;padding:8px 0;flex:1}.schedule-mini-session{display:flex;align-items:flex-start;gap:6px;width:100%;padding:7px 6px;border:1px solid #292c32;border-radius:9px;background:#191b20;text-align:left;cursor:pointer;min-width:0}.schedule-mini-session>i{flex:none;width:2px;min-height:25px;border-radius:3px;background:var(--session-color,#d7b849);margin-top:1px}.schedule-mini-session>span{min-width:0;display:grid;gap:2px}.schedule-mini-session b{font-size:9px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}.schedule-mini-session small{font-size:8px;color:#a1a5ae;white-space:nowrap}.schedule-mini-session em{font-style:normal;color:#81c99b;font-size:11px;margin-inline-start:auto}.schedule-mini-session.activity>i{background:#81b3f5}.schedule-rest{padding:5px 2px;border:0;background:none;color:#686e79;text-align:left;font-size:9px;cursor:pointer}.schedule-add-day,.schedule-view-day{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:27px;padding:4px 2px;border:0;border-top:1px solid #25282e;background:none;color:#aa9860;text-align:left;font-size:9px;cursor:pointer}.schedule-add-day:hover,.schedule-view-day:hover{color:#f0d27b}.schedule-view-day span{font-size:15px}.schedule-day-view{max-width:790px;margin:0 auto;padding:4px 0}.schedule-day-view .schedule-day-head{margin:0 2px 14px;gap:10px}.schedule-day-view .schedule-day-head>div{display:grid;gap:3px}.schedule-day-view .schedule-day-head h3{font-size:19px;font-weight:670;letter-spacing:-.03em}.schedule-day-view .schedule-day-count{margin-inline-start:auto}.schedule-day-view .schedule-session-head{padding-bottom:2px}.schedule-day-view .schedule-session-title>b{font-size:15px}.schedule-day-view .sess{border-color:#292c33;box-shadow:0 8px 22px #0002}.schedule-day-view .schedule-create{margin-top:14px}.schedule-empty{min-height:145px;display:grid;align-content:center;justify-items:center;gap:5px;border:1px dashed #34353a;border-radius:16px;background:radial-gradient(ellipse at center,#c5a2380a,transparent 65%);color:#c9c5b5;text-align:center}.schedule-empty>span{font-size:25px;color:#c0a346}.schedule-empty>b{font-size:12px;font-weight:650}.schedule-empty>small{font-size:10px;color:#838894}
@media(max-width:900px){.schedule-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.schedule-week-card{min-height:160px}}
@media(max-width:700px){.schedule-page-heading{display:none}.schedule-toolbar{align-items:flex-start;flex-direction:column;gap:12px;margin:0 0 12px}.schedule-period{gap:4px}.schedule-period h2{font-size:17px}.schedule-toolbar-actions{width:100%;gap:5px}.schedule-toolbar-actions .schedule-view-toggle{margin-inline-end:auto}.schedule-toolbar-actions>.btn{padding-inline:10px}.schedule-week-strip{padding:5px;margin-bottom:10px}.schedule-week-days{gap:2px}.schedule-date{height:54px;padding:5px 3px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:1px}.schedule-date>b{font-size:16px}.schedule-date>span{font-size:8px}.schedule-date>i{min-height:6px;line-height:6px}.schedule-week-grid{display:flex;overflow-x:auto;gap:8px;margin:0 -14px;padding:1px 14px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}.schedule-week-grid::-webkit-scrollbar{display:none}.schedule-week-card{flex:0 0 min(74vw,270px);min-height:170px;scroll-snap-align:start;padding:11px}.schedule-week-card-head small{font-size:9px}.schedule-week-card-head b{font-size:18px}.schedule-mini-session b{font-size:11px}.schedule-mini-session small{font-size:9px}.schedule-add-day,.schedule-view-day{font-size:10px}.schedule-day-view{padding-top:1px}.schedule-day-view .schedule-day-head{margin-bottom:10px}.schedule-day-view .schedule-day-head h3{font-size:17px}.schedule-empty{min-height:125px}.schedule-day-view .schedule-session-head{gap:8px}.schedule-day-view .schedule-session-meta{font-size:10px}}
@media(max-width:380px){.schedule-toolbar-actions{gap:3px}.schedule-toolbar-actions .btn{font-size:10px;padding-inline:8px}.schedule-view-toggle button{min-width:45px;padding-inline:7px}.schedule-week-arrow{width:32px;height:32px}}
.schedule-mini-exercise{display:flex;align-items:center;gap:6px;width:100%;min-width:0;padding:5px;border:1px solid #282b31;border-radius:9px;background:#181a1f;color:var(--txt);text-align:left;cursor:pointer}.schedule-mini-exercise>img,.schedule-thumb-fallback{width:34px;height:34px;flex:none;object-fit:cover;border-radius:7px;background:#252830}.schedule-thumb-fallback{display:grid;place-items:center;color:#d5b94f}.schedule-mini-exercise-copy{display:grid;gap:2px;min-width:0}.schedule-mini-exercise-copy b{font-size:9px;line-height:1.25;font-weight:650;overflow-wrap:anywhere}.schedule-mini-exercise-copy small{font-size:8px;color:#a4a8b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-no-exercises-mini{padding:7px 3px;color:#858a94;font-size:9px}.schedule-mini-activity{display:flex;align-items:center;gap:5px;padding:5px 2px;color:#b8bdc6}.schedule-mini-activity>span{color:#8bb8fb}.schedule-mini-activity>b{font-size:9px}.schedule-mini-activity>small{margin-inline-start:auto;color:#9297a1;font-size:8px}.schedule-day-exercises{display:grid;gap:8px}.schedule-day-exercise{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #282b32;border-radius:13px;background:linear-gradient(115deg,#181a20,#13151a);box-shadow:0 6px 18px #0002}.schedule-exercise-image{width:66px;height:66px;flex:none;overflow:hidden;padding:0;border:0;border-radius:10px;background:#252830;cursor:pointer}.schedule-exercise-image img{display:block;width:100%;height:100%;object-fit:cover}.schedule-exercise-image span{display:grid;place-items:center;width:100%;height:100%;color:#d7b84b}.schedule-exercise-copy{display:grid;gap:3px;flex:1;min-width:0;padding:2px;border:0;background:none;text-align:left;cursor:pointer}.schedule-exercise-copy b{font-size:12px;font-weight:650;line-height:1.3}.schedule-exercise-copy small{font-size:10px;color:#a1a6b0;overflow-wrap:anywhere}.schedule-exercise-action{width:31px;height:31px;min-width:31px;min-height:31px}.schedule-exercise-action.remove{color:#d87979}.schedule-day-add-exercise{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin:9px 0;border:1px dashed #46402d;border-radius:11px;background:#17160f;color:#d4bb66;font-size:11px;cursor:pointer}.schedule-day-add-exercise:hover{background:#201d13;border-color:#75622c}
@media(max-width:700px){.schedule-day-exercise{padding:8px;gap:8px}.schedule-exercise-image{width:58px;height:58px}.schedule-exercise-copy b{font-size:11px}.schedule-exercise-copy small{font-size:9px}.schedule-exercise-action{width:29px;height:29px;min-width:29px;min-height:29px}}
.eat-page{max-width:1050px}.eat-dashboard{display:block}.eat-box{padding:20px;background:radial-gradient(ellipse at 0 0,#ffc8370d,transparent 58%),linear-gradient(145deg,#17191f,#121419);border-radius:19px}.eat-box .eat-card-head{margin-bottom:6px;font-size:16px}.eat-box>.sub{margin:0 0 13px;font-size:11px}.eat-box textarea{min-height:88px;padding:13px 14px;border-radius:13px;font-size:14px}.eat-box .eat-tools{margin-top:10px;gap:8px}.eat-box .eat-tools .ic{width:40px;height:40px}.eat-box .eat-estimate{min-height:40px;padding-inline:17px}.eat-lower{margin-top:18px}.eat-support-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);gap:12px;margin-top:22px}.eat-support-grid .eat-card{height:100%;padding:16px 17px}.eat-support-grid .eat-water-content{min-height:125px}.eat-support-grid .eat-macros{gap:12px;margin-top:15px}.eat-support-grid .eat-card-head{font-size:13px}.eat-support-grid .eat-lower{margin-top:14px}
@media(max-width:700px){.eat-box{padding:15px;border-radius:16px}.eat-box textarea{min-height:76px}.eat-support-grid{grid-template-columns:1fr;gap:10px;margin-top:18px}.eat-support-grid .eat-water-content{min-height:110px}.eat-lower{margin-top:16px}}
.schedule-thumb-fallback[hidden]{display:none!important}.schedule-mini-exercise{padding:5px 2px;border:0;border-bottom:1px solid #292b31;border-radius:0;background:transparent}.schedule-mini-exercise:last-child{border-bottom:0}.schedule-mini-exercise>img,.schedule-thumb-fallback{width:42px;height:42px}.schedule-mini-exercise-copy b{font-size:10px}.schedule-mini-exercise-copy small{font-size:9px}.schedule-week-card-head>i{min-width:19px;height:19px;display:grid;place-items:center;border-radius:7px;background:#252116;color:#d9bd5e;font-size:9px;font-weight:650}.schedule-week-card{min-height:0}.schedule-week-card-items{gap:3px}.schedule-week-card:has(.schedule-week-card-items:empty){background:linear-gradient(155deg,#14161a,#101216 72%)}.schedule-week-card .schedule-rest,.schedule-week-card .schedule-view-day,.schedule-week-card .schedule-add-day{display:none}
.schedule-page>.banner{margin:0 0 12px;padding:9px 12px;border-radius:12px;font-size:11px;line-height:1.45}

/* Barcode scan overlay and portion presets (eat.js) */
.eat-pre{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:2px 0 8px}.eat-pre .chip{cursor:pointer;border:1px solid var(--line2);padding:6px 10px}.eat-pre .chip.on{border-color:var(--gold);color:var(--txt)}
.scan-ov{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px}
.scan-box{position:relative;width:min(90vw,420px);aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:#000}.scan-box video{width:100%;height:100%;object-fit:cover}
.scan-line{position:absolute;left:8%;right:8%;top:50%;height:2px;background:var(--gold);box-shadow:0 0 8px var(--gold)}
.scan-ov form{width:min(90vw,420px)}
/* Voice chat (app.js): mic while recording, spoken-replies toggle */
#agMic.rec{color:#fff;background:#e5484d;border-radius:999px;animation:micp 1.2s ease-in-out infinite}
@keyframes micp{50%{box-shadow:0 0 0 6px #e5484d33}}
#agMic{touch-action:none;user-select:none;-webkit-user-select:none}
.m.a .spk{display:block;margin-top:6px;font-size:11px;background:none;border:1px solid var(--line);border-radius:999px;padding:2px 8px;color:var(--txt2);cursor:pointer}

/* Unified Progress hub */
.progress-page{max-width:1120px;margin:0 auto}
.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 16px}
.progress-heading h2{margin:2px 0 0;font-size:28px;letter-spacing:-.03em}
.progress-heading .eyebrow{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.16em}
.progress-tabs{display:flex;gap:5px;padding:5px;width:max-content;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--s1);margin-bottom:20px}
.progress-tabs a{display:block;padding:9px 15px;border-radius:10px;color:var(--txt2);font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s}
.progress-tabs a:hover{color:var(--txt);background:var(--s2)}
.progress-tabs a.on{background:linear-gradient(135deg,var(--gold),#f0ad19);color:#14120b;box-shadow:0 3px 12px #ffc83730}
.progress-block{margin:0 0 24px}
.progress-block-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 10px}
.progress-block-head h3{margin:0;font-size:17px;letter-spacing:-.015em}
.progress-block-head p{margin:4px 0 0;color:var(--mute);font-size:12.5px;line-height:1.45}
.progress-block-head .text-link{flex:none;color:var(--gold);font-size:12px;font-weight:700;text-decoration:none}
.progress-block-head .text-link:hover{text-decoration:underline}
.progress-block .tracker{margin:0}
.progress-content[data-section="history"] .tracker{display:none}
.progress-block>.g3{gap:10px}
.progress-goals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.progress-empty{display:flex;align-items:center;gap:14px;padding:18px}
.progress-empty>span{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:var(--gold-s);font-size:21px}
.progress-empty .sub{margin-top:4px;line-height:1.45}
.progress-charts{margin-top:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.progress-content>h2:first-child{display:none}
.ib-chart-section{margin:18px 0 6px}
.ib-chart-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.ib-chart-intro h3{margin:0;font-size:17px}.ib-chart-intro p{margin:4px 0 0;color:var(--mute);font-size:12px}
.ib-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.ib-chart{min-width:0;border:1px solid var(--line);border-radius:14px;background:linear-gradient(155deg,var(--s2),var(--s1));padding:11px 12px 9px}
.ib-chart-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px}
.ib-chart-head b{font-size:12px}.ib-chart-head span{color:var(--mute);font-size:10px;white-space:nowrap}
.ib-columns{display:flex;align-items:flex-end;gap:8px;min-height:126px;overflow-x:auto;padding:8px 2px 0;border-bottom:1px solid var(--line2)}
.ib-column-item{flex:1 0 40px;max-width:72px;min-width:40px;height:112px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.ib-column-value{color:var(--txt2);font-size:9px;line-height:1;white-space:nowrap}
.ib-column-plot{height:78px;width:24px;display:flex;align-items:flex-end;justify-content:center}
.ib-column-plot i{display:block;width:100%;height:var(--bar-height);min-height:5px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--bar-color),color-mix(in srgb,var(--bar-color) 48%,transparent));box-shadow:0 0 12px color-mix(in srgb,var(--bar-color) 18%,transparent);transition:height .35s ease}
.ib-column-item small{height:20px;color:var(--mute);font-size:9px;white-space:nowrap}
@media(max-width:700px){
  .progress-heading{margin-top:0}.progress-heading h2{font-size:24px}
  .progress-tabs{width:100%;display:flex;gap:3px;padding:4px}
  .progress-tabs a{flex:1;text-align:center;padding:9px 6px;font-size:11.5px}
  .progress-block{margin-bottom:20px}.progress-block-head{align-items:flex-start}
  .ib-chart-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
  .ib-chart{padding:9px}.ib-columns{gap:6px}
}

/* Compact schedule note previews */
.schedule-note-preview{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mute);font-size:10px;line-height:1.35}
.schedule-session-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;line-height:1.4}

/* Day view: exercise lists grouped beneath each session divider */
.schedule-day-view>.card.sess{margin:0;padding:14px 4px;border:0;border-radius:0;background:transparent;box-shadow:none}
.schedule-day-view>.card.sess+.card.sess{border-top:1px solid var(--line2)}
.schedule-day-view .schedule-exercises{margin-top:12px;padding-top:10px}
.schedule-day-view .schedule-exercises>summary{font-weight:700;color:var(--txt2)}
.schedule-day-view .schedule-exercise-list{display:grid;gap:6px;margin-top:8px}
.schedule-day-view .schedule-page .ex{background:linear-gradient(140deg,var(--s2),var(--s1))}

/* Exercise detail and trainer chat split view */
.exercise-modal{z-index:170;padding:20px}
.exercise-dialog{width:min(1040px,100%);height:min(760px,92vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line2);border-radius:20px;background:var(--s1);box-shadow:0 24px 80px #000b}
.exercise-dialog>header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:12px 16px;border-bottom:1px solid var(--line)}
.exercise-dialog-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);min-height:0;flex:1}
.exercise-detail-pane{min-width:0;overflow:auto;padding:18px;border-inline-end:1px solid var(--line)}
.exercise-detail-pane h2{font-size:20px;line-height:1.2;margin:0 0 5px}
.exercise-detail-gif{display:block;width:100%;height:min(44vh,390px);object-fit:contain;margin:16px 0;border-radius:14px;background:#090a0e}
.exercise-detail-pane ol{padding-inline-start:22px;color:var(--txt2);font-size:13px;line-height:1.6}
.exercise-chat-pane{display:flex;min-width:0;min-height:0;flex-direction:column}
.exercise-chat-title{flex:none;padding:14px 16px;border-bottom:1px solid var(--line)}
.exercise-chat-title b,.exercise-chat-title small{display:block}
.exercise-chat-title small{margin-top:3px;color:var(--mute);font-size:11px}
.exercise-chat-messages{display:flex;flex:1;min-height:150px;flex-direction:column;gap:9px;overflow:auto;padding:14px}
.exercise-chat-message{max-width:90%;align-self:flex-start;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:var(--s2);overflow-wrap:anywhere}
.exercise-chat-message.mine{align-self:flex-end;border-color:#564717;background:#28220f}
.exercise-chat-message small{color:var(--mute);font-size:10px}
.exercise-chat-message p{margin:5px 0 0;font-size:13px;white-space:pre-wrap}
.exercise-chat-message video{display:block;width:min(100%,360px);max-height:260px;margin-top:8px;border-radius:9px;background:#000}
.exercise-chat-empty{margin:auto;padding:24px;color:var(--mute);font-size:12px;line-height:1.5;text-align:center}
.exercise-chat-compose{display:flex;align-items:flex-end;gap:7px;padding:11px;border-top:1px solid var(--line)}
.exercise-chat-compose textarea{flex:1;min-width:0;max-height:100px;resize:vertical;font:inherit}
.exercise-chat-compose .btn{flex:none}
.exercise-chat-attach{flex:none}
.thread-video{display:block;width:min(100%,420px);max-height:340px;margin-top:8px;border-radius:10px;background:#000}
@media(max-width:700px){.exercise-modal{padding:8px;align-items:center}.exercise-dialog{width:100%;height:95vh;border-radius:15px}.exercise-dialog-grid{grid-template-columns:1fr;grid-template-rows:minmax(210px,.75fr) minmax(270px,1fr)}.exercise-detail-pane{padding:12px;border-inline-end:0;border-bottom:1px solid var(--line)}.exercise-detail-pane h2{font-size:17px}.exercise-detail-gif{height:min(27vh,240px);margin:9px 0}.exercise-detail-pane ol{margin:8px 0;font-size:11px}.exercise-chat-title{padding:10px 12px}.exercise-chat-messages{padding:10px}.exercise-chat-compose{padding:8px}.exercise-chat-compose .btn{padding-inline:10px}}

/* Day view refinement: clear workout sections and calm exercise rows */
.schedule-calendar-btn{width:40px;height:40px;flex:none;color:#aeb3bd;border-radius:13px}
.schedule-calendar-btn svg{width:20px;height:20px}
.schedule-calendar-btn:hover{color:var(--gold);border-color:#61532e;background:#1a1914}
.schedule-day-view{max-width:760px;padding:0 4px}
.schedule-day-view .schedule-day-head{margin:0 2px 8px}
.schedule-day-view .schedule-session-head{align-items:center}
.schedule-day-view .schedule-session-title>b{font-size:16px;letter-spacing:-.02em}
.schedule-day-view .schedule-session-meta> :nth-child(n+4){display:none}
.schedule-day-view>.card.sess{padding:17px 4px 15px}
.schedule-day-view>.card.sess+.card.sess{border-top:1px solid #2b2d33}
.schedule-day-view .schedule-session-note{margin:8px 0 0;padding:3px 9px;color:#9297a1;font-size:11px}
.schedule-day-view .schedule-exercises{margin-top:10px;padding-top:8px;border-top:1px solid #24262c}
.schedule-day-view .schedule-exercises>summary{display:none}
.schedule-day-view .schedule-exercise-list{gap:4px;margin:0}
.schedule-day-view .schedule-exercise-list>.ex{display:flex;align-items:center;gap:11px;padding:8px 7px;border:1px solid transparent;border-radius:12px;background:transparent;box-shadow:none;transition:background .15s,border-color .15s}
.schedule-day-view .schedule-exercise-list>.ex:hover{border-color:#292c32;background:#15171c}
.schedule-day-view .schedule-exercise-list>.ex>img{width:50px;height:50px;flex:none;object-fit:cover;border-radius:10px;background:#0b0d10}
.schedule-day-view .schedule-exercise-list>.ex>.grow{min-width:0}
.schedule-day-view .schedule-exercise-list .ex-name{font-size:13px;line-height:1.3}
.schedule-day-view .schedule-exercise-list .sub,.schedule-day-view .schedule-exercise-list .presc{margin-top:3px;color:#9297a1;font-size:10px}
.schedule-day-view .schedule-exercise-list .schedule-note-preview{margin-top:3px;font-size:10px}
.schedule-day-view .schedule-exercise-list .ex-check{width:22px;height:22px;border-width:1px}
.schedule-day-view .schedule-session-tools{margin-top:8px;padding-top:8px;border-top:0}
.schedule-day-view .schedule-session-tools .btn{min-height:32px;padding:6px 10px;font-size:10px}
@media(max-width:700px){.schedule-toolbar-actions .schedule-calendar-btn{width:36px;height:36px}.schedule-day-view{padding-inline:0}.schedule-day-view>.card.sess{padding:13px 2px}.schedule-day-view .schedule-exercise-list>.ex{gap:8px;padding:7px 4px}.schedule-day-view .schedule-exercise-list>.ex>img{width:46px;height:46px}.schedule-day-view .schedule-exercise-list .ex-name{font-size:12px}.schedule-day-view .schedule-session-actions{margin-inline-start:0}.schedule-day-view .schedule-session-tools .btn{flex:initial}}

.schedule-day-view .schedule-ex-edit{margin-top:4px}
.schedule-day-view .schedule-ex-edit>summary{display:inline-flex;align-items:center;gap:5px;list-style:none;cursor:pointer;color:#a89b70;font-size:10px}
.schedule-day-view .schedule-ex-edit>summary::-webkit-details-marker{display:none}
.schedule-day-view .schedule-ex-edit[open]{margin-top:8px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#101216}
.schedule-day-view .schedule-ex-edit[open]>summary{margin-bottom:5px}
.schedule-day-view .schedule-ex-edit .edit{margin-top:0}
/* Week view: sessions grouped with a title line, ⓘ for session notes, and heart-rate zone bars on recorded activities. */
.schedule-mini-group{display:grid;gap:3px}.schedule-mini-group+.schedule-mini-group{margin-top:6px;padding-top:6px;border-top:1px solid #292b31}.schedule-mini-head{display:flex;align-items:center;gap:5px;min-width:0;padding:2px 0}.schedule-mini-head>i{flex:none;width:3px;height:14px;border-radius:3px}.schedule-mini-head>b{flex:1;min-width:0;font-size:10px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-mini-head>.ok{color:#81c99b;font-size:10px}.schedule-mini-info{flex:none;width:16px;height:16px;padding:0;border:1px solid #4a4c54;border-radius:50%;background:#1d1f25;color:#c9cbd2;font:italic 700 9px/1 Georgia,serif;cursor:pointer}.schedule-mini-info:hover{border-color:var(--gold);color:var(--gold)}.schedule-mini-activity{display:block;padding:5px 2px}.schedule-mini-activity>div{display:flex;align-items:center;gap:5px}.schedule-mini-activity>div>span{color:#8bb8fb}.schedule-mini-activity>div>b{font-size:9px}.schedule-mini-activity>div>small{margin-inline-start:auto;color:#9297a1;font-size:8px}.schedule-mini-activity em{font-style:normal;color:#d9bd5e;font-size:8px}.schedule-mini-activity .zones{margin-top:5px;height:4px}
/* Settings: profile hero, two-column profile/connections, trainer card, sign-out zone. */
.settings-page{max-width:1000px;margin:0 auto}.settings-hero{display:flex;align-items:center;gap:18px;margin:0 0 22px;padding:20px;border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at 0% 0%,#d0a71c14,transparent 55%),linear-gradient(140deg,var(--s2),var(--s1) 70%)}.settings-avatar{position:relative;flex:none;padding:0;border:0;background:none;border-radius:50%;cursor:pointer}.settings-avatar .av.lg{width:76px;height:76px;font-size:28px;box-shadow:0 0 0 3px var(--bg),0 0 0 5px #ffc83760}.settings-avatar>span{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gold);color:#111;font-size:13px;box-shadow:0 2px 8px #0006}.settings-hero-copy{flex:1;min-width:0;display:grid;gap:2px}.settings-hero-copy small{font-size:9px;letter-spacing:.17em;color:#c4a644;font-weight:800}.settings-hero-copy h2{margin:0;font-size:24px;line-height:1.15;letter-spacing:-.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-hero-copy p{margin:0;color:var(--txt2);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-hero-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.settings-lang{align-self:flex-start}.settings-lang button{min-width:42px;justify-content:center;font-weight:600;font-size:13px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px}.settings-block{margin:0 0 22px;min-width:0}.settings-block-head{display:grid;gap:2px;margin:0 2px 10px}.settings-block-head small{font-size:9px;letter-spacing:.17em;color:#c4a644;font-weight:800}.settings-block-head h3{margin:0;font-size:17px;letter-spacing:-.02em}.settings-block-head p{margin:0;font-size:11px;color:var(--mute)}.settings-card{margin:0;padding:16px;border-radius:16px;background:linear-gradient(140deg,var(--s2),var(--s1) 75%)}.settings-card h4{display:none}.settings-card .field:last-of-type{margin-bottom:0}.settings-card-foot{display:flex;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.settings-conns{padding:4px 16px}.settings-conn{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.settings-conn:last-child{border-bottom:0}.settings-conn-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--s1);border:1px solid var(--line2);font-size:20px}.settings-conn.on .settings-conn-icon{background:var(--green-s);border-color:#10b98140}.settings-conn-copy{flex:1;min-width:0;display:grid;gap:2px}.settings-conn-copy>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.settings-conn-copy b{font-size:13px}.settings-conn-copy small{font-size:11px;color:var(--txt2);line-height:1.4}.settings-conn-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.settings-conn-actions:empty{display:none}.settings-status{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--mute);white-space:nowrap}.settings-conn.on .settings-status{color:#81c99b}.settings-status i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green)}.settings-trainer>label{margin-bottom:14px!important;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--s1);font-size:12px;line-height:1.4}.settings-trainer>label input{accent-color:var(--gold);width:16px;height:16px}.settings-trainer>.btn{margin-top:6px}.settings-danger{display:flex;align-items:center;justify-content:space-between;gap:14px;border-color:#ef444430}.settings-danger>div{display:grid;gap:2px;min-width:0}.settings-danger b{font-size:13px}.settings-danger small{font-size:11px;color:var(--txt2)}
@media(max-width:760px){.settings-grid{grid-template-columns:1fr}.settings-hero{flex-wrap:wrap;gap:14px;padding:16px}.settings-hero-copy{flex-basis:calc(100% - 94px)}.settings-lang{width:100%;justify-content:stretch}.settings-lang button{flex:1}.settings-hero-copy h2{font-size:21px}.settings-conn-actions .btn{flex:1;justify-content:center}.settings-danger{flex-direction:column;align-items:stretch}.settings-danger .btn{justify-content:center}}
