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

.sg-card {
  max-width: 1000px;
}
.sg-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2) var(--space-6);
}
.sg-opts .enc-ctl .segmented {
  min-width: 9rem;
}
.sg-max {
  width: 8rem;
}
.sg-max .field input {
  width: 100%;
  font-family: var(--font-mono);
}
.sg-checks {
  margin-bottom: var(--space-4);
}
.sg-pane-stat {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.sg-card .enc-pane .textarea {
  min-height: 9rem;
  max-height: 24rem;
}
.sg-card .enc-pane #sg-out {
  word-break: break-all;
}
.sg-card .enc-pane #sg-out.is-multi {
  white-space: pre;
  overflow: auto;
  word-break: normal;
  overflow-wrap: normal;
  min-height: 14rem;
}
.sg-card .enc-pane #sg-in.is-multi,
.sg-card.is-multi .enc-pane .textarea {
  min-height: 14rem;
}

/* Sample URL */
.sg-url {
  margin-top: var(--space-4);
}
.sg-url .field-label {
  display: block;
  padding-top: 0;
}
.sg-preview {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-field);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
  min-height: 2.75rem;
}
.sg-base {
  color: var(--color-muted);
}
.sg-slug {
  color: var(--color-ink);
  font-weight: var(--weight-bold);
}
.sg-slug.is-ph {
  color: var(--color-muted);
  font-weight: var(--weight-regular, 400);
  opacity: 0.7;
}
.sg-len {
  min-height: 1.25rem;
  margin: var(--space-2) var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.sg-actions {
  align-items: center;
}
.sg-actions .sg-spacer {
  flex: 1;
}

@media (max-width: 720px) {
  .sg-card .enc-panes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .sg-opts .enc-ctl:first-child {
    width: 100%;
  }
  .sg-opts .segmented {
    display: flex;
    width: 100%;
  }
  .sg-opts .segmented button {
    flex: 1 1 0;
    min-width: 0;
  }
  .sg-actions .sg-spacer {
    display: none;
  }
}
