/* Every override is limited to the active Type Matchup tab. */
body:has(#page-matchups.active .mc-type-view) .wrap{max-width:none;padding-inline:12px}
body:has(#page-matchups.active .mc-type-view) .layout{gap:12px}
#matchupCenter .mc-type-view{--tc-name:clamp(145px,12vw,180px);--tc-cell:28px;--tc-row:34px;--tc-sprite:24px;--tc-font:11px;min-width:0;width:100%;color:#dce6f3}
#matchupCenter .mc-type-view[data-density=comfortable]{--tc-name:180px;--tc-cell:34px;--tc-row:44px;--tc-sprite:32px;--tc-font:12px}
#matchupCenter .tc-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
#matchupCenter .tc-toolbar .hint{margin:0;font-size:11px}
#matchupCenter .tc-control{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;border:1px solid #30465b;background:#0e1927;border-radius:8px}
#matchupCenter .tc-control button{padding:7px 12px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;background:transparent;color:#b9cadd;border:1px solid transparent;border-radius:5px;cursor:pointer}
#matchupCenter .tc-control [aria-pressed=true]{background:#21433f;color:#a4f2df;border-color:#447b70}
#matchupCenter .tc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;align-items:start}
#matchupCenter .tc-team{min-width:0;background:#101a28;border:1px solid #2c4157;border-radius:10px;overflow:hidden}
#matchupCenter .tc-team-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#142132;border-bottom:1px solid #2c4157}
#matchupCenter .tc-team-heading h2{margin:0;font-size:15px;min-width:0}
#matchupCenter .tc-dimensions{font-size:10px;color:#90a7bd;font-variant-numeric:tabular-nums;white-space:nowrap}
#matchupCenter .tc-scroll{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#447c78 #101a28;overscroll-behavior-x:contain}
#matchupCenter .mc-type-view .tc-matrix{width:100%;min-width:calc(var(--tc-name) + 18 * var(--tc-cell));table-layout:fixed;border-collapse:separate;border-spacing:0;background:#101a28;font:600 var(--tc-font)/1.15 Inter,"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}
#matchupCenter .tc-matrix col.tc-name-width{width:var(--tc-name)}
#matchupCenter .tc-matrix th,#matchupCenter .tc-matrix td{height:var(--tc-row);min-width:0;padding:2px 1px;text-align:center;border:0;border-bottom:1px solid #25364a;border-right:1px solid #25364a;white-space:nowrap;vertical-align:middle}
#matchupCenter .tc-matrix thead th{background:#152337;color:#b9ccdf;height:34px}
#matchupCenter .tc-matrix .typehead{font-size:17px;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif}
#matchupCenter .tc-matrix .tc-pokemon-col{position:sticky;left:0;z-index:2;width:var(--tc-name);min-width:var(--tc-name);max-width:var(--tc-name);padding:3px 7px;background:#1b2a3d;color:#e2edf8;text-align:left;box-shadow:2px 0 4px #06101a66}
#matchupCenter .tc-matrix thead .tc-pokemon-col{z-index:3;background:#1c2c40;font-size:11px}
#matchupCenter .tc-mon{display:grid;grid-template-columns:var(--tc-sprite) minmax(0,1fr) 25px;align-items:center;gap:5px;min-width:0}
#matchupCenter .tc-mon img{width:var(--tc-sprite);height:var(--tc-sprite);object-fit:contain}
#matchupCenter .tc-mon-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--tc-font);font-weight:600}
#matchupCenter .tc-mon-speed{font-size:10px;color:#9dc9dc;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
#matchupCenter .tc-matrix .neutralcell{background:#17212f;color:#a9b9ca}
#matchupCenter .tc-matrix .tc-effect-neutral{background:#17212f;color:#a9b9ca}
#matchupCenter .tc-matrix .tc-effect-resist{background:#1a3a30;color:#b4e2c6}
#matchupCenter .tc-matrix .tc-effect-quarter{background:#11352c;color:#9ee0b9}
#matchupCenter .tc-matrix .tc-effect-weak{background:#442b34;color:#ffd0cd}
#matchupCenter .tc-matrix .tc-effect-quad{background:#622c3a;color:#ffe6e2}
#matchupCenter .tc-matrix .tc-effect-immune{background:#0c131f;color:#c6b7e6}
#matchupCenter .tc-matrix .tc-long-value{font-size:9px;letter-spacing:-.2px}
#matchupCenter .tc-distribution{margin:14px 0;border:1px solid #2c4157;border-radius:10px;background:#111d2c;padding:9px 12px;min-width:0}
#matchupCenter .tc-distribution>summary{font-size:13px}
#matchupCenter .tc-distribution-table{table-layout:fixed;width:100%;margin-top:8px;border-collapse:separate;border-spacing:0;font-size:11px;font-variant-numeric:tabular-nums}
#matchupCenter .tc-distribution-table th,#matchupCenter .tc-distribution-table td{height:25px;padding:3px 5px;border:0;border-bottom:1px solid #27394c;white-space:normal;background:#142133;color:#bdcede;text-align:center}
#matchupCenter .tc-distribution-table thead th{background:#1b2c40;color:#e1edf9;font-size:11px}
#matchupCenter .tc-distribution-table thead tr:first-child>th:first-child,#matchupCenter .tc-distribution-table tbody th:first-child{width:100px;text-align:left}
#matchupCenter .tc-distribution-table tbody tr:nth-child(even)>*{background:#172638}
#matchupCenter .tc-distribution-table td:nth-child(4){border-right:1px solid #39546d}
#matchupCenter .tc-distribution-short{display:none;text-decoration:none}
#matchupCenter .tc-details{margin:12px 0;padding:8px 12px;border:1px solid #2c4157;border-radius:9px;background:#111d2c}
#matchupCenter .tc-details>summary{font-size:13px}
#matchupCenter .tc-direct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#matchupCenter .tc-direct>div{min-width:0}
@media(max-width:700px){#matchupCenter .tc-pair,#matchupCenter .tc-direct{grid-template-columns:minmax(0,1fr)}#matchupCenter .tc-distribution{padding:8px}#matchupCenter .tc-distribution-table thead tr:first-child>th:first-child,#matchupCenter .tc-distribution-table tbody th:first-child{width:75px}#matchupCenter .tc-distribution-label{display:none}#matchupCenter .tc-distribution-short{display:inline}#matchupCenter .tc-control button{padding:7px 9px}#matchupCenter .tc-toolbar{align-items:flex-start}}
