/* H05 consumes the released Hub foundation and original artwork. */
[data-hub-profile] .profile-hero{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;align-items:center}
[data-hub-profile] .profile-portrait{position:relative;width:80px;height:80px}
[data-hub-profile] .profile-avatar-face{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;overflow:hidden;background-color:var(--wz-surface-raised);border:1px solid var(--wz-edge);font-size:28px;color:var(--wz-link);background-repeat:no-repeat}
[data-hub-profile] .profile-avatar-face img{width:100%;height:100%;object-fit:cover}
[data-hub-profile] #choose-avatar{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:44px;min-height:44px;padding:10px;border-radius:50%;background:var(--wz-panel)}
[data-hub-profile] #choose-avatar svg{display:block;width:22px;height:22px}
[data-hub-profile] .profile-person{min-width:0}
[data-hub-profile] .profile-person h2{font-size:24px;overflow-wrap:anywhere}
[data-hub-profile] .profile-person p{font-size:16px;color:var(--wz-muted);margin:8px 0}
[data-hub-profile] .profile-hero>:is(button,p){grid-column:1/-1;margin:0}
[data-hub-profile] .profile-setup-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}
[data-hub-profile] .profile-setup-cards a{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:100px;padding:16px;border:1px solid var(--wz-edge);border-radius:18px;background:var(--wz-panel);text-decoration:none}
[data-hub-profile] small{font-size:16px;line-height:1.5;color:var(--wz-muted)}
[data-hub-profile] .profile-setup-cards small{display:block;margin-top:6px}
[data-hub-profile] .profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
[data-hub-profile] .profile-section-heading>a{display:grid;place-items:center;width:44px;min-height:44px}
[data-hub-profile] .profile-section-heading svg{width:24px;height:24px}
[data-hub-profile] :is(.profile-preferences,.profile-account){margin:0 0 16px}
[data-hub-profile] .profile-preferences>h2,[data-hub-profile] .profile-account>h2{margin:0 0 14px}
[data-hub-profile] .profile-preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
[data-hub-profile] .profile-preferences-grid>:is(a,button){display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;min-height:100px;padding:14px;text-align:left;border:1px solid var(--wz-edge);border-radius:18px;background:var(--wz-panel);color:var(--wz-ink);text-decoration:none;font:inherit}
[data-hub-profile] .profile-preferences-grid :is(strong,span[id]){display:block;font-size:16px;overflow-wrap:anywhere}
[data-hub-profile] .profile-preferences-grid :is(span[id]){margin-top:5px;color:var(--wz-muted)}
[data-hub-profile] .profile-setting-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;color:var(--wz-link)}
[data-hub-profile] .profile-setting-icon svg{width:24px;height:24px}
[data-hub-profile] .profile-preferences-grid b{display:none}
[data-hub-profile] .profile-account-list{padding:6px 16px;border:1px solid var(--wz-edge);border-radius:18px;background:var(--wz-panel)}
[data-hub-profile] :is(.profile-account-list,.profile-shortcuts)>a{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 0;border-bottom:1px solid var(--wz-edge);text-decoration:none}
[data-hub-profile] .profile-shortcuts>a:last-child,[data-hub-profile] .profile-account-list>a:last-child{border-bottom:0}
[data-hub-profile] :is(.profile-account-list,.profile-shortcuts)>a>span:not([data-profile-icon]){flex:1;min-width:0}
[data-hub-profile] [data-profile-icon]{display:block;width:24px;height:24px;flex:0 0 24px;color:var(--wz-link)}
[data-hub-profile] [data-profile-icon] svg{width:100%;height:100%}
[data-hub-profile] .profile-shortcuts small{display:block;margin-top:6px}
[data-hub-profile] .profile-quick-actions{margin-bottom:16px}
[data-hub-profile] .profile-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:60px;padding:12px 0;border-bottom:1px solid var(--wz-edge)}
[data-hub-profile] .profile-row strong{flex:1;min-width:100px}
[data-hub-profile] .profile-row>span{min-width:0;max-width:100%;overflow-wrap:anywhere;color:var(--wz-muted)}
[data-hub-profile] .profile-row button{min-width:60px}
[data-hub-profile] :is(.profile-more,.profile-physique-card,.profile-apps)>summary{flex-wrap:wrap;gap:8px;font-weight:600}
[data-hub-profile] .profile-target{display:flex;gap:16px;align-items:center}
[data-hub-profile] .profile-target>div:first-child{flex:1;min-width:0}
[data-hub-profile] .profile-target-name{display:block;font-size:20px;margin:8px 0}
[data-hub-profile] .profile-physique-art{width:82px;height:104px;flex:0 0 82px;background:url('assets/profile/physique-blue-v1.png') center/contain no-repeat}
[data-hub-profile] :is(.profile-physique-links,.profile-app-grid){display:flex;flex-direction:column}
[data-hub-profile] :is(.profile-physique-links a,.settings-row){display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 0;border-bottom:1px solid var(--wz-edge);text-decoration:none;font-size:16px;overflow-wrap:anywhere}
[data-hub-profile] .profile-app-link{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 0;border-bottom:1px solid var(--wz-edge);text-decoration:none}
[data-hub-profile] .profile-app-link>span:nth-child(2){flex:1;min-width:0}
[data-hub-profile] :is(.profile-app-symbol,.profile-form-icon){display:block;width:44px;height:44px;flex:0 0 44px;background:url('assets/home/app-symbols-metallic-v2.png') var(--profile-app-position,0 0)/400% 200% no-repeat}
[data-hub-profile] :is([data-app=nutrition],[data-module=nutrition]){--profile-app-position:33.333% 0}
[data-hub-profile] :is([data-app=yoga],[data-module=yoga]){--profile-app-position:66.667% 0}
[data-hub-profile] :is([data-app=calisthenics],[data-module=calisthenics]){--profile-app-position:100% 0}
[data-hub-profile] :is([data-app=lifestyle],[data-module=lifestyle]){--profile-app-position:0 100%}
[data-hub-profile] :is([data-app=education],[data-module=education]){--profile-app-position:33.333% 100%}
[data-hub-profile] :is([data-app=influencer],[data-module=influencer]){--profile-app-position:66.667% 100%}
[data-hub-profile] :is([data-app=travel],[data-module=travel]){--profile-app-position:100% 100%}
[data-hub-profile] [data-module=shared] .profile-form-icon{background:none;display:grid;place-items:center;color:var(--wz-link)}
[data-hub-profile] [data-module=shared] .profile-form-icon::before{content:'☷';font-size:28px}
[data-hub-profile] .form-summary h3{font-size:16px;margin:18px 0 8px;padding:10px 12px;border-radius:12px;background:var(--wz-surface-raised);border-left:3px solid var(--wz-edge)}
[data-hub-profile] .form-summary .forms-complete{border-left-color:var(--wz-accent)}
[data-hub-profile] .form-status-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:72px;padding:10px 0;border-bottom:1px solid var(--wz-edge);text-decoration:none}
[data-hub-profile] .form-status-row>span:nth-child(2){flex:1;min-width:110px}
[data-hub-profile] .form-status-row :is(strong,small){display:block;font-size:16px}
[data-hub-profile] .form-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border-radius:12px;background:var(--wz-accent);color:var(--wz-accent-contrast);max-width:100%;overflow-wrap:anywhere}
[data-hub-profile] .form-summary>a{display:flex;align-items:center;min-height:44px;margin-top:12px}
[data-hub-profile] .wz-popup-choices{max-height:min(42svh,360px);overflow:auto;margin:12px 0}
[data-hub-profile] .wz-popup-choice{border-bottom:1px solid var(--wz-edge);font-size:16px}
[data-hub-profile] .wz-popup-field{margin:14px 0}
[data-hub-profile] #profile-form>.primary{margin-top:20px}
[data-hub-profile] .wz-popup-diff{padding:12px 0;border-bottom:1px solid var(--wz-edge);overflow-wrap:anywhere}
[data-hub-profile] .wz-popup-diff p{margin:8px 0;color:var(--wz-muted)}
[data-hub-profile] :is(#profile-status,#avatar-save-result,#physique-status,#signout-status){font-size:16px;color:var(--wz-muted);overflow-wrap:anywhere}
[data-hub-profile] :is(#profile-status,#avatar-save-result,#physique-status,#signout-status):empty{display:none}
body[data-hub-profile] #avatar-picker{padding:24px;background:var(--wz-panel);color:var(--wz-ink);border-color:var(--wz-edge);font:inherit}
[data-hub-profile] #avatar-picker .avatar-preview{width:96px;height:96px;display:grid;place-items:center;border:1px solid var(--wz-edge);border-radius:50%;margin:16px auto;background-color:var(--wz-surface-raised);background-repeat:no-repeat;overflow:hidden;font-size:28px}
[data-hub-profile] #avatar-picker .avatar-preview img{width:100%;height:100%;object-fit:cover}
[data-hub-profile] .avatar-upload{margin:16px 0}
[data-hub-profile] .avatar-upload-button{position:relative;display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px;border:1px dashed var(--wz-link);border-radius:14px;overflow:hidden}
[data-hub-profile] .avatar-upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
[data-hub-profile] .avatar-upload small{display:block;margin-top:8px}
[data-hub-profile] .avatar-tabs{display:flex;gap:6px;overflow-x:auto;max-width:100%;margin:16px 0;padding-bottom:8px}
[data-hub-profile] .avatar-tabs button{flex:0 0 auto;min-height:44px}
[data-hub-profile] .avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
[data-hub-profile] .avatar-option{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;min-height:120px;padding:10px 4px;text-align:center;overflow-wrap:anywhere;color:var(--wz-ink)}
[data-hub-profile] .avatar-option .avatar-mode{display:block;width:60px;height:60px;flex:0 0 60px;line-height:60px;background-repeat:no-repeat;background-color:var(--wz-surface-raised);border-radius:50%;overflow:hidden;font-size:24px;text-align:center}
[data-hub-profile] .avatar-mode img{width:100%;height:100%;object-fit:cover}
[data-hub-profile] .avatar-option>span:last-child{max-width:100%;font-size:14px;line-height:1.4}
[data-hub-profile] .avatar-picker-actions{position:sticky;bottom:-24px;display:flex;gap:8px;padding:16px 0 24px;margin-top:16px;background:var(--wz-panel)}
[data-hub-profile] .avatar-picker-actions button{flex:1;min-width:0}
[data-hub-profile] .avatar-crop{padding:14px;border:1px solid var(--wz-edge);border-radius:14px}
[data-hub-profile] .avatar-crop canvas{display:block;width:180px;max-width:100%;height:auto;margin:0 auto;border-radius:50%}
[data-hub-profile] .avatar-crop label{display:block;margin:12px 0;font-size:16px}
[data-hub-profile] .avatar-crop input[type=range]{display:block;width:100%;min-height:44px;accent-color:var(--wz-accent)}
[data-hub-profile] .profile-build-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
[data-hub-profile] .profile-build-choice{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;padding:10px 4px;min-width:0;min-height:126px;color:var(--wz-ink)}
[data-hub-profile] .profile-build-choice svg{display:block;width:44px;height:74px}
[data-hub-profile] .build-actions{display:flex;flex-direction:column;gap:8px;margin-top:20px}
[data-hub-profile] .build-actions button{width:100%}
[data-hub-profile] .saved-list:empty{display:none}
[data-hub-profile] .saved-row{display:flex;gap:12px;align-items:center;min-height:76px;padding:14px 0;border-bottom:1px solid var(--wz-edge);text-decoration:none}
[data-hub-profile] .saved-row>span:nth-child(2){flex:1;min-width:0}
[data-hub-profile] .saved-row :is(strong,small){display:block;overflow-wrap:anywhere}
[data-hub-profile] .saved-search-label{display:block;margin:0 0 8px}
[data-hub-profile] #saved-search{width:100%;min-height:48px;border:1px solid var(--wz-edge);border-radius:12px;padding:10px 12px;background:var(--wz-surface-raised);color:var(--wz-ink);font:inherit;margin:0 0 16px}
[data-hub-profile] .privacy-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--wz-edge)}
[data-hub-profile] .privacy-row>.setting-switch{flex:1 0 100%;min-width:0;padding:0 0 8px}
[data-hub-profile] .privacy-row .profile-app-symbol{width:40px;height:40px;flex:0 0 40px}
[data-hub-profile] .privacy-row>button{flex:1;min-width:0}
[data-hub-profile] .setting-switch{flex-wrap:wrap}
[data-hub-profile] .setting-switch input{margin-left:auto}
[data-hub-profile] .setup-checklist-row{padding:18px;border:1px solid var(--wz-edge);border-radius:18px;margin:14px 0;background:var(--wz-panel)}
[data-hub-profile] .setup-checklist-row h2{font-size:20px}
[data-hub-profile] .setup-status{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border-radius:10px;background:var(--wz-surface-raised);font-weight:600}
[data-hub-profile] .setup-row-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}
[data-hub-profile] .setup-row-actions .hub-action{margin:0}
[data-hub-profile] .setup-missing{color:var(--wz-muted)}
[data-hub-profile] .review-label{margin:20px 0 10px}
[data-hub-profile] .change-info{margin-top:16px}
[data-hub-profile] .change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
[data-hub-profile] .change-grid>div{min-width:0;overflow-wrap:anywhere}
[data-hub-profile] .change-grid :is(small,strong){display:block}
[data-hub-profile] main>:is(.primary,.text-link){display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:12px 0}
[data-hub-profile] details[id$=export]>summary{font-weight:600}
[data-hub-profile] #connected-data-controls>summary{font-weight:600}
[data-hub-profile] .settings-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:52px;margin:16px 0}
[data-hub-profile] .hub-footnote,[data-hub-profile] .helper{font-size:16px;color:var(--wz-muted)}
[data-hub-profile] .hub-footnote a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:374px){[data-hub-profile] .profile-preferences-grid{grid-template-columns:1fr}[data-hub-profile] .avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

[data-hub-profile] .setup-row-actions .hub-action+.hub-action{background:var(--wz-surface-raised);color:var(--wz-link)}
