body {
  background: #f7fafd;
  letter-spacing: 0;
  min-width: 0;
}

.topbar {
  height: 48px;
  padding: 0 32px;
  background: #fff;
  border-color: #e6eff8;
  backdrop-filter: none;
}

.brand { font-size: 16px; font-weight: 750; }
.nav-link { font-size: 13px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.nav-icon { width: 16px; height: 16px; }
.shell { max-width: 1840px; padding: 30px 32px 36px; }
.ranking-icon { width: 24px; height: 24px; flex: 0 0 auto; display: block; }

.ranking-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; }
.ranking-title { min-width: 0; padding-left: 20px; position: relative; }
.ranking-title::before { content: ""; position: absolute; width: 5px; height: 29px; left: 0; top: 3px; background: #16305b; border-radius: 3px; }
.ranking-title h1 { margin: 0 0 10px; color: #14253e; font-size: 28px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; text-wrap: balance; }
.ranking-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; line-height: 1.6; color: #65778e; }
.status-key { display: inline-flex; align-items: center; gap: 6px; }
.status-key i { width: 6px; height: 6px; border-radius: 50%; }
.dot-pass { background: #0daf52; }
.dot-fail { background: #fa454d; }
.ranking-model { font: 12px ui-monospace, Consolas, monospace; color: #536b87; overflow-wrap: anywhere; border-right: 1px solid #d4e0ec; padding-right: 16px; }
.ranking-tools { display: flex; flex: 0 0 auto; align-items: stretch; gap: 12px; margin-left: auto; }
.ranking-window { width: 170px; height: 58px; border: 1px solid #d7e6f8; border-radius: 6px; display: flex; align-items: center; position: relative; padding: 0 14px; gap: 12px; background: #fff; }
.ranking-window select { appearance: none; border: 0; color: #142247; font-weight: 600; font-size: 14px; height: 100%; width: 100%; padding: 0 32px 0 48px; position: absolute; inset: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.ranking-window select:focus-visible { outline: 2px solid #2780f6; outline-offset: 2px; }
.ranking-window .ranking-icon:last-child { width: 18px; height: 18px; margin-left: auto; pointer-events: none; }
.ranking-legend { display: grid; grid-template-columns: auto minmax(130px, 1fr); gap: 14px; align-items: start; border: 1px solid #d7e6f8; border-radius: 6px; background: #fff; width: 320px; padding: 13px 16px 10px; color: #344c69; font-size: 12px; }
.ranking-legend strong { font-weight: 650; line-height: 1.3; white-space: nowrap; }
.ranking-legend-bar { height: 8px; border-radius: 5px; background: linear-gradient(90deg, #76a4ff 0%, #187dff 38%, #1cbbc4 70%, #0aba4c 100%); }
.ranking-legend-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; }

.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ranking-search { position: relative; width: 280px; max-width: 100%; }
.ranking-search > .ranking-icon { position: absolute; top: 10px; left: 12px; width: 17px; height: 17px; pointer-events: none; }
.ranking-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; background: #fff; border: 1px solid #d2dfed; border-radius: 6px; color: #203650; font-size: 13px; }
.ranking-search input::placeholder { color: #8697ab; }
.ranking-sort-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #6d7f94; font-size: 12px; }
.ranking-sort-tools select, .ranking-pagination select { background: #fff; color: #344c69; border: 1px solid #d2dfed; border-radius: 6px; height: 36px; padding: 0 26px 0 10px; cursor: pointer; min-width: 0; }
.ranking-sort-tools select { width: 130px; }
.ranking-icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #d2dfed; background: #fff; border-radius: 6px; cursor: pointer; padding: 0; }
.ranking-icon-button .ranking-icon { width: 17px; height: 17px; }
.ranking-icon-button:hover:not(:disabled) { border-color: #a9c8eb; background: #edf5ff; }
.ranking-icon-button:disabled { cursor: default; opacity: .4; }
.ranking-icon-button:focus-visible, .ranking-search input:focus-visible, .ranking-sort-tools select:focus-visible, .ranking-pagination select:focus-visible { outline: 2px solid #2780f6; outline-offset: 2px; }
.ranking-table-wrap { overflow: hidden; border: 1px solid #d9e6f3; border-radius: 7px; }
.ranking-table { table-layout: fixed; width: 100%; background: #fff; }
.ranking-table .col-rank { width: 7%; }
.ranking-table .col-name { width: 15%; }
.ranking-table .col-rate { width: 9%; }
.ranking-table .col-link { width: 5%; }
.ranking-table .col-trend { width: 20%; }
.ranking-table .col-score { width: 17%; }
.ranking-table .col-action { width: 7%; }
.ranking-table th { background: #edf5ff; height: 64px; color: #283e60; font-size: 14px; font-weight: 650; padding: 0 8px; white-space: normal; }
.ranking-table td { height: 86px; padding: 10px 16px; font-size: 16px; font-weight: 500; color: #233b58; }
.ranking-table td, .ranking-table th { border-color: #e6eef7; }
.ranking-table tbody tr:nth-child(even) { background: #f8fbfe; }
.ranking-table tbody tr:hover { background: #edf6ff; }
.ranking-table .ranking-name { font-size: 16px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.ranking-sort-header { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-width: 0; min-height: 62px; padding: 8px 0; border: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; cursor: pointer; border-radius: 4px; }
.ranking-sort-header > span { min-width: 0; overflow-wrap: anywhere; }
.ranking-sort-header small { display: block; font-size: 11px; color: #7789a0; font-weight: 400; margin-top: 4px; white-space: nowrap; }
.ranking-sort-header .ranking-icon { width: 14px; height: 14px; opacity: .48; }
.ranking-sort-header:hover, .ranking-sort-header.is-sorted { color: #1468c8; }
.ranking-sort-header:hover .ranking-icon, .ranking-sort-header.is-sorted .ranking-icon { opacity: 1; }
.ranking-sort-header:focus-visible { outline: 2px solid #2780f6; outline-offset: -3px; }
.ranking-table th[aria-sort="ascending"], .ranking-table th[aria-sort="descending"] { background: #e4f0ff; box-shadow: inset 0 -2px #2883eb; }
.ranking-rate { font-variant-numeric: tabular-nums; font-weight: 600 !important; }
.ranking-unrated { font-size: 12px; color: #8393a6; font-weight: 400; }
.ranking-table .ranking-name small,
.rank-card-head strong small { display: block; margin-top: 3px; color: #8190a8; font-size: 11px; font-weight: 600; }
.ranking-table .ranking-chart-cell { padding: 10px 14px; }
.ranking-chart-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 11px; font-weight: 400; color: #7a8b9e; font-variant-numeric: tabular-nums; }
.ranking-chart-summary > span:first-child { color: #465e7b; font-weight: 600; }
.text-pass, .ranking-chart-summary .text-pass { color: #118748; }
.text-slow, .ranking-chart-summary .text-slow, .rank-card-grid strong.text-slow { color: #d73440; }
.ranking-position { display: inline-flex; min-width: 28px; height: 46px; justify-content: center; align-items: center; gap: 10px; font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ranking-position img { object-fit: contain; width: 34px; height: 44px; }
.ranking-position.gold { background: none; color: #d99300; font-weight: 750; }
.ranking-position.silver { background: none; color: #64789d; font-weight: 750; }
.ranking-position.bronze { background: none; color: #bd6009; font-weight: 750; }
.ranking-link { display: inline-grid; place-items: center; width: 34px; height: 38px; border-radius: 6px; }
.ranking-link img { filter: brightness(0) saturate(100%) invert(37%) sepia(92%) saturate(3084%) hue-rotate(208deg) brightness(104%) contrast(102%); }
.ranking-link:hover { background: #e7f2ff; }
.ranking-link:focus-visible, .ranking-detail:focus-visible { outline: 2px solid #2780f6; outline-offset: 2px; }
.ranking-spark { min-width: 0; width: 100%; height: 44px; overflow: hidden; }
.trend-intelligence { background: #f1fbf5; }
.trend-speed { background: #f0f6ff; }
.trend-point { cursor: crosshair; outline: none; }
.trend-point:hover .trend-dot, .trend-point:focus .trend-dot { stroke: #112854; stroke-width: 1.8; }
.trend-empty { height: 46px; display: grid; place-items: center; background: #f3f7fb; color: #7a8da9; font-size: 12px; }
.ranking-score { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; --score-color: #12bf5d; --score-text: #147331; }
.ranking-score strong { color: var(--score-text); font-size: 23px; line-height: 1.1; font-weight: 750; text-align: left; font-variant-numeric: tabular-nums; }
.ranking-meter { display: block; width: 100%; height: 14px; border-radius: 7px; background: #e9f1f7; overflow: hidden; }
.ranking-meter > span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(180deg, color-mix(in srgb, var(--score-color) 82%, white), var(--score-color)); }
.score-cyan { --score-color: #25bbec; --score-text: #096a8e; }
.score-blue { --score-color: #2580ff; --score-text: #1c388d; }
.score-amber { --score-color: #ffa70b; --score-text: #bc7600; }
.score-orange { --score-color: #ff913b; --score-text: #ad5509; }
.score-red { --score-color: #ff4853; --score-text: #be2430; }
.ranking-detail { height: 34px; min-width: 56px; padding: 0 12px; font-size: 13px; font-weight: 500; border-color: #cbdcf3; color: #344c69; background: #fff; }
.ranking-table .ranking-empty, .ranking-empty { height: 156px; text-align: center; color: #7084a3; font-size: 14px; font-weight: 400; }
.ranking-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; color: #647a95; font-size: 12px; }
.ranking-count > span { margin-left: 16px; color: #8696a8; }
.ranking-footer strong { font-weight: 600; }
.ranking-pagination { display: flex; align-items: center; gap: 8px; }
.ranking-pagination label { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.ranking-pagination > span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.ranking-pagination .ranking-icon-button, .ranking-pagination select { height: 32px; }
.ranking-pagination .ranking-icon-button { width: 32px; }
.ranking-update { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-top: 16px; color: #8899ab; font-size: 11px; }
.ranking-update .ranking-icon { width: 14px; height: 14px; margin-right: 3px; }
.ranking-mobile { display: none; }

.trend-tooltip { position: fixed; z-index: 70; width: max-content; max-width: min(370px, calc(100vw - 24px)); border: 1px solid #d3e3f4; border-top: 3px solid #0daf52; background: #fff; border-radius: 7px; padding: 13px 16px; box-shadow: 0 8px 26px #1a37592b; color: #14254c; }
.trend-tooltip[hidden] { display: none; }
.trend-tooltip[data-status="speed"] { border-top-color: #1875ff; }
.trend-tooltip[data-status="failed"] { border-top-color: #ef3f45; }
.trend-tooltip-title { display: block; font-size: 13px; margin-bottom: 8px; }
.trend-tooltip-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; max-height: min(250px, 40vh); overflow: auto; }
.trend-tooltip-time { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e9f0f7; color: #71819c; font-size: 12px; }

@media (max-width: 1400px) {
  .ranking-table td { padding: 8px 10px; }
  .ranking-table th { font-size: 13px; padding: 0 5px; }
  .ranking-sort-header { gap: 4px; }
  .ranking-sort-header .ranking-icon { width: 12px; height: 12px; }
  .ranking-position { gap: 4px; font-size: 18px; }
  .ranking-position img { width: 28px; height: 38px; }
  .ranking-table .ranking-name { font-size: 15px; }
  .ranking-score { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .ranking-score strong { font-size: 20px; }
  .ranking-detail { min-width: 54px; padding: 0 10px; }
}

@media (max-width: 960px) {
  .shell { padding: 22px 16px 28px; }
  .topbar { padding: 0 16px; }
  .ranking-title { padding-left: 16px; }
  .ranking-title::before { width: 4px; height: 28px; }
  .ranking-meta { gap: 6px 12px; font-size: 12px; }
  .ranking-tools { width: 100%; gap: 10px; padding: 0; }
  .ranking-window { width: 160px; height: 56px; flex: 0 0 auto; }
  .ranking-window select { font-size: 14px; }
  .ranking-legend { flex: 1; width: auto; padding: 13px 14px 10px; gap: 8px; font-size: 12px; }
  .ranking-legend-labels { font-size: 11px; }
  .ranking-table-wrap { display: none; }
  .ranking-mobile { display: grid; gap: 14px; }
  .ranking-mobile .rank-card { padding: 16px; border: 1px solid #d8e7f6; border-radius: 8px; background: #fff; min-width: 0; }
  .rank-card-head { gap: 12px; display: flex; justify-content: space-between; align-items: center; }
  .rank-card-head > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
  .rank-card-head strong { font-size: 17px; overflow-wrap: anywhere; min-width: 0; }
  .rank-card-head .ranking-position { flex: 0 0 auto; }
  .rank-card-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 16px; padding: 12px 0; border-top: 1px solid #e9f1f8; border-bottom: 1px solid #e9f1f8; }
  .mobile-trend-label { display: flex; justify-content: space-between; color: #60769a; font-size: 12px; margin: 12px 0 6px; }
  .ranking-mobile .ranking-spark { height: 48px; }
  .rank-card-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 18px; }
  .rank-card-bottom .ranking-score { grid-template-columns: 44px minmax(0, 1fr); }
  .rank-card-bottom .ranking-score strong { font-size: 23px; }
  .ranking-footer { font-size: 12px; gap: 12px; }
}

@media (max-width: 540px) {
  .topbar { height: auto; min-height: 48px; flex-wrap: wrap; gap: 0 12px; padding: 8px 12px; }
  .brand { font-size: 14px; }
  .topbar nav { height: 34px; }
  .nav-link { font-size: 12px; padding: 0 7px; gap: 4px; }
  .nav-icon { width: 14px; height: 14px; }
  .ranking-tools { flex-wrap: wrap; }
  .ranking-window { width: 100%; height: 48px; }
  .ranking-legend { width: 100%; flex: auto; padding: 13px 16px 10px; gap: 20px; }
  .ranking-search { width: 100%; }
  .ranking-sort-tools { width: 100%; margin: 0; }
  .ranking-sort-tools select { flex: 1; width: auto; }
  .ranking-pagination { flex-wrap: wrap; justify-content: flex-end; width: 100%; }
  .ranking-update { justify-content: flex-start; line-height: 1.6; }
}
