[data-bot-rating-summary]{min-width:0;margin:10px 0}
#botPracticeUnratedBtn[hidden],#botPracticeReplaceBtn[hidden]{display:none!important}
.bot-rating-open{min-height:44px;max-width:100%;padding:8px 11px;border:1px solid #dec18c55;border-radius:9px;background:#dec18c0c;color:#dec18c;font:650 12px/1.5 system-ui,sans-serif;text-align:left;cursor:pointer}
[data-bot-rating-summary]>small{display:block;color:#bec5b8;font-size:11px}
.bot-result-rating{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 12px;color:#ddd9cb;font:12px/1.6 system-ui,sans-serif}
.bot-result-rating strong{font-size:15px;font-variant-numeric:tabular-nums;color:#dec18c}
.bot-result-rating strong[data-change=gain]{color:#b5d69d}.bot-result-rating strong[data-change=loss]{color:#f2aa99}
.bot-result-rating small{flex-basis:100%;color:#c1c9ba}
#bot-game-result:not([hidden]){margin-top:10px;padding-top:8px;border-top:1px solid #ffffff20}
.bot-records-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(540px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:20px;border:1px solid #afba9d55;border-radius:16px;background:#1c2520;color:#eee9dc;box-shadow:0 24px 80px #0009;font:13px/1.6 system-ui,sans-serif}
.bot-records-dialog::backdrop{background:#080c09b8;backdrop-filter:blur(5px)}
.bot-records-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.bot-records-dialog h2{margin:0;font:500 29px/1.2 Georgia,serif;color:#eee9dc}
.bot-records-dialog header button{min-width:44px;min-height:44px;border:1px solid #ffffff30;border-radius:9px;background:#ffffff06;color:inherit;cursor:pointer}
.bot-record-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.bot-record-stats>div{padding:9px;border:1px solid #ffffff20;border-radius:9px;text-align:center}
.bot-record-stats strong,.bot-record-stats small{display:block}.bot-record-stats strong{color:#dec18c;font-size:20px;font-variant-numeric:tabular-nums}
.bot-record-caption{margin:9px 0 15px;color:#bfc8b8;text-align:center}
.bot-record-table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}.bot-record-table caption{text-align:left;color:#dec18c}.bot-record-table th,.bot-record-table td{padding:7px 3px;border-bottom:1px solid #ffffff18}.bot-record-table th:last-child,.bot-record-table td:last-child{text-align:right}
.bot-records-dialog details{margin-top:15px;color:#c4ccbd}.bot-records-dialog summary{min-height:44px;display:flex;align-items:center;color:#dec18c;cursor:pointer}.bot-records-dialog p{margin:9px 0}
.bot-rating-open:focus-visible,.bot-records-dialog :focus-visible{outline:3px solid #dec18c;outline-offset:3px}
.bot-rating-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0;min-width:0}
.bot-rating-preview[hidden]{display:none}
.bot-preview-outcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:8px 4px;border:1px solid #afba9d40;border-radius:9px;background:#ffffff04;color:#d9dfcf;text-align:center;font:11px/1.4 system-ui,sans-serif}
.bot-preview-outcome strong{font-size:18px;font-variant-numeric:tabular-nums;color:#dec18c}
.bot-preview-outcome small{color:#bec8b8;font-size:10px}
.bot-preview-outcome[data-change=gain] strong{color:#b5d69d}.bot-preview-outcome[data-change=loss] strong{color:#f2aa99}
.bot-preview-note,.bot-sync-status{grid-column:1/-1;margin:4px 0;color:#c5cebd;font:11px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.bot-sync-status:empty{display:none}
.bot-record-tabs{display:flex;gap:6px;margin:0 0 12px}.bot-record-tabs button{flex:1;min-height:44px;padding:7px;border:1px solid #afba9d55;border-radius:8px;background:#ffffff04;color:#ddd9cb;cursor:pointer}
.bot-record-tabs button[aria-selected=true],.bot-record-tabs button[aria-pressed=true]{border-color:#b5d69d;background:#b5d69d18;color:#b5d69d}
.bot-record-ranking{display:flex;gap:6px;min-height:44px;margin-bottom:10px;color:#eee9dc;font-size:14px}
.bot-record-ranking button,.bot-sync-retry{min-height:44px;padding:8px 12px;border:1px solid #afba9d55;border-radius:8px;background:#ffffff06;color:#eee9dc;cursor:pointer}.bot-record-ranking button{flex:1}.bot-record-ranking button[aria-pressed=true]{color:#b5d69d;border-color:#b5d69d;background:#b5d69d18}
.bot-community-wrap{max-height:45dvh;overflow:auto;overscroll-behavior:contain;min-width:0}
.bot-community-position{display:flex;align-items:baseline;gap:9px;padding:8px 10px;border:1px solid #b5d69d55;border-radius:8px;background:#b5d69d0c;color:#c7d0bf;font-variant-numeric:tabular-nums}.bot-community-position strong{color:#dec18c;font-size:18px}.bot-community-position>span:last-child{margin-left:auto}
.bot-community-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;text-align:left;font:12px/1.5 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.bot-community-table th:first-child,.bot-community-table td:first-child{width:28px}.bot-community-table th:last-child,.bot-community-table td:last-child{width:54px;text-align:right;white-space:nowrap}
.bot-community-table th,.bot-community-table td{padding:8px 5px;border-bottom:1px solid #ffffff20}.bot-community-table th{font-size:10px;color:#c3ccbc}.bot-community-table a{color:#dec18c;text-decoration:none}.bot-community-table td:nth-child(2){max-width:135px;overflow-wrap:anywhere}
.bot-community-table tr[data-self=true]{background:#b5d69d12}
.bot-community-table td small{display:block;font-size:10px;color:#bec8b8}
@media(max-width:620px){.bot-records-dialog{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);padding:17px;max-height:calc(100dvh - 24px)}.bot-community-wrap{max-height:none;overflow:visible}}
