/* Signed-in header on computers for personal accounts (member-header.js adds body.tg-member-header).
   Everything that changes the header sits inside the 851px+ block, so the phone menu, the visitor header
   and company headers look exactly as before. */
.tg-member-nav,.tg-nav-icon,.tg-me-only,.tg-me-avatar,.tg-me-caret{display:none}
.tg-me-more-list{display:contents}
/* "Switched to Client/Tasker mode" notice, on phones and computers. */
.tg-mode-notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1200;background:#111318;color:#fff;font-weight:600;font-size:14px;padding:10px 16px;border-radius:999px;box-shadow:0 10px 28px rgba(17,19,24,.25);max-width:calc(100vw - 32px);text-align:center}
.tg-mode-notice[hidden]{display:none}

@media (min-width:851px){
 body.tg-member-header>.topbar{flex-wrap:nowrap;gap:12px}
 body.tg-member-header>.topbar :is(.desktop-search,#globalModeSwitch){display:none}
 /* The doubled id outranks the older homepage header rules without !important. */
 body.tg-member-header #mainNav#mainNav{flex:1 1 auto;flex-basis:auto;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:2px;margin-left:6px;min-width:0;overflow:visible}
 body.tg-member-header #mainNav#mainNav>:is([data-view="home"],[data-view="nearby"],[data-view="rankings"],#modeBrowseNav){display:none}
 body.tg-member-header #mainNav#mainNav>.tg-member-nav{display:inline-flex}
 /* Client mode shows Find Help, My Task Posts, Businesses; Tasker mode shows Find Work, My Gigs, Jobs. */
 body.tg-member-header #mainNav#mainNav>.tg-other-mode{display:none}
 body.tg-member-header #mainNav#mainNav>[data-tg-section]{align-items:center;border-radius:999px;padding:9px 12px;color:#2b2f36;font-weight:500;background:transparent}
 body.tg-member-header #mainNav#mainNav>[data-tg-section]:hover{background:#eef8f7}
 body.tg-member-header #mainNav#mainNav>[data-tg-section].tg-current{background:#eef8f7;color:#06736a;font-weight:700}
 body.tg-member-header #mainNav#mainNav :is(button,summary):focus-visible{outline:3px solid #58c7be;outline-offset:2px}

 /* Spacer, then the green mode button. */
 body.tg-member-header #mainNav#mainNav>#modeCreateNav{margin-left:auto;display:inline-flex;align-items:center;border-radius:999px;padding:10px 18px;background:linear-gradient(135deg,#06978c,#06736a);color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(6,151,140,.28)}
 body.tg-member-header #mainNav#mainNav>#modeCreateNav:hover{background:#06736a}

 /* Notifications and Inbox: round icon buttons with a red count. */
 body.tg-member-header #mainNav#mainNav>.nav-notifications{margin-left:6px}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav){position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;border-radius:50%;color:#2b2f36;background:transparent;font-size:0}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav):hover{background:#eef8f7}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav) .tg-nav-icon{display:grid;place-items:center}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav) :is(.tg-nav-emoji,.tg-nav-text){display:none}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav) .badge{position:absolute;top:3px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;font-weight:700;line-height:14px;border:2px solid #fff}
 body.tg-member-header #mainNav#mainNav :is(#notificationBtn,.inbox-nav) .badge.hidden{display:none}

 /* "Me" button and menu. */
 body.tg-member-header #mainNav#mainNav>.nav-more{margin-left:6px}
 body.tg-member-header #accountMenuBtn#accountMenuBtn{display:inline-flex;align-items:center;gap:8px;padding:3px 12px 3px 3px;border:1px solid #e3e8ee;border-radius:999px;background:#fff;color:#111318;font-weight:600}
 body.tg-member-header #accountMenuBtn#accountMenuBtn:hover{background:#f7fbfb}
 body.tg-member-header #accountMenuBtn .tg-me-avatar{display:block}
 body.tg-member-header #accountMenuBtn .tg-me-avatar .avatar{display:grid;place-items:center;width:34px;height:34px;margin:0;border-radius:50%;background:linear-gradient(135deg,#9fe0d9,#06978c) center/cover;color:#fff;font-size:13px;font-weight:800}
 body.tg-member-header #accountMenuBtn .tg-me-caret{display:inline;font-size:11px;color:#747984}
 body.tg-member-header #accountMenu#accountMenu{top:52px;right:0;width:270px;max-height:calc(100vh - 90px);overflow-y:auto;padding:8px;border:1px solid #e3e8ee;border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(17,19,24,.14);z-index:60}
 body.tg-member-header #accountMenu .tg-me-only{display:block}
 body.tg-member-header #accountMenu .tg-me-more-btn[hidden]{display:none}
 body.tg-member-header #accountMenu .tg-me-who{padding:8px 10px 10px;margin-bottom:6px;border-bottom:1px solid #e3e8ee}
 body.tg-member-header #accountMenu .tg-me-who b{display:block;color:#111318;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.tg-member-header #accountMenu .tg-me-who small{color:#747984}
 body.tg-member-header #accountMenu#accountMenu :is(button,.nav-btn){display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#2b2f36;font-weight:500;text-align:left;box-shadow:none}
 body.tg-member-header #accountMenu#accountMenu :is(button,.nav-btn):hover{background:#eef8f7}
 body.tg-member-header #accountMenu#accountMenu .tg-me-mode{background:#eef8f7;color:#06736a;font-weight:700}
 body.tg-member-header #accountMenu#accountMenu #logoutBtn{color:#b42318}
 body.tg-member-header #accountMenu#accountMenu #logoutBtn.hidden{display:none}
 body.tg-member-header #accountMenu .menu-divider{display:block;height:0;margin:6px 0;border-top:1px solid #e3e8ee}
 /* Contracts, Help and More open inside the menu instead of as a second floating box. */
 body.tg-member-header #accountMenu :is(.nav-contracts,.nav-help,.tg-me-more){position:static;width:auto}
 body.tg-member-header #accountMenu#accountMenu :is(#contractsMenu,#helpMenu){position:static;width:auto;margin:0;padding:0 0 4px 30px;border:0;border-radius:0;background:transparent;box-shadow:none}
 body.tg-member-header #accountMenu .tg-me-more-list{display:none;padding:0 0 4px 30px}
 body.tg-member-header #accountMenu .tg-me-more.open .tg-me-more-list{display:block}
 body.tg-member-header #accountMenu .tg-me-more-list>:is(div,details){position:static;width:auto}
 body.tg-member-header #accountMenu .tg-me-more-list .account-menu{position:static;width:auto;border:0;box-shadow:none;padding:0 0 0 18px}
 /* Icons are decoration only (the "/ ''" part keeps screen readers to the words). */
 body.tg-member-header #accountMenu :is(#myProfileMenuBtn,[data-view="dashboard"],#contractsMenuBtn,[data-tg-icon="payments"],[data-view="accountSettings"],.tg-me-mode,#helpMenuBtn,.tg-me-more-btn,#logoutBtn)::before{display:inline-block;width:20px;text-align:center}
 body.tg-member-header #accountMenu #myProfileMenuBtn::before{content:"👤"/""}
 body.tg-member-header #accountMenu [data-view="dashboard"]::before{content:"📊"/""}
 body.tg-member-header #accountMenu #contractsMenuBtn::before{content:"📄"/""}
 body.tg-member-header #accountMenu [data-tg-icon="payments"]::before{content:"💳"/""}
 body.tg-member-header #accountMenu [data-view="accountSettings"]::before{content:"⚙️"/""}
 body.tg-member-header #accountMenu .tg-me-mode::before{content:"🔁"/""}
 body.tg-member-header #accountMenu #helpMenuBtn::before{content:"❓"/""}
 body.tg-member-header #accountMenu .tg-me-more-btn::before{content:"⋯"/""}
 body.tg-member-header #accountMenu #logoutBtn::before{content:"↪"/""}
}
/* Laptops: tighter spacing so all seven items fit on one line. */
@media (min-width:851px) and (max-width:1099px){
 body.tg-member-header>.topbar{padding-left:16px;padding-right:16px;gap:8px}
 body.tg-member-header>.topbar .brand{font-size:22px}
 body.tg-member-header #mainNav#mainNav{margin-left:0}
 body.tg-member-header #mainNav#mainNav>[data-tg-section]{padding:8px 9px;font-size:14px}
 body.tg-member-header #mainNav#mainNav>#modeCreateNav{padding:9px 13px;font-size:14px}
 body.tg-member-header #mainNav#mainNav>:is(.nav-notifications,.nav-more){margin-left:2px}
}

/* Find Help tabs: All services, Nearby and Top Profiles (all screen sizes, guests and members). */
.tg-help-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.tg-help-tabs button{border:1px solid #e3e8ee;border-radius:999px;padding:8px 15px;background:#fff;color:#2b2f36;font-size:14px;font-weight:500;cursor:pointer}
.tg-help-tabs button:hover{background:#eef8f7}
.tg-help-tabs button[aria-current="page"]{background:#06978c;border-color:#06978c;color:#fff;font-weight:700}
.tg-help-tabs button:focus-visible{outline:3px solid #58c7be;outline-offset:2px}

/* Reload while signed in: a calm loading state instead of the visitor homepage (see index.html). */
html.tg-restoring :is(#guestHome,#loginNav,.discovery-guest-nav,.mobile-auth-actions .guest-mobile-only){display:none!important}
html.tg-restoring :is(#mainNav,.desktop-search,.site-footer){visibility:hidden}
html.tg-restoring .app-shell>.view{display:none!important}
html.tg-restoring .app-shell::before{content:"";display:block;width:34px;height:34px;margin:22vh auto 0;border:3px solid #d7efec;border-top-color:#06978c;border-radius:50%;animation:tg-restoring-spin .9s linear infinite}
html.tg-restoring .app-shell::after{content:"Loading your account…";display:block;margin:14px 0 40vh;text-align:center;color:#747984;font-size:14px}
@keyframes tg-restoring-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html.tg-restoring .app-shell::before{animation-duration:2.4s}}
