:root{--sidebar-width:232px;--sidebar-bg:#f5f5f7}html[data-sidebar="collapsed"]{--sidebar-width:76px}html[data-theme="dark"]{--sidebar-bg:#17181c}
body{padding-left:var(--sidebar-width)}body>.site-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;min-height:0;z-index:40;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:20px 12px 12px;background:var(--sidebar-bg);border:0;border-right:1px solid var(--line);backdrop-filter:none;overflow:visible}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:26px}.site-sidebar .machine-brand{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding-left:8px}.site-sidebar .machine-brand strong{font-size:24px;letter-spacing:-1px}.site-sidebar .machine-brand span{display:block;font-size:9px;letter-spacing:2px}.sidebar-toggle,.sidebar-mobile-toggle{flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);cursor:pointer}.sidebar-toggle svg{width:22px;height:22px}
body>.site-sidebar nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;flex:1;min-height:0;width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.site-sidebar .nav-btn,.site-sidebar .sidebar-action{display:flex;align-items:center;gap:14px;flex:0 0 auto;width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:14px;font-weight:550;text-align:left;cursor:pointer;white-space:nowrap;position:relative}.site-sidebar .nav-btn:after{display:none}.site-sidebar .nav-btn:hover,.site-sidebar .sidebar-action:hover{background:var(--panel2)}.site-sidebar .nav-btn.active{background:color-mix(in srgb,var(--orange) 10%,var(--sidebar-bg));color:var(--orange);font-weight:700}.sidebar-icon{width:22px;height:22px;flex:0 0 22px}.sidebar-utilities{display:grid;gap:4px;padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}
.site-sidebar .header-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);min-width:0}.site-sidebar .header-sync{min-height:36px;font-size:12px;justify-content:flex-start;padding:8px 12px;gap:12px}.site-sidebar .profile-menu summary{padding:6px 8px;gap:10px}.site-sidebar .profile-name{display:block;font-size:14px}.site-sidebar .profile-chevron{display:block;margin-left:auto}.site-sidebar .profile-avatar{flex-shrink:0}.site-sidebar .profile-dropdown{top:auto;bottom:calc(100% + 8px);left:0;right:auto;max-height:calc(100dvh - 110px);overflow-y:auto}.sidebar-toggle:focus-visible,.site-sidebar button:focus-visible,.site-sidebar summary:focus-visible,.sidebar-mobile-toggle:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
body>main{width:100%;max-width:1680px;padding-left:clamp(20px,3vw,48px);padding-right:clamp(20px,3vw,48px)}.sidebar-mobile-toggle,.sidebar-backdrop{display:none}
html[data-sidebar="collapsed"] .site-sidebar .machine-brand,html[data-sidebar="collapsed"] .site-sidebar .sidebar-label,html[data-sidebar="collapsed"] .site-sidebar .profile-name,html[data-sidebar="collapsed"] .site-sidebar .profile-chevron{display:none}html[data-sidebar="collapsed"] .sidebar-brand-row{justify-content:center}html[data-sidebar="collapsed"] .site-sidebar .nav-btn,html[data-sidebar="collapsed"] .site-sidebar .sidebar-action,html[data-sidebar="collapsed"] .site-sidebar .header-sync,html[data-sidebar="collapsed"] .site-sidebar .profile-menu summary{justify-content:center;padding-left:0;padding-right:0}html[data-sidebar="collapsed"] .sidebar-toggle svg{transform:rotate(180deg)}html[data-sidebar="collapsed"] .site-sidebar .profile-dropdown{left:calc(100% + 8px);bottom:0}
@media(max-width:760px){body{padding-left:0}body>.site-sidebar{width:252px;transform:translateX(-100%);padding-top:14px;z-index:100;height:100dvh}body.sidebar-open>.site-sidebar{transform:translateX(0)}.sidebar-mobile-toggle{display:grid;position:sticky;top:12px;z-index:35;margin:12px 0 0 16px;width:40px;height:40px;font-size:20px}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:90}body.sidebar-open{overflow:hidden}body>main{padding-left:16px;padding-right:16px}.site-sidebar .machine-brand span{display:block!important}.site-sidebar .header-sync{font-size:12px}.site-sidebar .header-sync .sync-dot{width:8px;height:8px}html[data-sidebar="collapsed"] .site-sidebar .machine-brand{display:flex}html[data-sidebar="collapsed"] .site-sidebar .sidebar-label,html[data-sidebar="collapsed"] .site-sidebar .profile-name,html[data-sidebar="collapsed"] .site-sidebar .profile-chevron{display:block}html[data-sidebar="collapsed"] .sidebar-brand-row{justify-content:space-between}html[data-sidebar="collapsed"] .site-sidebar .nav-btn,html[data-sidebar="collapsed"] .site-sidebar .sidebar-action,html[data-sidebar="collapsed"] .site-sidebar .header-sync,html[data-sidebar="collapsed"] .site-sidebar .profile-menu summary{justify-content:flex-start;padding-left:12px;padding-right:12px}html[data-sidebar="collapsed"] .site-sidebar .profile-dropdown{left:0;bottom:calc(100% + 8px)}html[data-sidebar="collapsed"] .sidebar-toggle svg{transform:none}#today-view{padding-top:14px}}
@media(prefers-reduced-motion:no-preference){body,.site-sidebar{transition:padding-left .18s ease,width .18s ease,transform .18s ease}}
.site-sidebar [hidden]{display:none!important}html[data-theme="dark"] body>.site-sidebar{background:var(--sidebar-bg)}html[data-theme="dark"] body>.site-sidebar nav{background:transparent}
.site-sidebar .machine-brand{padding-left:0;flex:1}.site-sidebar .machine-wordmark{display:block;width:100%;max-width:156px;height:auto;filter:brightness(0)}html[data-theme="dark"] .site-sidebar .machine-wordmark{filter:brightness(0) invert(1)}
.site-sidebar .mobile-page-reload{display:none}@media(max-width:760px){.site-sidebar .mobile-page-reload{display:flex}}
.mobile-page-header{display:contents}
@media(max-width:760px){
 body>.mobile-page-header{display:flex;align-items:center;justify-content:space-between;position:static;padding:12px 16px 0;gap:16px}
 .mobile-page-header .sidebar-mobile-toggle{position:static;top:auto;margin:0;z-index:auto;width:40px;height:40px}
 .mobile-page-header #coach-launcher{position:static;inset:auto;z-index:auto;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:9px;transform:none;transition:none;touch-action:manipulation;cursor:pointer}
 .mobile-page-header #coach-launcher img{width:34px;height:34px;filter:none}
 .mobile-page-header #coach-launcher small{display:none}
 .mobile-page-header #coach-launcher:focus,.mobile-page-header #coach-launcher:focus-visible{outline:none;box-shadow:none}
 .mobile-page-header #coach-launcher:focus-visible{background:var(--panel2)}
 .mobile-page-header #coach-launcher{-webkit-tap-highlight-color:transparent}
}

/* Supplied icons share the same footprint and inherited color as sidebar SVGs. */
.supplied-ui-icon{display:block;background:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}
.supplied-settings-icon{mask-image:url('/assets/ui-settings.png');-webkit-mask-image:url('/assets/ui-settings.png')}
.supplied-reload-icon{mask-image:url('/assets/ui-reload-vector.svg');-webkit-mask-image:url('/assets/ui-reload-vector.svg')}

.mobile-today-brand{display:none}
@media(max-width:760px){
 body>.site-sidebar{left:auto;right:0;transform:translateX(100%);border-right:0;border-left:1px solid var(--line)}
 body.sidebar-open>.site-sidebar{transform:translateX(0)}
 body>.mobile-page-header{position:relative;min-height:64px;box-sizing:border-box}
 .mobile-page-header .sidebar-mobile-toggle{margin-left:auto;order:2}
 .mobile-page-header #coach-launcher{order:1;margin-right:auto}
 body:has(#today-view.active) .mobile-today-brand{display:block;position:absolute;left:50%;top:50%;width:160px;height:auto;transform:translate(-50%,-50%);filter:brightness(0)}
 html[data-theme="dark"] body:has(#today-view.active) .mobile-today-brand{filter:brightness(0) invert(1)}
 body:has(#today-view.active) .mobile-page-header .sidebar-mobile-toggle{position:absolute;left:calc(50% + 92px);top:50%;transform:translateY(-50%);margin:0}
}

@media(max-width:760px){body:has(#today-view.active) .mobile-page-header .sidebar-mobile-toggle{position:static;left:auto;top:auto;transform:none;margin-left:auto}}
