/* Serpworks shared navigation; styles scoped to .swsd-header. */
/* Independent header; old FreeAgent header and title bar are never rendered here. */
.swsd-header {--sw-purple:#7C3AED;--sw-border:#e7dcf8;position:relative;z-index:60;background:#fff;border-bottom:1px solid #eee6fb;box-shadow:0 3px 14px rgba(65,30,115,.035);}
.swsd-header-inner {width:min(1400px,calc(100% - 56px));margin:auto;min-height:78px;display:flex;align-items:center;gap:42px;}
.swsd-logo {display:inline-flex;align-items:center;flex-shrink:0;width:185px;min-width:0;}
.swsd-logo img {display:block;width:auto;height:auto;max-width:185px;max-height:53px;object-fit:contain;}
.swsd-nav {flex:1;min-width:0;}
.swsd-nav-list {display:flex;align-items:center;list-style:none;gap:6px;margin:0;padding:0;}
.swsd-nav-list > li {position:relative;list-style:none;margin:0;padding:0;}
.swsd-nav-list > li > a {display:flex;align-items:center;gap:5px;padding:12px 14px;border-radius:10px;text-decoration:none!important;color:#14242b!important;font-size:14px;font-weight:650;white-space:nowrap;}
.swsd-nav-list > li:is(:hover,.current-menu-item,.current-menu-ancestor) > a {color:var(--sw-purple)!important;background:#f2eaff;}
.swsd-nav-list ul.sub-menu {position:absolute;left:0;top:calc(100% + 1px);list-style:none;padding:8px;margin:0;min-width:190px;background:#fff;border:1px solid var(--sw-border);box-shadow:0 12px 34px rgba(25,15,60,.12);border-radius:12px;display:none;}
.swsd-nav-list li:hover>ul.sub-menu,.swsd-nav-list li:focus-within>ul.sub-menu {display:block;}
.swsd-nav-list ul.sub-menu a {display:block;color:#172936!important;font-size:13px;padding:9px 12px;border-radius:7px;}
.swsd-nav-list ul.sub-menu a:hover {background:#f6f0ff;color:#6a25cb!important;}
.swsd-header-actions {display:flex;align-items:center;gap:15px;white-space:nowrap;}
.swsd-header-actions a {text-decoration:none!important;font-size:14px;font-weight:700;}
.swsd-account {color:#102631!important;padding:10px 0;}
.swsd-signup {padding:12px 20px;color:#fff!important;background:var(--sw-purple);border-radius:11px;box-shadow:0 5px 12px rgba(124,58,237,.13);}
.swsd-signup:hover {background:#6525cf;}
.swsd-mobile-menu {display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid #e8ddfa!important;border-radius:9px;padding:10px!important;width:43px;height:42px;background:#fff!important;}
.swsd-mobile-menu span {display:block;width:20px;height:2px;background:#2e1d46;}

.swsd-account-signed-in{display:inline-flex;align-items:center;gap:9px;}
.swsd-account-signed-in img.swsd-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;border:1px solid #e3d5fa;}
@media(max-width:1150px){
 .swsd-header-inner{gap:22px;width:calc(100% - 36px)}
 .swsd-nav-list>li>a{padding:10px 9px;font-size:13px}
}
@media(max-width:800px){
 .swsd-header-inner{min-height:67px;width:calc(100% - 32px);gap:13px}
 .swsd-logo{width:165px;margin-right:auto}
 .swsd-logo img{max-width:160px;max-height:47px}
 .swsd-mobile-menu{display:flex;order:3}
 .swsd-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #e7dcf7;padding:16px 20px;box-shadow:0 15px 24px rgba(45,22,76,.12)}
 .swsd-nav.swsd-nav-open{display:block}
 .swsd-nav-list{flex-direction:column;align-items:stretch;gap:2px}
 .swsd-nav-list>li>a{padding:13px 12px;font-size:14px}
 .swsd-nav-list ul.sub-menu{display:block;position:static;box-shadow:none;border:0;padding:0 0 0 12px}
 .swsd-header-actions{gap:9px;order:2}
 .swsd-header-actions a{font-size:12px}
 .swsd-signup{padding:10px 12px}
}
@media(max-width:540px){
 .swsd-header-actions .swsd-signup{display:none}
 .swsd-logo{width:150px}.swsd-logo img{max-width:150px}
 .swsd-account-signed-in span{display:none}
}

/* v2.9.9: Native marketplace profile thumbnail, compact avatar-only account menu. */
.swsd-profile-menu{position:relative;display:flex;align-items:center;z-index:95;}
.swsd-profile-trigger{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-width:45px;min-height:45px;padding:3px 4px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#5722b0!important;cursor:pointer;}
.swsd-profile-trigger:hover,.swsd-profile-trigger:focus-visible{background:#f7f1ff!important;border-color:#eadbfc!important;}
.swsd-profile-trigger img.swsd-avatar{display:block!important;width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;object-fit:cover!important;border-radius:50%!important;border:2px solid #e1cffb!important;margin:0!important;}
.swsd-profile-trigger>svg{width:14px;height:14px;flex:none;}
.swsd-profile-options{position:absolute;right:0;top:100%;z-index:99;min-width:158px;padding:6px;background:#fff;border:1px solid #e8ddfa;border-radius:11px;box-shadow:0 15px 36px rgba(38,21,80,.15);}
.swsd-profile-options[hidden]{display:none!important;}
.swsd-profile-options a{display:flex!important;align-items:center;gap:10px;color:#1f2b34!important;font-size:14px!important;font-weight:620!important;padding:11px 12px!important;border-radius:8px;text-decoration:none!important;}
.swsd-profile-options a svg{color:#7C3AED;flex:0 0 17px;}
.swsd-profile-options a:hover,.swsd-profile-options a:focus-visible{background:#f6efff!important;color:#6D28D9!important;}
@media(max-width:800px){.swsd-profile-trigger{min-width:42px;min-height:42px;padding:2px!important;}.swsd-profile-trigger img.swsd-avatar{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;}.swsd-profile-options{right:0;}}

/* v2.9.15 — Slightly larger desktop navigation labels, without mobile changes. */
@media (min-width:1151px) {.swsd-header .swsd-nav-list > li > a {font-size:15px !important;}}
@media (min-width:801px) and (max-width:1150px) {.swsd-header .swsd-nav-list > li > a {font-size:14px !important;}}


/* v2.9.22 — Desktop avatar only; preserve the 78px navigation header. */
@media (min-width: 801px) {
  .swsd-header .swsd-profile-trigger {
    min-width: 51px;
    min-height: 51px;
    padding: 2px 3px !important;
  }
  .swsd-header .swsd-profile-trigger img.swsd-avatar {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
}
