.brand-tool.rank-workspace { --rank-poster-width: 1080px; max-width: 1112px; }
.rank-preview {
    width: 100%; max-width: var(--rank-poster-width); margin: 0 auto; overflow: hidden;
    box-shadow: 0 10px 32px #172f4614;
}
.rank-poster {
    --ink: #172f46;
    --line: #d5dfe8;
    --inset: 30px;
    width: var(--rank-poster-width); box-sizing: border-box; transform-origin: top left;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}
.rank-masthead {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 20px var(--inset);
    background: #152e42; color: white;
}
.rank-brand { color: #b7dedf; font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.rank-masthead h1 { margin: 3px 0 0; font-size: 36px; line-height: 1.12; letter-spacing: .02em; }
.rank-issue { flex: none; padding-left: 20px; border-left: 1px solid #648096; }
.rank-issue span { display: block; color: #c1d3df; font-size: 14px; }
.rank-issue time { color: white; font: 700 25px/1.3 Consolas, monospace; }
.rank-lead {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    margin: 16px var(--inset);
    padding: 25px 30px;
    background: #203331; color: #f5f1e8;
}
.rank-lead[hidden] { display: none; }
.rank-lead-detail { min-width: 0; overflow-wrap: anywhere; }
.rank-lead-label { color: #d8c9ab; font-size: 14px; letter-spacing: .08em; }
.rank-lead-match {
    display: block; margin: 5px 0;
    font: 500 32px/1.35 "Songti SC", "STSong", "SimSun", serif;
}
.rank-lead-match small { margin: 0 .55em; color: #bac4bb; font: 400 .52em/1 Georgia, serif; }
.rank-lead-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: #bdc8c2; font-size: 14px; }
.rank-lead-id { white-space: nowrap; }
.rank-lead-gap {
    flex: none; text-align: right; padding-left: 28px;
    border-left: 1px solid #8d8775;
}
.rank-lead-gap b { display: block; font: 400 46px/1.1 "Times New Roman", serif; }
.rank-lead-gap small { display: block; margin-top: 4px; color: #bdc8c2; font-size: 14px; }
.rank-lead-gap .positive { color: #f4a79e; }
.rank-lead-gap .negative { color: #9dceae; }
.rank-rules {
    display: flex; gap: 26px;
    padding: 9px var(--inset); border-bottom: 1px solid var(--line);
    background: #fbfcfc; color: #526371;
    font-size: 14px; line-height: 1.55;
}
.rank-rules h2 { flex: none; margin: 0; font-size: 1em; color: var(--ink); }
.rank-rules p { margin: 0; }
.rank-section-head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
    padding: 22px var(--inset) 9px;
}
.rank-section-head > div { display: flex; align-items: baseline; gap: 10px; }
.rank-section-head h2 { margin: 0; color: inherit; font-size: 24px; }
.rank-section-head time, .rank-summary { color: var(--rank-section-meta); font-size: 16px; }
#rankToday .rank-section-head { background: #20565b; color: #fff; --rank-section-meta: #d9edeb; border-bottom: 3px solid #163f44; }
#rankToday .rank-section-head h2 { font-size: 30px; }
#rankYesterday { border-top: 10px solid #e1e8eb; }
#rankYesterday .rank-section-head { background: #f4ead9; color: #52381f; --rank-section-meta: #65523e; align-items: center; border-bottom: 2px solid #b3956e; }
#rankYesterday .rank-summary { text-align: right; }
.rank-review-metric, .rank-review-detail { display: block; }
.rank-review-metric strong { margin-left: .2em; color: #52381f; font: 700 1.45em/1 Consolas, monospace; }
.rank-review-detail { margin-top: 4px; font-size: .88em; }
.rank-poster .single-table th {
    padding: 9px 5px; border: 0; border-bottom: 1px solid var(--line);
    background: #e7eff5; color: #345168; font-size: .9em;
}
.rank-poster .single-table td { padding: 10px 5px; border: 0; border-bottom: 1px solid var(--line); }
.rank-poster .single-table th:nth-child(-n+2) { font-weight: 400; }
.rank-poster .single-table tbody tr:nth-child(odd) { background: #fff; }
.rank-poster .single-table tbody tr:nth-child(even) { background: #f4f7fa; }
#rankToday .single-teams { font-size: 21px; }
#rankToday .rank-diff { font-size: 24px; }
#rankToday .rank-wide-gap, .rank-gap-key { background: #eaf5f2; }
.rank-gap-key { display: inline-block; margin-left: .6em; padding: .1em .45em; border: 1px solid #bfdbd4; color: #315d55; border-radius: 3px; }
#rankToday .rank-largest-gap .rank-match-id { border-left: 4px solid #428b84; color: #215c59; }
#rankToday .rank-close .rank-diff { font-size: 18px; font-weight: 500; }
#rankYesterday .single-table td { padding-block: 6px; }
#rankYesterday .single-teams { font-weight: 400; }
#rankYesterday .single-table tr.is-hit { background: #ffdfdf !important; color: #333; font-weight: 400; }
.rank-league { background-color: #e7edf2; color: #304858; font-weight: 400; }
.rank-match-score { display: inline-block; white-space: nowrap; }
.rank-id-col { width: 14%; }
.rank-league-col { width: 10%; }
.rank-match-col { width: 30%; }
.rank-diff-col { width: 16%; }
.rank-match-id { font-size: .9em; font-weight: 400; }
.rank-rating {
    color: #42596c; white-space: nowrap; font-family: Consolas, "Microsoft YaHei", monospace;
}
.rank-rating.is-higher { color: var(--ink); font-weight: 700; }
.rank-diff .positive { color: #ac2019; }
.rank-diff .negative { color: #11663a; }
#rankToday .single-teams { font-weight: 400; }
#rankToday .single-teams strong { color: #a11d0b; font-weight: 800; }
.rank-save { width: min(480px, 92vw); border: 0; border-radius: 10px; padding: 20px; color: #233746; }
.rank-save::backdrop { background: #152638ad; }
.rank-save h2 { margin: 0; font-size: 20px; }
.rank-save p { font-size: 14px; margin: 8px 0; }
.rank-save-preview { max-height: 55vh; overflow: auto; margin-bottom: 12px; }
.rank-save img { width: 100%; display: block; }
.rank-save form { display: flex; justify-content: flex-end; gap: 8px; }
.rank-save :is(button, a) {
    padding: 9px 16px; border: 1px solid #bdcbd8; border-radius: 6px;
    background: white; color: #2a405a; font: inherit; cursor: pointer; text-decoration: none;
}
#rankDownload { background: #224765; border-color: #224765; color: white; }
