/* Remove Duplicate Lines: styles for this page only. The page frame, bar, panes and buttons come from encoders.css and tools.css. */

.rd-card {
  max-width: 1100px;
}
.rd-pane-stat {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.rd-card .enc-pane .textarea {
  min-height: 16rem;
  max-height: 28rem;
  white-space: pre;
  overflow: auto;
  word-break: normal;
  overflow-wrap: normal;
}
.rd-actions {
  align-items: center;
}
.rd-actions .rd-spacer {
  flex: 1;
}

/* Counts */
.rd-stats {
  margin-top: var(--space-4);
}
.rd-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.rd-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-field);
  min-width: 0;
}
.rd-num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.rd-lbl {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Most repeated lines */
.rd-top {
  margin-top: var(--space-6);
}
.rd-top .field-label {
  display: block;
  margin: 0;
  padding-top: 0;
}
.rd-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.rd-top-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.25rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-field);
}
.rd-top-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink);
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-top-text.is-blank {
  font-family: var(--font);
  font-style: italic;
  color: var(--color-muted);
}
.rd-top-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

@media (max-width: 720px) {
  .rd-card .enc-panes {
    grid-template-columns: minmax(0, 1fr);
  }
  .rd-card .enc-pane .textarea {
    min-height: 12rem;
  }
}
@media (max-width: 480px) {
  .rd-card .enc-ctl {
    width: 100%;
  }
  .rd-card .enc-ctl .segmented {
    display: flex;
    min-width: 0;
    width: 100%;
  }
  .rd-card .enc-ctl .segmented button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--space-1);
    white-space: normal;
    line-height: 1.2;
  }
  .rd-tile {
    padding: var(--space-2) var(--space-3);
  }
  .rd-num {
    font-size: var(--text-md);
    overflow-wrap: normal;
  }
}
