/* Shared polish for standalone tool pages. Keeps the newer tools visually consistent. */
body {
  overflow-x: hidden;
}

.hero,
.tool-panel,
.card,
.grid-card,
.lane,
.tool-card,
.tool-mini-card {
  min-width: 0;
  overflow: hidden;
}

.breadcrumbs,
.hero p,
.card p,
.grid-card p,
.lane p,
.tool-card p,
.tool-mini-card p,
.tool-list li,
.tool-empty,
.tool-kv,
.hint,
.status {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tool-panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.tool-form {
  align-items: stretch;
}

.tool-input,
.tool-select,
.select,
.input {
  width: 100%;
}

.tool-button,
.btn,
.btn-link {
  white-space: normal;
  text-align: center;
  text-decoration: none;
}

.tool-button:hover,
.btn-primary:hover {
  filter: brightness(.98);
  text-decoration: none;
}

.btn-secondary:hover,
.btn-link:hover {
  background: #cfe0ff;
  text-decoration: none;
}

.tool-result-grid,
.tool-stack,
.grid,
.queue-list,
.history-list {
  align-items: stretch;
}

.tool-card strong,
.tool-mini-card strong,
.queue-item strong,
.history-item strong {
  max-width: 100%;
}

.tool-section {
  padding-top: 2px;
}

.tool-section + .tool-section {
  margin-top: 26px;
}

footer a {
  font-weight: 700;
}

@media (max-width: 720px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-row,
  .result-actions,
  .url-picker-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-link,
  .tool-button {
    width: 100%;
  }

  .queue-item,
  .history-item {
    grid-template-columns: 1fr;
  }
}
