.rank-change-periods {margin-block:16px 20px}
.rank-change-period-groups {display:flex;gap:32px;flex-wrap:wrap}
.rank-change-period-group {padding-right:32px;max-width:100%;box-sizing:border-box}
.rank-change-period-group+ .rank-change-period-group {border-left:1px solid var(--ui-border,#dce2e9);padding-left:32px}
.rank-change-period-group:last-child {padding-right:0}
.rank-change-period-group h3 {font-size:15px;font-weight:700;margin:0 0 10px}
.rank-change-period-group .settings-row {align-items:end}
.rank-change-preceding {flex:none}
.rank-change-actions {display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--ui-border,#dce2e9)}
.analysis-workspace button.rank-change-submit {background:var(--ui-accent,#155cc4);border-color:var(--ui-accent,#155cc4);color:white;font-size:15px;font-weight:700;padding:10px 24px;min-height:42px}
.analysis-workspace button.rank-change-submit:hover {background:#124da5}
.analysis-workspace button.rank-change-submit:disabled {opacity:.45;cursor:not-allowed}
.rank-change-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.rank-change-table {--rank-period1-surface:#f5f6f8;--rank-period2-surface:#edf4ff;--rank-person-width:180px;--rank-number-width:120px;--rank-change-up:#008345;--rank-change-down:#df3042;--rank-change-new:#176fee;border-collapse:collapse;table-layout:fixed;width:calc(var(--rank-person-width) + 4 * var(--rank-number-width) + 140px);font-variant-numeric:tabular-nums;font-size:16px}
.rank-change-person-column {width:var(--rank-person-width)}
.rank-change-number-column {width:var(--rank-number-width)}
.rank-change-delta-column {width:104px}
.rank-change-transition-column {width:36px}
.rank-change-table th,.rank-change-table td {padding:10px 8px;border-bottom:1px solid var(--ui-border,#dce2e9);vertical-align:middle}
.rank-change-table th {font-size:14px;font-weight:600;background:var(--ui-surface-subtle,#f6f8fb);color:var(--ui-text-secondary,#53677d);text-align:left;white-space:nowrap}
.rank-change-table .rank-change-period1 {background:var(--rank-period1-surface)}
.rank-change-table .rank-change-period2 {background:var(--rank-period2-surface)}
.rank-change-table th.rank-change-period1 {border-bottom:2px solid #a0adbb}
.rank-change-table th.rank-change-period2 {border-bottom:2px solid #3876c7;color:#244f87}
.rank-change-table .rank-change-transition {text-align:center;padding:0 4px;background:white;color:#526a85}
.rank-change-transition svg {display:block;margin-inline:auto}
.rank-change-table .is-number {text-align:right}
.rank-change-rank,.rank-change-value,.rank-change-delta {white-space:nowrap}
.rank-change-rank {font-weight:500}
.rank-change-table .rank-change-value {border-left:1px solid #c8d1dd}
.rank-change-table td.rank-change-value,.rank-change-delta {font-weight:700}
.rank-change-delta.is-up {color:var(--rank-change-up)}
.rank-change-delta.is-down {color:var(--rank-change-down)}
.rank-change-delta.is-new {color:var(--rank-change-new)}
.rank-change-identity {display:flex;align-items:center;gap:6px;color:inherit;text-decoration:none;min-width:0}
.rank-change-identity:hover span {text-decoration:underline}
.rank-change-identity img {object-fit:contain;flex:0 0 44px;max-width:44px}
.rank-change-identity span {overflow-wrap:anywhere}
.rank-change-table.has-pairs {--rank-person-width:320px}
.rank-change-table.has-pairs th,.rank-change-table.has-pairs td {white-space:nowrap}
.rank-change-pair {display:flex;align-items:center;gap:8px;white-space:nowrap}
.rank-change-pair-portraits {display:flex;align-items:center;gap:4px;flex:none}
.rank-change-pair img {display:block;width:44px;height:42px;object-fit:contain}
.rank-change-pair-names {white-space:nowrap}
.rank-change-pair a {color:inherit;text-decoration:none}
.rank-change-pair a:hover {text-decoration:underline}
.rank-change-departed {margin-top:28px;padding-top:16px;border-top:1px solid var(--ui-border,#dce2e9)}
.rank-change-departed h3 {font-size:16px;margin:0 0 8px}
.analysis-workspace .rank-changes-results.pair-grid {display:block}
@media(max-width:760px){
 .rank-change-period-groups {gap:20px}
 .rank-change-period-group {padding:0}
 .rank-change-period-group+ .rank-change-period-group {border-left:0;border-top:1px solid var(--ui-border,#dce2e9);padding:16px 0 0}
 .rank-change-table th,.rank-change-table td {padding:9px 8px}
}

.rank-change-scroll-hint {display:none}
@media(max-width:1050px){.rank-change-scroll-hint{display:block}}
