/* Only a heading and two rows stay in the card. Evidence lives in the native modal. */
body.portal-redesign.portal-native-market .bottom-panels>.panel-card-column.maple-population-card:has(#server-turnover-box){height:469px!important;min-height:469px!important;max-height:469px!important;overflow:hidden!important}
body.portal-redesign.portal-native-market .bottom-panels>.panel-card-column.maple-population-card:has(#server-turnover-box)>.panel-body-grow{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important;padding:0!important;scrollbar-gutter:auto!important}
body.portal-native-market .maple-population-card :is(#server-turnover-box,#vol-ranking-box){flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#434a57 transparent}
body.portal-redesign.portal-native-market .maple-population-card :is(#server-turnover-box,#vol-ranking-box){overflow-y:hidden!important;padding:0!important}
body.portal-redesign.portal-native-market .maple-population-card :is(#server-turnover-box,#vol-ranking-box) :is(.server-turnover-row,.vol-rank-item){height:32px!important;min-height:32px!important;margin:0!important;padding-top:7px!important;padding-bottom:7px!important;line-height:18px!important;box-sizing:border-box!important}
.maple-population-panel{flex:0 0 100px;min-height:100px;box-sizing:border-box;border-top:1px solid #30343b;padding:9px 11px 5px;color:#d9dee8}
.maple-population-panel h3{display:flex;align-items:center;gap:5px;margin:0 0 4px;font-size:12px;font-weight:650;color:#e7e9ee;line-height:20px}
.maple-population-panel .population-game{display:flex;align-items:center;gap:7px;width:100%;height:28px;padding:0;border:0;background:transparent;color:#c4cbd7;text-align:left;cursor:pointer;font:inherit;font-size:12px;line-height:28px}
.population-game>.population-value{margin-left:auto;color:#ff7078;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.population-game .population-chevron{color:#727f91;font-size:17px}
.population-game:hover{color:#fff}
.population-game:hover .population-chevron{color:#ff7078}
.population-game:focus-visible,.population-close:focus-visible,.population-details:focus-visible{outline:2px solid #e8707a;outline-offset:2px}
.population-game.population-stale>.population-value{color:#a5aab4}
body:has(#population-modal[open]){overflow:hidden!important}
dialog.population-modal{width:min(520px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0!important;border:1px solid #37404e;border-radius:12px;background:#12171f;color:#d9dee8;box-shadow:0 20px 80px #0009;box-sizing:border-box;overflow:hidden}
dialog.population-modal[open]{display:flex;flex-direction:column}
.population-modal::backdrop{background:#000a;backdrop-filter:blur(3px)}
.population-seo-guide{flex-shrink:0;max-height:150px;overflow:auto;padding:10px 20px;border-bottom:1px solid #2a323e;font-size:11px;line-height:1.7;color:#99a6b9}
.population-seo-guide summary{cursor:pointer;color:#c4cbd7}
.population-seo-guide p{margin:8px 0}
.population-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 15px;border-bottom:1px solid #2a323e;flex-shrink:0}
.population-modal-header h2{margin:0;color:#f1f3f7;font-size:18px;font-weight:650}
.population-modal-header p{margin:5px 0 0;font-size:11px;color:#8f9aab}
.population-modal .population-close{display:grid;place-items:center;width:30px;height:30px;border:1px solid #343d4a;border-radius:7px;background:#1b232e;color:#b9c4d3;font-size:22px;cursor:pointer;flex-shrink:0;line-height:1}
.population-modal .population-details{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#434a57 transparent;padding:17px 20px;font-size:12px;line-height:1.7}
.population-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 15px;margin-bottom:15px;border-bottom:1px solid #2a323e;color:#a3aebf}
.population-total strong{font-size:27px;color:#ff7b83;letter-spacing:-1px;line-height:1.4;font-variant-numeric:tabular-nums}
.population-total small{font-size:14px;margin-left:4px;letter-spacing:0}
.population-census{display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:6px;color:#aab5c5}
.population-census strong{color:#e9edf4;font-weight:600}
.population-missing{margin:0 0 15px;overflow-wrap:anywhere;color:#99a6b9}
.population-missing b{font-weight:500;color:#c2cbd9}
.population-label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px 0 7px;font-weight:600;color:#d4dce8}
.population-label span{font-weight:400;font-size:10px;color:#8e9bb0}
.population-samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;margin:0;padding:0;list-style:none}
.population-samples li{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;background:#1b2430;border:1px solid #253142;border-radius:5px;font-variant-numeric:tabular-nums;color:#adbcd0;min-width:0}
.population-samples strong{font-weight:500;color:#e4eaf3;white-space:nowrap}
.population-formula{margin-top:16px;border-left:2px solid #d85e69;border-radius:0 5px 5px 0;padding:10px 11px;background:#241f29;color:#b8b6c4;overflow-wrap:anywhere}
.population-formula strong{display:block;font-weight:600;color:#f1b9c3;margin-top:3px}
.population-measured{display:block;margin-top:12px;color:#8f9bb0;font-size:11px}
.population-empty{display:flex;flex-direction:column;justify-content:center;min-height:130px;color:#bdc8d8;gap:8px}
.population-empty span{font-size:12px;color:#8b9aaf}
.population-modal .population-note{flex-shrink:0;margin:0;padding:12px 20px;border-top:1px solid #2a323e;color:#8898ad;font-size:10px;line-height:1.5}
@media(max-width:480px){.population-modal-header{padding:15px}.population-modal .population-details{padding:15px}.population-modal-header h2{font-size:16px}.population-total strong{font-size:23px}.population-modal .population-note{padding:10px 15px}}

.population-chart{margin:14px 0;padding:10px;border:1px solid #2a3545;border-radius:8px;background:#151e29;min-width:0}
.population-chart .population-label{margin:0 0 4px}.population-chart svg{display:block;width:100%;height:auto;overflow:visible}.population-chart text{font-size:11px;fill:#99a6b9}.population-chart p{margin:3px 0;color:#99a6b9;font-size:10px}
@media(max-width:600px){dialog.population-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);max-height:calc(100svh - 24px)}.population-modal-header{gap:8px}.population-modal .population-details{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.population-modal .population-close{width:36px;height:36px}.population-seo-guide{max-height:100px}.population-total{gap:8px;flex-wrap:wrap}.population-chart{padding:8px}.population-samples{gap:5px}.population-samples li{padding:5px 7px}}
