/* Keep the risk warning in the card corner, independent of moderator controls. */
#resultsBody .counter-card:has(> .msf-risky-leading){position:relative}
#resultsBody .counter-card > .msf-risky-leading{position:absolute;grid-column:auto!important;grid-row:auto!important;top:8px;left:8px;z-index:3;display:block;width:30px;height:30px}
#resultsBody .counter-card > .msf-risky-leading .msf-risky-badge{width:30px;height:30px;min-width:30px;padding:3px}
#resultsBody .counter-card:has(> .msf-risky-leading) > .counter-name,
#resultsBody .counter-card:has(> .msf-risky-leading) > .cru-face-header .cru-face-label{box-sizing:border-box;padding-left:26px!important}
/* Legacy video/share align-self rules must not override the footer's center line. */
body #resultsBody .msf-card-footer > :is(.cru-vid-corner,.msf-card-notes,.mct-pin,.ctr-share-btn){align-self:center!important}
body #resultsBody .msf-card-footer > .cru-vid-corner{display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;line-height:1;margin-block:0!important}
#msfCounterKey{box-sizing:border-box;margin:12px .75rem 0;padding:0;color:var(--msf-text,#c7d0dc);font:400 12px/1.4 Outfit,system-ui,sans-serif;text-align:left}
#msfCounterKey[hidden]{display:none!important}
#msfCounterKey summary{width:fit-content;display:flex;align-items:center;gap:6px;min-height:36px;padding:0 8px;cursor:pointer;list-style:none;font-weight:600;border:1px solid #3c4f65;border-radius:7px;background:var(--msf-raised,#142132)}
#msfCounterKey summary::-webkit-details-marker{display:none}
#msfCounterKey summary:focus-visible{outline:2px solid #80baff;outline-offset:3px}
#msfCounterKey summary svg{width:14px;height:14px}
#msfCounterKey[open] summary svg{transform:rotate(180deg)}
#msfCounterKey .mcc-key-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px 18px;margin:10px 0 0;padding:12px;border:1px solid #304157;border-radius:8px;background:var(--msf-raised,#142132)}
#msfCounterKey .mcc-key-item{display:flex;gap:8px;align-items:center;min-width:0}
#msfCounterKey .mcc-key-item[hidden]{display:none}
#msfCounterKey .mcc-key-item svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
#msfCounterKey .mcc-key-item strong{font-weight:600}
#msfCounterKey .mcc-risk{color:#ffdf32}
#msfCounterKey .mcc-up{color:#83df9a}
#msfCounterKey .mcc-down{color:#ef9a9a}
#msfCounterKey .mcc-mod-label{width:24px;flex:none;font-size:10px;font-weight:700;color:#9ecbff}
#msfCounterKey .mcc-corners{grid-column:1/-1;color:var(--msf-muted,#abb9ca);font-size:11px}
@media(max-width:450px){#msfCounterKey .mcc-key-items{grid-template-columns:1fr 1fr;gap:10px 12px;padding:10px}#msfCounterKey .mcc-key-item{align-items:flex-start;font-size:11px}#msfCounterKey .mcc-key-item svg{width:16px;height:16px;margin-top:1px}}

/* Match the results actions and remove the two redundant instruction lines. */
body #resultsPage :is(#exportCountersBtn,#submitDefenseCounterBtn){box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;min-height:40px!important;padding:.6rem .9rem!important;font-size:.82rem!important;line-height:1.2!important;color:#fff!important}
body #resultsPage #exportBtnWrap{display:inline-flex;align-items:center}
body #resultsPage > .msf-results-tools,
body #resultsBody > .counter-note-hint{display:none!important}
