/* Shared staff frame and compact referee overview. */
html body .cb-site.data-workspace .admin-page.admin-v3.admin-v3.data-workspace-v4{width:calc(100% - 32px)!important;max-width:1480px!important;margin:10px auto 24px!important;padding:5px!important;background:transparent!important;border:1px solid #315892!important}
html body .cb-site.data-workspace .admin-page.admin-v3.admin-v3.data-workspace-v4 #admin-workspace-content{padding:7px!important;background:#2a3035!important;border:1px solid #3777a8!important;margin-top:5px!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .admin-section-search{display:grid!important;grid-template-columns:14px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;position:relative!important;padding:4px 7px!important;margin:0 7px 8px!important;width:calc(100% - 14px)!important;min-width:0!important;border:1px solid #7d929f!important;background:#192831!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .admin-section-search>svg{position:static!important;width:14px!important;height:14px!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .admin-section-search>input[type="search"]{appearance:none!important;-webkit-appearance:none!important;outline:0!important;border-radius:0!important;height:auto!important;margin:0!important;max-width:100%!important;padding:2px 0!important;border:0!important;min-width:0!important;width:100%!important;min-height:22px!important;background:transparent!important;color:#e1e1e1!important;box-shadow:none!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-comparison{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-column{display:grid!important;grid-template-rows:auto minmax(100px,1fr) auto!important;gap:8px!important;border:0!important;padding:0!important;background:transparent!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-column>section{padding:10px!important;background:#20282e!important;border:1px solid #3777a8!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-reported-score{display:flex!important;gap:12px!important;align-items:center!important;margin:5px 0!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-reported-score strong{font-size:25px!important;line-height:30px!important}
.dispute-summary-report>small{display:block;color:#b5bec5}
.dispute-summary-tickets{max-height:330px;overflow:auto}
.dispute-summary-players p{display:flex;justify-content:space-between;gap:8px}
@media(max-width:700px){html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-comparison{grid-template-columns:1fr!important}}
/* Profile gallery and photo page follow the supplied reference frames. */
.profile-photo-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;padding:14px;min-height:240px;align-items:start}
.profile-photo-gallery figure{margin:0;text-align:center;min-width:0}
.profile-photo-gallery figure>a{display:block;width:100%;aspect-ratio:1;border:2px solid #ddd;background:linear-gradient(#0a141a,#2a3035)}
.profile-photo-gallery img{width:100%;height:100%;object-fit:contain}
.profile-photo-gallery figcaption{min-height:22px;padding:4px 0}.profile-photo-actions{display:flex;flex-direction:column;align-items:center;margin-top:12px;gap:3px}
.profile-photo-actions button{background:none!important;border:0!important;padding:0!important;color:#00baff!important;text-decoration:underline!important;cursor:pointer}
.profile-photo-gallery.is-summary{grid-template-columns:repeat(4,1fr);gap:6px;padding:0;min-height:0}.profile-photo-gallery.is-summary figcaption{font-size:10px}
.profile-photo-detail>nav{padding:5px 0 12px}.profile-photo-view{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr);min-height:330px;gap:12px}
.profile-photo-view>a{display:flex;align-items:flex-start;justify-content:center}.profile-photo-view>a>img{max-width:100%;max-height:256px;object-fit:contain}
.profile-photo-view>aside{border-left:1px dotted #69747b;padding-left:12px}.profile-photo-view h2{font-size:20px;margin:0 0 16px}.photo-detail-actions{display:flex;gap:5px;align-items:center;margin:35px 0 20px}.photo-neighbours{display:flex;justify-content:space-between;margin:12px 0 6px}
.photo-thumbnail-strip{display:flex;gap:8px;background:linear-gradient(#2b5b80,#2a3035);border:1px solid #3777a8;padding:8px;min-height:115px}.photo-thumbnail-strip img{width:46px;height:46px;object-fit:cover;border:2px solid #ddd}.profile-photo-comments-layout{display:grid;grid-template-columns:2fr 1fr;margin-top:20px;gap:12px}
.profile-photos-workspace form,.profile-blog-editor{display:grid;gap:8px;margin-top:16px;max-width:620px}.profile-photos-workspace label,.profile-blog-editor label{display:grid;gap:4px}.profile-photos-workspace textarea,.profile-blog-editor textarea{width:100%;box-sizing:border-box}.profile-blog-columns{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:12px}.profile-blog-post{border:1px solid #3777a8;padding:9px;margin-bottom:12px;overflow:auto;background:linear-gradient(#0c1820,#2a3035 120px)}.profile-blog-post h2{font-size:20px;margin:0 0 14px}.profile-blog-post p{font-size:13px;line-height:1.6}.profile-blog-date{float:left;width:48px;margin:0 8px 8px 0;background:#eee;color:#111;text-align:center;border:1px solid #fff}.profile-blog-date b{display:block;background:#aaa;padding:4px}.profile-blog-date strong{display:block;font-size:28px;padding:5px}.profile-blog-columns>aside{border:1px solid #3777a8;align-self:start;text-align:center;background:linear-gradient(#0c1820,#2a3035);padding:8px}.profile-blog-columns>aside h3{font-size:12px}.profile-blog-columns>aside button{display:block;margin:9px auto;background:none;color:#00baff;border:0;text-decoration:underline;cursor:pointer}
.admin-profile-photos>form{display:grid;grid-template-columns:100px minmax(120px,1fr) minmax(120px,1fr);gap:8px;border-top:1px solid #3777a8;padding:10px 0}.admin-profile-photos img{object-fit:contain;grid-row:span 2}.admin-profile-photos small{grid-column:2/-1}

html body .cb-site .profile-page .achievement-award,html body .cb-site .profile-page .achievement-award header,html body .cb-site .profile-page .achievement-award img{background:transparent!important;border:0!important;box-shadow:none!important}

html body .cb-site.data-workspace{background:transparent!important}

.profile-photo-detail{border:1px solid #3777a8;padding:10px;background:linear-gradient(#0c1820,#2a3035 160px)}
@media(max-width:700px){.profile-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-photo-view,.profile-photo-comments-layout,.profile-blog-columns{grid-template-columns:1fr}.profile-photo-view>aside{border-left:0;padding-left:0}}

/* Referee review: one source for submissions and one decision form. */
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-focused-layout{grid-template-columns:minmax(0,1fr)!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-review-brief{border:1px solid #6c7f8c!important;border-left:3px solid #e1b953!important;background:#192b37!important;padding:10px!important;margin-bottom:8px!important}
.dispute-review-brief h3{margin:0 0 5px}.dispute-review-brief p{margin:5px 0;line-height:1.5}.dispute-review-actions{display:flex;align-items:center;gap:8px;margin-bottom:10px}.dispute-review-actions>span{flex:1;color:#c0ccd5}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-comparison{grid-template-rows:auto auto auto!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-column{grid-row:span 3!important;grid-template-rows:subgrid!important;min-width:0!important}
.dispute-team-column h3,.dispute-team-column h4{margin:0 0 6px}.dispute-team-column details{margin-top:9px}.dispute-team-column summary{cursor:pointer;color:#8ad4f6}.dispute-summary-players small{display:block;color:#becbd3;margin-top:-3px}.dispute-other-submissions{margin-top:12px}
html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-evidence .admin-evidence-grid{grid-template-columns:minmax(0,1fr)!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .ops-table-scroll .desk-record-link{display:inline-block!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-height:0!important;text-align:left!important;color:#78cef5!important;font:inherit!important;text-decoration:underline!important;cursor:pointer!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .ops-table-scroll .desk-record-link :is(strong,span){color:inherit!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .ops-table-scroll .desk-record-link small{display:block!important;color:#d5e1e8!important;opacity:1!important;text-decoration:none!important;margin-top:3px!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .ops-table-scroll .desk-record-link:focus-visible{outline:2px solid #f4d264!important;outline-offset:3px!important}
html body .cb-site .admin-page.admin-v3.admin-v3 :is(.ops-pagination,.ops-search,.ops-saved-views) button{color:#17232c!important;text-shadow:none!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .ops-pagination button:disabled{background:#adb7bd!important;color:#3e4a53!important;opacity:1!important;cursor:default!important}
html body .cb-site .reference-fidelity .team-activity-table th:nth-child(1){width:112px!important}
html body .cb-site .reference-fidelity .team-activity-table th:nth-child(2){width:17%!important}
html body .cb-site .reference-fidelity .team-activity-table th:nth-child(3){width:25%!important}
html body .cb-site .reference-fidelity .team-activity-table th:nth-child(4){width:auto!important}
html body .cb-site .reference-fidelity .team-activity-table time span{display:block!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
html body .cb-site .reference-fidelity .team-activity-table td{vertical-align:top!important;overflow-wrap:anywhere!important}
@media(max-width:700px){html body .cb-site .admin-page.admin-v3.admin-v3 .dispute-team-column{grid-row:auto!important;grid-template-rows:auto auto auto!important}.dispute-review-actions{flex-wrap:wrap}.dispute-review-actions>span{flex-basis:100%}}

html body .cb-site .profile-page :is(.achievement-award,.achievement-award header,.achievement-award header img,.profile-achievement-icon){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
html body .cb-site .cb-member-support.support-v3 .member-support-search #member-ticket-page-size{height:26px!important;min-height:26px!important;max-height:26px!important;width:66px!important;min-width:66px!important;padding-top:3px!important;padding-bottom:3px!important;padding-left:6px!important;box-sizing:border-box!important;font:bold 11px/18px "Lucida Grande",Tahoma,Helvetica,Arial,sans-serif!important;border-radius:0!important;}

/* Let the dark site background show around both staff workspaces. */
html body .cb-site .admin-page.admin-v3.admin-v3{background:transparent!important;min-height:0!important}
html body .cb-site .admin-page.admin-v3.admin-v3 .admin-workspace{background:transparent!important}

/* Match support keeps evidence and replies within the match reference. */
html body .cb-site .cb-member-support .bbcode-editor textarea{background:#f0f5f8!important;color:#15212c!important;-webkit-text-fill-color:#15212c!important;caret-color:#15212c!important}
html body .cb-site .match-support-request{min-width:0;max-width:100%;overflow-wrap:anywhere}
html body .cb-site .match-support-request ul{padding-left:16px;margin:8px 0}
html body .cb-site .match-support-request li{min-width:0;margin-bottom:12px}
html body .cb-site .match-support-request small,.match-evidence-filename{display:block;max-width:100%;overflow-wrap:anywhere;white-space:normal}
html body .cb-site .match-support-request form{display:grid;gap:9px;min-width:0}
html body .cb-site .match-support-request label{display:grid;gap:4px;min-width:0}
html body .cb-site .match-support-request input,html body .cb-site .match-support-request textarea,html body .cb-site .match-support-request select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
html body .cb-site .match-support-request textarea{background:#f0f5f8!important;color:#15212c!important;-webkit-text-fill-color:#15212c!important}
.match-support-message{white-space:pre-wrap;overflow-wrap:anywhere}.match-support-guidance{font-size:11px;line-height:1.5}
.member-match-support{padding:12px;margin:12px 0;border:1px solid #426778}.member-match-support h2{font-size:14px}.member-match-support ul{list-style:none;padding:0}.member-match-support li{display:flex;gap:14px;flex-wrap:wrap;padding:7px 0;border-top:1px solid #426778}

html body .cb-site .admin-page.admin-v3.admin-v3 .admin-section-search:focus-within{border-color:#8ac5e9!important;outline:1px solid #8ac5e9;outline-offset:1px}
html body .cb-site .admin-page.admin-v3.admin-v3 .admin-section-search>input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}

/* Readable match support records on the dark match page. */
html body .cb-site .match-support-request>section{background:#202b32!important;color:#e3e9ed!important;border:1px solid #425965!important;padding:10px!important;margin:10px 0!important;min-width:0}
html body .cb-site .match-support-request>section :is(b,p,li,span){color:#e3e9ed!important}
html body .cb-site .match-support-request>section small{color:#b8c9d3!important;font-size:11px!important;line-height:1.5}
html body .cb-site .match-support-request>section a{color:#77d2f2!important}
html body .cb-site .match-support-request>section button{color:#17252e!important;-webkit-text-fill-color:#17252e!important}
html body .cb-site .match-support-request>section p{margin:7px 0!important;line-height:1.5}


/* ProfileAvatar uses the same framed treatment in comments, tickets, forums and member lists. */
html body .cb-site.cb-site.cb-site.cb-site.cb-site :is(img,svg).cb-profile-avatar-image{display:block!important;box-sizing:border-box!important;border:2px solid #b9d8e8!important;border-radius:7px!important;padding:0!important;outline:0!important;overflow:hidden!important;background:#053451!important;box-shadow:0 1px 2px #000!important}

/* The image owns the avatar frame; its immediate container only positions it. */
html body .cb-site.cb-site.cb-site.cb-site.cb-site :is(div,span,a):has(>:is(img,svg).cb-profile-avatar-image){border:0!important;border-radius:0!important;padding:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
html body .cb-site :is(.member-avatar,.site-member-avatar)>:is(img,svg).cb-profile-avatar-image{width:100%!important;height:100%!important}

.member-forum-profile{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;align-items:start;margin-top:10px}
.member-forum-profile>div>.legacy-panel{margin-bottom:10px}
.member-forum-facts{display:grid;grid-template-columns:80px minmax(0,1fr);gap:5px 8px;margin:0 0 10px}
.member-forum-facts dt{text-align:right;color:#aaa}.member-forum-facts dd{margin:0;overflow-wrap:anywhere}.member-forum-facts dd a{display:block}
.member-forum-avatar{width:64px;height:64px}.member-forum-profile table{width:100%;table-layout:fixed}.member-forum-profile td{overflow-wrap:anywhere;vertical-align:top}.member-forum-profile th:first-child{width:60%}
html body .cb-site button.member-forum-link{display:block;background:none!important;border:0!important;padding:3px 0!important;color:#00b9ff!important;text-decoration:underline;box-shadow:none!important;text-align:left}
.forum-member-titles fieldset{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.forum-member-titles table{width:100%}.forum-member-titles input{max-width:100%}
@media(max-width:700px){.member-forum-profile{grid-template-columns:1fr}}

/* Keep movement arrows centred on the complete ordinal at every rank size. */
html body .cb-site.cb-site.cb-site.cb-site.cb-site .team-place{display:inline-flex!important;align-items:center!important;vertical-align:middle!important;white-space:nowrap!important}
html body .cb-site.cb-site.cb-site.cb-site.cb-site .team-place>.team-place-number{display:inline-block!important;font:inherit!important;color:inherit!important;line-height:inherit!important;margin:0!important;padding:0!important}
html body .cb-site.cb-site.cb-site.cb-site.cb-site .team-place>:is(.team-place-up,.team-place-down){align-self:center!important;flex-shrink:0!important;position:static!important;transform:none!important;margin-top:0!important;margin-bottom:0!important}
/* Reserve enough room for a full date, time and timezone in forum activity. */
html body .cb-site .member-forum-profile table th:first-child{width:auto!important;text-align:left!important}
html body .cb-site .member-forum-profile table :is(th,td):last-child{box-sizing:border-box;width:170px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;text-align:left!important}
html body .cb-site .member-forum-profile table :is(th,td){padding:5px 8px!important;vertical-align:middle!important}

/* Compact rank-arrow spacing only in the member profile teams module. */
html body .cb-site.cb-site.cb-site.cb-site.cb-site .profile-reference-lower .profile-team .team-place i{margin-left:2px!important}

/* Rank spacing scoped to team statistics, match history, roster and player rankings. */
html body .cb-site.cb-site.cb-site.cb-site.cb-site :is(.team-season-stats,#team-matches,#team-roster) .team-place i{margin-left:2px!important}
html body .cb-site.cb-site.cb-site.cb-site.cb-site .leaderboard-page .rank-table .team-place i{margin-left:4px!important}
