body #profileHistorySection{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 44px auto;gap:12px;padding:16px!important;background:linear-gradient(130deg,#10231b,#020b08);border:1px solid #846231;border-radius:16px}
body #profileHistorySection header{display:flex;gap:16px;align-items:center;justify-content:space-between;min-width:0}
body #profileHistorySection h2{margin:0;color:#edc365;font:700 27px Georgia,serif}
body #profileHistoryFilters{display:flex;gap:8px;min-width:0}
body #profileHistoryFilters label{display:grid;gap:4px;font-size:12px;min-width:0}
body #profileHistorySection select{width:100%;min-width:0;min-height:44px;padding:5px 8px;border:1px solid #a67e38;background:#081d13;color:#efdeb4;font:15px Georgia,serif}
body #profileHistorySection button,body #profileScoreDialog button{min-height:44px;margin:0;padding:6px 12px;font:15px Georgia,serif;color:#edcc83;border:1px solid #9c7539;background:linear-gradient(#183722,#05160d);white-space:normal}
body #profileHistorySection button::after,body #profileScoreDialog button::after{content:none!important}
body #historyBox{min-height:0;display:grid;grid-auto-rows:1fr;gap:10px;overflow:visible}
body #historyBox .history-match{display:grid;grid-template-columns:64px minmax(0,1.3fr) minmax(90px,.6fr) minmax(140px,1fr) 130px;gap:16px;align-items:center;min-height:0;padding:12px;border:1px solid #8f662f;border-radius:14px;background:linear-gradient(135deg,#0b241a,#020b08)}
body #historyBox .history-emblem{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:1px solid #c6a140;background:#123c1b;color:#f1c957;font-size:35px}
body #historyBox strong{font:700 21px/1.2 Georgia,serif;color:#eadbb9;display:block}
body #historyBox small,body #historyBox time{display:block;margin-top:5px;font:15px/1.25 Georgia,serif;color:#e3d2aa}
body #historyBox .history-result strong{color:#c6d85b}
body #profileHistoryPager{display:flex;align-items:center;gap:12px;justify-content:center}
body #profileHistoryStatus{margin:0;font:13px/1.3 Georgia,serif;color:#dec899}
body #profileScoreDialog{box-sizing:border-box;width:min(1000px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:18px;background:#071b11;color:#edddbc;border:1px solid #b58a43;border-radius:14px}
body #profileScoreDialog::backdrop{background:#000b}
body #profileScoreDialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}
body #profileScoreDialog h2{margin:0;font:700 24px Georgia,serif}
body #profileScoreDialog .history-table-scroll{max-width:100%;overflow:auto;margin:14px 0}
body #profileScoreDialog table{width:100%;border-collapse:collapse;font-size:14px}
body #profileScoreDialog caption{padding:6px;text-align:left;font-weight:bold;color:#eac16b}
body #profileScoreDialog th,body #profileScoreDialog td{padding:8px;border-bottom:1px solid #655534;text-align:left;overflow-wrap:anywhere}
body #profileScoreDialog th:first-child{max-width:220px}
body #profileScoreDialog .history-table-scroll:last-child table:has(th:nth-child(8)){min-width:680px}
body #profileScoreDialog .history-table-scroll:last-child th,body #profileScoreDialog .history-table-scroll:last-child td{overflow-wrap:normal}
body #profileScoreDialog [hidden]{display:none!important}
@media(max-width:1099px){
 body #profileHistorySection{padding:7px!important;gap:5px;grid-template-rows:auto minmax(0,1fr) 32px auto}
 body #profileHistorySection h2{font-size:18px}
 body #profileHistorySection header{gap:8px}
 body #profileHistoryFilters{gap:5px}
 body #profileHistoryFilters label{font-size:10px;gap:2px}
 body #profileHistorySection select{min-height:28px;font-size:12px;padding:2px}
 body #profileHistorySection button{min-height:30px;padding:3px 6px;font-size:12px}
 body #historyBox{gap:5px}
 body #historyBox .history-match{grid-template-columns:34px minmax(0,1fr) minmax(65px,.6fr) minmax(100px,.8fr) 85px;gap:6px;padding:6px;border-radius:8px}
 body #historyBox .history-emblem{width:30px;height:30px;font-size:22px}
 body #historyBox strong{font-size:14px}
 body #historyBox small,body #historyBox time{font-size:11px;margin-top:3px}
 body #profileHistoryStatus{font-size:10px}
}
@media(max-width:480px) and (min-height:500px){
 body #profileHistorySection header{display:block}
 body #profileHistorySection h2{margin-bottom:6px;font-size:20px}
 body #profileHistoryFilters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 body #profileHistorySection select{min-height:40px}
 body #profileHistorySection{grid-template-rows:auto minmax(0,1fr) 44px auto;gap:8px}
 body #historyBox .history-match{grid-template-columns:30px minmax(0,1fr) 90px;gap:5px;padding:7px}
 body #historyBox .history-format{grid-column:2/4}
 body #historyBox .history-result{grid-column:1/3;grid-row:2}
 body #historyBox .history-time{grid-column:1/3;grid-row:3;display:flex;gap:8px;align-items:center}
 body #historyBox button{grid-column:3;grid-row:2/4;min-height:44px}
 body #profileHistoryPager button{min-height:44px}
 body #profileScoreDialog{padding:10px}
 body #profileScoreDialog table{font-size:12px}
 body #profileScoreDialog th,body #profileScoreDialog td{padding:5px}
}
