/* Studio check: metronome and dance floor */
.studio-check .tool__panel select,
.studio-check .tool__panel input { min-width: 64px; width: 100%; }

.sc-head { display: flex; gap: 1rem; align-items: center; }
.metronome { flex: 0 0 auto; width: 52px; height: 70px; color: var(--brand); }
.metronome path, .metronome line, .metronome rect {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
}
.metronome rect { fill: currentColor; }
.metronome__arm {
  transform-box: view-box;
  transform-origin: 30px 63px;
  animation: sc-swing 0.9s ease-in-out infinite alternate;
}
@keyframes sc-swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@media (prefers-reduced-motion: reduce) { .metronome__arm { animation: none; } }

.floor-stack {
  display: grid;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.85rem;
}
.floor-stack span { padding: 0.45rem 0.75rem; }
.floor-stack__top {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.floor-stack.is-wood .floor-stack__top {
  background: repeating-linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 14%, var(--surface)) 0 22%,
    color-mix(in srgb, var(--brand) 24%, var(--surface)) 22% 23%);
}
.floor-stack.is-unknown .floor-stack__top {
  background: var(--surface);
  border-bottom-style: dashed;
  color: var(--muted);
}
.floor-stack__mid {
  background: repeating-linear-gradient(90deg, var(--surface) 0 10px,
    color-mix(in srgb, var(--ink) 8%, var(--surface)) 10px 12px);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.floor-stack__base { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); color: var(--muted); }

.sc-list li { align-items: flex-start; gap: 1rem; }
.sc-list li span:first-child { flex: 0 0 5.5rem; color: var(--muted); }
.sc-list li span:last-child { text-align: left; }

.rate-scale {
  position: relative;
  height: 14px;
  margin: 1.25rem 0 0.6rem;
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
  border-radius: 999px;
}
.rate-scale span { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.rate-scale__full { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.rate-scale__avg { background: color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.rate-scale__typ { background: var(--brand); }
.rate-scale__marker {
  width: 4px; top: -6px !important; bottom: -6px !important;
  margin-left: -2px;
  background: var(--ink);
  border-radius: 2px !important;
}
.rate-legend { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: var(--muted); }
.rate-legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0.2rem 0; }
.rate-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.rate-legend .k-typ { background: var(--brand); }
.rate-legend .k-avg { background: color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.rate-legend .k-full { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }

/* Affiliate link contrast on the tinted box */
aside.aff-box a[rel~="sponsored"] { color: #8f1f38; }

/* Studio check: keep the form beside the taller result card */
.studio-check { align-items: start; }
@media (min-width: 900px) {
  .studio-check .tool__panel { position: sticky; top: 24px; align-self: start; }
}

/* Shop grid: even rows, cards stretch, View link pinned to the bottom */
[data-lg-revenue="affiliate"] .data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
@media (min-width: 900px) {
  [data-lg-revenue="affiliate"] .data-grid { grid-template-columns: repeat(6, 1fr); }
  [data-lg-revenue="affiliate"] .data-grid > .data-card { grid-column: span 2; }
  [data-lg-revenue="affiliate"] .data-grid > .data-card:nth-child(n+4) { grid-column: span 3; }
}
[data-lg-revenue="affiliate"] .data-card { display: flex; flex-direction: column; }
[data-lg-revenue="affiliate"] .data-card__go { margin-top: auto; padding-top: 0.75rem; }
.shop-more { margin-top: 24px; margin-bottom: 8px; }

@media (max-width: 480px) {
  .sc-head { align-items: flex-start; }
  .metronome { width: 40px; height: 54px; }
  .sc-list li { flex-direction: column; gap: 0.2rem; }
  .sc-list li span:first-child { flex: none; }
}