/* Badge management follows the existing ConsoleBattles staff workspace theme. */
html body .cb-site .admin-v2 .badges-workspace{color:#e2edf3;font:13px/1.5 Arial,Helvetica,sans-serif;min-width:0}
html body .cb-site .admin-v2 .badges-workspace *{box-sizing:border-box}
html body .cb-site .admin-v2 .badges-workspace :is(p,label,button,input,select,textarea,li,small,a){font-family:inherit;font-size:13px;line-height:1.5}
html body .cb-site .admin-v2 .badges-workspace :is(h2,h3){color:#e2edf3;margin:0 0 8px;background:none;text-transform:none;height:auto}
html body .cb-site .admin-v2 .badges-workspace h2{font-size:21px}.badges-workspace h3{font-size:15px}
html body .cb-site .admin-v2 .badges-workspace p{margin:6px 0 12px}.badges-workspace small{display:block;color:#a7c1d0}
html body .cb-site .admin-v2 .badges-workspace button{padding:7px 12px;border:1px solid #39728c;border-radius:3px;background:#16394b;color:#d9effa;cursor:pointer;margin:4px 8px 4px 0;height:auto;white-space:normal}
html body .cb-site .admin-v2 .badges-workspace button:disabled{opacity:.5;cursor:default}
html body .cb-site .admin-v2 .badges-workspace button.ops-primary{background:#21698d;border-color:#56add5;color:white;font-weight:bold}
html body .cb-site .admin-v2 .badges-workspace :is(input,select,textarea){display:block;width:100%;min-width:0;padding:8px 10px;background:#fff;color:#15232c;border:1px solid #63899e;border-radius:3px;box-shadow:none;height:auto}
html body .cb-site .admin-v2 .badges-workspace label{display:grid;gap:6px;font-weight:bold}
html body .cb-site .admin-v2 .badges-workspace :is(button,input,textarea,select):focus-visible{outline:2px solid #74d0f4;outline-offset:2px}
.badges-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:16px}.badge-tabs{display:flex;gap:5px;border-bottom:1px solid #39728c;margin-bottom:20px}
html body .cb-site .admin-v2 .badge-tabs button[aria-current=page]{background:#3484a9!important;color:#fff!important;border-bottom-color:#8edbfa!important}
.badge-filter{max-width:460px;margin-bottom:16px}.badge-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body .cb-site .admin-v2 .badges-workspace :is(.badge-library article,.badge-history article){display:flex;align-items:start;gap:16px;padding:18px;margin:0;background:#102733;border:1px solid #365b6f;border-radius:4px;overflow-wrap:anywhere;min-width:0}
.badge-library article>div,.badge-history article>div{min-width:0}.badge-history{display:grid;gap:10px}
html body .cb-site .admin-v2 .badges-workspace .badge-picture{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;object-fit:contain;background:#0b1b24;border:1px solid #486778;padding:5px;border-radius:4px;font-size:27px}
.badge-status{display:inline-block;color:#8fd1ed;font-size:12px}.badge-paging{display:flex;align-items:center;gap:10px;margin:14px 0}
html body .cb-site .admin-v2 .badges-workspace :is(.badge-editor,.badge-award-form,.badge-review,.badge-revoke){max-width:850px;padding:20px;border:1px solid #365b6f;background:#102733;display:grid;gap:18px}
.badge-image-editor{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:start}.badge-image-editor>div:first-child{text-align:center}
html body .cb-site .admin-v2 .badge-image-editor .badge-picture{width:88px;height:88px;font-size:46px}.badge-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
html body .cb-site .admin-v2 .badges-workspace .badge-checkbox{display:flex;flex-direction:row;align-items:center}.badges-workspace .badge-checkbox input{width:auto!important}
.badge-steps{display:flex;gap:18px;list-style:none;padding:0;margin:0;color:#8fd1ed;flex-wrap:wrap}.badge-picker{border:1px solid #365b6f;padding:14px;min-width:0}.badge-picker legend{color:#8fd1ed;padding:0 6px;font-weight:bold}
.badge-selected{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.badge-search-results{max-height:300px;overflow:auto;margin-top:10px}
html body .cb-site .admin-v2 .badges-workspace .badge-search-results button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin:0 0 5px}.badge-search-results button>span:last-child{margin-left:auto;color:#8fd1ed}
.badge-notice{padding:12px;border-left:3px solid #ffcd66;background:#132e3c}.badge-notice.success{border-color:#76bd8b}.badge-review dl{display:grid;grid-template-columns:100px 1fr;gap:10px}.badge-review dd{margin:0;overflow-wrap:anywhere}
@media(max-width:850px){.badge-library,.badge-two-fields{grid-template-columns:1fr}.badges-heading{flex-direction:column}.badge-tabs{flex-wrap:wrap}.badge-image-editor{grid-template-columns:1fr}.badge-image-editor>div:first-child{text-align:left}}
/* Shared match panel header, including the two action panels. */
html body .cb-site .classic-match-flow :is(.match-report-card>h2,.classic-score-entry>h2,.match-extra>summary){font:bold 10px/1.5 Arial,Helvetica,sans-serif!important;color:#eee!important;height:auto!important;min-height:0!important;padding:7px!important;margin:0!important;text-align:center!important;background:linear-gradient(#092236,#000)!important;text-transform:uppercase!important;border:0!important;border-bottom:1px solid #397da4!important;border-radius:0!important}
html body .cb-site .classic-match-flow .match-extra>summary{margin:-8px -8px 8px!important;list-style:none;cursor:pointer}
html body .cb-site .classic-match-flow .match-extra>summary::-webkit-details-marker{display:none}
