:root {
  --paper: #edf1f5;
  --paper-deep: #dce4ec;
  --ink: #10151c;
  --ink-soft: #59636f;
  --line: rgba(16, 21, 28, .19);
  --coral: #ed5b43;
  --lime: #c7f35a;
  --blue: #3f70e8;
  --night: #11171f;
  --muted-night: #28323e;
  --body: var(--ks-body);
  --display: var(--ks-display);
  --radar-grid: #c7d2de;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.radar-shell { max-width: 1480px; margin: 0 auto; padding: 0 38px; overflow: hidden; }
.radar-header { position: relative; }
.radar-brand { color: var(--ink); }
.radar-brand b { color: var(--coral); }
.radar-header-title { color: var(--ink); }
.radar-header-title span, .section-index, .aside-label, .hero-kicker { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.radar-header-title strong { font: 800 18px/1 var(--display); letter-spacing: 0; }
.quiet-link { font-size: 12px; font-weight: 700; text-decoration: none; }
.quiet-link:hover { color: var(--coral); }

.radar-hero { padding: 72px 0 0; }
.hero-kicker { display: flex; align-items: center; gap: 9px; }
.hero-kicker i { display: inline-block; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 80px; align-items: end; padding: 25px 0 62px; }
.hero-grid h1 { max-width: 760px; margin: 0 0 30px; font: 800 78px/.92 var(--display); letter-spacing: 0; }
h1 em, h2 em, h3 em { color: var(--coral); font-style: normal; }
.hero-summary { max-width: 520px; margin: 0 0 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.solid-button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 180px; padding: 15px 17px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-decoration: none; }
.solid-button:hover { background: var(--coral); color: var(--ink); }
.quiet-link { border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.hero-aside { max-width: 300px; justify-self: end; padding: 24px 0 24px 25px; border-left: 2px solid var(--coral); }
.aside-label { margin: 0 0 18px; }
.aside-number { color: var(--coral); font: 800 66px/.8 var(--display); letter-spacing: 0; }
.aside-number span { margin-left: 7px; color: var(--ink-soft); font-size: 13px; letter-spacing: .04em; }
.hero-aside > p:not(.aside-label):not(.aside-small) { margin: 25px 0; font: 800 19px/1.35 var(--display); }
.aside-rule { height: 1px; margin: 0 0 18px; background: var(--line); }
.aside-small { max-width: 235px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats > div { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px 18px 0; border-right: 1px solid var(--line); }
.hero-stats > div + div { padding-left: 22px; }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { font: 800 35px/.9 var(--display); letter-spacing: 0; }
.hero-stats span { margin-top: 10px; color: var(--ink-soft); font-size: 11px; }
.hero-stats .hero-updated { align-items: end; text-align: right; }
.hero-updated strong { font-size: 18px; }

.data-notice { margin: 24px 0 -10px; padding: 14px 16px; border-left: 3px solid var(--blue); background: rgba(79, 120, 255, .08); color: #27468f; font-size: 12px; line-height: 1.6; }
.content-section { padding: 104px 0 0; }
.section-topline { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .65fr); gap: 50px; align-items: end; margin-bottom: 34px; }
.section-index { margin: 0 0 18px; color: var(--coral); }
.section-topline h2, .social-heading h2 { margin: 0; font: 800 49px/.94 var(--display); letter-spacing: 0; }
.section-note { max-width: 355px; justify-self: end; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.control-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; }
.segmented { display: inline-flex; border: 1px solid var(--ink); }
.segment-button { min-height: 35px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.segment-button + .segment-button { border-left: 1px solid var(--ink); }
.segment-button.is-active { background: var(--ink); color: var(--paper); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 220px; border-bottom: 1px solid var(--ink); }
.search-field input { width: 100%; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field span { color: var(--coral); font-weight: 800; }
.table-frame { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.model-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; }
.model-table th { padding: 13px 13px 12px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.model-table td { padding: 15px 13px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.model-table tbody tr:hover { background: rgba(199, 243, 90, .24); }
.model-table .rank-cell { width: 55px; padding-left: 5px; color: var(--coral); font: 800 19px/.9 var(--display); }
.model-table .number-cell { text-align: right; }
.model-table td.number-cell { font-variant-numeric: tabular-nums; }
.model-table th small { font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.model-name { font-weight: 800; }
.model-slug { display: block; margin-top: 4px; color: var(--ink-soft); font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.creator-cell { color: var(--ink-soft); }
.score-cell { font-weight: 800; }
.price-missing { color: #918d82; }
.price-ready { color: var(--ink); font-weight: 700; }
.verified-cell { color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.verified-cell.is-pending { color: var(--coral); }
.table-footnote { display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; color: var(--ink-soft); font-size: 11px; }
.table-footnote b { color: var(--ink); }
.empty-state { padding: 22px 0; color: var(--ink-soft); font-size: 13px; }

.model-table th, .model-table td { font-variant-numeric: tabular-nums; }
.model-table th:nth-child(2), .model-table th:nth-child(3) { color: var(--blue); }

.price-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 56px; align-items: start; }
.chart-panel { min-width: 0; padding: 20px 20px 16px; background: var(--night); color: var(--paper); }
.chart-caption { display: flex; justify-content: space-between; gap: 20px; color: #aaa69b; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.price-chart { display: grid; gap: 12px; padding: 25px 0 18px; }
.price-bar-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 70px; gap: 10px; align-items: center; min-height: 28px; }
.price-bar-name { overflow: hidden; color: var(--paper); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.price-bar-track { display: flex; width: 100%; height: 24px; background: var(--muted-night); }
.price-segment { height: 100%; min-width: 2px; }
.price-segment.input { background: var(--coral); }
.price-segment.cache { background: var(--lime); }
.price-segment.output { background: var(--blue); }
.price-bar-total { color: var(--paper); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 13px; border-top: 1px solid rgba(240, 236, 226, .2); color: #aaa69b; font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; display: inline-block; }
.legend-input { background: var(--coral); }
.legend-cache { background: var(--lime); }
.legend-output { background: var(--blue); }
.price-aside { padding: 23px 0 0 25px; border-left: 2px solid var(--blue); }
.price-aside h3 { margin: 25px 0 20px; font: 800 31px/.95 var(--display); letter-spacing: 0; }
.price-aside > p:not(.aside-label) { max-width: 245px; margin: 0 0 26px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }

.reports-section { padding-bottom: 110px; }
.report-list { border-top: 2px solid var(--ink); }
.report-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 170px 80px; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.report-item:hover { background: rgba(202, 255, 85, .18); }
.report-number { color: var(--coral); font: 800 23px/.9 var(--display); }
.report-title { margin: 0 0 9px; font: 800 19px/1.2 var(--display); }
.report-summary { max-width: 600px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.report-condition { margin: 9px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.report-meta { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.report-meta strong { display: block; color: var(--ink); font-size: 12px; }
.report-link { justify-self: end; color: var(--coral); font-size: 12px; font-weight: 800; text-decoration: none; }
.report-link:hover { color: var(--ink); }
.sample-tag { display: inline-block; margin-left: 7px; padding: 3px 5px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .05em; vertical-align: 3px; }

.social-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding: 70px 0 100px; border-top: 1px solid var(--line); }
.social-heading p:last-child { max-width: 300px; margin: 24px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.social-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.social-copy-box, .image-text-box { min-width: 0; padding: 22px; background: var(--night); color: var(--paper); }
.image-text-box { background: var(--lime); color: var(--ink); }
.copy-box-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid rgba(240, 236, 226, .25); color: #aaa69b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.image-text-box .copy-box-head { border-color: rgba(18, 18, 16, .22); color: var(--ink-soft); }
.copy-button { padding: 6px 8px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.copy-button:hover { background: var(--coral); color: var(--ink); }
.social-copy-box pre { min-height: 210px; margin: 18px 0; white-space: pre-wrap; font: 13px/1.8 var(--body); }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px; color: var(--lime); font-size: 11px; }
.hashtags span { padding: 5px 7px; border: 1px solid rgba(202, 255, 85, .45); }
.image-texts { min-height: 210px; margin: 18px 0; padding: 0 0 0 25px; font: 800 18px/1.25 var(--display); }
.image-texts li { padding: 11px 0 12px 5px; border-bottom: 1px solid rgba(18, 18, 16, .2); }
.image-note { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

.radar-footer { display: flex; justify-content: space-between; gap: 40px; padding: 32px 0 45px; border-top: 1px solid var(--line); }
.radar-footer p { max-width: 290px; margin: 17px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; align-items: end; gap: 9px; color: var(--ink-soft); font-size: 11px; text-align: right; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--coral); }

@media (max-width: 950px) {
  .radar-shell { padding: 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-aside { justify-self: start; max-width: none; width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats .hero-updated { grid-column: 1 / -1; align-items: start; border-top: 1px solid var(--line); text-align: left; }
  .hero-stats .hero-updated strong { font-size: 18px; }
  .price-layout, .social-section { grid-template-columns: 1fr; gap: 35px; }
  .price-aside { padding-top: 0; }
  .social-grid { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 620px) {
  .radar-shell { padding: 0 16px; }
  .radar-brand { font-size: 16px; }
  .radar-hero { padding-top: 55px; }
  .hero-grid { padding-bottom: 45px; }
  .hero-grid h1 { font-size: 54px; }
  .hero-summary { font-size: 14px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div, .hero-stats > div + div { min-height: 90px; padding: 15px 12px 15px 0; }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(3) { padding-left: 0; }
  .hero-stats .hero-updated { grid-column: 1 / -1; }
  .hero-stats strong { font-size: 30px; }
  .content-section { padding-top: 75px; }
  .section-topline { display: block; margin-bottom: 27px; }
  .section-topline h2, .social-heading h2 { font-size: 41px; }
  .section-note { margin-top: 20px; font-size: 12px; }
  .control-row { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .price-bar-row { grid-template-columns: 95px minmax(0, 1fr) 52px; gap: 6px; }
  .price-bar-name, .price-bar-total { font-size: 10px; }
  .chart-panel { padding: 16px 12px 13px; }
  .chart-caption { display: block; line-height: 1.8; }
  .chart-caption span { display: block; }
  .report-item { grid-template-columns: 31px minmax(0, 1fr); gap: 14px; }
  .report-meta, .report-link { grid-column: 2; justify-self: start; }
  .report-link { margin-top: -3px; }
  .reports-section { padding-bottom: 76px; }
  .social-section { padding: 60px 0 75px; gap: 28px; }
  .social-grid { grid-template-columns: 1fr; }
  .social-copy-box, .image-text-box { padding: 17px; }
  .radar-footer { display: block; }
  .footer-links { align-items: start; margin-top: 35px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* AA-inspired data views: overview first, then the detailed table/chart. */
.ranking-overview,
.price-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.aa-highlight {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid rgba(16, 21, 28, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 21, 28, .04);
}

.aa-highlight::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--highlight-color, var(--blue));
}

.aa-highlight p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.aa-highlight strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font: 800 28px/1 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-highlight span {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-violet { --highlight-color: #7847ee; }
.highlight-blue { --highlight-color: var(--blue); }
.highlight-orange { --highlight-color: #ff7139; }
.highlight-green { --highlight-color: #2aa968; }

.control-row {
  margin-bottom: 12px;
  padding: 12px 0;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-count {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.table-frame {
  overflow-x: auto;
  border: 1px solid rgba(16, 21, 28, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 21, 28, .035);
}

.model-table {
  min-width: 980px;
}

.model-table thead {
  background: #f7f8fa;
}

.model-table th {
  padding-top: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(16, 21, 28, .1);
  color: var(--ink-soft);
  font-size: 10px;
}

.model-table th small {
  display: inline-block;
  margin-top: 4px;
  color: #8b949d;
  font-size: 9px;
}

.model-table td {
  padding-top: 17px;
  padding-bottom: 17px;
  border-top-color: rgba(16, 21, 28, .08);
}

.model-table tbody tr:hover {
  background: #f5f7ff;
}

.score-cell {
  min-width: 140px;
  text-align: right;
}

.score-value {
  display: block;
  font-weight: 800;
}

.score-track {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ebf0;
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7847ee;
}

.price-overview {
  margin-bottom: 20px;
}

.price-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  gap: 18px;
}

.chart-panel {
  padding: 21px 22px 18px;
  border: 1px solid rgba(16, 21, 28, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(16, 21, 28, .035);
}

.chart-caption {
  color: var(--ink-soft);
  font-weight: 700;
}

.price-chart {
  gap: 15px;
  padding-top: 29px;
}

.price-bar-name {
  color: var(--ink);
}

.price-bar-track {
  height: 28px;
  background: repeating-linear-gradient(to right, #edf0f4 0, #edf0f4 1px, transparent 1px, transparent 20%);
  box-shadow: inset 0 0 0 1px rgba(16, 21, 28, .06);
}

.price-segment.input { background: #ff7139; }
.price-segment.cache { background: #2aa968; }
.price-segment.output { background: #7847ee; }
.price-bar-total { color: var(--ink); }

.chart-legend {
  border-top-color: rgba(16, 21, 28, .1);
  color: var(--ink-soft);
}

.legend-input { background: #ff7139; }
.legend-cache { background: #2aa968; }
.legend-output { background: #7847ee; }

.price-aside {
  padding: 22px 20px;
  border: 1px solid rgba(16, 21, 28, .12);
  border-left: 3px solid #7847ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 21, 28, .035);
}

.price-aside h3 {
  margin-top: 27px;
}

@media (max-width: 950px) {
  .price-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ranking-overview,
  .price-overview { grid-template-columns: 1fr; gap: 10px; }
  .aa-highlight { min-height: 105px; }
  .aa-highlight p { margin-bottom: 13px; }
  .aa-highlight strong { font-size: 25px; }
  .control-group { justify-content: space-between; }
  .table-count { font-size: 10px; }
  .table-frame { border-radius: 9px; }
  .chart-panel { padding-inline: 14px; }
}

/* Vertical comparison charts: the chart leads, the table remains the detail view. */
.ranking-chart-panel {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 28, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 21, 28, .035);
}

.ranking-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(16, 21, 28, .1);
}

.ranking-chart-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-chart-title-block > span {
  color: var(--ink-soft);
  font-size: 10px;
}

.ranking-chart-head > span {
  white-space: nowrap;
}

.ranking-metric-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ranking-metric-title i {
  width: 16px;
  height: 16px;
  background: #7847ee;
}

.ranking-metric-title strong {
  font: 400 25px/1 Georgia, 'Times New Roman', serif;
}

.ranking-chart-head > span,
.ranking-chart-foot {
  color: var(--ink-soft);
  font-size: 10px;
}

.ranking-chart-frame {
  overflow-x: auto;
  padding: 0 14px;
}

.ranking-chart {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 1130px;
  height: 330px;
  padding: 14px 10px 0;
}

.ranking-chart::before,
.price-chart::before {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 218px;
  content: '';
  pointer-events: none;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #dfe5eb calc(25% - 1px), #dfe5eb 25%);
}

.ranking-bar-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.ranking-bar-stage {
  display: flex;
  flex: 0 0 220px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.ranking-bar-fill {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 29px;
  min-height: 10%;
  padding-bottom: 8px;
  border-radius: 4px 4px 0 0;
  background: var(--bar-color);
  box-shadow: 0 3px 8px rgba(16, 21, 28, .12);
}

.ranking-bar-fill b {
  color: #fff;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.ranking-bar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 7px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.ranking-bar-label,
.price-bar-label {
  display: block;
  width: 84px;
  height: 63px;
  margin-top: 9px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.05;
  text-align: left;
  text-overflow: ellipsis;
  transform: rotate(-55deg);
  transform-origin: 12px 0;
}

.ranking-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 15px;
}

.ranking-chart-foot span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.chart-caption-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-metric-title {
  color: var(--ink);
  font: 400 25px/1 Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
  text-transform: none;
}

.chart-caption-main > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.chart-legend {
  padding-top: 18px;
  border-top: 0;
  color: var(--ink);
  font-size: 11px;
}

.price-chart {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 700px;
  height: 360px;
  overflow-x: auto;
  padding: 24px 12px 0;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(20% - 1px), #dfe5eb calc(20% - 1px), #dfe5eb 20%);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 65%;
}

.price-chart::before {
  top: 24px;
  height: 214px;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), rgba(223, 229, 235, .7) calc(25% - 1px), rgba(223, 229, 235, .7) 25%);
}

.price-bar-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 58px;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.price-bar-total {
  display: block;
  min-height: 24px;
  color: var(--ink);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.price-bar-stage {
  display: flex;
  flex: 0 0 220px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid rgba(16, 21, 28, .14);
}

.price-bar-stack {
  display: flex;
  flex-direction: column;
  width: 38px;
  min-height: 4px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: #e8edf2;
}

.price-segment {
  display: block;
  width: 100%;
  min-height: 1px;
}

.price-segment.input { background: #ff7139; }
.price-segment.cache { background: #2aa968; }
.price-segment.output { background: #7847ee; }

.price-bar-label {
  width: 76px;
  height: 65px;
  margin-top: 10px;
}

.price-bar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 7px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.03em;
}

@media (max-width: 620px) {
  .ranking-chart-head { display: block; }
  .ranking-chart-head > span { display: block; margin-top: 10px; line-height: 1.5; }
  .ranking-chart-frame { padding-inline: 8px; }
  .ranking-chart { min-width: 1130px; height: 320px; }
  .ranking-chart-foot { display: block; padding-inline: 14px; line-height: 1.6; }
  .ranking-chart-foot span { display: block; }
  .ranking-chart-foot span + span { margin-top: 4px; }
  .chart-caption { display: block; line-height: 1.6; }
  .chart-caption > span:last-child { display: block; margin-top: 9px; }
  .price-chart { min-width: 700px; height: 350px; padding-inline: 8px; }
  .price-chart::before { right: 8px; left: 8px; }
}
