/* The overview: four quiet sections, each answering one question about where pie stands. */
.overview {
  flex: 1;
  overflow: auto;
}

/* panels are drawn, not filled: a hairline rounded outline on the plain page */
.model-card,
.heat-table {
  border: 1px solid var(--color-panel-outline);
  background: none;
}

.overview[hidden],
.filter-bar[hidden],
.table-container[hidden] {
  display: none;
}

.overview-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px var(--edge) 48px;
}

/* the pop-ups as one row on the left: Mac, then workload */
.overview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: -8px;
}

/* the pop-ups are the release picker; they keep their label even where the toolbar's hides it */
.overview-popup {
  color: var(--color-label);
  font: inherit;
  font-size: 13px;
}

.overview-popup .release-picker-label {
  display: inline;
}

/* a section: a bold title, a grey caption, then the chart */
.overview-section {
  margin-top: 48px;
}

.overview-controls + .overview-section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.section-caption,
.figure-caption {
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-label-secondary);
}

/* 1. where we stand: an activity ring, and beside it the median advantage and its trend, centred as one unit */
.standing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.ring {
  position: relative;
  flex: none;
  width: 220px;
  height: 220px;
}

.ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* the Fitness rings: a faint track of each ring's own hue under its arc */
.fit-track,
.fit-arc {
  fill: none;
}

.fit-track {
  opacity: .16;
}

.fit-arc {
  stroke-linecap: round;
}

.fit-arc.is-lap {
  filter: url(#fit-shadow);
}

.fit-track.fit-leads { stroke: var(--color-engine-pie); }
.fit-track.fit-decode { stroke: var(--color-ring-decode); }
.fit-track.fit-prefill { stroke: var(--color-ring-prefill); }
.fit-track.is-behind { stroke: var(--color-negative); }
.fit-arc.fit-leads { stroke: url(#fit-leads); }
.fit-arc.fit-decode { stroke: url(#fit-decode); }
.fit-arc.fit-prefill { stroke: url(#fit-prefill); }
.fit-arc.is-behind { stroke: url(#fit-behind); }

.stand-side {
  display: grid;
  flex: none;
  gap: 22px;
}

.stand-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label-secondary);
}

.stand-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.stand-value span {
  color: var(--color-label-tertiary);
}

.stand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.stand-dot.fit-leads { background: var(--color-engine-pie); }
.stand-dot.fit-decode { background: var(--color-ring-decode); }
.stand-dot.fit-prefill { background: var(--color-ring-prefill); }
.stand-dot.is-behind { background: var(--color-negative); }

.figure.is-ahead {
  color: var(--color-positive);
}

.figure.is-behind {
  color: var(--color-negative);
}

.figure.is-empty {
  color: var(--color-label-tertiary);
}

.stand-value.is-empty {
  color: var(--color-label-tertiary);
}

/* the release trend: its own block, as tall as the ring, as wide as the content column */
.trend-block {
  width: 100%;
}

.figure {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.figure {
  font-size: 30px;
}

/* 2. against each engine: a grid of small activity rings, centred, the Decode | Prefill switch above */
.heatmap {
  display: grid;
  gap: 28px;
}

.heat-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* an Apple inset table: a small grey group title, then a rounded card of rows */
.heat-group-title {
  margin: 0 0 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-label-secondary);
}

.heat-table {
  padding: 4px 16px;
  border-radius: 12px;
}

/* every row shares the columns: the model name flush left, then one even column per engine */
.heat-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) repeat(var(--engines), minmax(0, 1fr));
  align-items: center;
  column-gap: 8px;
}

.heat-row + .heat-row {
  border-top: .5px solid var(--color-separator);
}

/* side by side: Decode and Prefill share the model names, a hairline between the two groups */
.heat-group-row + .heat-head-row {
  border-top: 0;
}

.heat-group-head {
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-label-secondary);
  text-align: center;
}

.is-wide .heat-row {
  column-gap: 0;
}

.is-wide .is-group-start {
  border-left: .5px solid var(--color-separator);
}

.is-wide .heat-head-row {
  min-height: 30px;
}

/* the wide table on roomy screens; the two stacked tables where eight columns would crowd */
.heat-stacked {
  display: none;
}

.heat-stacked {
  gap: 28px;
}

@media (max-width: 760px) {
  .heat-wide {
    display: none;
  }

  .heat-stacked {
    display: grid;
  }
}

.heat-head-row {
  min-height: 36px;
}

.heat-head {
  font-size: 12px;
  color: var(--color-label-secondary);
  text-align: center;
  white-space: nowrap;
}

.heat-label {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.heat-cell-svg {
  display: block;
  overflow: visible;
}

.heat-row-nofit {
  grid-column: 2 / -1;
  gap: 8px;
}

.heat-empty {
  fill: var(--color-label-quaternary);
}

/* a setup too big for this Mac: a hairline "no entry" mark, never a colour */
.nofit-mark {
  fill: none;
  stroke: var(--color-label-tertiary);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nofit-text {
  font-size: 13px;
  color: var(--color-label-secondary);
}

.mini-track,
.mini-arc {
  fill: none;
}

.mini-track {
  stroke: var(--color-label-quaternary);
  opacity: .6;
}

.mini-track.is-ahead {
  stroke: var(--color-positive);
  opacity: .16;
}

.mini-track.is-behind {
  stroke: var(--color-negative);
  opacity: .16;
}

.mini-arc {
  stroke-linecap: round;
}

.mini-arc.is-ahead {
  stroke: url(#heat-ahead);
}

.mini-arc.is-behind {
  stroke: url(#heat-behind);
}

.heat-stop-ahead-start {
  stop-color: var(--color-heat-ahead-start);
}

.heat-stop-ahead-end {
  stop-color: var(--color-positive);
}

.heat-stop-behind-start {
  stop-color: var(--color-heat-behind-start);
}

.heat-stop-behind-end {
  stop-color: var(--color-negative);
}

.mini-value {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.01em;
  fill: var(--color-label);
  pointer-events: none;
}

.mini-value.is-even {
  fill: var(--color-label-secondary);
}

/* 3. by model: calm cards, one big number each, lollipops */
/* the model gallery: one card in full view, the next peeking in, snapping card to card */
.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > .model-card {
  flex: 0 0 min(620px, 86%);
  scroll-snap-align: start;
}

.carousel-track:focus-visible > .model-card {
  box-shadow: 0 0 0 2px var(--color-accent-tint);
}

/* page dots in the middle, round paddles on the right, like an Apple gallery */
.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 18px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-fill);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-label-tertiary);
  transition: width .25s ease, background-color .25s ease;
}

.carousel-dot.is-current {
  width: 24px;
  background: var(--color-label);
}

.carousel-paddles {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}

.carousel-paddle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-fill);
  color: var(--color-label);
}

.carousel-paddle:disabled {
  color: var(--color-label-quaternary);
}

.carousel-paddle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dot:focus-visible,
.carousel-paddle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.model-card {
  padding: 20px 22px 22px;
  border-radius: 16px;
}

.model-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label-secondary);
}

.model-card-charts {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.model-card-charts:empty {
  display: none;
}

.lollipop-chart {
  margin: 0;
}

.lollipop-chart figcaption {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-label);
}

.lollipop-chart figcaption span {
  font-weight: 400;
  color: var(--color-label-tertiary);
}

/* one engine per row: name, a thin stem ending in a dot from a shared baseline, the value right-aligned */
.lollipop-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  height: 22px;
}

.lollipop-label {
  overflow: hidden;
  font-size: 12px;
  color: var(--color-label-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lollipop-row.is-primary .lollipop-label,
.lollipop-row.is-primary .lollipop-value {
  color: var(--color-label);
}

.lollipop {
  display: block;
  overflow: visible;
}

.lollipop line {
  stroke: var(--color-lollipop-other);
  stroke-width: 2;
  stroke-linecap: round;
}

.lollipop circle {
  fill: var(--color-lollipop-other);
}

.lollipop-row.is-primary line {
  stroke: var(--color-engine-pie);
}

.lollipop-row.is-primary circle {
  fill: var(--color-engine-pie);
}

.lollipop-row.is-stale .lollipop {
  opacity: .45;
}

.lollipop-nofit {
  font-size: 12px;
  color: var(--color-label-tertiary);
}

.lollipop-row.is-nofit .lollipop-label {
  color: var(--color-label-tertiary);
}

.lollipop-value {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--color-label-secondary);
  text-align: right;
  white-space: nowrap;
}

/* the release trend beside the ring: one thin line, a dot per tag */
.trend {
  display: block;
  overflow: visible;
}

.trend-parity {
  stroke: var(--color-separator);
  stroke-width: 1;
}

.trend-tag {
  font-size: 12px;
  fill: var(--color-label-secondary);
}

.trend-line {
  stroke: var(--color-engine-pie);
  stroke-width: 2;
  stroke-linecap: round;
}

.trend-hit {
  fill: transparent;
}

.trend-dot {
  fill: var(--color-engine-pie);
  stroke: var(--color-background);
  stroke-width: 2;
}

.trend-value {
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-label);
}

.overview-footnote,
.overview-empty,
.overview-none {
  margin: 24px 2px 0;
  font-size: 12px;
  color: var(--color-label-tertiary);
}

.overview-none {
  margin-top: 40px;
  font-size: 15px;
}

.overview-empty {
  padding: 60px var(--edge);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 480px) {
  .standing {
    gap: 28px;
  }

  .ring {
    width: 168px;
    height: 168px;
  }

  .stand-value {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .overview-popup .release-picker-label {
    display: none;
  }

  .model-card {
    padding: 18px 18px 20px;
  }

  .carousel-paddles {
    display: none;
  }

  .heat-table {
    padding: 4px 10px;
  }

  .heat-row {
    grid-template-columns: minmax(96px, 1.3fr) repeat(var(--engines), minmax(0, 1fr));
    column-gap: 2px;
  }

  .heat-label {
    font-size: 12px;
  }
}

.chart-tooltip {
  position: fixed;
  z-index: 20;
  max-width: 260px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--color-menu);
  box-shadow: var(--shadow-menu);
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-label);
  white-space: pre-line;
  pointer-events: none;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.chart-tooltip[hidden] {
  display: none;
}

/* the method page: one outlined card per topic, drawn like the overview panels, never filled */
.method {
  flex: 1;
  overflow: auto;
}

.method[hidden] { display: none; }

.method-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px var(--edge) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.method-head { grid-column: 1 / -1; margin: 0 0 20px; }

/* Two columns that stack independently: each card follows the one above it in its own column */
.method-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.method-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.method-head h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--color-label);
}

.method-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-label-secondary);
  margin: 0;
  max-width: 680px;
}

.method-lede + .method-lede { margin-top: 12px; }

.method-pane {
  border: 1px solid var(--color-panel-outline);
  border-radius: 14px;
  background: none;
  padding: 28px 32px 30px;
  margin: 0;
}

.method-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 0 14px;
  fill: none;
  stroke: var(--color-label-secondary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-pane h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--color-label);
}

.method-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-label-secondary);
  margin: 8px 0 0;
  max-width: 560px;
}

.method-pane-body { margin: 22px 0 0; }

.method-pane-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-label-secondary);
}

.method-pane-body > * { margin: 0; }
.method-pane-body > * + * { margin-top: 18px; }
.method-pane-body > .method-subhead + * { margin-top: 4px; }

.method-formula {
  padding: 14px 0;
  text-align: center;
}

/* a code-editor strip: dark whatever the theme, monospaced, sized to the formula */
.method-formula-text {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #111214;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1);
  color: #d4d4d4;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.method-formula-text .op {
  color: #808080;
  padding: 0 .15em;
}

.method-formula-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-label-secondary);
  margin-top: 6px;
}

.method-subhead {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label-secondary);
}

.method-rows {
  list-style: none;
  padding: 0;
}

.method-rows li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 0;
}

.method-rows li + li { border-top: .5px solid var(--color-separator); }
.method-rows li:first-child { padding-top: 0; }
.method-rows li:last-child { padding-bottom: 0; }

.method-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-label);
}

.method-row-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-label-secondary);
}

.method-pane-body .method-footnote { font-size: 13px; }

@media (max-width: 760px) {
  .method-inner { padding: 32px var(--edge) 64px; }
  /* one column: the cards return to reading order */
  .method-cols { display: flex; flex-direction: column; }
  .method-col { display: contents; }
  .method-head h1 { font-size: 32px; }
  .method-pane { padding: 22px 20px 24px; }
  .method-pane h2 { font-size: 23px; }
}

.welcome-banner {
  position: relative;
  height: 280px;
  margin: 0 0 32px;
  border-radius: 18px;
  background:
    radial-gradient(60% 90% at 12% 20%, rgba(64, 132, 255, .95), transparent 70%),
    radial-gradient(45% 80% at 38% 85%, rgba(34, 211, 238, .85), transparent 70%),
    radial-gradient(40% 70% at 58% 30%, rgba(110, 231, 183, .8), transparent 70%),
    radial-gradient(45% 80% at 78% 75%, rgba(253, 186, 116, .85), transparent 70%),
    radial-gradient(50% 90% at 95% 15%, rgba(232, 121, 249, .9), transparent 70%),
    linear-gradient(120deg, #3b5bfd, #a855f7);
}

.welcome-intro { margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* the intro's call to action: Apple's blue pill, a chevron after the words */
.welcome-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: #0071e3;
  cursor: pointer;
  transition: background .15s ease;
}

.welcome-cta:hover { background: #0077ed; }
.welcome-cta:active { background: #006edb; }
.welcome-cta:focus-visible { outline: 3px solid rgba(0, 113, 227, .4); outline-offset: 2px; }
.welcome-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .welcome-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.welcome-tagline {
  margin: -4px 0 16px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-label);
}

.welcome-trust h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}


/* Apple-style pair: a filled primary pill and a frosted secondary one */
.welcome-banner-actions {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 10px;
}

.welcome-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .45);
  backdrop-filter: blur(14px) saturate(1.6);
  transition: background .15s ease, transform .15s ease;
}

.welcome-banner-link svg { width: 14px; height: 14px; fill: currentColor; }
.welcome-banner-link:hover { background: rgba(255, 255, 255, .28); }
.welcome-banner-link:active { transform: scale(.97); }

.welcome-banner-link.is-primary {
  color: #1d1d1f;
  background: #fff;
  box-shadow: none;
}

.welcome-banner-link.is-primary:hover { background: rgba(255, 255, 255, .88); }

/* the banner's message, above its buttons: an eyebrow, a headline, one line */
.welcome-banner-copy {
  position: absolute;
  left: 28px;
  top: 26px;
  color: #fff;
}

.welcome-banner-eyebrow {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .4);
}

.welcome-banner-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(30, 20, 90, .25);
}

.welcome-banner-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  opacity: .9;
}

.welcome-banner-link svg.is-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-sign {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-label-secondary);
}

/* the welcome's message and Pie sections read wider than the method page's lede */
.welcome-trust .method-lede { max-width: 920px; }

.welcome-pie { margin-top: 20px; }

.welcome-version {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #6e6e73;
  background: #f2f2f7;
}

/* a section's mark beside its title */
.section-heading { display: flex; align-items: center; gap: 12px; }

.section-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
}

.section-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a section's tools: the view switch beside its picker */
.section-tools { display: flex; align-items: center; gap: 14px; }

.view-toggle {
  display: inline-flex;
  height: 24px;
  padding: 2px;
  border-radius: 7px;
  background: var(--color-fill);
}

.view-toggle button {
  position: relative;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-label);
  background: transparent;
  cursor: pointer;
}

/* a hairline between two unselected segments, as AppKit draws it */
.view-toggle button + button:not(.is-active)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--color-separator);
}

.view-toggle button.is-active + button::before,
.view-toggle button.is-active::before { display: none; }

.view-toggle button.is-active {
  background: var(--color-card);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .15);
}

/* the bars view: a row per model or Mac, Decode and Prefill side by side */
.bars-table {
  border: .5px solid var(--color-panel-outline);
  border-radius: 14px;
  padding: 4px 20px;
}

.bars-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 28px;
  padding: 16px 0;
}

.bars-row + .bars-row { border-top: .5px solid var(--color-separator); }

.bars-label { font-size: 13px; color: var(--color-label); padding-top: 18px; }
.bars-note, .bars-empty { font-size: 13px; color: var(--color-label-tertiary); align-self: center; }
.bars-note { grid-column: 2 / -1; }

.bars-head {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-label-secondary);
}

.bars-head span { font-weight: 400; color: var(--color-label-tertiary); }

.bars-line {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  align-items: center;
  gap: 10px;
  height: 20px;
  font-size: 12px;
  color: var(--color-label-secondary);
}

.bars-track { height: 6px; border-radius: 3px; background: var(--color-fill); overflow: hidden; }
.bars-fill { display: block; height: 100%; border-radius: 3px; background: var(--color-lollipop-other); }
.bars-value { text-align: right; font-variant-numeric: tabular-nums; }
.bars-line.is-primary { color: var(--color-label); font-weight: 600; }
.bars-line.is-primary .bars-fill { background: var(--color-engine-pie); }

@media (max-width: 760px) {
  .bars-row { grid-template-columns: 1fr; gap: 12px; }
  .bars-label { padding-top: 0; }
}

/* the data's age, quiet on the far side of the pickers */
.overview-updated {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-label-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* quality ranking: one column per model, its mean accuracy, best first */
.rank-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 28px;
  height: 280px;
  padding: 24px 28px 16px;
  border: .5px solid var(--color-panel-outline);
  border-radius: 14px;
}

.rank-col {
  flex: 1;
  max-width: 120px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rank-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-label); }
.rank-chart { position: relative; padding-left: 52px; }
.rank-axis { position: absolute; left: 16px; font-size: 11px; color: var(--color-label-tertiary, var(--color-label-secondary)); font-variant-numeric: tabular-nums; }
.rank-axis-top { top: 48px; }
.rank-axis-bottom { bottom: 50px; }
.rank-bar { position: relative; flex: 1; width: 44px; border-radius: 8px; background: var(--color-fill); }
.rank-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px; background: linear-gradient(180deg, rgba(90, 200, 250, .55), rgba(10, 132, 255, .55)); }
.rank-range { position: absolute; left: 50%; width: 2px; margin-left: -1px; background: var(--color-label); z-index: 1; }
.rank-range::before, .rank-range::after { content: ""; position: absolute; left: -6px; width: 14px; height: 2px; background: var(--color-label); }
.rank-range::before { top: 0; }
.rank-range::after { bottom: 0; }
.rank-mark { position: absolute; left: -8px; right: -8px; height: 3px; margin-bottom: -1.5px; border-radius: 2px; background: var(--color-engine-pie); box-shadow: 0 0 0 2px var(--color-background); }
.rank-value.is-quiet { color: var(--color-label-secondary); }
.rank-value { color: var(--color-engine-pie); }
.rank-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 12px; color: var(--color-label-secondary); }
.rank-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rank-legend i { display: inline-block; }
.rank-legend .is-bar { width: 10px; height: 10px; border-radius: 3px; background: rgba(10, 132, 255, .55); }
.rank-legend .is-range { width: 2px; height: 12px; background: var(--color-label); }
.rank-legend .is-mark { width: 14px; height: 4px; border-radius: 2px; background: var(--color-engine-pie); }
.rank-name { font-size: 12px; color: var(--color-label-secondary); text-align: center; line-height: 1.3; }

/* release history: a quiet disclosure at the foot of the overview */
.history-details { margin-top: 32px; }

.history-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  user-select: none;
}

.history-details > summary::-webkit-details-marker { display: none; }

.history-details > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}

.history-details[open] > summary::after { transform: rotate(45deg); }
.history-details[open] > .overview-section { margin-top: 20px; }

/* release history: a legend of Macs above their lines */
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 12px; color: var(--color-label-secondary); }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 8px; height: 8px; border-radius: 50%; }
.trend-end { font-size: 12px; font-weight: 600; }

/* against the best: a bar per Mac, half the track is parity, green past it and red short of it */
.best-bars .best-line .bars-track { position: relative; }
.best-bars .best-line .bars-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--color-separator); }
.best-bars .best-line.is-ahead .bars-fill { background: var(--color-ahead, #30d158); }
.best-bars .best-line.is-behind .bars-fill { background: var(--color-behind, #ff453a); }
.best-bars .best-line.is-ahead .bars-value { color: var(--color-ahead, #30d158); }
.best-bars .best-line.is-behind .bars-value { color: var(--color-behind, #ff453a); }
.best-head { line-height: 1.25; white-space: nowrap; }
.best-head span { color: var(--color-label-tertiary, var(--color-label-secondary)); }
.best-bars .best-line { grid-template-columns: 112px 1fr 48px; }
.best-bars .best-line .bars-name { white-space: nowrap; }

/* Welcome and Inferlets share pie-project.org's measure: 1080px of content inside 22px margins */
@media (min-width: 900px) {
  #welcome .method-inner,
  #inferlets .method-inner { max-width: calc(1080px + 2 * 22px); padding-left: 22px; padding-right: 22px; }
}
