.ranking-workspace { max-width: 1120px; padding-top: 24px; }
.ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ranking-heading h1 { margin: 3px 0 8px; font-size: 1.9rem; line-height: 1.4; letter-spacing: .02em; }
.ranking-heading p { color: var(--muted); margin: 0; font-size: .9375rem; }
.ranking-heading .ranking-eyebrow { display: none; }
.ranking-rule { white-space: nowrap; color: var(--blue); font-size: .875rem; padding: 10px 0; }
.ranking-overview { display: grid; grid-template-columns: 1.25fr 1fr 1fr; background: #eaf2f6; border: 1px solid #dce7ee; border-radius: 14px; margin-bottom: 20px; padding: 14px 0; }
.ranking-overview>div { padding: 0 26px; border-right: 1px solid #d3e2ea; }
.ranking-overview>div:last-child { border: 0; }
.ranking-overview span,.ranking-overview small { display: block; color: #577081; font-size: .8125rem; }
.ranking-overview strong { display: block; margin: 3px 0; color: #254f68; font-size: 1.8rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.5; }
.ranking-controls { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.ranking-control-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ranking-types { display: flex; gap: 4px; background: #f1f5f8; border: 1px solid #e7edf1; border-radius: 9px; padding: 4px; }
.ranking-types button { min-height: 42px; padding: 8px 16px; color: #597083; background: none; border-radius: 6px; font-size: .9375rem; }
.ranking-types button[aria-pressed=true] { background: white; color: #245e7f; box-shadow: 0 1px 5px #15395312; font-weight: 600; }
.ranking-filters { display: flex; gap: 16px; align-items: center; }
.ranking-extra { margin-top: 12px; }.ranking-extra>summary { cursor: pointer; color: #58778c; font-size: .8125rem; min-height: 36px; padding: 7px 0; }.ranking-extra>summary span { color: #35748c; font-size: .75rem; }.ranking-extra-body { border-top: 1px solid #e7edf2; padding-top: 14px; }.ranking-extra-body .ranking-note { margin-bottom: 0; }.ranking-extra .ranking-filter-bottom { flex-wrap: wrap; }
.rank-search { min-width: 150px; flex: 1; display: flex; border: 1px solid #cbd9e3; border-radius: 9px; padding: 4px; }
.rank-search input { border: 0; background: none; min-width: 0; width: 100%; padding: 8px 10px; font-size: .9375rem; }
.rank-search button { flex-shrink: 0; padding: 8px 15px; }
.rank-range { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8125rem; }
.rank-range input { width: 82px; padding: 10px 7px; border: 1px solid #cbd9e3; border-radius: 7px; background: white; }
.ranking-filter-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 16px; color: var(--muted); font-size: .8125rem; }
.ranking-filter-bottom label { display: flex; align-items: center; gap: 8px; }
.ranking-filter-bottom select { font-size: .8125rem; }
.ranking-error { margin: 12px 0 0; color: #a43a31; font-size: .875rem; }
.ranking-results { margin-top: 28px; scroll-margin-top: 18px; }
.ranking-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ranking-result-bar h2 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.ranking-result-bar label { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.ranking-result-bar select { min-height: 38px; font-size: .875rem; padding: 5px; }
.ranking-note,.ranking-footnote { font-size: .8125rem; line-height: 1.85; color: var(--muted); margin: 12px 0 18px; }
.ranking-footnote { margin-top: 20px; }
.ranking-table-wrap { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: clip; }
.ranking-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.ranking-table .rank-col { width: 78px; }.ranking-table .time-col { width: 190px; }.ranking-table .kind-col { width: 150px; }.ranking-table .select-col { width: 70px; }
.ranking-table thead { background: #edf3f7; color: #526c80; }
.ranking-table thead th { padding: 13px 18px; font-size: .8125rem; font-weight: 500; }
.ranking-table thead small { display: block; font-size: .6875rem; font-weight: 400; color: #677f91; }
.ranking-table tbody td,.ranking-table tbody th { padding: 13px 18px; border-top: 1px solid #e7edf2; vertical-align: middle; }
.ranking-table tbody th { font-weight: 400; }
.rank-record:hover { background: #f7fafc; }.rank-record.rank-selected { background: #f0f7fb; }
.rank-position { text-align: center; font-variant-numeric: tabular-nums; }
.rank-number { font-size: 1rem; font-weight: 600; color: #647989; }.rank-number.rank-leading { color: #257c78; }
.rank-position small { display: block; font-size: .625rem; color: #7a8d9a; }
.rank-skill { display: flex; align-items: center; gap: 12px; min-width: 0; }.rank-skill>div { min-width: 0; }
.rank-skill a { color: #2d4d63; font-weight: 600; font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }.rank-skill a:hover { color: var(--blue); text-decoration: underline; }
.rank-skill-meta { display: block; color: #718695; font-size: .75rem; margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rank-mobile-kind { display: none; }
.rank-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden; color: #6c8496; background: #ebf1f6; font-size: 1.05rem; }
.rank-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank-speed button { display: block; width: 100%; padding: 4px 0; min-height: 48px; background: none; text-align: left; color: #265c78; }
.rank-speed strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 650; }.rank-speed button>span:not(.rank-meter) { font-size: .75rem; color: #688293; margin-left: 5px; }
.rank-meter { display: block; width: 100%; height: 4px; background: #edf2f5; border-radius: 4px; margin-top: 6px; overflow: hidden; }.rank-meter i { display: block; height: 100%; background: #86afb9; border-radius: inherit; }
.rank-speed button:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.rank-kind { font-size: .75rem; color: #688093; padding: 5px 7px; border-radius: 5px; background: #f1f5f8; white-space: nowrap; }.rank-kind.skill { color: #3d727e; background: #edf6f6; }
.rank-check label { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 32px; cursor: pointer; }
.ranking-table tbody .rank-detail-row>td { padding: 0; background: #f5f9fc; }
.rank-calculation { padding: 20px 24px; }.rank-calculation p { margin: 0 0 14px; color: #577081; font-size: .875rem; }.rank-calculation p>span { display: block; margin-top: 7px; color: #315b78; font-variant-numeric: tabular-nums; }
.rank-calculation dl { margin: 0 0 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.rank-calculation dt { font-size: .8125rem; color: #547184; }.rank-calculation dt a { color: inherit; }.rank-calculation code { display: block; font-size: .6875rem; color: #7a8d9a; overflow-wrap: anywhere; }.rank-calculation dd { margin: 6px 0 0; color: #315b78; font-size: 1.05rem; font-variant-numeric: tabular-nums; }.rank-calculation dd small { font-size: .75rem; }.rank-detail-link { display: inline-block; padding: 9px 0; font-size: .8125rem; color: var(--blue); }
.ranking-table tbody .rank-empty { text-align: center; padding: 45px 20px; color: var(--muted); font-size: .9375rem; }.rank-empty button { display: block; margin: 10px auto 0; }
.ranking-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }.ranking-pagination form { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8125rem; }.ranking-pagination input { width: 60px; min-height: 44px; border: 1px solid #cbd9e3; border-radius: 7px; text-align: center; background: white; padding: 4px; }
.ranking-compare { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(1080px,calc(100% - 32px)); border: 1px solid #cadae5; box-shadow: 0 6px 30px #21486420; border-radius: 12px; background: white; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }.ranking-compare>div:first-child { min-width: 0; }.ranking-compare p { font-size: .75rem; color: var(--muted); margin: 0 0 7px; }#rank-selection { display: flex; gap: 6px; flex-wrap: wrap; max-height: 94px; overflow-y: auto; }#rank-selection button { min-height: 36px; background: #edf4f9; border-radius: 5px; color: #446a84; font-size: .8125rem; padding: 6px 10px; }#rank-selection small { font-size: .6875rem; color: #758a9a; }.ranking-compare-actions { display: flex; gap: 8px; flex-shrink: 0; }.has-rank-selection { padding-bottom: 180px; }
@media(min-width:900px) {
  .ranking-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(430px,1.05fr); gap: 0 28px; }
  .ranking-heading { margin-bottom: 20px; flex-wrap: wrap; gap: 2px; align-content: center; }.ranking-heading h1 { font-size: 1.75rem; }.ranking-heading p { font-size: .8125rem; }.ranking-rule { font-size: .8125rem; padding: 4px 0; }
  .ranking-overview>div { padding: 0 16px; }.ranking-overview strong { font-size: 1.6rem; }.ranking-overview small { font-size: .6875rem; }
  .ranking-controls,.ranking-results,.ranking-workspace>.page-footer { grid-column: 1/-1; }
  .ranking-controls { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 22px; padding: 18px; }.ranking-control-top { margin: 0; }.ranking-types button { padding-left: 13px; padding-right: 13px; }.ranking-extra { grid-column: 1/-1; margin-top: 0; }.ranking-filters { min-width: 0; }
  .ranking-results { margin-top: 22px; }.ranking-table thead small { display: inline; margin-left: 5px; }
}
@media(max-width:850px) { .ranking-filters { gap: 10px; }.rank-range { flex: 1; }.ranking-table .kind-col,.kind-cell { display: none; }.rank-mobile-kind { display: inline; }.ranking-table .time-col { width: 170px; } }
@media(max-width:550px) {
  .ranking-workspace { padding-top: 23px; }.ranking-heading { align-items: flex-start; gap: 10px; margin-bottom: 20px; }.ranking-heading h1 { font-size: 1.55rem; }.ranking-heading p { font-size: .8125rem; }.ranking-eyebrow { display: none; }.ranking-rule { font-size: .75rem; padding-top: 9px; }
  .ranking-overview { padding: 15px 0; border-radius: 10px; margin-bottom: 18px; grid-template-columns: 1.15fr 1fr 1fr; }.ranking-overview>div { padding: 0 12px; }.ranking-overview span { font-size: .6875rem; }.ranking-overview strong { font-size: 1.35rem; }.ranking-overview small { font-size: .625rem; line-height: 1.6; }
  .ranking-controls { padding: 14px; border-radius: 10px; }.ranking-control-top { flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }.ranking-types { width: 100%; }.ranking-types button { padding: 7px 8px; font-size: .8125rem; flex: auto; white-space: nowrap; }.rank-range { gap: 6px; font-size: .75rem; }.rank-range input { width: 67px; font-size: .875rem; }.rank-range>span:first-child { display: none; }.rank-search input { font-size: .8125rem; padding-left: 7px; }.rank-search button { padding: 7px 12px; font-size: .8125rem; }.ranking-filters>.text-button { font-size: .75rem; flex-shrink: 0; }.ranking-result-bar>.quiet-button { font-size: .75rem; min-height: 38px; padding: 7px 9px; flex-shrink: 0; }.ranking-extra>summary { font-size: .75rem; }
  .ranking-filter-bottom { flex-wrap: wrap; gap: 9px; margin-top: 11px; font-size: .75rem; }.ranking-filter-bottom label:last-child { margin-left: auto; }.ranking-filter-bottom select { font-size: .75rem; min-height: 36px; }.ranking-results { margin-top: 22px; }.ranking-result-bar h2 { font-size: .875rem; }.ranking-result-bar label { font-size: .6875rem; gap: 4px; }.ranking-note,.ranking-footnote { font-size: .75rem; }
  .ranking-table-wrap { border-radius: 9px; }.ranking-table .rank-col { width: 40px; }.ranking-table .time-col { width: 83px; }.ranking-table .select-col { width: 44px; }.ranking-table thead th { font-size: .6875rem; padding: 11px 6px; }.ranking-table thead small { display: none; }.ranking-table tbody td,.ranking-table tbody th { padding: 11px 6px; }.ranking-table tbody .rank-check { padding: 0; }.rank-position small { font-size: .5625rem; }.rank-number { font-size: .8125rem; }.rank-skill { gap: 7px; }.rank-icon { width: 30px; height: 30px; border-radius: 6px; font-size: .875rem; }.rank-skill a { font-size: .8125rem; }.rank-skill-meta { font-size: .625rem; }.rank-mobile-kind { display: block; }.rank-speed strong { font-size: .9375rem; }.rank-speed button>span:not(.rank-meter) { font-size: .625rem; margin-left: 3px; }.rank-check label { min-width: 44px; }.rank-check input { width: 17px; height: 17px; }
  .rank-calculation { padding: 16px; }.rank-calculation p { font-size: .8125rem; }.rank-calculation dl { grid-template-columns: 1fr 1fr; gap: 15px 12px; }.rank-calculation code { font-size: .625rem; }.rank-calculation dt { font-size: .75rem; }.rank-calculation dd { font-size: .9375rem; }
  .ranking-pagination { gap: 8px; flex-wrap: wrap; }.ranking-pagination .quiet-button { padding: 7px 10px; font-size: .75rem; }.ranking-pagination form { gap: 5px; font-size: .75rem; }.ranking-pagination input { width: 44px; font-size: .8125rem; }.ranking-compare { bottom: 8px; width: calc(100% - 20px); padding: 12px; flex-wrap: wrap; gap: 9px; }.ranking-compare-actions { width: 100%; justify-content: flex-end; }.ranking-compare-actions button { font-size: .8125rem; }.has-rank-selection { padding-bottom: 230px; }
}
@media(max-width:350px) { .rank-icon { display: none; }.ranking-overview>div { padding: 0 8px; }.ranking-overview strong { font-size: 1.2rem; }.ranking-pagination { column-gap: 5px; }.ranking-pagination .quiet-button { padding-left: 7px; padding-right: 7px; } }
