/* MORE WITHIN / NEXT LEVEL. Shared training and community visual system. */
:root {
  --bg: #080e19;
  --surface: #111d30;
  --higher: #1b2a42;
  --edge: #2b3d58;
  --ink: #f3f7ff;
  --muted: #a9b9cf;
  --silver: #b6c7df;
  --blue: #78b1ff;
  --lime: #d2f96c;
  --teal: #73e0d2;
  --orange: #ffb78b;
  --purple: #c5adff;
  color-scheme: dark;
}
body {
  background: radial-gradient(ellipse at 90% 0%, #1835595c, transparent 45%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
header {
  background: #080e19ed;
  border-bottom: 1px solid #809bc322;
  backdrop-filter: blur(20px);
}
.mw-mark, header strong { color: var(--blue); }
.mw-dot { color: var(--lime); }
.mw-brandname { color: var(--ink); }
.mw-headerline { color: #a3b4ce; }
.mw-header-actions { display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0; }
.mw-account-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:78px; padding:10px 13px; background:var(--lime); color:#152200; border:1px solid #e4ff9c; border-radius:13px; font-size:13px; font-weight:820; text-decoration:none; white-space:nowrap; }
.mw-account-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.mw-account-link[hidden] { display:none; }
header .mw-header-actions #cloudstatus { max-width:110px; font-size:8px; padding:4px 6px; }
body:has(#header-account[data-view]) .timerbar { top:110px; }
.mw-intro { margin: 20px 0 24px; }
.mw-intro h1 { font-size: clamp(29px, 8vw, 38px); line-height: 1.07; letter-spacing: -.055em; margin: 10px 0; }
.mw-intro p { font-size: 13px; color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 10px; letter-spacing: .16em; }
.muted, small, .hint, p.muted { color: var(--muted); }
h1, h2, h3 { color: var(--ink); }
.card, .panel-card, .metric-card, .more-list, .exercise, .lib-controls {
  background: linear-gradient(140deg, #152239, #101a2b);
  border: 1px solid var(--edge);
  border-radius: 22px;
  box-shadow: 0 8px 25px #02081320;
}
.card { padding: 21px 19px; }
.card .card { background: #0c1728; border-color: #2a405f; }
.mw-intro + .card { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 5px 12px; align-items: center; padding: 17px; }
.mw-intro + .card h2 { font-size: 16px; margin: 0; line-height: 1.2; }
.mw-intro + .card p { grid-column: 1; font-size: 11px; margin: 0; }
.mw-intro + .card .btn { grid-column: 2; grid-row: 1 / span 2; padding: 12px 8px; font-size: 12px; }
.btn, button.btn, main > .btn, button:not(.secondary).btn {
  background: var(--lime);
  color: #152200;
  border: 1px solid #e4ff9c;
  border-radius: 14px;
  box-shadow: 0 5px 20px #bddb3b12;
  font-weight: 820;
  min-height: 48px;
}
.btn.ghost, button.btn.ghost, .ghost, button.secondary {
  background: #21324d;
  color: #e3edff;
  border: 1px solid #405574;
  box-shadow: none;
}
.tab { background: #182940; border-color: #344b6d; color: #dce9ff; border-radius: 11px; }
.pill, header #cloudstatus { background: #1a2c42; border-color: #35516c; color: #b8dfec; }
.pill { font-size: 10px; border-radius: 9px; }
.program-row { background: linear-gradient(110deg, #152b45, #111c2d); border: 1px solid #325173; border-radius: 20px; padding: 17px; }
.program-row .eyebrow { color: #97bcf0; }
.program-row .pill { color: var(--teal); border-color: #36726f; background: #113936; }
.program-icon { background: #1c4575; border: 1px solid #4680ba; border-radius: 13px; }
.program-icon .mw-mark { color: #a5d0ff; }
.week-controls { margin-top: 23px; }
.week-controls .pill { background: transparent; border: 0; color: #a9bdd7; font-size: 11px; letter-spacing: .15em; }
.week-controls button { color: var(--blue); background: #132038; border-radius: 10px; min-height: 38px; }
.daystrip { gap: 7px; margin-bottom: 17px; }
.daystrip button { border-color: #2a3e5b; background: #132035; color: #a9bcd7; border-radius: 14px; min-height: 76px; font-size: 9px; gap: 4px; }
.daystrip button span { font-size: 20px; color: #e7effe; }
.daystrip button.active { background: #254f8a; border-color: #79b3ff; color: #e8f2ff; box-shadow: 0 0 0 2px #79b3ff15; }
.daystrip button.done { background: #193a31; border-color: #458773; color: #a5f2c2; }
.daystrip button.done span { color: #b2f98b; }
.workout-hero {
  position: relative; isolation: isolate;
  min-height: 290px; border-radius: 26px; border: 1px solid #5b8cd2;
  padding: 27px 21px 23px;
  background: radial-gradient(ellipse at 90% 0%, #498ee790, transparent 70%), linear-gradient(145deg, #1d4b88, #142a4e);
  box-shadow: 0 14px 32px #000b222d;
}
.workout-hero::before {
  content: ''; position: absolute; z-index: -1; width: 280px; height: 280px;
  border: 1px solid #b9d7ff28; border-radius: 50%; top: -130px; right: -140px;
  box-shadow: 0 0 0 27px #b9d7ff0b, 0 0 0 54px #b9d7ff08, 0 0 0 81px #b9d7ff05;
  pointer-events: none;
}
.workout-hero .hero-icon { background: #b8d9ff1f; border: 1px solid #96c3ff58; border-radius: 20px; margin-bottom: 16px; }
.workout-hero .hero-icon .mw-mark { color: #e4f1ff; }
.workout-hero .eyebrow { color: #c6dfff; letter-spacing: .2em; }
.workout-hero h1 { font-size: clamp(36px, 11vw, 47px); letter-spacing: -.05em; color: #fff; }
.workout-hero p { color: #c3d7f3; font-size: 13px; }
.workout-hero .btn { width: 100%; font-size: 14px; }
.module-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 13px 0 25px; }
.module { border-radius: 18px; min-height: 130px; padding: 15px 11px; }
.module:nth-child(1) { background: #25213f; border: 1px solid #534572; }
.module:nth-child(2) { background: #12312f; border: 1px solid #2b645c; }
.module:nth-child(3) { background: #36281f; border: 1px solid #71503a; }
.module .symbol { font-size: 22px; margin-bottom: 15px; }
.module:nth-child(1) .symbol { color: var(--purple); }
.module:nth-child(2) .symbol { color: var(--teal); }
.module:nth-child(3) .symbol { color: var(--orange); }
.module strong { font-size: 12px; line-height: 1.3; }
.module small { font-size: 10px; color: #c4cedd; line-height: 1.4; display: block; }
.sectionline { margin: 25px 0 12px; }
.sectionline h2 { font-size: 19px; }
.progressrail { background: #25394e; height: 7px; border-radius: 10px; overflow: hidden; }
.progressrail > div { background: linear-gradient(90deg, #68b5ff, #bfe866); border-radius: inherit; }
.nav { background: #102039ee; border: 1px solid #3d5679; border-radius: 25px; box-shadow: 0 15px 40px #000a; }
.nav button { color: #9fb3d0; border-radius: 18px; }
.nav button.active { background: #275590; color: #f3f8ff; box-shadow: inset 0 1px #78b1ff44; }
.nav button.active .navicon { color: var(--lime); }
.nav .navicon { color: #a0b8db; }
.dashboard-head, .programhero, .mw-brandhero { background: radial-gradient(ellipse at 90% 0%, #277b883b, transparent 70%), #132c3e; border: 1px solid #346173; border-radius: 23px; }
.dashboard-metrics .metric-card:nth-child(1) { background: #122e32; border-color: #346269; }
.dashboard-metrics .metric-card:nth-child(2) { background: #172d4b; border-color: #335b8a; }
.dashboard-metrics .metric-card:nth-child(3) { background: #32271f; border-color: #66503c; }
.dashboard-metrics .metric-card:nth-child(4) { background: #27223f; border-color: #514573; }
.metric-card .label { color: #d6e3f6; font-size: 13px; }
.metric-card .value { color: #f4f8ff; font-size: 28px; }
.sparkline path { stroke: var(--teal); }
.sparkline circle { fill: var(--teal); stroke: #12363a; }
.stat { background: #12263b; border-color: #35506c; border-radius: 18px; }
.stat strong { color: var(--teal); }
.focus-ex { background: linear-gradient(145deg,#192f4f,#101d31); border-color: #365b89; }
.exercise-progress span { background: #243853; }
.exercise-progress span.on { background: var(--blue); }
.rest-panel { background: #34271e; border-color: #78543a; }
.rest-panel small, .rest-clock { color: var(--orange); }
.finishbar { background: #080e19f5; }
.finish-hero { background: radial-gradient(ellipse at 50% 0%,#3a73453f,transparent 85%), #142b26; border: 1px solid #3d7660; }
.finish-tick { background: var(--lime); color: #152200; box-shadow: 0 0 0 10px #d2f96c0c; }
input:not([type=checkbox]), select, textarea { background: #0a1526; border: 1px solid #3d5272; color: var(--ink); border-radius: 12px; }
input::placeholder, textarea::placeholder { color: #91a5c1; opacity: 1; }
input[type=checkbox] { accent-color: var(--lime); }
label { color: #b9cbe4; }
:is(button,a,input,select,textarea):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button:disabled { box-shadow: none; }
.more-link .symbol { background: #1d3b60; color: var(--blue); }
.more-link:nth-child(3n+2) .symbol { background: #25443d; color: var(--teal); }
.more-link:nth-child(3n) .symbol { background: #463323; color: var(--orange); }
.more-link .arrow { color: #7d9fc9; }
.toast { background: #d6f2ff; color: #11273e; border: 1px solid #7fb2d5; border-radius: 14px; box-shadow: 0 10px 35px #0007; }
.hero { background: radial-gradient(ellipse at 90% 0%,#7062be88,transparent 80%),linear-gradient(145deg,#29264d,#152a49); border: 1px solid #766bb0; border-radius: 25px; }
.hero .eyebrow { color: #c5c3ff; }
.hero h1 { font-size: clamp(32px, 8.5vw, 48px); line-height: 1.08; overflow-wrap: anywhere; }
.hero p { color: #c3cbe4; }
.hero .pill { background: #322d50; border-color: #6b6093; color: #d6ceff; }
.entry { border-color: #2b405c; border-radius: 12px; padding: 16px 8px; }
.entry.me { background: #234b75; border: 1px solid #507fb2; }
.rank { color: var(--blue); }
.entry:nth-child(1) .rank { color: var(--lime); }
.entry:nth-child(2) .rank { color: var(--teal); }
.entry:nth-child(3) .rank { color: var(--orange); }
.score { color: var(--lime); }
.score small, .hint { color: #afc1da; }
.msg { border-color: var(--blue); background: #17304d; border-radius: 8px; }
.foot { background: #0e1d33f5; border-color: #385170; }
.foot a { color: #b3d2ff; }
#save { background: var(--lime); color: #152200; border-radius: 12px; }
@media (hover:hover) {
  .module:hover, .tab:hover, .more-link:hover { filter: brightness(1.13); }
  .btn:hover { filter: brightness(1.05); }
}
@media (min-width:700px) { .wrap { padding-top: 24px; } .mw-intro { margin-top: 24px; } }
@media (max-width:350px) { .module { padding: 14px 9px; } .module small { font-size: 9px; } .module strong { font-size: 11px; } .workout-hero { min-height: 270px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
