/* Shared business-blue theme. Uses local system fonts to keep first load light. */
:root {
  --ink: #182942;
  --muted: #617089;
  --navy: #173c70;
  --blue: #245bb1;
  --blue-soft: #edf3fc;
  --gold: #87a5d0;
  --line: #dfe6ef;
  --canvas: #f4f6fa;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
}
body { background: var(--canvas); color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: var(--font); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, a, input, select, summary { transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #618fe0; outline-offset: 3px; }
input::placeholder { color: #77859a; }
input[type=checkbox], .speed-filters input[type=checkbox], .display-panel input { accent-color: var(--blue); }
.workspace, .header-inner { max-width: 1240px; padding-left: 36px; padding-right: 36px; }
.workspace { padding-top: 32px; padding-bottom: 64px; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px #19385f03; }
.header-inner { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #18365e; font-size: 1.0625rem; font-weight: 700; letter-spacing: .035em; gap: 11px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-symbol { width: 34px; height: 34px; padding: 7px; border-radius: 9px; color: #fff; background: #214e8c; box-shadow: 0 3px 7px #1e487422; }
.header-nav { gap: 7px; }
.header-nav a { min-height: 42px; display: inline-flex; align-items: center; color: #596a83; border-radius: 7px; padding: 8px 17px; font-size: .875rem; }
.header-nav a:hover { background: #f0f4fb; color: var(--blue); text-decoration: none; }
.header-nav a[aria-current=page] { background: #eaf1fb; color: #2455a1; font-weight: 650; }
.primary, .search-box .primary { background: #245bb1; color: #fff; border: 1px solid #245bb1; border-radius: 7px; font-weight: 600; box-shadow: 0 2px 4px #1f4d8612; }
.primary:hover:not(:disabled), .search-box .primary:hover { background: #1c488e; border-color: #1c488e; box-shadow: 0 3px 9px #1f4d8624; }
.primary:active:not(:disabled) { background: #163c78; }
.quiet-button, .icon-button, .reset-button, .pagination button { color: #415776; border-color: #d8e1ed; background: #fff; border-radius: 7px; }
.quiet-button:hover:not(:disabled), .icon-button:hover:not(:disabled), .reset-button:hover, .pagination button:hover:not(:disabled) { border-color: #a8bddb; background: #f0f5fc; color: var(--blue); }
.text-button, .control-disclosure { color: #49658a; border-radius: 6px; }
.text-button:hover, .control-disclosure:hover { color: var(--blue); background: #edf3fc; }
select, input[type=number], .field-search { border-color: #d9e2ef; border-radius: 7px; color: var(--ink); }
.page-footer { gap: 14px; margin-top: 30px; padding-top: 22px; border-color: var(--line); }
.page-footer, .filing-links { color: #6b7890; font-size: .75rem; }
.page-footer a, .filing-links a, .page-footer button { color: #60718c; }
.site-version { background: #e8eef7; padding: 1px 7px; border-radius: 4px; font-size: .6875rem; color: #557297; }

/* The homepage: a compact overview above a clear, white data table. */
.ranking-workspace { display: block; }
.ranking-hero { display: grid; grid-template-columns: .95fr 1.25fr; align-items: center; gap: 28px; background: linear-gradient(115deg,#132e56 0%,#1a4279 72%,#24528a 100%); border: 1px solid #1b3e6c; border-radius: 14px; padding: 24px 30px; box-shadow: 0 8px 24px #173c7010; }
.ranking-heading { display: block; margin: 0; }
.ranking-heading h1 { color: #fff; font-size: 1.8125rem; line-height: 1.35; margin: 5px 0 7px; letter-spacing: .025em; font-weight: 650; }
.ranking-heading .ranking-eyebrow { display: block; color: #bdcfe8; font-size: .75rem; letter-spacing: .09em; margin: 0; }
.ranking-heading p { color: #c7d5e9; font-size: .8125rem; line-height: 1.8; }
.ranking-rule { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; color: #e7effa; font-size: .75rem; padding: 2px 0; line-height: 1.4; }
.ranking-rule:hover { color: #fff; }
.ranking-rule span { font-size: .9375rem; }
.ranking-overview { margin: 0; padding: 14px 0; background: transparent; border: 0; border-radius: 0; grid-template-columns: 1.2fr 1fr 1fr; }
.ranking-overview>div { padding: 5px 18px; border-right: 1px solid #ffffff23; min-width: 0; }
.ranking-overview>div:first-child { padding-left: 0; }
.ranking-overview>div:last-child { padding-right: 0; }
.ranking-overview span { font-size: .75rem; color: #c6d6ed; white-space: nowrap; }
#rank-snapshot { display: flex; flex-wrap: wrap; gap: 0 4px; }
#rank-snapshot>span { color: inherit; font: inherit; }
#rank-snapshot time { white-space: nowrap; }
.ranking-overview em { font-style: normal; font-size: .625rem; color: #adbfdb; margin-left: 3px; }
.ranking-overview strong { font-size: 2.0625rem; color: #fff; font-weight: 600; margin: 4px 0 6px; line-height: 1.3; letter-spacing: -.015em; }
.ranking-overview small { font-size: .6875rem; color: #b9cce6; line-height: 1.7; }
.ranking-reference { display: flex; align-items: flex-start; gap: 9px; margin: 12px 2px 16px; color: #61718b; font-size: .75rem; line-height: 1.8; }
.ranking-reference svg { flex-shrink: 0; margin-top: 3px; color: #527aaa; }
.ranking-controls { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0 28px; padding: 16px 22px 6px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px #19385f02; }
.ranking-control-top { margin: 0; }
.ranking-types { padding: 4px; border: 0; background: #f0f3f8; border-radius: 8px; }
.ranking-types button { color: #63728a; min-height: 40px; font-size: .875rem; padding: 8px 14px; border-radius: 6px; }
.ranking-types button:hover { color: var(--blue); background: #e7edf7; }
.ranking-types button[aria-pressed=true] { background: #fff; color: #2556a0; box-shadow: 0 1px 5px #183e7018; font-weight: 650; }
.ranking-filters { gap: 12px; }
.rank-search { align-items: center; border-color: #d9e2ee; border-radius: 8px; background: #fff; padding: 4px; }
.rank-search>svg { color: #8392a9; flex-shrink: 0; margin-left: 10px; }
.rank-search input { font-size: .875rem; padding: 8px 9px; min-height: 40px; }
.rank-search:focus-within, .search-box:focus-within { border-color: #7497cd; box-shadow: 0 0 0 3px #245bb110; }
.rank-search input:focus-visible { outline: none; }
.rank-search .primary { min-height: 40px; padding: 7px 18px; font-size: .875rem; }
.ranking-extra { grid-column: 1/-1; margin-top: 10px; }
.ranking-extra>summary { color: #64758e; font-size: .75rem; padding: 8px 0; min-height: 38px; }
.ranking-extra>summary span { color: var(--blue); }
.ranking-extra-body { border-color: #e4eaf3; padding: 16px 0 6px; }
.ranking-filter-bottom { color: #5b6b84; }
.ranking-error { grid-column: 1/-1; }
.ranking-results { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 20px; padding: 17px 0 0; overflow: clip; box-shadow: 0 3px 8px #19385f03; }
.ranking-result-bar { padding: 0 24px; }
.ranking-result-bar h2 { font-size: 1rem; font-weight: 650; color: #223957; }
#rank-export { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; min-height: 38px; }
.ranking-results>#rank-note { margin: 5px 24px 14px; font-size: .75rem; color: #6a7890; }
.ranking-table-wrap { border: 0; border-top: 1px solid #e3eaf4; border-radius: 0; }
.ranking-table .rank-col { width: 80px; }
.ranking-table .time-col { width: 200px; }
.ranking-table .kind-col { width: 155px; }
.ranking-table .select-col { width: 72px; }
.ranking-table thead { background: #f0f4fa; color: #576b89; }
.ranking-table thead th { padding: 13px 20px; font-size: .75rem; font-weight: 600; }
.ranking-table thead small { color: #697c97; font-size: .625rem; margin-top: 2px; }
.ranking-table tbody td,.ranking-table tbody th { padding: 13px 20px; border-color: #edf0f5; }
.rank-record:nth-child(4n+3) { background: #fcfdff; }
.rank-record:hover { background: #f4f7fd; }
.rank-record.rank-selected { background: #edf3fd; }
.rank-record.rank-selected .rank-position { box-shadow: inset 3px 0 #2c61b2; }
.rank-number { color: #657690; font-size: .9375rem; font-weight: 600; }
.rank-number.rank-leading { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 6px; background: #eaf0fb; color: #2a58a1; }
.rank-position small { color: #6b7b93; margin-top: 2px; }
.rank-icon { border: 1px solid #e0e7f2; background: #edf2fa; color: #6681a3; border-radius: 9px; }
.rank-skill a { font-size: .9375rem; color: #263d5c; font-weight: 600; }
.rank-skill-meta { color: #72819a; font-size: .6875rem; }
.rank-speed button { color: #2454a1; }
.rank-speed strong { font-size: 1.3125rem; font-weight: 650; letter-spacing: -.01em; }
.rank-speed button>span:not(.rank-meter) { color: #6a7e9d; }
.rank-meter { height: 3px; background: #eaf0f8; max-width: 140px; }
.rank-meter i { background: #6f95d3; }
.rank-kind { background: #f0f3f8; color: #60728c; border-radius: 5px; }
.rank-kind.skill { background: #eef3fd; color: #4269a4; }
.ranking-table tbody .rank-detail-row>td { background: #f5f8fd; }
.rank-calculation { padding: 23px 26px; }
.rank-calculation p, .rank-calculation dt, .rank-calculation code { color: #5a6e8c; }
.rank-calculation p>span, .rank-calculation dd { color: #2c5594; }
.ranking-pagination { margin: 22px 16px 0; }
.ranking-footnote { border-top: 1px solid #e7ecf3; margin: 22px 0 0; padding: 17px 24px; background: #fbfcfe; font-size: .75rem; color: #697a92; }
.ranking-compare { border-color: #b8c9e2; box-shadow: 0 8px 35px #14366b22; }
#rank-selection button { background: #eef3fc; color: #386299; }

/* Query, detail and guide pages share the same typography and blue accents. */
.query-heading { margin-bottom: 25px; }
.query-heading h1, .guide-workspace h1 { font-size: 1.75rem; font-weight: 650; }
.query-heading p { color: var(--muted); font-size: .875rem; margin: 5px 0 0; }
.search-caption { color: #5e708c; font-size: .8125rem; }
.reference-note { color: #6b7b92; font-size: .75rem; }
.search-box { border-color: #d3dfed; border-radius: 10px; box-shadow: 0 3px 9px #1d396007; }
.quick-search button { background: #eaf0f9; color: #50729c; border-radius: 5px; }
.quick-search button:hover { background: #dee9f9; color: #245bb1; }
.library-nav button.active { color: #245bb1; border-color: #245bb1; }
.query-controls { padding: 12px 0 17px; border-bottom: 1px solid var(--line); }
.speed-filters select, .speed-range input, .display-panel select { color: #415d82; border-color: #d9e2ef; }
.computed-switch { color: #3e608c; }
.skill-card { border-color: var(--line); box-shadow: 0 2px 5px #18376003; }
.skill-card:hover { border-color: #abc1df; box-shadow: 0 5px 18px #18376009; }
.skill-card.is-selected { border-color: #6d95d0; box-shadow: inset 0 0 0 1px #6d95d0; }
.card-title .skill-name { color: #243d60; font-size: 1.125rem; font-weight: 650; }
.card-desc { color: #526680; }
.stats-row { background: #f5f7fb; border-radius: 8px; }
.stat b { color: #254d87; }
.speed-panel, .speed-guide { background: #f0f5fd; border-color: #d3e0f3; color: #285596; }
.speed-label>small, .speed-chevron, .speed-breakdown dt a, .speed-breakdown dt code, .speed-breakdown dt span, .speed-note, .speed-variants-note { color: #637da2; }
.speed-breakdown { border-color: #dce6f5; }
.speed-rule-link, .speed-panel-actions button, .speed-show-all, .speed-ids button { color: #3463a6; }
.speed-group-note, .speed-group-pending, .speed-bucket small, .speed-bucket span { color: #5f789b; }
.speed-bucket { border-color: #d9e3f1; }
.speed-reference { border-color: #cfddf1; background: #edf3fd; color: #3e6092; }
.speed-reference button, .speed-guide>summary { color: #3463a6; }
.speed-composition { background: #f5f8fd; border-color: #dce5f2; }
.composition-row.is-baseline { border-color: #8eabd4; }
.composition-total strong { color: #285596; }
.segment-0 { background: #20497e; }.segment-1 { background: #4276bd; }.segment-2 { background: #85a9dc; }.segment-3 { background: #abb8ca; }
.compare-table .derived-speed th, .compare-table .derived-speed td { background: #f0f5fd; }
.compare-table .derived-speed td>span { color: #285596; }
.guide-controls, .guide-navigation, .parameter-card, .guide-reading, .reasoning-item { border-color: var(--line); box-shadow: 0 2px 5px #19385f03; }
.guide-controls>input { border-color: #d1def0; }
.parameter-card:target { border-color: #7b9ed1; box-shadow: 0 0 0 3px #245bb112; }
.parameter-key { color: #315e9d; }
.parameter-card p { color: #526680; }
.guide-summary { color: #5c6e88; font-size: .9375rem; }
.confidence-高 { background: #eaf1fc; color: #3b619a; }

@media (max-width: 1000px) {
  .ranking-hero { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .ranking-heading { position: relative; }
  .ranking-rule { position: absolute; top: 0; right: 0; margin: 0; }
  .ranking-overview { border-top: 1px solid #ffffff25; padding: 19px 0 0; }
  .ranking-overview strong { font-size: 1.875rem; }
  .ranking-controls { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .ranking-types { width: 100%; }
  .ranking-types button { flex: 1; }
  .ranking-extra { margin-top: -6px; }
  .ranking-table .kind-col, .ranking-table .kind-cell { display: none; }
  .rank-mobile-kind { display: inline; }
}
@media (max-width: 650px) {
  .workspace, .header-inner { padding-left: 16px; padding-right: 16px; }
  .workspace { padding-top: 20px; padding-bottom: 38px; }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand { gap: 8px; font-size: .9375rem; letter-spacing: .015em; }
  .brand-symbol { width: 29px; height: 29px; padding: 6px; border-radius: 7px; }
  .header-nav { width: auto; gap: 2px; padding: 0; border: 0; }
  .header-nav a { padding: 8px 9px; font-size: .8125rem; }
  .nav-prefix { display: none; }
  .ranking-hero { padding: 22px; gap: 18px; border-radius: 11px; }
  .ranking-heading h1 { font-size: 1.5rem; margin: 9px 0 7px; }
  .ranking-heading .ranking-eyebrow { font-size: .625rem; letter-spacing: .035em; }
  .ranking-heading p { font-size: .75rem; }
  .ranking-rule { font-size: .625rem; gap: 7px; padding: 0; }
  .ranking-overview { padding-top: 16px; grid-template-columns: 1.15fr 1fr 1fr; }
  .ranking-overview>div { padding: 0 12px; }
  .ranking-overview span { font-size: .625rem; }
  #rank-snapshot { display: flex; flex-wrap: wrap; gap: 0 4px; }
#rank-snapshot>span { color: inherit; font: inherit; }
#rank-snapshot time { white-space: nowrap; }
.ranking-overview em { margin-left: 1px; }
  .ranking-overview strong { font-size: 1.5rem; margin: 5px 0; }
  .ranking-overview small { font-size: .625rem; }
  .ranking-reference { font-size: .75rem; margin: 12px 0 17px; }
  .ranking-controls { padding: 13px 14px 7px; border-radius: 10px; gap: 12px; }
  .ranking-types button { font-size: .8125rem; padding: 7px 9px; min-height: 44px; }
  .ranking-control-top { margin: 0; }
  .ranking-filters { gap: 9px; }
  .rank-search>svg { width: 16px; margin-left: 6px; }
  .rank-search input { font-size: .8125rem; padding-left: 7px; }
  .rank-search .primary { font-size: .8125rem; padding: 7px 13px; min-height: 44px; }
  .ranking-extra>summary { font-size: .75rem; min-height: 42px; }
  .ranking-results { margin-top: 18px; padding-top: 15px; border-radius: 10px; }
  .ranking-result-bar { padding: 0 14px; gap: 8px; }
  .ranking-result-bar h2 { font-size: .875rem; }
  #rank-export { font-size: .6875rem; gap: 5px; min-height: 36px; padding: 6px 9px; }
  #rank-export svg { width: 14px; }
  .ranking-results>#rank-note { margin: 8px 14px 14px; font-size: .6875rem; line-height: 1.85; }
  .ranking-table .rank-col { width: 38px; }.ranking-table .time-col { width: 96px; }.ranking-table .select-col { width: 42px; }
  .ranking-table thead th { padding: 11px 7px; font-size: .6875rem; white-space: nowrap; }
  .ranking-table tbody td, .ranking-table tbody th { padding: 13px 7px; }
  .ranking-table tbody .rank-check { padding: 0; }
  .rank-check label { min-width: 40px; }
  .rank-number { font-size: .8125rem; }
  .rank-number.rank-leading { min-width: 24px; height: 25px; border-radius: 5px; }
  .rank-position small { font-size: .5625rem; }
  .rank-icon { width: 30px; height: 30px; border-radius: 7px; }
  .rank-skill { gap: 8px; }
  .rank-skill a { font-size: .875rem; }
  .rank-skill-meta { font-size: .6875rem; margin-top: 4px; }
  .rank-mobile-kind { display: block; }
  .rank-speed strong { font-size: 1.0625rem; }
  .rank-speed button>span:not(.rank-meter) { margin-left: 3px; font-size: .625rem; }
  .rank-calculation { padding: 18px 16px; }
  .ranking-pagination { gap: 7px; margin: 18px 7px 0; }
  .ranking-pagination .quiet-button { font-size: .75rem; padding: 7px 9px; }
  .ranking-footnote { padding: 14px 16px; font-size: .6875rem; margin-top: 18px; }
  .page-footer, .filing-links { font-size: .6875rem; }
  .query-heading { margin-bottom: 19px; }
  .query-heading h1, .guide-workspace h1 { font-size: 1.5rem; }
  .query-heading p { font-size: .8125rem; }
  .guide-workspace .page-heading { gap: 10px; }
}
@media (max-width: 360px) {
  .workspace, .header-inner { padding-left: 12px; padding-right: 12px; }
  .header-nav a { padding-left: 6px; padding-right: 6px; font-size: .75rem; }
  .brand { font-size: .8125rem; gap: 6px; }
  .brand-symbol { width: 26px; height: 26px; }
  .ranking-hero { padding: 19px 16px; }
  .ranking-overview>div { padding-left: 8px; padding-right: 8px; }
  .ranking-overview strong { font-size: 1.3125rem; }
  .ranking-table .time-col { width: 88px; }.ranking-table .rank-col { width: 33px; }
  .rank-icon { display: none; }
  .rank-search>svg { display: none; }
  .rank-search input { font-size: .75rem; }
  .ranking-types button { font-size: .75rem; padding-left: 5px; padding-right: 5px; }
  .ranking-pagination { gap: 5px; }.ranking-pagination .quiet-button { padding-left: 7px; padding-right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
