/* Reserve the hero before upgrade; the shared band owns its background and border. */
s-reservoir-sampling-hero {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.odds {
  table-layout: fixed;
  text-align: center;
}

.odds td {
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
}

.odds .hold {
  color: var(--color-text-data-dark-blue);
}

.odds .replace {
  color: var(--color-text-data-red);
}

s-card > .odds {
  margin: 0;
  border: 0;
  border-radius: 0;
}

s-card > .odds thead {
  clip-path: none;
}

.widget-body {
  padding: var(--space-4);
}

.widget-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.widget-controls s-button:last-child {
  margin-inline-start: auto;
}

.widget-controls s-slider {
  width: 100%;
}

.log-widget .widget-controls {
  flex-wrap: nowrap;
  gap: var(--space-4);
}

.log-widget .widget-controls s-button {
  flex: none;
}

.log-widget s-speed-slider {
  flex: 1;
}

.log-display {
  position: relative;
}

.flush-cycle {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  width: max-content;
  min-width: var(--space-9);
  max-width: 100%;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.flush-cycle[hidden] {
  display: none;
}

.log-chart {
  position: relative;
}

.log-rate {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  padding: var(--space-2);
  padding-inline-start: calc(var(--space-2) - var(--border-width-thin));
  --badge-font-size: var(--type-caption-size);
  font-family: var(--font-family-code);
}

.log-panels {
  display: flex;
  flex-direction: column;
}

.log-panels s-spark-lines {
  border-top: var(--border-width-thin) solid var(--color-border-separator);
  box-sizing: border-box;
}

s-card-reservoir-sample {
  max-width: var(--layout-panel-max-width);
  margin-inline: auto;
}
