/* Dedicated header popups and organized settings, using existing theme variables. */
.header-pop{position:relative;min-width:0;flex-shrink:0}.header-pop summary{list-style:none;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;padding:9px 5px;border-radius:10px;color:var(--text)}.header-pop summary::-webkit-details-marker{display:none}.header-pop summary:hover,.header-pop[open]>summary{background:var(--field)}.header-pop summary:focus-visible,.header-flyout a:focus-visible,.header-flyout button:focus-visible{outline:2px solid var(--pink);outline-offset:2px}.header-pop summary em{position:absolute;right:-4px;top:0}.header-pop [hidden]{display:none!important}.header-pop .top-user{gap:9px;padding:5px;display:flex}.header-pop .top-user img{object-fit:cover}.header-pop .top-user b{max-width:140px;overflow:hidden;text-overflow:ellipsis}.header-flyout{position:absolute;top:calc(100% + 12px);right:0;width:310px;max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--shadow);padding:7px;z-index:50;color:var(--text);overflow:hidden}.account-flyout{width:216px}.header-flyout a,.header-flyout button{color:var(--text);font-size:14px;text-decoration:none}.account-flyout a,.account-flyout button{width:100%;display:flex;align-items:center;justify-content:flex-start;padding:12px 10px;gap:10px;border-radius:8px;text-align:left}.account-flyout a:hover,.account-flyout button:hover,.header-preview:hover{background:var(--field)}.account-flyout form{border-top:1px solid var(--line);margin-top:3px;padding-top:3px}.account-flyout .account-logout,.account-logout{color:var(--pink)}.flyout-heading{padding:10px 9px 12px;border-bottom:1px solid var(--line)}.header-flyout .header-preview{display:flex;gap:10px;align-items:center;padding:10px 8px;border-radius:8px}.header-preview img{width:38px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0}.header-preview span{display:grid;gap:3px;min-width:0}.header-preview b,.header-preview small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-preview small,.header-empty{color:var(--muted);font-size:12px}.header-empty{padding:8px}.header-flyout .flyout-all{display:block;text-align:center;border-top:1px solid var(--line);color:var(--pink);padding:11px 8px}.settings-overview{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);margin:18px 0}.settings-overview img{width:56px;height:56px;border-radius:50%;object-fit:cover}.settings-overview>div{display:grid;gap:5px;flex:1;min-width:100px}.settings-overview small{color:var(--muted);font-size:12px}.settings-overview progress{width:100%;accent-color:var(--pink);height:8px}.settings-overview .secondary{font-size:13px}.settings-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}.settings-nav a{border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:13px;background:var(--panel2)}.settings-nav a:hover{border-color:var(--pink)}.settings-section{border-top:1px solid var(--line);padding:5px 0 20px;scroll-margin-top:92px}.settings-section details{margin:12px 0}.settings-section summary{cursor:pointer}.settings-section .fields button{align-self:flex-start}.settings-section .user-tile{justify-content:space-between}.settings-section h3{font-size:15px}.settings-section .legal-links{justify-content:flex-start}.settings-section progress{accent-color:var(--pink)}
@media(max-width:1000px){.header-pop .top-user svg{display:block}.header-pop .top-user b{display:none}.header-pop .top-user img{width:36px;height:36px}}
@media(max-width:680px){.header-pop .top-user{display:flex;gap:2px;padding:3px}.header-pop .top-user img{width:29px;height:29px}.header-pop .top-user svg{width:12px;height:12px}.top{gap:6px;padding:0 8px}.top-links{gap:3px}.header-pop summary{padding:8px 3px}.top .brand{font-size:20px;gap:5px}.top .brand .logo{width:29px;height:29px;font-size:22px}.top .brand small{font-size:11px}.top .theme{width:31px;height:31px}.header-flyout{position:fixed;top:65px;right:8px;max-width:calc(100vw - 16px)}.settings-section{scroll-margin-top:75px}.settings-overview{padding:10px}.settings-nav a{font-size:12px}}
@media(max-width:390px){.top .brand>span:not(.logo){display:none}.top .brand-logo{max-width:64px;height:32px}}

/* v1.4.5: align the Discover, Messages and Notifications header controls.
   Reset the generic details margin only in the header, not in page content. */
.top details.header-pop{margin-top:0}
.top .top-links{align-items:center}
.top .top-links > a.top-heart,
.top .top-links > details.header-pop > summary{
  display:flex;align-items:center;justify-content:center;
  width:46px;height:46px;padding:0;line-height:1;
  flex-shrink:0;border-radius:13px;
}
.top .top-links > a.top-heart > svg,
.top .top-links > details.header-pop > summary > svg{
  display:block;width:28px;height:28px;
}
@media(max-width:680px){
  .top .top-links > a.top-heart{display:none}
  .top .top-links > details.header-pop > summary{width:34px;height:36px}
  .top .top-links > details.header-pop > summary > svg{width:22px;height:22px}
}
