/* Profile V2: all visual rules are contained by .profile-v2. Existing site tokens own themes. */
.profile-v2{--v2-radius:20px;width:100%;max-width:1280px;min-width:0;margin:20px auto 32px;color:var(--text);padding-bottom:20px}
.profile-v2 *{box-sizing:border-box}
.profile-v2 :is(h1,h2,h3,p){margin-top:0;color:inherit}
.profile-v2 h2{font-size:19px;line-height:1.4;margin-bottom:16px}
.profile-v2 .v2-card{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--v2-radius);box-shadow:var(--shadow);overflow:hidden}
.profile-v2 .v2-hero{margin-bottom:22px}
.profile-v2 .v2-cover{height:330px;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(120deg,color-mix(in srgb,var(--primary-2) 20%,var(--surface)),color-mix(in srgb,var(--primary) 40%,var(--surface)))}
.profile-v2 .v2-cover>img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.profile-v2 .v2-cover::after{display:none}
.profile-v2 .v2-identity{position:relative;display:grid;grid-template-columns:152px minmax(0,1fr) auto;gap:0 24px;align-items:start;padding:22px 28px 26px}
.profile-v2 .v2-avatar{position:relative;grid-column:1;grid-row:1/4;width:152px;height:152px;margin-top:-83px;border:5px solid var(--surface);border-radius:50%;background:var(--surface-2);box-shadow:0 8px 20px #0002;z-index:2;flex:none}
.profile-v2 .v2-avatar>img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.profile-v2 .v2-name{grid-column:2;min-width:0}
.profile-v2 .v2-name h1{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:clamp(23px,2.4vw,32px);line-height:1.25;font-weight:800;letter-spacing:-.6px;margin:0 0 10px;overflow-wrap:anywhere}
.profile-v2 .v2-name :is(p,small){display:block;margin:5px 0;font-size:14px;line-height:1.5;color:var(--body);overflow-wrap:anywhere}
.profile-v2 .v2-joined{font-size:13px!important;color:var(--muted)!important}
.profile-v2 .v2-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.profile-v2 .v2-badge{font-size:13px;font-weight:750;padding:5px 12px;border-radius:30px;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border));background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary-2)}
.profile-v2 .v2-player{color:#128354;background:color-mix(in srgb,#17bd80 12%,var(--surface));border-color:color-mix(in srgb,#17bd80 40%,var(--border))}
.profile-v2 .v2-actions{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;max-width:390px;margin:4px 0 0;padding:0}
.profile-v2 .v2-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 15px;border:1px solid color-mix(in srgb,var(--primary) 25%,var(--border));border-radius:12px;background:var(--surface-2);color:var(--text);font-size:14px;line-height:1.3;font-weight:700;text-align:center;cursor:pointer;overflow-wrap:anywhere}
.profile-v2 .v2-button:hover{border-color:var(--primary-2);color:var(--primary-2)}
.profile-v2 .v2-primary{background:linear-gradient(120deg,var(--primary-2),var(--primary));border-color:transparent;color:#fff}
.profile-v2 .v2-primary:hover{color:#fff;filter:brightness(1.08)}
.profile-v2 .v2-safety{grid-column:3;display:flex;justify-content:flex-end;gap:10px;padding-top:12px}
.profile-v2 .v2-safety button{border:1px solid var(--border);border-radius:8px;padding:7px 11px;background:var(--surface-2);font-size:13px;font-weight:650;color:var(--text);min-height:34px}
.profile-v2 .v2-stats{grid-column:2/4;min-width:0;margin-top:15px}
.profile-v2 .v2-metrics{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px 18px;max-width:100%;margin:0;padding:7px 0;overflow:visible}
.profile-v2 .v2-metrics>span{position:relative;flex:1 1 auto;min-width:0;display:inline-flex;flex-direction:row;align-items:baseline;justify-content:center;gap:5px;padding:0;background:none;border:0;border-radius:0;text-align:center}
.profile-v2 .v2-metrics b{display:inline;color:var(--text);font-size:15px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.profile-v2 .v2-metrics small{display:inline;color:var(--v2-readable,var(--body));font-size:13px;line-height:1.5;white-space:nowrap;font-weight:550}
.profile-v2 .v2-games{grid-column:2/4;display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0;margin:14px 0 0;overflow:visible;white-space:normal}
.profile-v2 .v2-game-item{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:6px 11px;border:1px solid var(--border);border-radius:30px;background:var(--surface-2);font-size:12px;line-height:1.4;white-space:normal}
.profile-v2 .v2-game-item img{width:23px;height:23px;object-fit:contain;flex:none}
.profile-v2 .v2-game-item span{overflow-wrap:anywhere}
.profile-v2 .v2-columns{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}
.profile-v2 .v2-main{display:grid;gap:20px;min-width:0}
.profile-v2 :is(.v2-album,.v2-intro,.v2-donate-card,.v2-private-body,.v2-private-media){padding:22px}
.profile-v2 .v2-intro p{margin-bottom:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:var(--body)}
.profile-v2 .v2-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.profile-v2 .v2-section-heading h2{margin:0}
.profile-v2 .v2-section-heading button{width:35px;height:35px;margin-left:5px;border-radius:9px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:22px}
.profile-v2 .v2-gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:4px}
.profile-v2 .v2-gallery figure{flex:0 0 23%;min-width:120px;margin:0;position:relative;scroll-snap-align:start}
.profile-v2 .v2-gallery img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px;cursor:zoom-in}
.profile-v2 .v2-gallery button[data-delete-photo]{position:absolute;right:5px;top:5px;width:30px;height:30px;border-radius:50%;background:var(--surface);color:var(--text);border:1px solid var(--border)}
.profile-v2 .v2-gallery :is(p,.pv-owner-no-photos){color:var(--muted);padding:15px 0;margin:0}
.profile-v2 .v2-sidebar{position:static;min-width:0}
.profile-v2 .v2-sidebar .bk-panel{margin:0;border-radius:var(--v2-radius);background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow);padding:22px}
.profile-v2 .v2-sidebar :is(.bk-list,.bk-card){min-width:0}
.profile-v2 .v2-donate-card p{color:var(--body)}
.profile-v2 .v2-gift{font-size:44px;color:var(--primary-2)}
.profile-v2 .v2-tabs{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:8px;border:0;border-bottom:1px solid var(--border);margin:0;background:var(--surface);white-space:nowrap}
.profile-v2 .v2-tabs button{flex:1 0 auto;min-height:45px;border:0;border-radius:10px;padding:10px 15px;background:transparent;color:var(--body);font-size:14px;font-weight:700}
.profile-v2 .v2-tabs button.active{background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary-2);box-shadow:inset 0 -3px var(--primary-2)}
.profile-v2 #pv-member-body{min-width:0;padding:18px;background:var(--surface);color:var(--text)}
.profile-v2 #pv-member-body>*{max-width:100%;min-width:0}
.profile-v2 .v2-empty{text-align:center;padding:28px 16px;color:var(--body)}
.profile-v2-private{display:grid;gap:20px}
.profile-v2 .v2-privacy{padding:11px 18px;background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary-2);border-radius:12px;font-weight:650}
.profile-v2 .v2-private-card{padding:0}
.profile-v2 .v2-private-card .v2-identity{grid-template-columns:152px minmax(0,1fr) minmax(200px,380px);align-items:start}
.profile-v2 .v2-private-card .v2-name{margin:0}
.profile-v2 .v2-cover-change{position:absolute;right:20px;bottom:20px;padding:10px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:700}
.profile-v2 .v2-avatar-change{position:absolute;bottom:0;right:0;display:grid;place-items:center;width:36px;height:36px;border:3px solid var(--surface);border-radius:50%;background:var(--primary);color:#fff;cursor:pointer}
.profile-v2-private :is(.pv-owner-donations,.pv-owner-reviews){display:none}
.profile-v2-private .v2-private-media{display:none}
.profile-v2-private[data-v2-tab="info"] .v2-private-media{display:block}
.profile-v2-private .v2-promo{margin:0;padding:24px;border:1px solid var(--border);border-radius:var(--v2-radius);background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--text)}
.profile-v2-private .v2-promo p{color:var(--body)}
.profile-v2-private .pvp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.profile-v2-private .pvp-wide{grid-column:1/-1}
.profile-v2-private :is(input,textarea,select){max-width:100%;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:11px;min-height:44px}
.profile-v2-private .pvp-form-grid label{display:flex;flex-direction:column;gap:7px;min-width:0}
.profile-v2-private .pvp-form-grid label>span{display:flex;align-items:center;gap:8px;min-width:0}
.profile-v2-private .pvp-form-grid input{width:100%;min-width:0}


@media(min-width:900px){.profile-v2 .v2-cover .pv-public-cover-dots{display:none}.profile-v2[data-v2-player="0"] .v2-columns{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1100px) and (min-width:900px){.profile-v2 .v2-identity{grid-template-columns:130px minmax(0,1fr);padding:20px}.profile-v2 .v2-actions{grid-column:2;grid-row:auto;max-width:100%;justify-content:flex-start;margin-top:12px}.profile-v2 .v2-safety{grid-column:2}.profile-v2 .v2-stats,.profile-v2 .v2-games{grid-column:1/-1}.profile-v2 .v2-avatar{width:130px;height:130px}.profile-v2 .v2-columns{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:899px){
 .profile-v2{margin:12px auto 20px;padding-bottom:calc(96px + env(safe-area-inset-bottom));--v2-radius:17px}
 .profile-v2 .v2-cover{height:auto;aspect-ratio:1.95;min-height:165px;max-height:310px;border-radius:0}
 .profile-v2 .v2-cover>img{position:absolute;inset:0}
 .profile-v2 .v2-identity,.profile-v2 .v2-private-card .v2-identity{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 17px 20px}
 .profile-v2 .v2-avatar{grid-column:1;grid-row:auto;width:108px;height:108px;margin:-48px 0 13px;border-width:4px}
 .profile-v2 .v2-name{grid-column:1;grid-row:auto;width:100%}
 .profile-v2 .v2-name h1{font-size:clamp(23px,6vw,30px);gap:7px;margin-bottom:10px}
 .profile-v2 .v2-name p{font-size:13px}
 .profile-v2 .v2-badge{font-size:12px;padding:5px 10px}
 .profile-v2 .v2-stats{grid-column:1;grid-row:auto;margin-top:15px}
 .profile-v2 .v2-metrics{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px 18px;max-width:100%;margin:0;padding:7px 0;overflow:visible}
 .profile-v2 .v2-metrics>span{position:relative;flex:1 1 auto;min-width:0;display:inline-flex;flex-direction:row;align-items:baseline;justify-content:center;gap:5px;padding:0;background:none;border:0;border-radius:0;text-align:center}
 .profile-v2 .v2-metrics b{display:inline;color:var(--text);font-size:15px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
 .profile-v2 .v2-metrics small{display:inline;color:var(--v2-readable,var(--body));font-size:13px;line-height:1.5;white-space:nowrap;font-weight:550}
 .profile-v2 .v2-games{grid-column:1;grid-row:auto;margin-top:13px;max-height:none}
 .profile-v2 .v2-actions{grid-column:1;grid-row:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;width:100%;max-width:none;margin-top:16px;gap:8px;order:4}
 .profile-v2 .v2-button{font-size:13px;padding:10px 8px;width:auto;min-width:0;min-height:44px}
 .profile-v2 .v2-safety{grid-column:1;grid-row:auto;justify-content:flex-end;padding-top:10px;order:5}
 .profile-v2 .v2-columns,.profile-v2[data-v2-player="0"] .v2-columns{display:flex;flex-direction:column;gap:18px}
 .profile-v2 .v2-main,.profile-v2 .v2-sidebar{width:100%}
 .profile-v2 .v2-album{display:none}
 .profile-v2 .v2-main{gap:16px}
 .profile-v2 :is(.v2-intro,.v2-private-body,.v2-private-media,.v2-donate-card){padding:17px}
 .profile-v2 .v2-sidebar .bk-panel{padding:17px}
 .profile-v2 .v2-tabs{padding:6px;gap:3px}
 .profile-v2 .v2-tabs button{padding:10px 11px;font-size:13px}
 .profile-v2 #pv-member-body{padding:12px}
 .profile-v2 .v2-cover-change{right:12px;bottom:12px;font-size:12px;padding:8px 11px}
 .profile-v2-private .pvp-form-grid{grid-template-columns:1fr;gap:14px}
 .profile-v2-private .pvp-wide{grid-column:auto}
 .profile-v2-private .v2-promo{padding:18px}
 .profile-v2 .pv-public-cover-track{height:100%;position:absolute;inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
 .profile-v2 .pv-public-cover-track::-webkit-scrollbar{display:none}
 .profile-v2 .pv-public-cover-slide{flex:0 0 100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
 .profile-v2 .pv-public-cover-slide img{width:100%;height:100%;object-fit:cover;object-position:center;cursor:zoom-in}
 .profile-v2 .pv-public-cover-dots{position:absolute;z-index:3;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px 8px;background:#0005;border-radius:30px}
 .profile-v2 .pv-public-cover-dot{padding:0;border:0;background:#fffa;border-radius:50%;width:8px;height:8px;min-height:8px}
 .profile-v2 .pv-public-cover-dot[aria-current="true"]{width:19px;border-radius:8px;background:#fff}
}
@media(max-width:359px){.profile-v2 .v2-identity{padding-left:12px;padding-right:12px}.profile-v2 .v2-avatar{width:92px;height:92px}.profile-v2 .v2-name h1{font-size:23px}.profile-v2 .v2-metrics small{display:inline;color:var(--v2-readable,var(--body));font-size:13px;line-height:1.5;white-space:nowrap;font-weight:550}.profile-v2 .v2-badge{font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-v2 *{scroll-behavior:auto!important;transition:none!important}}

#app .page-layout:has(.profile-v2){display:block;max-width:1320px;width:calc(100% - 32px)}
#app .page-layout:has(.profile-v2)>.rightbar{display:none}
#app .page-layout:has(.profile-v2)>#content{width:100%;min-width:0;max-width:none;margin:0;padding:0}
body #content .profile-v2 .v2-name h1{color:var(--text);margin:0 0 10px!important}
body.pvp-route #content .profile-v2 .v2-tabs{margin:0!important;border-radius:0!important;justify-content:stretch!important}
body.pvp-route #content .profile-v2 .v2-tabs button{flex:1 0 auto!important;min-width:0}
@media(max-width:600px){#app .page-layout:has(.profile-v2){width:calc(100% - 20px)}}

/* Native hidden states win over component display rules, including failed cover images. */
.profile-v2 [hidden]{display:none!important}
/* Keep the existing chat launchers compact and below Profile tabs on phones. */
@media(max-width:899px){
 html body:has(#content .profile-v2) .quick-chat-dock #world-quick,
 html body:has(#content .profile-v2) .quick-chat-dock #dm-quick{
  top:auto!important;left:auto!important;bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;
  padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:21px!important;box-shadow:0 2px 8px #0003!important;
 }
 html body:has(#content .profile-v2) .quick-chat-dock #world-quick{right:62px!important}
 html body:has(#content .profile-v2) .quick-chat-dock #dm-quick{right:10px!important}
 html body:has(#content .profile-v2) .quick-chat-dock .quick-chat-label{display:none!important}
}

/* Profile 2.1 text layout; all changes remain within Profile except shared icon fitting. */
.profile-v2{--v2-readable:var(--body)}
body[data-pv-theme="light"] .profile-v2{--v2-readable:#475569}
.profile-v2 .v2-metrics>span+span::before{content:"|";position:absolute;left:-11px;color:var(--muted);font-weight:500}
.profile-v2 :is(.v2-name p,.v2-joined,.v2-intro p,.bk-note,.pv-rv-muted){opacity:1!important;color:var(--v2-readable)!important;text-shadow:none;font-weight:500}
.profile-v2 .pv-presence-state-label{font-variant-numeric:tabular-nums;white-space:nowrap;animation:none!important;transition:none!important}
.profile-v2 .pv-presence-dot{animation:none!important}
body[data-pv-theme="light"] .profile-v2 .pv-presence-state-label[data-state="busy"]{color:#925708!important}
body[data-pv-theme="light"] .profile-v2 .pv-presence-state-label[data-state="ready"]{color:#087247!important}
.profile-v2[data-v2-player="1"] .v2-columns{grid-template-columns:minmax(0,1fr)}
.profile-v2 .v2-content{scroll-margin-top:90px}
.profile-v2 .v2-content .bk-panel{margin:0;border:0;box-shadow:none;background:var(--surface);color:var(--text)}
.profile-v2 .v2-site-banner{height:100%;min-height:0;border:0!important;border-radius:0;padding:28px 38px;align-items:center;margin:0;box-shadow:none}
.profile-v2 .v2-site-banner .home-banner-copy{z-index:1;align-self:center}
.profile-v2 .v2-banner-title{display:block;color:#fff;font-size:clamp(25px,3vw,42px);font-weight:850;line-height:1.2;margin:14px 0}
.profile-v2 .v2-site-banner p{color:#f4eaff!important;max-width:580px;font-size:15px;line-height:1.6}
.profile-v2 .v2-site-banner .home-banner-art{height:100%;min-height:210px}
.profile-v2 .v2-site-banner .home-banner-mascot{width:170px;height:170px;left:16%;top:16%}
.profile-v2 .v2-site-banner img{width:100%;height:100%;object-fit:contain}
.profile-v2 :is(.v2-game-item img,.bk-card img),#bk-overlay .bk-card img,.pv-chat-order-game img,.pv-card-game-item img{object-fit:contain!important;object-position:center!important;padding:2px;image-rendering:auto!important;filter:none!important}
.profile-v2 .v2-game-item img{width:28px;height:28px;flex:none;background:var(--surface);border-radius:6px}
@media(max-width:899px){
 .profile-v2 .v2-metrics{justify-content:center;gap:8px 18px}
 .profile-v2 .v2-metrics>span{flex:0 1 auto;padding:0}
 .profile-v2 .v2-metrics b{font-size:14px}
 .profile-v2 .v2-metrics small{font-size:12px}
 .profile-v2 .v2-cover{aspect-ratio:1.85;min-height:170px;max-height:330px}
 .profile-v2 .v2-cover>.v2-site-banner{display:none}
 .profile-v2 .v2-cover:not(.pv-public-cover-slider)>.v2-site-banner{display:grid;padding:18px}
 .profile-v2 .v2-site-banner .home-banner-art{display:none}
 .profile-v2 .v2-site-banner .v2-banner-title{font-size:22px}
}

/* Fullscreen Profile media viewer. */
#dialog:has(.v2-lightbox){padding:0!important;z-index:10050!important}
#dialog:has(.v2-lightbox) .scrim{background:#08080cf5}
#dialog:has(.v2-lightbox) .dialog-card{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#090a0f!important;overflow:hidden!important;transform:none!important}
#dialog:has(.v2-lightbox)>.dialog-card>.dialog-close{display:none!important}
#dialog:has(.v2-lightbox) #dialog-body{height:100%;padding:0!important;overflow:hidden}
#dialog .v2-lightbox{display:flex;flex-direction:column;height:100%;width:100%;max-width:none;margin:0;padding:0;background:#090a0f;color:#fff}
.v2-lightbox .v2-lightbox-tools{display:flex;align-items:center;gap:4px;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));flex:none;background:#17181ee8;z-index:2}
.v2-lightbox #dialog-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.v2-lightbox .v2-lightbox-tools output{margin-right:auto;white-space:nowrap;padding-left:6px;font-size:14px;color:#fff}
.v2-lightbox button{border:0;border-radius:6px;color:#fff;background:#ffffff16;min-width:40px;min-height:44px;font-size:23px;cursor:pointer}
.v2-lightbox button:hover,.v2-lightbox button[aria-pressed="true"]{background:#ffffff38}
.v2-lightbox button:focus-visible{outline:2px solid #d3a4ff;outline-offset:-2px}
.v2-lightbox .v2-lightbox-stage{display:flex;position:relative;min-height:0;flex:1}
.v2-lightbox .v2-lightbox-stage>button{position:absolute;top:45%;z-index:1;background:#15151b90;font-size:36px}
.v2-lightbox [data-image-action="prev"]{left:6px}.v2-lightbox [data-image-action="next"]{right:6px}
.v2-lightbox .v2-lightbox-canvas{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
#dialog .v2-lightbox .v2-lightbox-canvas>img{display:block;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;border-radius:0;margin:0}
#dialog .v2-lightbox .v2-lightbox-canvas.is-zoomed>img{width:200%;height:200%;object-fit:contain}
.v2-lightbox [data-image-error]{padding:30px;text-align:center;color:#fff}
.v2-lightbox .v2-lightbox-thumbs{display:flex;gap:6px;overflow-x:auto;flex:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#17181e;max-height:100px}
.v2-lightbox .v2-lightbox-thumbs button{padding:0;border:2px solid transparent;width:56px;height:64px;flex:none;overflow:hidden;opacity:.65}
.v2-lightbox .v2-lightbox-thumbs button[aria-current="true"]{border-color:#c58aff;opacity:1}
#dialog .v2-lightbox .v2-lightbox-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:0;margin:0}
.v2-lightbox [hidden]{display:none!important}
/* Footer layout retains PageVN routes, legal information and theme tokens. */
body .pv-footer-v2{text-align:left!important;padding:36px 0 30px!important;background:var(--surface)!important;color:var(--text)!important;height:auto!important;min-height:0!important}
.pv-footer-v2 .pv-footer-v2-inner{display:block;max-width:1280px;width:calc(100% - 48px);margin:auto}
.pv-footer-v2-logo{text-decoration:none!important;display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:28px}
.pv-footer-v2-logo img{object-fit:contain;border-radius:50%}
.pv-footer-v2 .pv-footer-v2-tagline{color:var(--body);margin:14px 0 26px;font-size:15px;line-height:1.7}
.pv-footer-v2 .pv-footer-v2-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin:24px 0 30px}
html body[data-pv-theme] #app>.pv-footer-v2 .pv-footer-v2-grid h2{font-size:14px;font-weight:750;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;margin:0 0 18px;line-height:1.4}
html body[data-pv-theme] #app>.pv-footer-v2 .pv-footer-v2-grid nav,html body[data-pv-theme] #app>.pv-footer-v2 .pv-footer-docs{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:14px!important;max-width:none!important;margin:0!important;padding:0!important}
html body[data-pv-theme] #app>.pv-footer-v2 .pv-footer-v2-grid a{color:var(--body)!important;-webkit-text-fill-color:var(--body)!important;text-decoration:none;opacity:1!important;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.pv-footer-v2 .pv-footer-v2-grid a:hover{color:var(--primary)!important;text-decoration:underline}
.pv-footer-v2 .pv-footer-business-extra{display:block;margin:18px 0;color:var(--body);font-size:14px}
.pv-footer-v2 .pv-footer-v2-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border);padding-top:22px;font-size:14px}
.pv-footer-v2 .pv-footer-warning{max-width:1280px;width:calc(100% - 48px);margin:20px auto 0;color:var(--body)!important;opacity:1!important;line-height:1.7;font-size:13px}
@media(max-width:700px){body .pv-footer-v2{text-align:left!important;padding:28px 0 calc(95px + env(safe-area-inset-bottom))!important}.pv-footer-v2 .pv-footer-v2-inner,.pv-footer-v2 .pv-footer-warning{width:calc(100% - 32px)}.pv-footer-v2 .pv-footer-v2-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 22px}html body[data-pv-theme] #app>.pv-footer-v2 .pv-footer-v2-grid a{font-size:14px}.pv-footer-v2 .pv-footer-v2-bottom{font-size:13px}}

/* PageVN 1.1.5.4: profile role, contrast and controls */
body .profile-v2 .v2-badge.v2-super-admin{display:inline-flex;align-items:center;gap:6px;color:#f4d78a!important;background:linear-gradient(115deg,rgba(87,53,140,.4),rgba(198,145,34,.17))!important;border:1px solid rgba(245,208,106,.58)!important;font-weight:850!important;text-shadow:0 1px 1px rgba(0,0,0,.22)}
body[data-pv-theme="light"] .profile-v2 .v2-badge.v2-super-admin{color:#704000!important;background:linear-gradient(115deg,#f8eeff,#fff4d2)!important;border-color:#b98c39!important;text-shadow:none}
body .profile-v2[data-v2-role="super_admin"] .v2-columns{display:block!important}
body .profile-v2[data-v2-role="super_admin"] .v2-main{width:100%!important;max-width:none!important}
body .profile-v2 :is(.v2-joined,.pv-account-meta,.v2-name p,.v2-metrics small,.v2-intro p){color:var(--body)!important;opacity:1!important}
body .profile-v2 .v2-joined{font-weight:620!important}
body .profile-v2 .v2-name h1,body .profile-v2 .v2-metrics b{color:var(--text)!important;opacity:1!important}
body .profile-v2 img[hidden],body .profile-v2 .pv-account-cover-photo[hidden]{display:none!important}
body .profile-v2-private .pvp-edit-form{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important}
body .profile-v2-private .pvp-edit-form>h2,body .profile-v2-private .pvp-form-grid>label{color:var(--text)!important}
body .profile-v2-private .pvp-form-grid :is(input,select,textarea){color:var(--text)!important;background:var(--surface-2)!important;border:1px solid var(--border)!important;opacity:1!important;-webkit-text-fill-color:var(--text)}
body .profile-v2-private .pvp-form-grid :is(input,select,textarea):focus-visible{outline:2px solid var(--primary)!important;outline-offset:2px!important;border-color:var(--primary)!important}
body .profile-v2-private .pvp-form-grid select option{color:var(--text)!important;background:var(--surface)!important}
body .profile-v2-private .pvp-form-grid :is(input,textarea)::placeholder{color:var(--body)!important;opacity:1!important}
body .profile-v2-private .pvp-form-grid>label:has(select):not(:has(i)) select{padding-left:12px!important}
body .profile-v2-private .pvp-form-grid>label:has(i) select{padding-left:36px!important}
body .profile-v2-private .pvp-form-grid i{color:var(--primary-2)!important}
body .profile-v2 :is(.v2-button,.v2-cover-change,.v2-avatar-change) svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
body .profile-v2 .v2-avatar-change svg{width:16px;height:16px}
body .profile-v2 .v2-cover-change{display:inline-flex;align-items:center;gap:7px}
body .profile-v2 :is(.v2-button,.v2-cover-change,.v2-avatar-change):focus-visible{outline:2px solid var(--primary)!important;outline-offset:3px}
@media(max-width:700px){body .profile-v2 .v2-badge.v2-super-admin{font-size:12px!important;padding:5px 9px!important}body .profile-v2 .v2-actions{gap:7px}}
/* Shared six-field profile metrics: 3 columns on desktop and phone. */
body .profile-v2 .pv-profile-five-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 12px!important;width:100%;margin:12px 0;padding:10px 0;border-block:1px solid var(--line);text-align:center}
body .profile-v2 .pv-profile-five-metrics>span{display:flex;flex-direction:column;gap:3px;min-width:0;padding:0!important;border:0!important}
body .profile-v2 .pv-profile-five-metrics>span:after{display:none!important}
body .profile-v2 .pv-profile-five-metrics b{font-size:14px;color:var(--text)}
body .profile-v2 .pv-profile-five-metrics small{font-size:10px;color:var(--body);opacity:1}
body .profile-v2 .pv-metrics-super{grid-template-columns:1fr!important}
body .profile-v2 .v2-name .pv-profile-classification{justify-content:flex-start;margin-top:8px;font-size:12px;color:var(--body)}
body[data-pv-theme] #content .profile-v2 .pv-profile-five-metrics>span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;border:0!important;padding:0!important}
body[data-pv-theme] #content .profile-v2 .pv-profile-classification{display:flex!important;flex-wrap:wrap!important;gap:4px 12px!important}
