.public-category-tool { width: 100%; min-width: 0; padding: 8px 0 28px; margin: 0 0 28px; border-bottom: 1px solid #d8e3df; scroll-margin-top: 100px; }
.category-tool-heading h2 { font-size: 24px; margin: 0 0 8px; }
.category-tool-heading p { color: #536761; font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.category-tool-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto; align-items: end; gap: 16px; }
.category-tool-form > div { min-width: 0; }
.category-tool-form label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.category-tool-form :is(input, select, button) { min-height: 46px; }
.category-tool-form input { width: 100%; min-width: 0; }
.category-tool-form .btn-success { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; white-space: normal; border-radius: 4px; }
.category-tool-form .btn-success:hover, .category-tool-form .btn-success:focus { color: #fff; }
.category-tool-feedback { min-height: 30px; padding-top: 8px; font-size: 14px; color: #536761; }
.category-tool-error, .category-tool-warning { padding: 12px 16px; margin: 8px 0 16px; line-height: 1.6; border-left: 3px solid #c43d4e; background: #fff4f5; }
.category-tool-warning { border-color: #b58312; background: #fff9e8; }
.category-output-heading, .category-candidate-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.public-category-tool .category-output-heading h3 { font-size: 20px; margin: 0; }
.category-output-heading { align-items: center; padding: 12px 0; border-top: 1px solid #d8e3df; }
.category-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid #adc1b8; border-radius: 4px; color: #087957; background: #fff; }
.category-icon-button:hover:not(:disabled) { background: #edf7f2; }
.category-icon-button:disabled { opacity: .45; }
.category-icon-button:focus-visible { outline: 3px solid #d4aa37; outline-offset: 2px; }
.category-empty { padding: 12px 0; color: #536761; }
.category-candidates { list-style: none; padding: 0; margin: 0; }
.category-candidates > li { padding: 16px 0; border-bottom: 1px solid #d8e3df; }
.public-category-tool .category-candidate-heading h4 { font-size: 18px; line-height: 1.5; margin: 4px 0 12px; overflow-wrap: anywhere; }
.category-candidates p { line-height: 1.6; margin: 0 0 8px; overflow-wrap: anywhere; }
.category-keywords, .category-caution { color: #536761; font-size: 14px; }
.category-raw { margin-top: 20px; }
.category-raw summary { font-weight: 600; cursor: pointer; }
.category-raw-actions { display: flex; justify-content: end; margin: 8px 0; }
.category-raw pre { padding: 16px; max-height: 400px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; background: #f3f7f5; border: 1px solid #d8e3df; border-radius: 4px; }
@media (max-width: 991px) {
  .category-tool-form { grid-template-columns: minmax(0, 1fr) minmax(160px, 220px); }
  .category-tool-form > button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 575px) {
  .category-tool-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .category-tool-form > button { width: 100%; }
}
