/* Reference structures: icon dock + anchored submenu; grouped sidebar + header trigger. */
.tc-shell{--tc-rail:256px;position:fixed;inset:0;background:var(--tc-bg);color:var(--tc-text);font-family:var(--tc-font);font-size:17px;-webkit-font-smoothing:antialiased}
.tc-shell[data-collapsed="true"]{--tc-rail:68px}
.tc-shell *{box-sizing:border-box}
.tc-shell [data-ui="Button"]{font-family:inherit;touch-action:manipulation}
.tc-shell [data-ui="Button"]:focus-visible{outline:2px solid var(--tc-focus);outline-offset:3px}
.tc-shell-sidebar{position:absolute;inset:0 auto 0 0;width:var(--tc-rail);display:flex;flex-direction:column;border-right:1px solid var(--tc-line);background:var(--tc-bg);z-index:100;padding:12px 8px;transition:width 360ms cubic-bezier(.25,.8,.25,1)}
.tc-sidebar-workspace{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:92px;margin-bottom:16px;padding:8px 12px;overflow:hidden}
.tc-sidebar-label{min-width:0;white-space:nowrap;overflow:hidden;transition:opacity 200ms 80ms var(--tc-ease-settle),transform 200ms 80ms var(--tc-ease-settle)}
.tc-sidebar-label strong{display:block;font-size:14px;line-height:20px;font-weight:500}.tc-sidebar-label span{display:block;font-size:12px;line-height:18px;color:var(--tc-text-2)}
.tc-sidebar-section-label{padding:24px 12px 8px;font-size:11px;color:var(--tc-text-2);white-space:nowrap;overflow:hidden}
.tc-shell-nav{position:relative;display:flex;flex-direction:column;gap:4px}
.tc-nav-item{position:relative;min-width:0}.tc-nav-row{display:flex;position:relative}
.tc-shell-tab{position:relative;display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:40px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--tc-text-2);font-size:14px;font-weight:400;text-align:left;cursor:pointer;overflow:hidden}
.tc-shell-tab svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.6}
.tc-shell-tab[aria-current="page"]{color:var(--tc-text);font-weight:500}
.tc-nav-label{white-space:nowrap;transition:opacity 200ms 80ms var(--tc-ease-settle),transform 200ms 80ms var(--tc-ease-settle)}
.tc-nav-indicator{position:absolute;top:0;left:0;border-radius:12px;background:var(--tc-fill);pointer-events:none;transition:transform 300ms var(--tc-ease-settle)}
.tc-nav-expand{flex:0 0 36px;width:36px;min-height:40px;border:0;border-radius:10px;color:var(--tc-text-2);background:transparent;cursor:pointer}.tc-nav-expand svg{width:14px;height:14px;transition:transform 180ms var(--tc-ease-settle)}.tc-nav-expand[aria-expanded="true"] svg{transform:rotate(90deg)}
.tc-nav-expand:hover,.tc-shell-tab:hover{background:var(--tc-press)}
.tc-nav-submenu{display:flex;flex-direction:column;margin:4px 8px 8px 21px;padding:0 0 0 14px;border-left:1px solid var(--tc-line);animation:tc-submenu-enter 200ms var(--tc-ease-settle)}
.tc-nav-submenu button{min-height:36px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--tc-text-2);font-size:13px;padding:6px 10px;cursor:pointer}.tc-nav-submenu button:hover{background:var(--tc-fill);color:var(--tc-text)}
.tc-sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 8px 0;overflow:visible}
.tc-global-header{position:absolute;left:calc(var(--tc-rail) + 20px);right:20px;top:12px;height:52px;padding:0 12px;display:flex;align-items:center;gap:12px;border:1px solid var(--tc-line);border-radius:16px;background:var(--tc-bg);z-index:100;transition:left 360ms var(--tc-ease-settle)}
.tc-shell-collapse{display:flex;align-items:center;justify-content:center;width:36px;height:40px;border:0;background:transparent;color:var(--tc-text-2);border-radius:10px;cursor:pointer}.tc-shell-collapse svg{width:18px;height:18px}.tc-shell-collapse:hover{background:var(--tc-fill)}
.tc-global-title{font-size:16px;padding-left:12px;line-height:20px;font-weight:500;letter-spacing:0;flex:none}
.tc-global-header>.tc-header-actions{margin-left:auto}
.tc-shell-content{position:absolute;inset:80px 0 0 var(--tc-rail);overflow:hidden;isolation:isolate;z-index:0;transition:left 360ms var(--tc-ease-settle)}
.tc-shell-content .tc-root{--nav-w:0px!important;max-width:none!important}
.tc-shell-content>.tc-root{height:100%!important}
.tc-shell-content .tc-root[data-tab="home"]>.tc-l-list,.tc-shell-content .tc-root[data-tab="goals"]>.tc-l-list,.tc-shell-content .tc-root[data-tab="learn"]>.tc-l-list,.tc-shell-content .tc-root[data-tab="accompagnement"]>.tc-l-list,.tc-shell-content .tc-root[data-tab="community"]>.tc-l-list{padding-left:0!important}
.tc-shell-sidebar[data-blocked="true"]{pointer-events:none}
.tc-shell [data-tab="coaching"] [data-scroll="hub"]{padding-top:20px!important}
.tc-shell-content[data-modal-open="true"]{z-index:101}
.tc-shell-content[data-modal-open="true"] .tc-sheet-wrap{position:fixed!important;inset:0!important}
@keyframes tc-submenu-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes tc-dock-enter{from{opacity:0;transform:translateX(-50%) translateY(8px) scale(.94)}to{opacity:1;transform:translateX(-50%)}}
@media(min-width:700px){
 .tc-shell[data-collapsed="true"] .tc-sidebar-label,.tc-shell[data-collapsed="true"] .tc-nav-label{opacity:0;transform:translateX(-8px);width:0;transition:opacity 120ms var(--tc-ease-settle),transform 120ms var(--tc-ease-settle)}
 .tc-shell[data-collapsed="true"] .tc-sidebar-section-label{font-size:0;height:32px;padding:0}
 .tc-shell[data-collapsed="true"] .tc-shell-tab{justify-content:center;gap:0;padding:10px}
 .tc-shell[data-collapsed="true"] .tc-sidebar-workspace{padding:0 12px;gap:0}
 .tc-shell[data-collapsed="true"] .tc-sidebar-footer{gap:0;padding-left:8px}
}
@media(max-width:699px){
 .tc-shell-sidebar{inset:auto auto max(12px,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);padding:4px;border:1px solid var(--tc-line);border-radius:18px;box-shadow:0 3px 16px #00000006;background:var(--tc-bar);backdrop-filter:blur(20px);transition:none}
 .tc-sidebar-workspace,.tc-sidebar-section-label,.tc-sidebar-footer{display:none}
 .tc-shell-nav{flex-direction:row;gap:4px}.tc-nav-item{flex:none}.tc-shell-tab{width:46px;height:46px;min-height:46px;padding:12px;border-radius:16px;overflow:visible;justify-content:center}
 .tc-shell-tab svg{width:22px;height:22px;flex-basis:22px}.tc-shell-tab>.tc-nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.tc-nav-indicator{border-radius:16px}
 .tc-dock-menu{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);width:240px;max-width:calc(100vw - 24px);padding:0;overflow:hidden;transition:height 300ms cubic-bezier(.45,0,.25,1);border:1px solid var(--tc-line);border-radius:18px;background:var(--tc-bar);backdrop-filter:blur(20px);box-shadow:0 4px 20px #00000008;transform-origin:bottom center;animation:tc-dock-enter 300ms cubic-bezier(.45,0,.25,1)}
 .tc-dock-menu-content{padding:6px}
 .tc-dock-menu-title{display:block;padding:6px 12px;font-size:12px;line-height:18px;font-weight:500;color:var(--tc-text-2)}
 .tc-dock-menu button{display:block;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:12px;background:transparent;color:var(--tc-text);font-size:15px;text-align:left;cursor:pointer}.tc-dock-menu button:hover{background:var(--tc-fill)}
 .tc-global-header{left:0;right:0;top:0;height:54px;padding:0 12px;border:0;border-bottom:1px solid var(--tc-line);border-radius:0;transition:none}.tc-global-title{border:0;padding-left:12px;font-size:16px;letter-spacing:0;font-weight:500}
 .tc-shell-content{inset:54px 0 calc(80px + env(safe-area-inset-bottom)) 0;transition:none}.tc-shell-content[data-context-header="true"]{inset:0}
}
@media(prefers-reduced-motion:reduce){.tc-shell-sidebar,.tc-shell-content,.tc-global-header,.tc-nav-label,.tc-sidebar-label,.tc-nav-indicator{transition:none}.tc-nav-submenu,.tc-dock-menu{animation:none;transition:none}}

.tc-profile{position:relative}
.tc-profile-trigger{border:0;border-radius:14px;display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:5px 7px;background:transparent;color:var(--tc-text);font-size:14px;font-weight:500;cursor:pointer;overflow:hidden}
.tc-profile-trigger:hover{background:var(--tc-fill)}
.tc-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--tc-fill);border:1px solid var(--tc-line);font-size:12px;font-weight:500;color:var(--tc-text)}
.tc-profile-menu{position:absolute;left:calc(100% + 18px);bottom:0;width:320px;padding:16px;background:var(--tc-bg);border:1px solid var(--tc-line-strong);border-radius:20px;box-shadow:0 12px 42px #0000001c;color:var(--tc-text);animation:tc-profile-enter 250ms var(--tc-ease-settle);max-height:calc(100dvh - 32px);overflow:auto}
.tc-profile-identity{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.tc-profile-identity strong{display:block;font-size:15px;line-height:22px;font-weight:500}.tc-profile-identity div>span{display:block;font-size:12px;line-height:18px;color:var(--tc-text-2)}
.tc-member-card{display:flex;flex-direction:column;min-height:174px;border-radius:16px;padding:20px;margin-bottom:16px;border:1px solid var(--tc-line);background:linear-gradient(135deg,var(--tc-fill),var(--tc-bg));box-shadow:inset 0 1px #ffffff18}
.tc-member-brand{font-size:11px;font-weight:600;letter-spacing:.08em}.tc-member-label{font-size:12px;line-height:20px;color:var(--tc-text-2);margin-top:6px}.tc-member-card strong{font-weight:500;font-size:20px;line-height:26px;margin-top:auto}.tc-member-status{font-size:12px;color:var(--tc-text-2);line-height:20px}
.tc-profile-theme{padding:4px 0 10px;border-bottom:1px solid var(--tc-line);margin-bottom:8px}
.tc-profile-row{display:flex;align-items:center;gap:10px;font-size:14px;min-height:44px}.tc-profile-row>span{flex:1}.tc-profile-row>svg{width:19px;height:19px}
.tc-profile-switch{width:44px;height:26px;padding:3px;border:0;border-radius:20px;background:var(--tc-line-strong);cursor:pointer}.tc-profile-switch>span{display:block;width:20px;height:20px;border-radius:50%;background:var(--tc-bg);box-shadow:0 1px 3px #0003;transition:transform 250ms var(--tc-ease-settle)}.tc-profile-switch[aria-checked="true"]{background:var(--tc-text)}.tc-profile-switch[aria-checked="true"]>span{transform:translateX(18px)}
.tc-profile-system{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:4px 0 4px 29px;width:100%;border:0;background:transparent;color:var(--tc-text-2);font-size:13px;cursor:pointer}
.tc-profile-link{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;border:0;border-radius:10px;background:transparent;color:var(--tc-text);padding:8px 4px;font-size:14px;font-weight:400;cursor:pointer}.tc-profile-link:hover{background:var(--tc-fill)}.tc-profile-link svg{width:19px;height:19px}.tc-profile-link svg:last-child{margin-left:auto;width:16px;color:var(--tc-text-2)}
@keyframes tc-profile-enter{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}

@media(max-width:699px){.tc-profile-trigger{width:44px;min-height:44px;padding:5px}.tc-profile-trigger>.tc-nav-label{display:none}.tc-profile-menu{position:fixed;left:auto;right:8px;top:60px;bottom:auto;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 76px)}}
/* Contextual mobile header owns its back affordance and profile, with no dock. */
.tc-context-profile{display:none}
@media(max-width:699px){
 .tc-shell [data-contextual="true"]{gap:10px;padding:5px 12px;min-height:54px}
 .tc-shell [data-contextual="true"]>.tc-ui-back{width:44px;min-width:44px;height:44px;padding:10px;justify-content:center;border-radius:14px;background:var(--tc-fill);border:1px solid var(--tc-line);gap:0}
 .tc-shell [data-contextual="true"]>.tc-ui-back svg{width:21px;height:21px;stroke-width:1.6}
 .tc-shell [data-contextual="true"] .tc-back-label{display:none}
 .tc-context-profile{display:block;margin-left:auto}
 .tc-context-profile .tc-profile-trigger{padding:5px}
 .tc-context-profile .tc-profile-menu{z-index:110}
 .tc-shell [data-layer="account"]>[data-ui="PageHeader"]>.tc-ui-context-title{display:none}
 .tc-shell [data-layer="account"] [data-role="page-title"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* A contextual desktop header is portalled into the shell, not duplicated. */
.tc-context-anchor{height:0;min-height:0;flex:0 0 0;overflow:hidden;border:0}
.tc-global-context-slot{display:flex;align-items:center;min-width:0;flex:1}
.tc-desktop-context-header{position:relative;display:flex;align-items:center;gap:12px;min-width:0;width:100%;height:52px}
.tc-desktop-context-header>.tc-ui-back{display:inline-flex!important;min-height:44px;flex-shrink:0}
.tc-desktop-context-header>.tc-ui-context-title{font-size:14px;font-weight:500;letter-spacing:0;color:var(--tc-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tc-desktop-context-header>.tc-navbar-title{display:none}
.tc-sidebar-footer>.tc-profile{width:100%}
.tc-sidebar-footer .tc-profile-trigger{width:100%;padding:5px 0;gap:10px;min-height:44px}
.tc-sidebar-footer .tc-profile-trigger>.tc-nav-label{display:flex;font-size:13px}
.tc-sidebar-footer .tc-profile-menu{position:fixed;left:calc(var(--tc-rail) + 12px);right:auto;top:auto;bottom:12px;max-height:calc(100dvh - 24px);z-index:120}
.tc-shell-content .tc-root-scroll{padding-inline:var(--tc-gutter)}


/* Root page names are owned by the shell; useful content headings stay in place. */
.tc-page-root-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:700px){.tc-shell[data-collapsed="true"] .tc-sidebar-workspace{padding:0 4px}}

/* Context toolbar slots own layout; exported spacers and titles are not mounted here. */
.tc-context-actions{position:relative;display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.tc-desktop-context-header>.tc-ui-back{margin:0!important;padding:0 10px!important;border-radius:12px;background:var(--tc-fill);font-size:14px;line-height:20px;font-weight:500;gap:4px}
.tc-desktop-context-header .tc-back-label svg{display:none}
.tc-desktop-context-header .tc-back-label{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.tc-sidebar-logo{display:block;width:164px;max-width:100%;height:auto;max-height:78px;object-fit:contain}
.tc-sidebar-toggle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--tc-bg);color:var(--tc-text);opacity:0;cursor:pointer;transition:opacity 160ms var(--tc-ease-settle)}
.tc-sidebar-workspace:hover .tc-sidebar-toggle,.tc-sidebar-toggle:focus-visible{opacity:1}
.tc-sidebar-toggle:active{background:var(--tc-fill)}
.tc-profile-caption{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:2px;line-height:18px}.tc-profile-caption small{font-size:11px;font-weight:400;color:var(--tc-text-2)}
.tc-sidebar-footer .tc-profile-trigger{padding:8px;gap:10px;border:1px solid var(--tc-line);border-radius:14px;min-height:58px}
.tc-profile-chevron{flex:none;color:var(--tc-text-2)}
.tc-profile-trigger:active{background:var(--tc-press)}
.tc-shell[data-collapsed="true"] .tc-profile-chevron{display:none}
.tc-shell[data-collapsed="true"] .tc-sidebar-footer{padding:8px 0 0}
.tc-shell[data-collapsed="true"] .tc-sidebar-footer .tc-profile-trigger{padding:6px;border-color:transparent}
@media(max-width:699px){.tc-profile-chevron{display:none}.tc-global-title{font-size:16px}.tc-sidebar-workspace{display:none}}
@media(prefers-reduced-motion:reduce){.tc-sidebar-toggle{transition:none}}

.tc-sidebar-footer .tc-member-card{min-height:142px;margin-bottom:10px;padding:16px;border-radius:14px}
.tc-sidebar-footer .tc-member-card strong{font-size:17px;line-height:24px}
.tc-profile-caption>span,.tc-profile-caption>small{display:block;width:100%;text-align:left}
.tc-profile-caption{row-gap:3px}
.tc-shell[data-collapsed="true"] .tc-sidebar-logo{width:36px;height:36px}
.tc-shell[data-collapsed="true"] .tc-sidebar-workspace{justify-content:center}
.tc-shell[data-collapsed="true"] .tc-sidebar-footer .tc-member-card{display:none}

/* Header action family: same 24-unit artwork, optical size, weight and target. */
.tc-header-actions :is(.tc-search-trigger,.tc-notifications-trigger){width:44px;height:44px;min-height:44px;border-radius:12px;color:var(--tc-text-2)}
.tc-header-actions :is(.tc-search-trigger,.tc-notifications-trigger)>svg{width:20px;height:20px;stroke-width:1.6;color:inherit}
.tc-header-actions :is(.tc-search-trigger,.tc-notifications-trigger):active{background:var(--tc-press);transform:scale(.98)}

.tc-sidebar-utilities{display:flex;flex-direction:column;gap:4px;padding-top:16px;margin-top:16px;border-top:1px solid var(--tc-line)}
.tc-sidebar-utility{display:flex;align-items:center;gap:12px;min-height:44px;border:0;border-radius:10px;padding:10px 12px;background:none;color:var(--tc-text-2);font:inherit;font-size:14px;text-align:left;cursor:pointer}.tc-sidebar-utility:hover{background:var(--tc-fill)}.tc-sidebar-utility svg{width:18px;height:18px;flex:none}.tc-shell[data-collapsed="true"] .tc-sidebar-utility{justify-content:center;gap:0;padding:10px}
