/* Claude provider and snapshot result layout. */
.sl-claude-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #cfd2d8;
  border-radius: 7px;
  background: #f4f1ec;
  color: #2d2926;
  font: 700 12px/1 system-ui, sans-serif;
}

.sl-claude-provider { min-width: 0; }

.slx-result,
.slx-result * { box-sizing: border-box; }

.slx-result {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.slx-result h2,
.slx-result h3,
.slx-result p,
.slx-result b,
.slx-result span,
.slx-result a,
.slx-result small {
  overflow-wrap: break-word;
}

.slx-provider-results {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}

.slx-provider-results > article {
  min-width: 0;
  height: 100%;
}

.slx-provider-results > article > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slx-prompt-result {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 16px !important;
  align-items: center !important;
}

.slx-prompt-result > div { min-width: 0; }
.slx-prompt-result > span { white-space: nowrap; }

.slx-source-list > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.slx-source-list > div > span { max-width: 100%; }

/* Always use one stable column. No wide nested grid, no clipping. */
.slx-result-convert {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 32px !important;
  border-radius: 22px !important;
  overflow: visible !important;
}

.slx-result-convert > div {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 760px;
  margin: 0 !important;
}

.slx-result-convert > div h3 {
  width: 100%;
  max-width: 680px;
  margin: 0 0 10px !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.slx-result-convert > div p {
  width: 100%;
  max-width: 700px;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.slx-result-convert > form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.slx-result-convert > form input,
.slx-result-convert > form button,
.slx-result-convert > a {
  box-sizing: border-box;
  min-height: 58px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

.slx-result-convert > form input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 18px !important;
}

.slx-result-convert > form button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 190px !important;
  padding: 0 22px !important;
  white-space: normal !important;
  text-align: center;
}

.slx-result-convert > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 22px !important;
  text-align: center;
  white-space: normal !important;
}

@media (max-width: 820px) {
  .slx-provider-results {
    grid-template-columns: 1fr !important;
  }

  .slx-prompt-result {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .slx-prompt-result > span { white-space: normal; }

  .slx-result-convert {
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .slx-result-convert > form {
    grid-template-columns: 1fr !important;
  }

  .slx-result-convert > form button {
    min-width: 0 !important;
  }
}
