.hero + #tempo-bloku {
  padding-block-start: clamp(16px, 3vw, 44px);
}

.tempo-page {
  padding-block: clamp(42px, 8vw, 94px) clamp(56px, 8vw, 104px);
}
.tempo-heading {
  margin-block-end: clamp(24px, 4vw, 42px);
}
.tempo-heading .back-link {
  width: fit-content;
  margin-block-end: clamp(18px, 3vw, 34px);
}
.tempo-heading h1 {
  max-width: 900px;
  margin: 0;
  font: 400 clamp(38px, 6.6vw, 82px)/1.03 var(--font, system-ui);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.tempo-heading h1 span {
  color: var(--ui-accent);
}
.tempo-heading p {
  max-width: 640px;
  margin: 17px 0 0;
  color: var(--ui-muted);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.65;
}

[data-block-tempo] {
  --tempo-kaspa-accent: var(--ui-accent, #a5f2d7);
  --tempo-kaspa-gradient: linear-gradient(110deg, var(--ui-a), var(--ui-b), var(--ui-c));
  --tempo-rule: color-mix(in srgb, var(--ui-b) 16%, #263242);
  --tempo-muted: var(--ui-muted);
  --tempo-track-bg: color-mix(in srgb, var(--ui-b) 9%, #192634);
  --tempo-label-width: 182px;
  --tempo-result-width: 176px;
  --tempo-unit-width: 74px;
  --tempo-column-gap: 18px;
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}
body[data-ambience-palette=spectrum] [data-block-tempo] {
  --tempo-kaspa-gradient: linear-gradient(110deg, var(--ui-a), #6689e7, var(--ui-b), #60d3b6, #aede75, #f6d174, var(--ui-c));
}
[data-block-tempo] [hidden] { display: none !important; }
[data-block-tempo] :is(button, summary, input[type=checkbox]) { cursor: pointer; }
[data-block-tempo] :is(button, summary, a) { -webkit-tap-highlight-color: transparent; }
.tempo-console {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--tempo-rule);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 10% 0, color-mix(in srgb, var(--ui-a) 15%, transparent), transparent 48%),
    radial-gradient(ellipse at 94% 0, color-mix(in srgb, var(--ui-c) 9%, transparent), transparent 55%),
    var(--ui-bg);
  box-shadow: 0 28px 76px #0005;
}
.tempo-console::before {
  content: "";
  position: absolute;
  inset: 0 28% auto;
  height: 1px;
  background: var(--tempo-kaspa-gradient);
  opacity: .75;
  pointer-events: none;
}
.tempo-toolbar, .tempo-controls, .tempo-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px 16px;
  padding-inline: clamp(12px, 3vw, 32px);
}
.tempo-toolbar { padding-block: 20px 14px; }
.tempo-controls { padding-block: 0 14px; }
.tempo-modes, .tempo-filter, .tempo-live-views {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.tempo-modes, .tempo-live-views {
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--tempo-rule);
  border-radius: 11px;
  background: #0a1119a0;
}
.tempo-console :is(button, summary) {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--tempo-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tempo-console :is(button, summary):hover {
  color: var(--ui-text);
  border-color: var(--tempo-rule);
  background: var(--ui-hover);
}
.tempo-console button[aria-pressed=true] {
  color: var(--ui-text);
  border-color: color-mix(in srgb, var(--ui-accent) 34%, var(--tempo-rule));
  background: var(--ui-selected);
}
.tempo-modes button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding-inline: 12px;
  text-align: start;
}
.tempo-view-label {
  padding-inline-start: 6px;
  color: var(--tempo-muted);
  font-size: 12px;
}
.tempo-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.tempo-modes button[aria-pressed=true] .tempo-mode-dot {
  color: var(--tempo-kaspa-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tempo-kaspa-accent) 50%, transparent);
}
.tempo-select { position: relative; z-index: 3; }
.tempo-select summary, .tempo-method summary { list-style-position: inside; }
.tempo-select summary {
  border-color: var(--tempo-rule);
  padding: 9px 10px;
  white-space: nowrap;
}
.tempo-select summary span {
  color: var(--ui-accent);
  margin-inline-start: 4px;
}
.tempo-network-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 255px;
  padding: 7px;
  border: 1px solid var(--tempo-rule);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ui-b) 8%, var(--ui-bg));
  box-shadow: 0 14px 38px #0009;
}
.tempo-network-option {
  display: grid;
  grid-template-columns: 17px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 37px;
  padding: 5px 7px;
  color: var(--ui-text);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
.tempo-network-option:hover { background: var(--ui-hover); }
.tempo-network-option input { margin: 0; }
.tempo-network-option small { color: var(--tempo-muted); font-size: 10px; }
.tempo-filter-label {
  margin-inline-end: 4px;
  color: var(--tempo-muted);
  font-size: 12px;
}
.tempo-stage {
  border-block: 1px solid var(--tempo-rule);
  padding: 15px clamp(12px, 3vw, 32px) 0;
  background: #080f16a0;
}
.tempo-stage-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-block-end: 12px;
  color: var(--tempo-muted);
  font-size: 11px;
}
.tempo-stage-meta span:first-child { color: var(--ui-accent); }
.tempo-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-block-end: 13px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--tempo-kaspa-accent) 25%, var(--tempo-rule));
  border-radius: 8px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--tempo-kaspa-accent) 8%, transparent), transparent 78%);
}
.tempo-focus > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.tempo-focus span {
  color: var(--tempo-muted);
  font-size: 12px;
}
.tempo-focus strong {
  color: var(--tempo-kaspa-accent);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.tempo-note {
  margin: 0 0 12px;
  color: var(--tempo-muted);
  font-size: 11px;
  line-height: 1.45;
}
.tempo-chart {
  min-height: 86px;
}
.tempo-scale {
  display: grid;
  grid-template-columns: minmax(0, var(--tempo-label-width)) minmax(0, 1fr) minmax(0, var(--tempo-result-width));
  align-items: center;
  gap: 4px var(--tempo-column-gap);
  padding-block-end: 7px;
  color: var(--tempo-muted);
  font-size: 11px;
}
.tempo-axis {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}
.tempo-row {
  --tempo-series-color: var(--tempo-series);
  --tempo-series-label: color-mix(in srgb, var(--tempo-series-color) 82%, white);
  display: grid;
  grid-template-columns: minmax(0, var(--tempo-label-width)) minmax(0, 1fr) minmax(0, var(--tempo-result-width));
  align-items: center;
  gap: 5px var(--tempo-column-gap);
  min-height: 56px;
  padding-block: 7px;
  border-top: 1px solid color-mix(in srgb, var(--tempo-rule) 60%, transparent);
}
.tempo-row[data-network=kaspa] {
  --tempo-series-color: var(--tempo-kaspa-accent);
  --tempo-series-label: var(--tempo-kaspa-accent);
  --tempo-series-fill: var(--tempo-kaspa-gradient);
}
.tempo-network-name { min-width: 0; }
.tempo-network-name a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.25;
}
.tempo-network-name a:hover { color: var(--ui-accent); }
.tempo-network-name a i {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tempo-series-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--tempo-series-color) 60%, transparent);
}
.tempo-network-name > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  margin-block-start: 3px;
}
.tempo-network-name b, .tempo-network-name small {
  color: var(--tempo-muted);
  font-size: 10px;
  font-weight: 400;
}
.tempo-network-name b {
  color: var(--tempo-series-label);
}
.tempo-result { min-width: 0; text-align: end; }
.tempo-result div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tempo-unit-width);
  align-items: baseline;
  column-gap: 7px;
}
.tempo-result strong {
  justify-self: end;
  white-space: nowrap;
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.04em;
}
.tempo-result small { text-align: start; }
.tempo-result :is(small, span) { color: var(--tempo-muted); font-size: 10px; line-height: 1.2; }
.tempo-result span { display: block; margin-block-start: 3px; }
.tempo-row[data-quality=error] .tempo-result span { color: #f4b5a9; }
.tempo-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--tempo-track-bg);
}
.tempo-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #7691af40 calc(25% - 1px) 25%);
}
.tempo-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--tempo-series-fill, var(--tempo-series-color));
  transform: scaleX(var(--tempo-fill, 0));
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(.2, .75, .2, 1);
}
[data-tempo-mode=replay] .tempo-fill { transition: transform 145ms linear; }
.tempo-empty {
  margin: 0;
  padding-block: 24px 30px;
  color: var(--tempo-muted);
  font-size: 14px;
}
.tempo-empty p { margin: 0; }
.tempo-empty button { margin-block-start: 10px; }
.tempo-replay {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 13px;
  padding-block: 0 10px;
  margin-block-end: 12px;
  border-bottom: 1px solid var(--tempo-rule);
}
.tempo-replay :is(output, input) { font-size: 12px; }
.tempo-replay output { color: var(--tempo-muted); white-space: nowrap; }
.tempo-scrubber { display: flex; align-items: center; min-width: 0; }
.tempo-scrubber input { width: 100%; min-height: 40px; margin: 0; }
.tempo-console .tempo-action {
  background: var(--ui-fill);
  border-color: var(--tempo-rule);
  color: var(--ui-text);
}
.tempo-legend {
  justify-content: flex-start;
  padding-block: 12px;
  color: var(--tempo-muted);
  font-size: 11px;
}
.tempo-console .tempo-share { margin-inline-start: auto; border-color: var(--tempo-rule); }
.tempo-method {
  margin-block-start: 14px;
  padding: 12px clamp(12px, 3vw, 28px);
  border: 1px solid var(--tempo-rule);
  border-radius: 10px;
  background: #0b131caa;
}
.tempo-method summary { width: fit-content; min-height: 28px; color: var(--ui-text); font-size: 13px; }
.tempo-method p {
  max-width: 78ch;
  color: var(--tempo-muted);
  font-size: 13px;
  line-height: 1.65;
}
.tempo-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 2px 6px;
}
.tempo-source-list a { color: var(--ui-accent); font-size: 12px; }
.tempo-source-list a:hover { text-decoration: underline; }
.tempo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 720px) {
  [data-block-tempo] { --tempo-label-width: 132px; --tempo-result-width: 148px; --tempo-column-gap: 10px; }
  .tempo-network-name a { font-size: 13px; }
}
@media (max-width: 535px) {
  .tempo-toolbar { display: grid; align-items: start; justify-content: stretch; }
  .tempo-modes { display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; }
  .tempo-modes button { justify-content: center; }
  .tempo-select { width: fit-content; }
  .tempo-network-options { right: auto; left: 0; min-width: min(255px, 72vw); }
  .tempo-toolbar, .tempo-controls { gap: 7px; }
  .tempo-controls { align-items: flex-start; }
  .tempo-console :is(button, summary) { min-height: 40px; }
  .tempo-filter { gap: 2px; }
  .tempo-filter-label { margin-inline-end: 2px; }
  .tempo-filter button { padding-inline: 7px; }
  .tempo-scale { grid-template-columns: minmax(0, 1fr); }
  .tempo-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--tempo-result-width));
    padding-block: 9px;
  }
  .tempo-track { grid-column: 1 / -1; grid-row: 2; margin-block-start: 2px; }
  .tempo-result { grid-column: 2; grid-row: 1; }
  .tempo-network-name > span { margin-block-start: 2px; }
  .tempo-legend { gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tempo-console :is(button, summary), [data-block-tempo] .tempo-fill { transition: none; }
}
