/* The inactive shell stays hidden before and after preference initialization. */
html:not([data-surfhub-style="classic"]) .sh-style-classic-only,
html[data-surfhub-style="classic"] .sh-style-modern-only { display:none!important; }
.sh-classic-account-rail,.sh-modern-ad-rail { display:contents; }
.sh-sidebar-native-icon { display:none; }
/* The style control stays available in both SurfHub experiences. */
.sh-classic-nav-icon { display:none; }
.sh-style-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 11px; border:1px solid #c7d9dc; border-radius:9px; background:#fcfefd; color:#315460; font:550 12px/1.4 Manrope,Arial,sans-serif; cursor:pointer; white-space:nowrap; flex-shrink:0; }
.sh-style-toggle svg { display:block; width:17px; height:17px; flex-shrink:0; }
.sh-style-toggle:hover { background:#eef4f4; }
.sh-style-toggle:focus-visible { outline:3px solid #327c9f; outline-offset:3px; }
.sh-style-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
html[data-surfhub-style="classic"] .sh-style-toggle { color:#325cfd; background:white; border-color:#c0bcbc; border-radius:6px; font-family:'Open Sans',Arial,sans-serif; font-weight:600; }
html[data-surfhub-style="classic"] .sh-style-toggle:hover { background:#f2f2f2; }
html[data-surfhub-style="classic"] .sh-style-toggle:focus-visible { outline-color:#325cfd; }
@media(max-width:760px) { .sh-style-toggle { min-height:38px; padding:8px; font-size:11px; gap:5px; } .sh-top .sh-account { gap:7px; } .sh-top .sh-join { padding-inline:10px; } .sh-top .sh-account-name { display:none; } }
@media(prefers-reduced-motion:reduce) { .sh-style-toggle { transition:none; } }
@media(forced-colors:active) { .sh-style-toggle { border:1px solid ButtonText; } }

.sh-auth-style-control { position:absolute; top:20px; right:20px; z-index:20; display:flex; align-items:center; }
@media(max-width:760px) {
  html[data-surfhub-style="modern"] .sh-top:has(.sh-join) { flex-wrap:wrap; gap:10px; }
  html[data-surfhub-style="modern"] .sh-top:has(.sh-join) .sh-account { margin-left:auto; }
}

/* Shared geometry is stable when members change visual styles. */
html[data-surfhub-style="modern"] .sh-platform .sh-top .sh-brand { display:flex; align-items:center; flex-shrink:0; padding:0; }
html[data-surfhub-style="modern"] .sh-platform .sh-top .sh-brand img { display:block; width:140px; height:auto; max-width:100%; margin:0; object-fit:contain; }
html[data-surfhub-style="modern"] .sh-platform .my-details-div .profile-pic { display:grid; place-items:center; width:72px; height:72px; flex-shrink:0; border:1px solid #c0bcbc; border-radius:50%; position:relative; margin:0 auto; }
html[data-surfhub-style="modern"] .sh-platform .profile-photo-edit .profile-pic { display:grid; place-items:center; width:90px; height:90px; flex:0 0 90px; border-radius:50%; overflow:hidden; }
html[data-surfhub-style="modern"] .sh-platform .my-details-div .profile-pic>img,html[data-surfhub-style="modern"] .sh-platform .profile-photo-edit .profile-pic>img { display:block; width:100%; height:100%; max-width:100%; border-radius:50%; object-fit:cover; object-position:center; }
html[data-surfhub-style="modern"] .sh-platform .profile-pic>.sh-profile-initial { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; font-size:24px; line-height:1; }
html[data-surfhub-style="modern"] .sh-platform .my-details-div .profile-pic>.notification { position:absolute; left:auto; right:-4px; top:auto; bottom:-4px; transform:none; min-width:22px; width:auto; height:22px; padding:0 5px; border-radius:50%; font-size:11px; line-height:20px; }
html[data-surfhub-style="modern"] .sh-platform .my-details-div .my-name { overflow-wrap:anywhere; margin-top:16px; font-size:16px; line-height:1.5; }
html[data-surfhub-style="modern"] .sh-platform .my-details-div .notification:empty { display:none; }
html[data-surfhub-style="classic"] .sh-empty h2 { font-size:22px; line-height:1.35; margin:0 0 12px; }
@media(max-width:760px) {
  html[data-surfhub-style="modern"] .sh-platform .sh-top .sh-brand img { width:118px; }
}

.sh-style-toggle { min-width:116px; }
@media(max-width:760px) { .sh-style-toggle { min-width:104px; } }

.sh-auth-logo { display:block; width:140px; }
.sh-auth-logo img { display:block; width:100%; height:auto; object-fit:contain; }
@media(max-width:760px) { .sh-auth-logo { width:118px; } .sh-auth-card-page { padding-top:84px; } }

/* One Home workspace uses the existing Community, content and video pages. */
.sh-home-workspace { min-width:0; margin:0 0 24px; }
.sh-platform .sh-home-heading { position:static; inset:auto; display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; height:auto; min-height:0; padding:26px 0 20px; margin:0; border:0; background:transparent; box-shadow:none; }
.sh-home-heading>div { min-width:0; }
html[data-surfhub-style] .sh-platform .sh-home-heading h1 { margin:0 0 9px; font-size:30px; line-height:1.2; }
.sh-home-heading p { margin:0; color:var(--sh-soft-ink,#747474); font-size:13px; line-height:1.7; }
html[data-surfhub-style] .sh-platform .sh-home-create { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; gap:9px; border:1px solid #8a937d; border-radius:3px; color:#f7f4ec; background:#27382c; font:550 12px/1.5 Manrope,Arial,sans-serif; text-decoration:none; flex-shrink:0; }
.sh-home-create svg { display:block; width:16px; height:16px; }
html[data-surfhub-style] .sh-platform .sh-home-create:hover { color:#fff; background:#405442; text-decoration:none; }
.sh-home-nav { display:flex; align-items:stretch; gap:26px; overflow-x:auto; min-width:0; max-width:100%; border-bottom:1px solid var(--sh-line,#c0bcbc); scrollbar-width:thin; }
html[data-surfhub-style] .sh-platform .sh-home-nav a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:7px 1px; flex-shrink:0; color:var(--sh-soft-ink,#747474); border-bottom:2px solid transparent; font-size:13px; font-weight:500; text-decoration:none; white-space:nowrap; }
html[data-surfhub-style] .sh-platform .sh-home-nav a[aria-current=page] { color:var(--sh-ink,#616161); border-bottom-color:var(--sh-ink,#616161); font-weight:650; }
html[data-surfhub-style] .sh-platform .sh-home-nav a:hover { color:var(--sh-ink,#616161); text-decoration:none; }
.sh-home-nav svg { width:17px; height:17px; flex-shrink:0; }
html[data-surfhub-style="modern"] .sh-platform .hub-top-option .left-option>div>a>span { display:block; }
html[data-surfhub-style="modern"] .sh-platform .hub-top-option .left-option>div>a>svg { width:18px; height:18px; flex-shrink:0; }
html[data-surfhub-style="classic"] .sh-legacy .sh-home-workspace { max-width:1440px; margin:0 auto 22px; padding:0 12px; }
html[data-surfhub-style="classic"] .sh-platform .sh-home-create { background:#325cfd; border-color:#325cfd; color:#fff; border-radius:6px; font-family:'Open Sans',Arial,sans-serif; font-weight:600; }
html[data-surfhub-style="classic"] .sh-platform .sh-home-create:hover { background:#244ce1; }
html[data-surfhub-style="classic"] .sh-platform .sh-home-nav a[aria-current=page] { color:#325cfd; border-bottom-color:#325cfd; }
html[data-surfhub-style="classic"] .sh-platform .sh-home-nav a:hover { color:#325cfd; }
@media(max-width:760px) {
  .sh-platform .sh-home-heading { padding:22px 0 16px; align-items:flex-start; gap:12px; flex-wrap:wrap; }
  html[data-surfhub-style] .sh-platform .sh-home-heading h1 { font-size:27px; }
  .sh-home-heading p { font-size:12px; }
  .sh-home-nav { gap:21px; }
  html[data-surfhub-style] .sh-platform .sh-home-nav a { font-size:12px; min-height:46px; }
  .sh-home-nav svg { width:16px; height:16px; }
  .sh-home-workspace { margin-bottom:20px; }
  html[data-surfhub-style="modern"] .sh-top .sh-primary:has(>a:nth-child(3):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html[data-surfhub-style="modern"] .sh-top .sh-primary:has(>a:nth-child(4):last-child) { grid-template-columns:repeat(4,minmax(0,1fr)); }
  html[data-surfhub-style="modern"] .sh-top .sh-primary:has(>a:nth-child(5):last-child) { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media(forced-colors:active) {
  .sh-home-create { border:1px solid ButtonText; }
  .sh-home-nav a[aria-current=page] { border-bottom-color:Highlight; }
}

/* Account actions stay in the shared header while content uses one centered lane. */
html[data-surfhub-style="modern"] .sh-platform .home-row.sh-account-free { justify-content:center; }
html[data-surfhub-style="modern"] .sh-platform .home-row.sh-account-free>.middle-content { flex:1 1 0; width:100%; min-width:0; max-width:980px; margin:0; }
html[data-surfhub-style="modern"] .sh-platform.sh-account-free-page :is(.sh-home-workspace,.sh-page-heading,.sh-journey) { max-width:980px; margin-inline:auto; }
@media(max-width:900px) {
  html[data-surfhub-style="modern"] .sh-platform .home-row.sh-account-free { display:block; }
}

/* Next Wave keeps its black mark and adjusts stroke weight for compact navigation. */
.sh-coach-portal-mark>path { stroke:#000; stroke-width:2; }
html[data-surfhub-style="modern"] .sh-top .sh-primary .sh-coach-portal-mark>path { stroke-width:4.25; }
.sh-platform .profile-row .sh-coach-portal-mark>path { stroke-width:4.25; }
@media(forced-colors:active) { .sh-coach-portal-mark>path { stroke:CanvasText; } }
