.psun-header,.psun-drawer,.psun-overlay{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}.psun-header *,.psun-drawer *{box-sizing:border-box}.psun-header{position:relative;z-index:99990;background:var(--psun-bg);color:var(--psun-text);width:100%;box-shadow:0 4px 24px #0002}.psun-bar{max-width:1380px;margin:auto;min-height:78px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.psun-brand{display:flex;align-items:center;gap:11px;text-decoration:none!important;flex-shrink:0;color:#fff!important}.psun-logo,.psun-logo-text{height:42px;width:42px;display:grid;place-items:center;border-radius:7px;background:var(--psun-accent);color:white;font-size:17px;font-weight:800;object-fit:contain}.psun-brand-name{display:flex;flex-direction:column;line-height:1.25;gap:3px}.psun-brand-name strong{font-size:15px;letter-spacing:.1px;color:white}.psun-brand-name small{font-size:10px;font-weight:700;color:#58b6ff}.psun-desktop-links{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.psun-desktop-link{color:var(--psun-text)!important;text-decoration:none!important;font-weight:600;font-size:14px;padding:12px 13px;border-radius:8px;display:inline-flex;align-items:center;gap:8px;transition:background .2s,color .2s}.psun-desktop-link:hover,.psun-desktop-link:focus-visible{background:#ffffff18;color:#75baff!important}.psun-desktop-link.psun-account{background:var(--psun-accent);color:#fff!important;padding:12px 18px;margin-left:10px}.psun-desktop-link.psun-account:hover{filter:brightness(1.15)}.psun-desktop-link svg{width:17px;height:17px}.psun-mobile-trigger{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;background:transparent;border:0;cursor:pointer;padding:10px}.psun-mobile-trigger span{height:2px;width:23px;background:#fff;border-radius:2px}.psun-overlay{position:fixed;inset:0;background:#000a;z-index:99997}.psun-overlay[hidden]{display:none!important}.psun-drawer{position:fixed;top:0;right:0;bottom:0;width:min(390px,88vw);background:var(--psun-bg);color:var(--psun-text);z-index:99998;transform:translateX(105%);transition:transform .28s ease;display:flex;flex-direction:column;padding:8px 16px 0;box-shadow:-10px 0 30px #0004;visibility:hidden}.psun-drawer.psun-open{transform:translateX(0);visibility:visible}.psun-drawer-top{display:flex;align-items:center;justify-content:space-between;padding:0 0 20px;border-bottom:1px solid #25324a}.psun-close{border:0;background:transparent;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:10px}.psun-mobile-links{display:flex;flex-direction:column;gap:7px;padding:20px 0;overflow-y:auto;flex:1}.psun-mobile-link{color:#fff!important;text-decoration:none!important;display:flex;align-items:center;gap:14px;min-height:54px;padding:13px;border-radius:7px;font-size:15px;font-weight:600}.psun-mobile-link svg{width:17px;height:17px;flex-shrink:0;color:#c7d2e2}.psun-mobile-link span{flex:1}.psun-mobile-link svg:last-child:not(:first-child){width:16px;height:16px;color:#879bb6}.psun-mobile-link:hover,.psun-mobile-link:focus-visible,.psun-mobile-link.psun-first{background:#142d4e}.psun-mobile-link.psun-first svg{color:#58b6ff}.psun-mobile-link.psun-account{background:var(--psun-accent);justify-content:center;margin-top:auto;text-align:center;color:#fff!important}.psun-mobile-link.psun-account span{flex:0 1 auto}.psun-mobile-link.psun-account svg{color:#fff}.psun-copyright{text-align:center;font-size:10px;color:#8c9eb8;padding:12px}.psun-no-scroll{overflow:hidden!important}@media(max-width:900px){.psun-bar{min-height:64px;padding:8px 16px}.psun-mobile-trigger{display:flex}.psun-desktop-links{display:none}}@media(prefers-reduced-motion:reduce){.psun-drawer{transition:none}}

.psun-bar:has(> .psun-desktop-links:first-child){justify-content:flex-end}
.psun-drawer-top:has(> .psun-close:first-child){justify-content:flex-end}
.psun-editor-block{border:1px dashed #147ff5;padding:12px;min-height:80px}
.psun-editor-block>p{font-size:12px;color:#6c7480;margin:0 0 8px}
/* v1.3: nested menus, independent controls, and layout */
.psun-desktop-links .psun-menu-level,.psun-mobile-links .psun-menu-level{list-style:none!important;margin:0!important;padding:0!important;display:flex;align-items:center;gap:var(--psun-gap,6px)}
.psun-nav-item{position:relative;list-style:none!important;margin:0!important;display:flex;align-items:center}
.psun-nav-item .psun-desktop-link span{white-space:nowrap}
.psun-nav-item .psun-sub-toggle{background:transparent;border:0;color:inherit;cursor:pointer;padding:6px;font-size:19px;line-height:1}
.psun-desktop-links .psun-nav-item>.psun-menu-level{display:none;position:absolute;top:100%;left:0;min-width:195px;flex-direction:column;align-items:stretch;background:var(--psun-bg);box-shadow:0 10px 30px #0006;border:1px solid #ffffff20;border-radius:8px;padding:8px!important;z-index:10}
.psun-desktop-links .psun-nav-item:hover>.psun-menu-level,.psun-desktop-links .psun-nav-item:focus-within>.psun-menu-level,.psun-desktop-links .psun-nav-item.psun-expanded>.psun-menu-level{display:flex}
.psun-desktop-links .psun-menu-level .psun-menu-level{left:100%;top:0}
.psun-desktop-links .psun-nav-item>.psun-menu-level .psun-nav-item{width:100%}
.psun-mobile-links>.psun-menu-level{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.psun-mobile-links .psun-nav-item{display:flex;flex-wrap:wrap;width:100%;justify-content:space-between}
.psun-mobile-links .psun-nav-item>.psun-mobile-link{flex:1}
.psun-mobile-links .psun-nav-item>.psun-menu-level{display:none;width:100%;flex-direction:column;align-items:stretch;padding:0 0 0 17px!important;border-left:1px solid #ffffff20}
.psun-mobile-links .psun-nav-item.psun-expanded>.psun-menu-level{display:flex}
.psun-mobile-links .psun-mobile-link span{flex:1}
.psun-mobile-links .psun-nav-item:first-child>.psun-mobile-link{background:#142d4e}
.psun-mobile-links .psun-nav-item .psun-account{background:var(--psun-accent);justify-content:center;margin-top:8px}
.psun-mobile-links .psun-nav-item .psun-account span{flex:0 1 auto}
.psun-desktop-links .psun-search{display:flex;align-items:center;border:1px solid #ffffff38;border-radius:8px;padding:3px;max-width:145px}
.psun-search input{background:transparent!important;color:inherit!important;border:0!important;min-width:0;width:100%;font:inherit;font-size:12px!important;padding:5px!important;box-shadow:none!important}
.psun-search button{background:transparent!important;border:0!important;color:inherit!important;cursor:pointer;padding:4px!important;display:grid;place-items:center}
.psun-search svg,.psun-extra svg{width:18px;height:18px}
.psun-extra{color:var(--psun-text)!important;display:inline-flex;align-items:center;padding:8px}
.psun-auth{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;white-space:nowrap;font-weight:600}
.psun-mobile-links .psun-search{display:flex;border:1px solid #ffffff38;border-radius:8px;margin:12px 0;padding:6px}
.psun-mobile-links .psun-extra,.psun-mobile-links .psun-auth{align-self:flex-start;margin:6px 0}
.psun-header.psun-scrolled{background:var(--psun-bg);box-shadow:0 4px 24px #0004}
@media(max-width:900px){.psun-desktop-links{display:none}}

.psun-scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--psun-accent);z-index:999999;pointer-events:none}.psun-menu-image{max-width:160px;max-height:100px;object-fit:cover;border-radius:6px}.psun-bar{width:100%;margin-inline:auto}.psun-nav-item:focus-within>.psun-menu-level{visibility:visible;opacity:1}.psun-header a:focus-visible,.psun-drawer a:focus-visible,.psun-header button:focus-visible,.psun-drawer button:focus-visible{outline:2px solid var(--psun-accent);outline-offset:3px}@media(prefers-reduced-motion:reduce){.psun-header *, .psun-drawer *{animation:none!important;transition:none!important}}
/* v1.5: permission-aware ProSite Business HQ dashboard button */
.psun-admin-dashboard{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none!important;background:var(--psun-accent);color:#fff!important;border-radius:var(--psun-button-radius,1px);padding:10px 14px;font-weight:700;white-space:nowrap;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.psun-admin-dashboard svg{width:var(--psun-icon-size,18px);height:var(--psun-icon-size,18px);flex:0 0 auto}
.psun-admin-dashboard:hover,.psun-admin-dashboard:focus-visible{filter:brightness(1.12);transform:translateY(-1px)}
.psun-mobile-admin{width:100%;min-height:46px;margin:4px 0 8px}

/* v1.6: Admin Dashboard visually matches My Account */
.psun-desktop-admin{min-height:44px!important;padding:12px 18px!important;margin-left:10px!important;border-radius:var(--psun-button-radius,1px)!important;background:var(--psun-accent)!important;color:#fff!important;font-size:14px!important;font-weight:600!important;line-height:1!important;gap:8px!important;vertical-align:middle!important}
.psun-desktop-admin svg{display:block!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;flex:0 0 17px!important}
.psun-desktop-admin span{display:inline!important;white-space:nowrap!important;line-height:1.2!important}
.psun-mobile-admin{width:100%!important;min-height:54px!important;padding:13px!important;margin-top:8px!important;border-radius:7px!important;background:var(--psun-accent)!important;color:#fff!important;font-size:15px!important;font-weight:600!important;gap:14px!important}
.psun-mobile-admin svg{display:block!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;flex:0 0 17px!important;color:#fff!important}
.psun-mobile-admin span{flex:0 1 auto!important;white-space:nowrap!important}
