/* EnduroLab v35 — Option C card-based homepage.
 * Visual-only refinements; live statistics and workflow remain in the original UI.
 * This light workspace is limited to Home. The sidebar and other pages retain their styles.
 */
/* Home visual layout only: never override the account's theme tokens here.
 * v36 supplies the dark colour system from the saved user appearance. */
body:has(#view-overview.active){background:#0f1b2e}
body:has(#view-overview.active) .sidebar{
 background:#0e1b2e!important;border-right-color:#1e2c42;
}
body:has(#view-overview.active) .sidebar .nav button[data-nav].active{
 background:#22365b!important;color:#f2f4ff;border-color:#334a78;
}
body:has(#view-overview.active) .sidebar .nav button[data-nav].active .nav-icon{color:#a8a0ff}
body:has(#view-overview.active) .sidebar .nav button[data-nav].active::after{background:#a8a0ff}
body:has(#view-overview.active) .main .btn.primary{
 background:#6847d9;border-color:#6847d9;color:white;
}
body:has(#view-overview.active) .main .btn.primary:hover{background:#593abf;border-color:#593abf}
body:has(#view-overview.active) .main .btn.ghost{
 background:white;border-color:#dfe2ec;color:#4b5770;
}
body:has(#view-overview.active) .main .btn.ghost:hover{background:#f1f0fb}
body:has(#view-overview.active) .topbar{
 border-bottom:1px solid #e6e8f1;padding-bottom:15px;margin-bottom:30px;
}
body:has(#view-overview.active) .topbar .workspace-label{color:#4c5670}
body:has(#view-overview.active) .topbar .eyebrow{color:#79849b}
body:has(#view-overview.active) .topbar .badge{
 color:#5c6680;background:white;border-color:#e4e7f0;
}
body:has(#view-overview.active) .main .top-actions .v27-bell{
 background:white!important;border-color:#e1e4ed;color:#58647b;
}
#view-overview .v35-home{
 width:100%;max-width:1330px;margin:0 0 14px;
 color:#172238;
}
#view-overview .v35-home .v33-home-heading{
 display:flex;flex-direction:row;justify-content:space-between;
 align-items:flex-start;gap:20px;padding:0 1px 27px;margin:0;
}
#view-overview .v35-home .v33-overline{
 letter-spacing:.075em;color:#7e87a0;font-size:10px;font-weight:750;
}
#view-overview .v35-home .v33-home-heading h1{
 margin:6px 0 8px;font-size:clamp(30px,3.25vw,42px);
 font-weight:760;color:#111a30;letter-spacing:-.047em;line-height:1.14;
}
#view-overview .v35-home .v33-home-heading p{
 margin:0;color:#69768d;font-size:14px;
}
#view-overview .v35-goal-chip{
 display:flex;align-items:center;gap:12px;justify-content:space-between;
 background:white;color:#4b3d95;border:1px solid #e0dff0;border-radius:12px;
 padding:11px 14px;font-size:12px;line-height:1.3;font-weight:670;
 max-width:260px;text-align:left;cursor:pointer;
}
#view-overview .v35-goal-chip:hover{background:#f5f2ff;border-color:#b9b0ef}
#view-overview .v35-goal-chip span:first-child{min-width:0;overflow-wrap:anywhere}
#view-overview .v35-stats{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;
 margin:0 0 18px;
}
#view-overview .v35-stat{
 display:flex;align-items:center;gap:14px;padding:20px 19px;
 min-width:0;background:white;border:1px solid #eaebf3;border-radius:13px;
 box-shadow:0 5px 19px rgba(37,43,85,.035);
}
#view-overview .v35-stat-icon{
 flex:none;display:grid;place-items:center;width:40px;height:40px;
 border-radius:11px;background:#f0edff;color:#6950d2;
 font-size:23px;font-weight:650;line-height:1;
}
#view-overview .v35-stat:nth-child(2) .v35-stat-icon{background:#eff1ff;color:#5e70c9}
#view-overview .v35-stat:nth-child(3) .v35-stat-icon{background:#eaf4ff;color:#3987b7}
#view-overview .v35-stat:nth-child(4) .v35-stat-icon{background:#edf8ee;color:#39865d}
#view-overview .v35-stat>div{display:grid;gap:3px;min-width:0}
#view-overview .v35-stat strong{
 display:block;font-size:clamp(21px,2.05vw,27px);font-weight:755;
 line-height:1.18;letter-spacing:-.037em;color:#172238;white-space:nowrap;
}
#view-overview .v35-stat span:not(.v35-stat-icon){
 display:block;color:#768099;font-size:11px;line-height:1.5;
}
#view-overview .v35-content{
 display:grid;grid-template-columns:minmax(0,1.12fr) minmax(260px,.87fr);
 gap:16px;align-items:start;
}
#view-overview .v35-content-left,#view-overview .v35-content-right{
 display:grid;gap:16px;min-width:0;
}
#view-overview .v35-today,
#view-overview .v35-next,
#view-overview .v35-home .v33-completed,
#view-overview .v35-home .v33-coach,
#view-overview .v35-home .v33-week,
#view-overview .v35-home .v33-milestone{
 background:#fff;border:1px solid #e8eaf1;border-radius:14px;
 box-shadow:0 5px 21px rgba(28,44,81,.035);min-width:0;
}
#view-overview .v35-today{padding:17px 17px 19px;overflow:hidden}
#view-overview .v35-today:before{display:none}
#view-overview .v35-home .v33-section-bar{
 align-items:center;margin:0 0 16px;gap:10px;
}
#view-overview .v35-home .v33-section-title{
 margin:0;font-size:16px;font-weight:735;line-height:1.3;color:#1a2540;
 letter-spacing:-.025em;
}
#view-overview .v35-home .v33-status{
 padding:5px 9px;border-radius:7px;background:#f4f5fa;
 font-size:11px;font-weight:640;line-height:1.3;color:#68748b;
}
#view-overview .v35-home .v33-status[data-state="logged"]{
 color:#317d59;background:#eaf8ef;
}
#view-overview .v35-route-image{
 height:170px;border-radius:10px;overflow:hidden;background:#c2d6cf;
}
#view-overview .v35-route-image img{
 display:block;width:100%;height:100%;object-fit:cover;
}
#view-overview .v35-today-body{padding:21px 7px 3px}
#view-overview .v35-training-label{
 display:block;margin-bottom:8px;color:#6a50cf;font-size:10px;
 font-weight:780;letter-spacing:.1em;
}
#view-overview .v35-today h3{
 margin:0 0 9px;font-size:clamp(22px,2.3vw,29px);
 font-weight:750;letter-spacing:-.035em;color:#18233c;line-height:1.25;
 overflow-wrap:anywhere;
}
#view-overview .v35-today #v32TodayDetail{
 margin:0;font-size:13px;line-height:1.7;color:#65728a;max-width:56ch;
}
#view-overview .v35-today .v33-focus-actions{
 display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:24px;
}
#view-overview .v35-today .v33-focus-actions .btn{
 min-height:43px;font-size:12px;font-weight:680;border-radius:9px;
}
#view-overview .v35-next{padding:23px 24px;min-height:195px}
#view-overview .v35-next .v33-section-title{margin-bottom:14px}
#view-overview .v35-next-icon{
 display:inline-grid;place-items:center;width:33px;height:33px;
 border-radius:9px;background:#f0edff;color:#6f57d8;font-size:18px;margin:0 0 10px;
}
#view-overview .v35-next strong{
 display:block;font-size:17px;line-height:1.38;color:#202a43;
 letter-spacing:-.02em;overflow-wrap:anywhere;
}
#view-overview .v35-next p{
 margin:7px 0 10px;font-size:12px;line-height:1.6;color:#6c7790;
}
#view-overview .v35-home .v33-coach{
 padding:22px 24px;background:#efedff;border-color:#e6e1fc;
}
#view-overview .v35-coach-label{display:flex;gap:9px;align-items:center;margin:0 0 14px}
#view-overview .v35-coach-symbol{
 display:grid;place-items:center;width:28px;height:28px;
 border-radius:8px;background:#e2dbff;color:#674bd2;font-size:16px;
}
#view-overview .v35-coach-label .v33-section-title{color:#352a70}
#view-overview .v35-home .v33-coach strong{
 display:block;font-size:15px;font-weight:730;line-height:1.5;color:#28204e;
}
#view-overview .v35-home .v33-coach p{
 color:#5b547f;font-size:12px;line-height:1.75;margin:9px 0 13px;
}
#view-overview .v35-home .v33-completed{padding:22px 23px}
#view-overview .v35-home .v33-activity{
 border-color:#eff0f5;color:#26324b;
}
#view-overview .v35-home .v33-activity-name{color:#27324a}
#view-overview .v35-home .v33-activity-mark{
 background:#f4f1ff;border-color:#eae6ff;color:#684ed3;
}
#view-overview .v35-home .v33-activity-meta{color:#6b7890}
#view-overview .v35-home .v33-activity:hover .v33-activity-name{color:#6244ce}
#view-overview .v35-home .v33-activity:hover .v33-activity-mark{border-color:#ab9deb}
#view-overview .v35-home .v33-empty{border-color:#eff0f5;color:#738098}
#view-overview .v35-home .v33-count,
#view-overview .v35-home .v33-week-range{color:#78849b}
#view-overview .v35-home .v33-text-link{
 color:#6049cb;font-size:12px;font-weight:725;
}
#view-overview .v35-home .v33-text-link:hover{color:#49339f}
#view-overview .v35-home .v33-week,
#view-overview .v35-home .v33-milestone{padding:21px 24px}
#view-overview .v35-home .v33-week .v33-section-bar{margin-bottom:13px}
#view-overview .v35-home .v33-progress-wrap{margin:6px 0 11px}
#view-overview .v35-home .v33-progress-wrap progress{height:7px;background:#ececf7}
#view-overview .v35-home .v33-progress-wrap progress::-webkit-progress-bar{background:#ececf7}
#view-overview .v35-home .v33-progress-wrap progress::-webkit-progress-value{background:#7457dd}
#view-overview .v35-home .v33-progress-wrap progress::-moz-progress-bar{background:#7457dd}
#view-overview .v35-home .v33-week-note{color:#78849a;margin:0 0 13px}
#view-overview .v35-home .v33-extra{
 border-color:#ebedf4;color:#5b6880;padding-top:12px;
}
#view-overview .v35-home .v33-extra strong{color:#232b43}
#view-overview .v35-home .v33-extra-detail{color:#738098}
#view-overview .v35-home .v33-milestone p{color:#5f6e87}
#view-overview + .v32-more-home>summary{
 border-color:#e2e5f1;background:#fff;color:#65718c;
}
#view-overview + .v32-more-home>summary:hover{color:#372b6c;background:#fdfcff}
body:has(#view-overview.active) .main .v20-legacy-home summary{color:#66738b}
@media(max-width:1170px){
 #view-overview .v35-stat{padding:17px 13px;gap:9px}
 #view-overview .v35-stat-icon{width:35px;height:35px;font-size:19px}
 #view-overview .v35-content{grid-template-columns:minmax(0,1fr) minmax(245px,.75fr)}
}
@media(max-width:900px){
 #view-overview .v35-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-overview .v35-content{grid-template-columns:minmax(0,1fr)}
 #view-overview .v35-content-right{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-overview .v35-home .v33-coach{align-self:stretch}
}
@media(max-width:600px){
 body:has(#view-overview.active) .main{background:#f5f6fb}
 body:has(#view-overview.active) .topbar{margin-bottom:18px;padding-bottom:12px}
 #view-overview .v35-home .v33-home-heading{
  flex-direction:column;align-items:flex-start;gap:13px;padding-bottom:22px;
 }
 #view-overview .v35-goal-chip{max-width:100%}
 #view-overview .v35-stats{gap:9px;margin-bottom:12px}
 #view-overview .v35-stat{padding:13px 11px;gap:9px;border-radius:10px}
 #view-overview .v35-stat-icon{height:30px;width:30px;font-size:17px;border-radius:8px}
 #view-overview .v35-stat strong{font-size:20px}
 #view-overview .v35-stat span:not(.v35-stat-icon){font-size:10px}
 #view-overview .v35-content-left,#view-overview .v35-content-right{gap:12px}
 #view-overview .v35-content-right{grid-template-columns:minmax(0,1fr)}
 #view-overview .v35-route-image{height:145px}
 #view-overview .v35-today{padding:14px}
 #view-overview .v35-today-body{padding:18px 5px 4px}
 #view-overview .v35-today .v33-focus-actions{gap:8px}
 #view-overview .v35-today .v33-focus-actions .btn{flex:1 1 140px}
 #view-overview .v35-next,#view-overview .v35-home .v33-coach,
 #view-overview .v35-home .v33-week,#view-overview .v35-home .v33-milestone,
 #view-overview .v35-home .v33-completed{padding:20px}
}
@media(prefers-reduced-motion:reduce){
 #view-overview .v35-home *{scroll-behavior:auto}
}