/* Shared MANIFEST identity controls, matching the existing black site. */
[data-manifest-account]{display:flex;align-items:center;gap:12px;flex:none;font-family:inherit;font-size:12px;line-height:1.4}
[data-manifest-account] a,[data-manifest-account] button{color:#f0f1f3;text-decoration:none;white-space:nowrap}
.mw-signin{border:1px solid #3a4049;border-radius:8px;padding:8px 12px;background:#000;display:inline-flex;align-items:center;min-height:34px}
.mw-register{font-size:11px;color:#aab0ba!important}
.mw-account-menu{position:relative}
.mw-account-menu>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;min-height:34px;border-radius:9px;padding-inline:5px}
.mw-account-menu summary::-webkit-details-marker{display:none}
.mw-account-initial{display:grid;place-items:center;flex:none;border-radius:50%;width:30px;height:30px;background:#252932;color:#fff;font-size:12px}
.mw-account-name{max-width:95px;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.mw-account-popover{position:absolute;right:0;top:calc(100% + 12px);z-index:100;min-width:210px;display:grid;gap:3px;padding:8px;border:1px solid #3a4049;border-radius:9px;background:#08090b;box-shadow:0 12px 32px #0008;text-align:left}
.mw-account-popover a,.mw-account-popover button{display:block;border:0;border-radius:5px;background:none;padding:10px;text-align:left;font-family:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.mw-account-popover a[data-world-library]{display:flex;align-items:center;justify-content:space-between;gap:24px}
.mw-library-count{color:#929ba8;font-variant-numeric:tabular-nums;font-size:11px}
.mw-account-popover a:hover,.mw-account-popover button:hover{background:#1c2027}
.mw-account-id{font-size:10px;color:#929ba8;padding:8px 10px;max-width:240px;overflow-wrap:anywhere}
.mw-account-error{font-size:11px;max-width:220px;white-space:normal;color:#e2b7b7;margin:0 10px 4px}
.mw-account-error:empty{display:none}
.world-account-mobile{display:none}
.mw-signin-gate{max-width:680px;padding:72px 0 110px;min-height:50vh}
.mw-signin-gate h1{font-size:clamp(30px,4vw,48px);font-weight:500;letter-spacing:-.04em}
.mw-signin-gate p{color:#9da6b3;font-size:14px;line-height:1.8}
.mw-signin-gate>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.mw-creator-profile{font-size:12px;color:#dce0e8;margin-bottom:24px;overflow-wrap:anywhere}
.mw-creator-profile small{display:block;font-size:10px;color:#8b96a8;margin-top:6px}
@media(max-width:1250px){.header-tools .mw-register,.world-account-header .mw-register{display:none}}
@media(max-width:760px){
 .world-account-mobile{display:flex;padding:12px 0;border-top:1px solid #292d35}
 .world-account-mobile .mw-account-popover{left:0;right:auto;max-width:calc(100vw - 40px)}
 .mw-account-name{display:none}.mw-signin{padding:6px 9px;font-size:10px}
 .mw-signin-gate{padding:32px 0 60px}.mw-signin-gate p{font-size:13px}
 .header-tools .mw-register{display:none}.header-tools [data-manifest-account]{gap:6px}
}

/* Use the main site's compact account badge in the shared World header. */
.world-account-header .mw-account-menu > summary {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 1px #ffffff20;
  justify-content: center;
}
.world-account-header .mw-account-menu > summary::after { content: none !important; }
.world-account-header .mw-account-menu > summary:hover,
.world-account-header .mw-account-menu[open] > summary { background: #222; border-color: #aaa; }
.world-account-header .mw-account-initial {
  width: 100%;
  height: 100%;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.world-account-header .mw-account-name { display: none; }
.world-header .mobile-nav .world-account-mobile:has(.mw-account-menu) { display: none; }
@media (max-width: 760px) {
  .world-header .header-actions { position: relative; }
  .world-account-header .mw-account-menu { position: static; }
  .world-account-header .mw-account-menu > summary { width: 36px; height: 36px; }
}
