.pro-panel,.pro-dialog{color:#f3f1e5}.pro-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pro-badge{display:inline-flex;border:1px solid #b991e4;background:#48255e;color:#f3e5ff;border-radius:7px;padding:4px 8px;font:700 11px/1.3 system-ui;white-space:nowrap;vertical-align:middle}
#profile .pro-district{box-sizing:border-box;width:min(390px,100%);margin:8px auto 12px;padding:6px 9px;border:1px solid #805ca2;border-radius:12px;background:#30203e;color:#f3e5ff;text-align:left;}
#profile .pro-district[hidden],#profile[data-opening-mode]:not([data-opening-mode="idle"]) .pro-district{display:none!important;}
.pro-district label{display:flex;align-items:center;justify-content:space-between;gap:8px;font:600 13px/1.3 system-ui;}
.pro-district select{min-width:0;max-width:52%;min-height:36px;padding:4px 6px;border:1px solid #a07cc7;border-radius:8px;background:#352043;color:#fff3ff;font:inherit;}
.pro-district [role="status"]{margin:5px 0 0;}
.pro-district [role="status"]:empty{display:none;}
.pro-panel section{min-width:0;padding:12px 0}.pro-panel h3{font-size:17px}.pro-panel p,.pro-dialog p{line-height:1.5}.pro-button,.pro-panel button,.pro-dialog button,.pro-alerts button{min-height:44px;padding:9px 13px;border:1px solid #b991e4;border-radius:9px;background:#48255e;color:#f3e5ff;font:600 13px/1.4 system-ui;cursor:pointer}.pro-panel button,.pro-dialog button{margin:4px}.pro-panel button:disabled,.pro-dialog button:disabled{opacity:.6;cursor:wait}.pro-photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pro-photo-row img,.pro-avatar-placeholder{border-radius:50%;object-fit:cover;width:64px;height:64px}.pro-avatar-placeholder{display:grid;place-items:center;background:#48255e;font-size:30px}.pro-photo-row label{position:relative;overflow:hidden;display:inline-flex;align-items:center}.pro-photo-row input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.pro-muted{font-size:12px;color:#bdcbbf}.pro-check{display:flex;align-items:center;gap:10px;min-height:44px}.pro-check input{width:18px!important;height:18px!important;min-height:0!important;flex:0 0 18px;accent-color:#ba96e2}.pro-album-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #47604d}.pro-album-row>span{flex:1;min-width:120px}.pro-album-row small{display:block;color:#bdcbbf}
.pro-dialog{box-sizing:border-box;width:min(800px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:22px;border:1px solid #b991e4;border-radius:18px;background:#10251b;font:14px/1.5 system-ui}.pro-dialog *{box-sizing:border-box}.pro-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.pro-dialog>header{position:sticky;top:-22px;z-index:2;display:flex;gap:10px;justify-content:space-between;align-items:center;background:#10251b;padding:5px 0}.pro-dialog h2{font-size:22px;margin:8px 0}.pro-dialog [data-close]{font-size:23px;flex:0 0 44px}.pro-dialog label:not(.pro-check){display:grid;gap:6px;margin:10px 0}.pro-dialog input:not([type=checkbox]),.pro-dialog select{min-height:44px;width:100%;min-width:0;padding:10px;border:1px solid #64816c;border-radius:8px;background:#0d1d16;color:#f3f1e5;font:inherit}.pro-card-picker{max-height:40dvh;overflow:auto;border:1px solid #47604d;border-radius:9px;padding:8px}.pro-price-chart{display:block;width:100%;height:auto;max-height:240px;margin:15px 0;background:#142e21;border-radius:10px}.pro-table-wrap{overflow:auto}.pro-dialog table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.pro-dialog th,.pro-dialog td{padding:8px;text-align:left;border-bottom:1px solid #47604d}.pro-dialog caption{text-align:left;padding:8px}.pro-alerts{position:fixed;bottom:90px;right:14px;max-width:calc(100vw - 28px);z-index:35}.pro-alert-row{padding:12px 0;border-bottom:1px solid #47604d}.pro-public-albums{margin:18px 0}.pro-public-albums details{border:1px solid #80659a;border-radius:10px;padding:10px;margin:8px 0}.pro-public-albums summary{cursor:pointer;min-height:44px}.pro-cover{display:inline-block;width:65px;vertical-align:middle;margin-right:10px}.pro-cover .card{width:100%;pointer-events:none}.pro-public-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:12px}.pro-public-card-grid .card{width:100%;min-width:0}.rk-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.pro-dialog :focus-visible,.pro-panel :focus-visible,.pro-alerts :focus-visible{outline:2px solid #eed99d;outline-offset:3px}
@media(max-width:600px){.pro-dialog{padding:14px}.pro-dialog>header{top:-14px}.pro-dialog h2{font-size:19px}.pro-public-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pro-heading{flex-wrap:wrap}}
.pro-public-albums,.pro-public-albums *{box-sizing:border-box;min-width:0}.pro-public-albums summary{overflow-wrap:anywhere}.pro-public-card-grid .card{box-sizing:border-box}
.account-settings-grid>.pro-panel{grid-column:1/-1}.pro-photo-row label:focus-within{outline:2px solid #eed99d;outline-offset:3px}

.market-dialog button.market-course-button{
 min-height:38px;margin:0 0 7px;padding:6px 10px;border:1px solid #9b71bb;border-radius:8px;
 background:linear-gradient(135deg,#523067,#362045);color:#faedff;font:700 13px/1.25 system-ui,sans-serif;cursor:pointer;
}
.market-dialog button.market-course-button:hover{border-color:#d2abea;filter:brightness(1.12);}
.market-card-footer button.market-course-button{width:100%;margin:0;font-size:11px;}
.market-dialog .market-detail-card>button.market-course-button{
 display:block;width:fit-content;max-width:100%;margin:8px auto 0;min-height:32px;font-size:11px;
}
.pro-market-card-name{margin:6px 0 12px;}
.pro-market-sales{margin-top:10px;padding:10px;border:1px solid #45604f;border-radius:10px;}
.pro-market-sales summary{cursor:pointer;font-weight:650;}
.pro-market-sales ul{max-height:210px;overflow:auto;list-style:none;margin:8px 0 0;padding:0;}
.pro-market-sales li{display:flex;justify-content:space-between;gap:10px;padding:6px 2px;border-top:1px solid #45604f;}
.pro-market-upsell{padding:16px;border:1px solid #8c69a7;border-radius:14px;background:linear-gradient(140deg,#3f2852,#261d32);color:#f7ecff;}
.pro-market-upsell h3{margin:9px 0;}
.pro-market-upsell button{margin:4px 0 0;}

.pro-identity-photo{display:flex;align-items:center;gap:5px;padding:4px 6px;min-height:40px;border:1px solid #8b68a9;border-radius:9px;background:#39274a;color:#f3e4ff;font:650 12px/1 system-ui,sans-serif;cursor:pointer;}
.pro-identity-picture,.pro-photo-preview{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#513565;color:#f2d6ff;}
.pro-photo-preview{width:64px;height:64px;font-size:26px;}
.pro-identity-picture img,.pro-photo-preview img{width:100%;height:100%;object-fit:cover;}
html body #rankings .rk-player-button.has-ranking-photo{display:flex;flex-direction:row;align-items:center;gap:5px;max-width:100%;min-width:0;}
html body #rankings .rk-player-button.has-ranking-photo>span{display:grid;gap:2px;min-width:0;}
html body #rankings .rk-player-button.has-ranking-photo strong{min-width:0;white-space:normal;overflow-wrap:anywhere;}
.rk-ranking-photo{box-sizing:border-box;width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:1px solid #bd9ad2;object-fit:cover;}
@media(max-width:980px){
 .rk-ranking-photo{width:19px;height:19px;flex-basis:19px;}
 html body #rankings[data-ranking-tab] table.rk-server-collection-table.rk-ranking-photos :is(th,td):nth-child(2){width:20%!important;}
 html body #rankings[data-ranking-tab] table.rk-server-collection-table.rk-ranking-photos :is(th,td):nth-child(3){width:19%!important;}
 html body #rankings[data-ranking-tab] table.rk-server-collection-table.rk-ranking-photos :is(th,td):nth-child(4){width:29%!important;}
}


.account-identity-heading .pro-identity-photo{width:auto;gap:8px;padding:4px 8px;border-color:transparent;background:transparent;color:#cce8d8;}
.account-identity-heading .pro-identity-photo:hover{background:#234235;}
.pro-photo-label{max-width:76px;text-align:left;font-size:13px;line-height:1.25;font-weight:500;}
.pro-photo-editor{max-width:410px;}
.pro-photo-editor [data-body]{display:grid;justify-items:center;gap:10px;}
.pro-photo-editor [data-body] :is(p,label){margin:0;}
.pro-photo-editor button.pro-photo-preview{display:grid;place-items:center;width:150px;height:150px;padding:0;margin:0;border-radius:50%;overflow:hidden;border:2px solid #c396e5;cursor:pointer;}
.pro-photo-editor button.is-cropping{touch-action:none;cursor:grab;}
.pro-photo-preview canvas{display:block;width:100%;height:100%;}
.pro-photo-editor [data-crop-tools]{text-align:center;width:min(250px,100%);}
.pro-mini-info{max-width:350px;}
.pro-district-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px;}
.pro-district-head button{flex:none;display:grid;place-items:center;width:20px;height:20px;padding:0;border:1px solid #b992d5;border-radius:50%;background:#4a2e5e;color:#fff0ff;font:700 12px Georgia;cursor:pointer;}
.pro-district select{width:100%;max-width:none;}
.pro-market-controls{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:5px 0 12px;}
.pro-market-controls h3{margin:0;}
.pro-market-graph{min-width:0;margin:0;padding:10px;border:1px solid #69517a;border-radius:10px;background:#201b29;}
.pro-market-graph figcaption{font-weight:700;}
.pro-market-graph-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px;margin:4px 0;}
.pro-market-graph-amount strong{font-size:20px;color:#f0d8ff;}
.pro-market-graph-amount small{color:#bdcbbf;font-size:10px;}
.pro-market-graph .pro-price-chart{margin:0;background:transparent;}
#profile .opening-stage{
 position:relative;
}
@media(min-width:651px){
 #profile .opening-stage .pro-district{position:absolute;inset-inline-end:calc(50% + 105px);top:50%;transform:translateY(-50%);width:132px;margin:0;padding:5px 6px;border-radius:8px;z-index:1;}
 #profile .opening-stage .pro-district label{font-size:11px;line-height:1.2;}
 #profile .opening-stage .pro-district select{font-size:12px;min-height:30px;padding:2px 4px;}
}
@media(max-width:650px){
 #profile .opening-stage:has(.pro-district:not([hidden],[data-unavailable])) .opening-packet{width:min(170px,54%);margin-inline-start:16px;}
 #profile .opening-stage .pro-district{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);width:clamp(64px,23%,98px);margin:0;padding:4px;border-radius:7px;z-index:1;}
 #profile .opening-stage .pro-district-head{gap:2px;margin-bottom:2px;}
 #profile .opening-stage .pro-district label{font-size:9px;line-height:1.2;display:block;}
 #profile .opening-stage .pro-district button{width:16px;height:16px;font-size:10px;}
 #profile .opening-stage .pro-district select{font-size:11px;min-height:28px;padding:2px;border-radius:5px;}
 #profile .opening-stage .pro-district [role="status"]{font-size:9px;line-height:1.2;overflow-wrap:anywhere;}
 .pro-market-graph{padding:7px;}
 .pro-market-graph figcaption{font-size:12px;}
 .pro-market-graph-amount strong{font-size:17px;}
}

#card-detail-dialog #card-detail-pro-market{display:block;margin:6px auto 0;padding:5px 9px;min-height:30px;background:#48255e;border:1px solid #986abc;border-radius:7px;color:#f3e5ff;font:600 11px/1.25 system-ui;cursor:pointer;}
#card-detail-dialog #card-detail-pro-market[hidden]{display:none;}
#card-detail-dialog #card-detail-pro-market:hover{text-decoration:underline;}
.account-identity-heading .pro-identity-photo{min-height:56px;}
.pro-identity-picture{width:47px;height:47px;background:#203c30;border:1px solid #547d67;color:#d5ede0;}
.pro-photo-editor button.pro-photo-preview{width:min(248px,100%);height:auto;aspect-ratio:1;position:relative;}
.pro-photo-editor button.pro-photo-preview:not(.is-cropping){width:150px;}
.pro-photo-editor button.is-cropping{border-radius:12px;border:1px solid #775690;}
.pro-photo-editor button.is-cropping::after{content:'';position:absolute;inset:12.5%;border:2px solid #fff0ff;border-radius:50%;box-shadow:0 0 0 150px #09050c99;pointer-events:none;}
.pro-photo-editor [data-crop-tools]{margin:0;}
.pro-photo-editor [data-crop-tools] label{display:flex;align-items:center;gap:8px;margin:3px 0 0;}
.pro-photo-editor [data-crop-zoom]{accent-color:#c396e5;min-height:30px;padding:0;}
.pro-collection-market-graph svg .pro-market-empty{font-size:12px;font-weight:650;paint-order:stroke;stroke:#201b29;stroke-width:5px;}
.pro-photo-source{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px;}
.pro-photo-editor .pro-photo-source button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0;padding:5px 2px;font-size:10px;line-height:1.15;min-height:44px;}
.pro-photo-source svg{width:17px;height:17px;}
.pro-photo-editor [data-pro-save-profile]{background:#694286;}
.pro-market-plot{position:relative;max-width:640px;}
.pro-collection-market-graph .pro-price-chart{max-height:none;margin:0;}
.pro-collection-market-graph svg text{fill:#d0dfd3;font:10px system-ui;}
.pro-market-rarity-line{fill:none;stroke:#9be6b8;stroke-width:1.5;stroke-dasharray:5 4;}
.pro-market-rarity-key{position:absolute;inset-inline:73.7% 0;top:var(--rarity-level);transform:translateY(-50%);font-size:11px;line-height:1.2;color:#c8e8d3;overflow-wrap:break-word;}
.pro-identity-photo:disabled{opacity:.65;cursor:default;}
.pro-market-sales summary:focus-visible{border-radius:3px;}
html body #rankings .rk-player-button.has-ranking-photo{width:100%;}
html body #rankings .rk-player-button.has-ranking-photo>.rk-ranking-photo{display:block;order:1;margin:0;flex-shrink:0;}
@media(max-width:650px){
 #profile .opening-stage .pro-district[data-unavailable]{display:none;}
 #profile .opening-stage .pro-district{background:#261d30;border-color:#655074;color:#dfcbe8;}
 #profile .opening-stage .pro-district select{background:#30243a;border-color:#715b7e;}
}

html body .rk-dialog.rk-server-profile .rk-profile-header .rk-avatar.profile.has-profile-photo{width:88px;height:88px;flex:0 0 88px;border-radius:50%;overflow:hidden;}
@media(max-width:600px){
 html body .rk-dialog.rk-server-profile .rk-profile-header:has(.has-profile-photo){grid-template-columns:80px minmax(0,1fr);}
 html body .rk-dialog.rk-server-profile .rk-profile-header .rk-avatar.profile.has-profile-photo{width:80px;height:80px;flex-basis:80px;}
}

html body #rankings td.rk-player-photo-cell{position:relative;}
html body #rankings .rk-player-button.has-ranking-photo{--rk-photo-size:calc(var(--rk-photo-height,40px) - 4px);box-sizing:border-box;min-height:30px;padding-inline-end:calc(var(--rk-photo-size) + 4px)!important;}
html body #rankings .rk-player-button.has-ranking-photo strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
html body #rankings .rk-player-button.has-ranking-photo>.rk-ranking-photo{position:absolute;inset-inline-end:1px;top:50%;transform:translateY(-50%);width:var(--rk-photo-size);height:var(--rk-photo-size);max-width:none;pointer-events:none;}
@media(max-width:980px){
 html body #rankings[data-ranking-tab] table.rk-server-collection-table.rk-ranking-photos :is(th,td):nth-child(2){width:34%!important;}
 html body #rankings[data-ranking-tab] table.rk-server-collection-table.rk-ranking-photos :is(th,td):nth-child(4){width:26%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact.rk-ranking-photos :is(th,td):nth-child(2){width:35%!important;}
}

html body .rk-profile-header .pro-public-photo{display:block;width:100%;height:100%;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:inherit;background:none;cursor:zoom-in;}
html body .rk-profile-header .pro-public-photo:focus-visible{outline:3px solid #f4d9ff;outline-offset:-4px;}
.pro-photo-viewer{width:min(680px,calc(100vw - 20px));}
.pro-photo-viewer>img[hidden]{display:none;}
.pro-photo-viewer>img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;border-radius:12px;}
@media(max-width:600px){
 html body .rk-dialog.rk-server-profile .rk-profile-header:has(.has-profile-photo) .visitor-profile-button{grid-column:1/-1;grid-row:2;justify-self:start;}
}
.pro-alerts>button{
 display:block;
 width:max-content;
 max-width:100%;
 padding:6px 10px;
 border-color:#51705e;
 border-radius:999px;
 background:#172c22;
 color:#d4e5da;
 font-size:12px;
}
.pro-alerts>button:hover{background:#203b2d;border-color:#74967f}
