/* Local portal finishing pass. No rules, data or account permissions change. */
body[data-local-lab='true'].portal-fit-page .server-stage{padding-bottom:28px;}
body[data-local-lab='true'].portal-fit-page .legal-footer{margin-top:0;padding:24px 16px 34px;}
body[data-local-lab='true'].portal-fit-page .lab-locallink{margin-top:6px;margin-bottom:22px;}
body[data-local-lab='true'].portal-fit-page .lab-header .nav-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body[data-local-lab='true'].portal-fit-page .lab-header .account-zone:has(.header-account-menu[open],.profile-menu.open){position:relative;z-index:1300;}
body[data-local-lab='true'].portal-fit-page .lab-header .profile-menu{z-index:1300;max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
body[data-local-lab='true'].portal-fit-page .lab-header .auberge-notifications[open]{z-index:1400;}
body[data-local-lab='true'].portal-fit-page .lab-header .auberge-notifications:not([open])>.auberge-notifications-panel{display:none;}
body[data-local-lab='true'].portal-fit-page .lab-header .auberge-notifications.in-header>summary{width:44px;min-width:44px;height:44px;min-height:44px;}
body[data-local-lab='true'].portal-fit-page .portal-notification-heading{position:sticky;top:-14px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-14px -14px 10px;padding:10px 12px;border-bottom:1px solid #c8aa6f44;background:#242b24;}
body[data-local-lab='true'].portal-fit-page .portal-notification-heading>strong{font:600 16px/1.4 system-ui,sans-serif;color:#f0e5cd;}
body[data-local-lab='true'].portal-fit-page .portal-notification-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #c8aa6f66;border-radius:10px;background:#c8aa6f0b;color:#f0e5cd;font:25px/1 system-ui,sans-serif;cursor:pointer;}
body[data-local-lab='true'].portal-fit-page .lab-header .player-portrait .equipped-crown{top:-7px!important;font-size:21px!important;}
body[data-local-lab='true'].portal-fit-page .lab-header .player-portrait .equipped-crown.crown-world{top:-8px!important;font-size:24px!important;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-tools{display:flex;align-items:center;justify-content:flex-end;flex:1;gap:12px;min-width:0;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-tools .portal-date{flex:none;width:auto;order:0;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-discussions-trigger{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid #b9a37155;border-radius:10px;box-shadow:none;background:#d5b57c12;color:#ead8b8;font:600 14px/1.4 system-ui!important;touch-action:manipulation;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-chat-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-discussions-trigger::before,
body[data-local-lab='true'].portal-fit-page .lab-header .portal-discussions-trigger::after{display:none!important;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-discussions-trigger[aria-expanded='true']{visibility:visible;}
body[data-local-lab='true'].portal-fit-page .lab-header .portal-discussions-trigger b{right:-5px;top:-6px;}
body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs a{padding:11px 12px;min-height:48px;gap:2px;}
body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs a small{font-size:12px;line-height:1.4;}
body[data-local-lab='true'].portal-fit-page .account-panel>p{max-width:66ch;}
body[data-local-lab='true'].portal-fit-page .page-back{min-height:44px;}
body[data-local-lab='true'].portal-fit-page #privacy>details>summary{min-height:44px;box-sizing:border-box;padding-block:10px;cursor:pointer;}
body[data-local-lab='true'].portal-fit-page .player-history .history-table{max-height:min(520px,65dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
body[data-local-lab='true'].portal-fit-page .player-history .history-table thead th{position:sticky;top:0;z-index:1;background:#1c2823;}
body[data-local-lab='true'].portal-fit-page .player-history .history-table:focus-visible{outline:3px solid #f0ce8e;outline-offset:3px;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options{margin:18px 0 22px;border:1px solid #bca16b44;border-radius:12px;background:#15211955;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;cursor:pointer;color:#e5d1ab;font:600 14px/1.5 system-ui;list-style:none;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options>summary::-webkit-details-marker{display:none;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options>summary::after{content:'+';font-size:23px;font-weight:400;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options[open]>summary::after{content:'−';}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options .avatar-picker{margin:0;padding:6px 14px 16px;}
body[data-local-lab='true'].portal-fit-page .portal-avatar-options summary:focus-visible{outline:3px solid #f0ce8e;outline-offset:3px;border-radius:10px;}
body[data-local-lab='true'].portal-fit-page .lab-ranking-dates .lab-kicker{margin-bottom:7px;}
@media(min-width:1200px){
  body[data-local-lab='true'] #home-view[data-home-v2] .lab-world-description{min-height:3.3em;}
  body[data-local-lab='true'] #home-view[data-home-v2] .home-game-directory .home-game-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;}
  body[data-local-lab='true'] #home-view[data-home-v2] .home-game-link{height:100%;min-height:48px;font-size:13px;}
}
@media(max-width:1100px){
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-tools{order:5;flex-basis:100%;justify-content:center;width:100%;}
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-tools .portal-date{text-align:left;}
}
@media(max-width:760px){
  body[data-local-lab='true'].portal-fit-page .lab-header .auberge-notifications.in-header .auberge-notifications-panel{position:fixed;top:64px;bottom:auto;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 90px);box-sizing:border-box;text-align:left;}
  body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;overflow:visible;white-space:normal;position:static;}
  body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs a{width:auto;min-width:0;min-height:44px;flex:none!important;padding:10px 11px;justify-content:center;align-items:flex-start;white-space:normal;font-size:14px;line-height:1.4;}
  body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs a small{display:none;}
  body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs a:last-child{grid-column:1/-1;}
}
@media(max-width:600px){
  body[data-local-lab='true'].portal-fit-page .lab-header .app-nav{gap:3px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .nav-button{font-size:12px;}
  body[data-local-lab='true'].portal-fit-page .account-panel-wrap .account-panel{padding:20px 17px;}
  body[data-local-lab='true'].portal-fit-page .account-panel h2{font-size:25px;}
  body[data-local-lab='true'].portal-fit-page .portrait-editor{margin-top:18px;}
  body[data-local-lab='true'].portal-fit-page .player-history>header p{font-size:15px;line-height:1.65;}
  body[data-local-lab='true'].portal-fit-page .player-history .history-table table{font-size:13px;line-height:1.5;}
  body[data-local-lab='true'].portal-fit-page .player-history .history-table :is(th,td){padding:10px 6px;overflow-wrap:anywhere;}
  body[data-local-lab='true'].portal-fit-page .player-history .history-table :is(th,td):first-child{white-space:nowrap;font-variant-numeric:tabular-nums;}
  body[data-local-lab='true'].portal-fit-page .player-history .history-table :is(th,td):last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
  body[data-local-lab='true'].portal-fit-page .legal-footer{gap:12px 18px;padding-bottom:30px;font-size:12px;}
}
@media(min-width:761px) and (max-height:600px){
  body[data-local-lab='true'].portal-fit-page .account-layout .account-tabs{position:static;}
}
@media(max-width:360px){
  body[data-local-lab='true'].portal-fit-page .lab-header.app-header{padding-inline:12px;gap:6px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .brand-button{gap:7px;min-height:44px;padding-inline:0;}
  body[data-local-lab='true'].portal-fit-page .lab-header .brand-button strong{font-size:20px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .brand-seal{width:30px;height:30px;}
}
@media(prefers-reduced-motion:reduce){body[data-local-lab='true'].portal-fit-page *{scroll-behavior:auto!important;}}
/* Personal navigation and the original conversation button, back at the edge. */
body[data-local-lab='true'].portal-fit-page .portal-personal-nav{position:relative;min-width:0;flex:none;}
body[data-local-lab='true'].portal-fit-page .portal-personal-nav>summary{cursor:pointer;list-style:none;}
body[data-local-lab='true'].portal-fit-page .portal-personal-nav>summary::-webkit-details-marker{display:none;}
body[data-local-lab='true'].portal-fit-page .portal-personal-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:1400;width:230px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 150px);overflow:auto;box-sizing:border-box;padding:9px;border:1px solid #c8aa6f66;border-radius:14px;background:#242c23;box-shadow:0 16px 40px #0006;}
body[data-local-lab='true'].portal-fit-page .portal-personal-menu a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:8px;color:#eee0c3;font:600 14px/1.5 system-ui,sans-serif;text-decoration:none;box-sizing:border-box;}
body[data-local-lab='true'].portal-fit-page .portal-personal-menu a:hover{background:#c8aa6f16;}
body[data-local-lab='true'].portal-fit-page .portal-personal-nav[open]>summary{color:#f6e2b9;background:#d5b57c19;border-radius:10px;}
body[data-local-lab='true'].portal-fit-page .community-discussion-slot[data-floating-discussions]{display:none!important;}
body[data-local-lab='true'].portal-fit-page .lounge-orb.portal-floating-discussions{position:fixed!important;inset:auto 16px max(18px,env(safe-area-inset-bottom)) auto!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:9px!important;border:1px solid var(--chat-theme-border,#bea575)!important;border-radius:50%!important;background:var(--chat-theme-panel,linear-gradient(145deg,#61573b,#263b2c))!important;color:var(--chat-theme-text,#f0dfb8)!important;box-shadow:0 5px 20px #0005!important;z-index:1100!important;transform:none!important;touch-action:manipulation;}
body[data-local-lab='true'].portal-fit-page .portal-floating-discussions .portal-chat-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body[data-local-lab='true'].portal-fit-page .portal-floating-discussions::before,body[data-local-lab='true'].portal-fit-page .portal-floating-discussions::after{display:none!important;}
body[data-local-lab='true'].portal-fit-page .portal-floating-discussions b{position:absolute;right:-5px;top:-5px;}
body[data-local-lab='true'].portal-fit-page .portal-floating-discussions[aria-expanded=true],body[data-local-lab='true'].portal-fit-page.portal-header-overlay .portal-floating-discussions{visibility:hidden!important;pointer-events:none!important;}
body[data-local-lab='true'].portal-fit-page .legal-footer{padding-bottom:86px;}
@media(min-width:761px){body[data-local-lab='true'].portal-fit-page .lounge-panel[data-side=left]{left:auto!important;right:16px!important;}}
@media(max-width:1100px){
  body[data-local-lab='true'].portal-fit-page .lab-header .app-nav{order:6;width:100%;justify-content:center;}
}
@media(max-width:760px){
  body[data-local-lab='true'].portal-fit-page .portal-personal-menu{position:fixed;left:12px;right:12px;top:var(--portal-menu-top,180px);width:auto;max-width:none;max-height:calc(100dvh - var(--portal-menu-top,180px) - 12px);}
  body[data-local-lab='true'].portal-fit-page .lab-header .app-nav{display:grid;grid-template-columns:1fr 1.25fr 1.4fr .65fr;gap:2px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .nav-button{min-width:0;width:100%;font-size:12px!important;padding:9px 4px;gap:4px;}
  body[data-local-lab='true'].portal-fit-page .portal-personal-nav>summary{display:flex;justify-content:center;}
}
@media(max-width:600px){
  body[data-local-lab='true'].portal-fit-page .lab-header.app-header{gap:8px 7px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .brand-button{flex:1;min-width:0;gap:7px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .brand-button strong{font-size:20px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .account-zone{margin-left:0;}
  body[data-local-lab='true'].portal-fit-page .lab-header .display-fullscreen{order:5;}
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-date{order:5;width:auto;flex:1 0 calc(100% - 54px);text-align:center;}
  body[data-local-lab='true'].portal-fit-page .lab-header .app-nav{grid-template-columns:44px minmax(0,1fr) minmax(0,1.2fr) 44px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-universes-link{font-size:0!important;}
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-universes-link>span{font-size:18px;}
  body[data-local-lab='true'].portal-fit-page .lab-header .portal-universes-link>svg{width:20px;height:20px;}
}
