/* Public / DC profile parity: one shared identity presentation.
   No permission or stat calculation changes, and no private controls exposed. */
/* The unified GrowID identity banner no longer contains duplicate DC actions.
   Keep a compact two-column layout without a blank second row on phones. */
.gph-dialog .gph-hero{
 display:grid!important;
 flex:0 0 auto;
 box-sizing:border-box;
 grid-template-columns:74px minmax(0,1fr);
 gap:12px 18px;
 align-items:center;
 padding:18px 58px 18px 22px!important;
 min-height:112px;
}
.gph-dialog .gph-hero-avatar{grid-column:1;grid-row:1;align-self:center}
.gph-dialog .gph-hero-copy{grid-column:2;grid-row:1;min-width:0}
.gph-dialog .gph-hero-copy h2{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.gph-dialog .gph-hero .gph-verified{width:22px;height:22px;object-fit:contain}
.gph-dialog .gph-hero .gph-flag{width:26px;height:18px;flex:0 0 auto}
.gph-dialog .gph-hero .gph-hero-avatar>img[src^="https:"]{width:100%;height:100%;object-fit:cover;image-rendering:auto;border-radius:inherit}
/* Let the navigation share the navy shell surface, instead of introducing a
   separate near-black band between the identity banner and the content. */
.gph-dialog .gph-tabs{
 background:transparent!important;
 margin:0 14px;
 padding:10px 11px;
 border-bottom:1px solid rgba(152,191,230,.18);
}
.gph-dialog .gph-close{position:absolute!important;top:16px;right:17px;margin:0;z-index:1}
#modal-root .v5-profile-dialog .v63-owner-head[src^="https:"]{
 object-fit:cover!important;image-rendering:auto!important;border-radius:inherit;
}
#modal-root .v5-profile-dialog .gtt-profile-growid-note{
 display:block;margin:3px 0 0;color:#a6c9e1;font-size:10px;font-weight:700;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-button[data-wb2-group="favorites"]{position:relative}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-button[data-wb2-group="favorites"][aria-expanded="false"]:hover::after,
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-button[data-wb2-group="favorites"][aria-expanded="false"]:focus-visible::after{
 content:"Favorites";display:block!important;position:absolute;
 top:calc(100% + 8px);left:50%;transform:translateX(-50%);
 z-index:120;white-space:nowrap;pointer-events:none;
 padding:6px 9px;border-radius:8px;color:#e8f6ff;font-size:11px;
 border:1px solid rgba(154,207,251,.34);background:#102a46;
 box-shadow:0 6px 18px rgba(0,5,23,.34);
}
@media(max-width:1050px){
 .gph-dialog .gph-hero{grid-template-columns:64px minmax(0,1fr)!important;padding:18px 54px 17px 20px!important}
 .gph-dialog .gph-hero-avatar{width:64px;height:64px;min-width:64px}
 .gph-dialog .gph-hero-copy{grid-column:2}
}
@media(max-width:600px){
 .gph-dialog .gph-hero{grid-template-columns:50px minmax(0,1fr)!important;gap:10px 12px;padding:15px 50px 14px 14px!important;min-height:92px!important}
 .gph-dialog .gph-hero-avatar{width:50px;height:50px;min-width:50px;grid-row:1}
 .gph-dialog .gph-hero-copy h2{font-size:20px!important;overflow-wrap:anywhere}
 .gph-dialog .gph-close{top:12px;right:12px}
 .gph-dialog .gph-appearance-controls{grid-template-columns:1fr}
}


/* A lighter, compact identity header and inline navigation replace the
   heavy full-width profile tab bar. The same controls remain usable by touch,
   mouse, keyboard and screen readers. */
.gph-dialog .gph-hero{
 min-height:94px!important;
 padding:13px 57px 13px 19px!important;
 gap:12px!important;
}
.gph-dialog .gph-tabs{
 border-bottom:0!important;
 background:transparent!important;
 margin:0 19px!important;
 padding:9px 0 13px!important;
 gap:7px!important;
 scrollbar-width:thin;
}
.gph-dialog .gph-tabs button{
 border:1px solid rgba(138,190,238,.20)!important;
 border-radius:10px!important;
 background:rgba(49,99,152,.12)!important;
 min-height:35px!important;
 padding:0 14px!important;
}
.gph-dialog .gph-tabs button[aria-selected="true"]{
 background:linear-gradient(145deg,rgba(74,144,211,.33),rgba(28,68,122,.29))!important;
 border-color:rgba(151,213,250,.45)!important;
}
.gph-dialog .gph-tabs button:focus-visible{
 outline:2px solid #a3e2ff!important;outline-offset:2px!important;
}
@media(max-width:600px){
 .gph-dialog .gph-hero{
  min-height:80px!important;gap:9px!important;
  padding:12px 47px 12px 12px!important;
 }
 .gph-dialog .gph-hero-copy p{font-size:11px;line-height:1.35}
 .gph-dialog .gph-tabs{
  margin:0 12px!important;
  padding:8px 0 11px!important;
  gap:6px!important;
  overflow-x:auto;
 }
 .gph-dialog .gph-tabs button{min-height:35px!important;padding:0 11px!important}
}


/* GrowID management is a real admin-only action row, not an old DC stat
   widget. Keep it aligned with the standard compact Liquid Glass header. */
.gph-dialog .gph-profile-admin{
 display:flex;flex-wrap:wrap;align-items:center;gap:7px;
 padding:10px 19px 0;min-width:0;
}
.gph-dialog .gph-profile-admin>span{
 font-size:10px;letter-spacing:.09em;font-weight:800;color:#c7ac76;
 margin-right:auto;
}
.gph-dialog .gph-profile-admin>button{
 min-height:34px;padding:7px 12px;
 border:1px solid rgba(152,202,241,.31)!important;
 border-radius:9px!important;color:#e6f6ff!important;
 background:linear-gradient(145deg,rgba(56,108,162,.34),rgba(18,49,88,.47))!important;
 font-size:11px;font-weight:750;line-height:1.15;
}
.gph-dialog .gph-profile-admin>button.gph-bot-active{
 border-color:rgba(227,174,99,.46)!important;
 color:#ffe7c8!important;
}
.gph-dialog .gph-profile-admin>button:hover{border-color:rgba(191,226,253,.8)!important}
@media(max-width:600px){
 .gph-dialog .gph-profile-admin{padding:9px 12px 0;gap:6px}
 .gph-dialog .gph-profile-admin>span{flex:0 0 100%}
 .gph-dialog .gph-profile-admin>button{flex:1 1 130px;min-height:36px;padding:7px 8px}
}


/* Unified profile: alt links are navigational, never a merged stat counter. */
.gph-dialog .gph-linked-accounts{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px;
 margin-top:10px;max-width:100%;position:relative;z-index:2;
}
.gph-dialog .gph-linked-accounts>span{
 font-size:11px;font-weight:750;color:#9bc6e7;
}
.gph-dialog .gph-linked-player{
 min-height:29px;max-width:100%;padding:5px 10px;
 border:1px solid rgba(132,194,240,.38)!important;border-radius:9px!important;
 background:linear-gradient(135deg,rgba(67,125,179,.32),rgba(17,59,110,.36))!important;
 color:#e4f5ff!important;font-size:11px;font-weight:800;
 overflow-wrap:anywhere;white-space:normal;text-align:left;
}
.gph-dialog .gph-linked-player:hover{border-color:rgba(189,233,255,.85)!important}
.gph-dialog .gph-dungeon-win{
 display:flex;gap:12px;align-items:center;min-width:0;
}
.gph-dialog .gph-dungeon-win .gtd-shield{
 --gtd-shield-size:40px;--gtd-shield-zoom:1.85;
 flex:0 0 40px;max-width:40px;
}
.gph-dialog .gph-dungeon-win .gtd-shield .gtd-shield-sprite{
 image-rendering:pixelated;
}
.gph-dialog .gph-dungeon-win>div{flex:1;min-width:0}
.gph-dialog .gph-dungeon-win b{font-weight:800}
.gph-dialog .gph-dungeon-unconfirmed{opacity:.8}
.gph-dialog .gph-dungeon-unconfirmed-list{
 border:1px solid rgba(134,189,232,.20);border-radius:12px;
 margin-top:10px;padding:10px 13px;background:rgba(13,35,59,.36);
}
.gph-dialog .gph-dungeon-unconfirmed-list summary{
 cursor:pointer;font-size:12px;color:#9fbed9;font-weight:700;
}
.gph-dialog .gph-dungeon-unconfirmed-list .gph-feed{margin-top:10px}
body[data-theme="glass"] .v65-settings-dialog .v65-account-alt-section{
 display:flex;flex-wrap:wrap;gap:9px;align-items:end;margin:10px 0 23px;
}
body[data-theme="glass"] .v65-settings-dialog .v65-account-alt-section label{
 flex:1 1 220px;min-width:0;
}
body[data-theme="glass"] .v65-settings-dialog .v65-account-alt-section input{
 display:block;width:100%;box-sizing:border-box;
 margin-top:6px;
}
body[data-theme="glass"] .v65-settings-dialog .v65-account-alt-section button{
 min-height:38px;padding:8px 12px;
 border:1px solid rgba(154,207,243,.38);border-radius:10px;
 background:rgba(42,89,143,.47);color:#e5f5ff;font-weight:780;
}
@media(max-width:590px){
 .gph-dialog .gph-linked-player{font-size:10px;min-height:33px;padding:5px 9px}
 .gph-dialog .gph-dungeon-win .gtd-shield{
  --gtd-shield-size:35px;--gtd-shield-zoom:1.62;
  flex-basis:35px;max-width:35px
 }
}

/* Stable profile banner: account relationships never change its dimensions. */
.gph-dialog .gph-hero{
 height:102px!important;
 min-height:102px!important;
 max-height:102px!important;
 box-sizing:border-box;
 overflow:hidden;
}
.gph-dialog .gph-hero-copy{min-width:0;overflow:hidden}
.gph-dialog .gph-hero-copy h2{
 display:block!important;white-space:nowrap!important;
 overflow:hidden;text-overflow:ellipsis;
}
.gph-dialog .gph-hero-copy h2 .gph-verified{
 display:inline-block;vertical-align:middle;margin-left:7px;
}
.gph-dialog .gph-hero-copy p{
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.gph-dialog .gph-linked-section{
 display:flex;flex-direction:column;gap:11px;padding:15px 17px;
 border:1px solid rgba(137,190,233,.24);border-radius:13px;
 background:linear-gradient(135deg,rgba(33,81,125,.31),rgba(16,43,76,.30));
}
.gph-dialog .gph-linked-section-title{
 font-size:11px;letter-spacing:.08em;font-weight:800;
 text-transform:uppercase;color:#b6d7ee;
}
.gph-dialog .gph-linked-section .gph-linked-accounts{margin-top:0}
@media(max-width:600px){
 .gph-dialog .gph-hero{
  height:86px!important;min-height:86px!important;max-height:86px!important;
 }
 .gph-dialog .gph-hero-copy h2{font-size:clamp(17px,4.7vw,20px)!important}
 .gph-dialog .gph-linked-section{padding:12px}
}
