.rank-tabs {display:flex;gap:5px;padding:5px;background:#e3e9f3;border:1px solid #bac8db;border-radius:12px;margin-bottom:14px;overflow-x:auto;}
.rank-tabs button {flex:1;border:0;border-radius:8px;background:transparent;padding:12px 18px;white-space:nowrap;color:#42536c;font-weight:750;font-size:15px;}
.rank-tabs button[aria-selected="true"] {color:var(--accent);background:#fff;box-shadow:0 2px 7px #14213a1c;}
.rank-tabs button:focus-visible,.rank-sort:focus-visible {outline:3px solid var(--accent);outline-offset:2px;}
[id^="rank-pane-"][hidden] {display:none!important;}
.rank-scope {display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:var(--muted);padding:6px 3px;}
.rank-scope span {margin-left:auto;}
#rank-progress:empty {display:none;}
#rank-progress {padding:13px 16px;background:var(--accent-soft);border:1px solid var(--border);border-radius:9px;font-size:14px;}
.rank-toolbar,.rank-bulk,.rank-pagination {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0;}
.rank-toolbar {align-items:end;}
.rank-toolbar label {display:grid;gap:6px;font-size:13px;min-width:140px;}
.rank-toolbar input {max-width:100%;}
.rank-bulk {padding:12px;background:#eef3fa;border:1px solid var(--border);border-radius:10px;}
.rank-bulk strong {font-size:14px;margin-right:auto;}
.rank-bulk .secondary {padding:8px 11px;min-height:38px;font-size:13px;}
.rank-bulk .text-button {color:var(--accent);font-size:13px;margin:0;}
.rank-sort {display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:inherit;font:inherit;font-weight:750;text-align:left;padding:5px 0;}
.rank-sort span {color:var(--accent);}
.rank-selected td {background:var(--accent-soft);}
.rank-position-table td:first-child,.rank-position-table th:first-child {padding-left:12px;padding-right:12px;width:40px;}
.rank-position-table td:nth-child(2) {min-width:240px;max-width:340px;overflow-wrap:anywhere;}
.rank-position-table td:nth-child(5) {max-width:260px;overflow-wrap:anywhere;}
.rank-position-table .query-link {text-align:left;}
#rank-results-panel > .panel-head {padding:0 0 14px;background:none;border:0;box-shadow:none;}
.rank-launch {display:grid;gap:7px;text-align:right;}
.rank-launch a {font-size:13px;}
.rank-start-button {display:inline-flex;flex-direction:column;align-items:center;gap:5px;}
.rank-start-button small {display:block;color:inherit;font-size:11px;font-weight:500;line-height:1.4;}
.rank-history-table th {white-space:nowrap;min-width:150px;}
.rank-history-table th small {display:block;margin-top:6px;}
.rank-history-table th:first-child,.rank-history-table td:first-child {position:sticky;left:0;z-index:1;min-width:230px;max-width:300px;background:#f2f5fb;box-shadow:2px 0 0 var(--border);overflow-wrap:anywhere;}
.rank-history-table td {vertical-align:top;min-width:150px;}
.rank-history-table strong {display:inline-block;margin-right:8px;font-size:19px;}
.rank-pagination {font-size:13px;color:var(--muted);}
@media(max-width:820px) {.rank-tabs button {padding:11px 14px;font-size:13px;}.rank-toolbar label {min-width:0;flex:1 1 140px;}.rank-toolbar input {width:100%;}.rank-bulk {gap:8px;}.rank-bulk strong {flex-basis:100%;}.rank-history-table th:first-child,.rank-history-table td:first-child {min-width:150px;max-width:180px;}.rank-scope span {margin-left:0;}}
