/* Shared section navigation, independent of the collection's scaled scene. */
.repo-section-nav{display:flex;align-items:center;gap:14px;flex:none;overflow:visible;color:var(--wibs-ink,#f4ecd6)}
:is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>.repo-section-button{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:40px;min-width:40px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:7px;background:none;color:inherit;cursor:pointer;box-shadow:none}
:is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>.repo-section-button:hover{background:#e7dcc309}
:is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>.repo-section-button:focus-visible{outline:2px solid var(--wibs-accent,#d8d0a8);outline-offset:3px}
.repo-section-nav>.repo-section-button[aria-current=page]::after{content:'';position:absolute;bottom:1px;left:4px;right:4px;height:1px;background:var(--wibs-accent,#d8d0a8)}
.repo-section-nav>.repo-section-button>svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.repo-section-nav>.repo-section-button>img{display:block;width:34px;height:34px;object-fit:contain}
.repo-section-nav .repo-wibs-icon,.repo-section-nav .repo-wibsworth-icon{display:block;flex:none;width:38px;height:28px;transform:none}
.repo-section-divider{width:1px;height:25px;flex:none;margin:0 3px;background:currentColor;opacity:.35}
.repo-section-unread{position:absolute;top:0;right:-2px;display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border-radius:10px;background:#c7d8ac;color:#15231b;font:600 9px/1 Arial,sans-serif}
.repo-section-nav [hidden]{display:none!important}
.repo-section-nav .repo-coming-tip{position:absolute;z-index:8;top:calc(100% + 10px);left:0;width:max-content;max-width:230px;padding:9px 12px;border:1px solid #d9d6b530;border-radius:7px;background:#19231e;color:#f4ecd6;box-shadow:0 5px 20px #0003;font:12px/1.5 'Segoe UI',sans-serif;pointer-events:none}
:is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>[data-nav=more]{width:24px;min-width:24px;margin-left:-8px}
.repo-section-menu{position:fixed;inset:auto;margin:0;min-width:170px;padding:6px;border:1px solid #c4d6aa32;border-radius:9px;background:#19271e;color:#f4ecd6;box-shadow:0 8px 24px #0005}
.repo-section-menu:not(:popover-open){display:none}
#repo-reparty .repo-section-menu button{width:100%;padding:11px 13px;border:0;border-radius:5px;background:none;color:inherit;text-align:left;font:13px/1.4 'Segoe UI',sans-serif;cursor:pointer}
#repo-reparty .repo-section-menu button:hover,#repo-reparty .repo-section-menu button:focus-visible{background:#c4d6aa16;outline:none}
.repo-section-bar{overflow:visible}
/* Account keeps its tabs on a separate row so they never collide with navigation. */
#account-menu .account-header{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:74px 50px;align-items:center;column-gap:28px;height:auto;min-height:124px;padding:0 clamp(24px,4vw,50px);overflow:visible}
#account-menu .account-header-end{position:static;grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:28px;height:auto;min-width:0}
#account-menu .account-wallet{margin-right:auto;white-space:nowrap;font-size:12px;padding:0;border:0}
#account-menu .account-header .account-audio[hidden]{display:none!important}
#account-menu .account-back.repo-section-brand{position:static;grid-column:1;grid-row:1;display:flex;align-items:center;gap:14px;width:auto;height:44px;min-height:44px;transform:none;mix-blend-mode:normal;border:0;background:none;padding:0}
#account-menu .account-header .account-tabs{position:static;grid-column:1/-1;grid-row:2;display:flex;align-items:stretch;gap:28px;height:50px;min-height:0;margin:0;border-bottom:1px solid #ffffff12;overflow-x:auto}
#account-menu .account-header .account-tabs [role=tab]{height:auto;padding:0 0 14px;font:14px/1.4 'Segoe UI',Arial,sans-serif;white-space:nowrap}
#account-menu .account-header .account-tabs [aria-selected=true]::after{bottom:0}
#account-menu #repo-character-sync-status{grid-column:1/-1;grid-row:3;margin:8px 0!important;padding-bottom:6px}
#account-menu .repo-section-brand .publisher-mark{width:42px;height:44px;background:url('original-case-assets/repo-brand.png') -78px -33px/198px 124px no-repeat}
#account-menu .repo-section-brand .publisher-wordmark{width:145px;height:17px;background:url('original-case-assets/repo-brand.png') -125px -164px/394px 246px no-repeat}
#repo-messages[data-light-theme=true] .repo-section-nav :is(.repo-wibsworth-icon,img){filter:brightness(.25)}
@media(max-width:1000px){.repo-section-nav{gap:10px}.repo-section-bar .publisher-wordmark{display:none}#account-menu .account-header{column-gap:20px}#account-menu .account-header-end{gap:20px}}
@media(max-width:700px){
  :is(#repo-messages,#repo-reparty) .repo-section-bar{height:64px;min-height:64px;padding:0 14px;justify-content:center}
  .repo-section-bar>.rc-brand{display:none!important}
  .repo-section-nav{width:100%;justify-content:space-between;gap:4px}
  :is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>.repo-section-button{width:36px;min-width:36px;height:42px;min-height:42px}
  .repo-section-nav .repo-wibs-icon,.repo-section-nav .repo-wibsworth-icon{width:32px;height:24px}
  .repo-section-nav>.repo-section-button>svg{width:24px;height:24px}
  .repo-section-nav>.repo-section-button>img{width:30px;height:30px}
  .repo-section-divider{height:22px;margin:0 1px}
  :is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>[data-nav=more]{width:20px;min-width:20px;margin-left:0}
  .repo-section-nav .repo-coming-tip{left:-24px;font-size:11px}
  #account-menu .account-header{display:flex;flex-direction:column;align-items:stretch;height:auto;min-height:0;padding:0 14px;gap:0}
  #account-menu .account-back.repo-section-brand{display:none}
  #account-menu .account-header-end{order:1;flex-wrap:wrap;gap:1px;width:100%;padding-top:10px}
  #account-menu .account-wallet{flex-basis:100%;margin:0;font-size:11px;line-height:18px}
  #account-menu .account-header .account-tabs{order:2;height:45px;gap:23px;flex:none}
  #account-menu #repo-character-sync-status{order:3;font-size:11px!important}
  #account-menu .account-header .account-tabs [role=tab]{font-size:13px;padding-bottom:10px}
}
@media(max-width:360px){.repo-section-nav{gap:2px}:is(#repo-messages,#repo-reparty,#account-menu) .repo-section-nav>.repo-section-button{width:33px;min-width:33px}.repo-section-nav .repo-wibs-icon,.repo-section-nav .repo-wibsworth-icon{width:30px;height:23px}}
