.holyprof-source-locator-admin {
    max-width: 960px;
}

.holyprof-source-locator-form {
    margin-top: 20px;
}

.holyprof-source-locator-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.holyprof-source-locator-field {
    flex: 1 1 320px;
}

.holyprof-source-locator-field input,
.holyprof-source-locator-field select {
    width: 100%;
    min-height: 40px;
}

.holyprof-source-locator-field-select {
    flex: 0 1 180px;
}

.holyprof-source-locator-actions {
    flex: 0 0 auto;
}

.holyprof-source-locator-actions .button {
    min-height: 40px;
    padding: 0 18px;
}

.holyprof-source-locator-results {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.holyprof-source-locator-results h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.holyprof-source-locator-results-count {
    margin: -4px 0 16px;
    color: #50575e;
    font-size: 13px;
    font-weight: 600;
}

.holyprof-source-locator-section + .holyprof-source-locator-section {
    margin-top: 22px;
}

.holyprof-source-locator-section-title {
    margin: 0 0 12px;
    font-size: 14px;
}

.holyprof-source-locator-notice {
    padding: 12px 14px;
    border-left: 4px solid #2271b1;
    background: #f6f7f7;
    margin-bottom: 16px;
}

.holyprof-source-locator-notice-warning {
    border-left-color: #dba617;
    background: #fff8e5;
}

.holyprof-source-locator-results-list {
    display: grid;
    gap: 16px;
}

.holyprof-source-locator-settings-list {
    display: grid;
    gap: 12px;
}

.holyprof-source-locator-setting-item {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
    overflow: hidden;
}

.holyprof-source-locator-setting-item.is-best-match,
.holyprof-source-locator-result-group.is-best-match {
    border-color: #8c8f94;
    box-shadow: 0 0 0 2px #f0f6fc;
}

.holyprof-source-locator-setting-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e2e4e7;
}

.holyprof-source-locator-setting-meta {
    padding: 14px 18px;
    background: #fcfcfc;
}

.holyprof-source-locator-setting-meta p {
    margin: 0 0 8px;
}

.holyprof-source-locator-setting-meta p:last-child {
    margin-bottom: 0;
}

.holyprof-source-locator-setting-note {
    color: #50575e;
}

.holyprof-source-locator-setting-action {
    margin-top: 12px;
}

.holyprof-source-locator-callback-file {
    margin: 0 0 8px;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
}

.holyprof-source-locator-helper-tips {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
}

.holyprof-source-locator-helper-tips ul {
    margin: 0;
    padding-left: 18px;
}

.holyprof-source-locator-helper-tips li + li {
    margin-top: 6px;
}

.holyprof-source-locator-result-group {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
    overflow: hidden;
}

.holyprof-source-locator-result-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e2e4e7;
}

.holyprof-source-locator-result-heading h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.holyprof-source-locator-result-path {
    margin: 6px 0 0;
    color: #50575e;
    word-break: break-word;
}

.holyprof-source-locator-result-source {
    margin: 6px 0 0;
    color: #0a4b78;
    font-size: 12px;
    font-weight: 600;
}

.holyprof-source-locator-result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.holyprof-source-locator-file-badge,
.holyprof-source-locator-match-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.holyprof-source-locator-file-badge {
    color: #0a4b78;
    background: #dff2ff;
}

.holyprof-source-locator-file-badge-menu {
    color: #614200;
    background: #fff1c2;
}

.holyprof-source-locator-file-badge-source {
    color: #1d4f2a;
    background: #dff7e5;
}

.holyprof-source-locator-file-badge-best {
    color: #7a2e0b;
    background: #ffe2d1;
}

.holyprof-source-locator-file-badge-confidence-exact {
    color: #0b5c18;
    background: #d7f5dc;
}

.holyprof-source-locator-file-badge-confidence-likely {
    color: #5d4100;
    background: #fff0bf;
}

.holyprof-source-locator-file-badge-confidence-possible {
    color: #5a2f93;
    background: #efe3ff;
}

.holyprof-source-locator-file-badge-match-type {
    color: #5b3000;
    background: #ffe8c7;
}

.holyprof-source-locator-match-count {
    color: #3c434a;
    background: #f0f0f1;
}

.holyprof-source-locator-copy-path,
.holyprof-source-locator-copy-button {
    min-height: 28px;
    padding: 0 10px;
}

.holyprof-source-locator-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.holyprof-source-locator-related-evidence {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e4e7;
}

.holyprof-source-locator-related-evidence-item + .holyprof-source-locator-related-evidence-item {
    margin-top: 14px;
}

.holyprof-source-locator-related-evidence-path {
    display: inline-block;
    margin: 0 0 8px;
    word-break: break-word;
}

.holyprof-source-locator-match-rows {
    display: grid;
}

.holyprof-source-locator-match-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.holyprof-source-locator-match-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 18px;
    border-top: 1px solid #f0f0f1;
}

.holyprof-source-locator-match-row:first-child {
    border-top: 0;
}

.holyprof-source-locator-line-number {
    padding-top: 4px;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
}

.holyprof-source-locator-result-snippet {
    margin: 0;
    padding: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f6f7f7;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.holyprof-source-locator-result-snippet mark {
    padding: 0 2px;
    background: #ffef8a;
}

.holyprof-source-locator-notice p,
.holyprof-source-locator-results .description {
    margin: 0;
}

#holyprof-source-locator-results.is-loading {
    opacity: 0.7;
}

#holyprof-source-locator-form button[disabled] {
    cursor: wait;
}

@media (max-width: 782px) {
    .holyprof-source-locator-result-header {
        padding: 14px;
    }

    .holyprof-source-locator-match-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .holyprof-source-locator-line-number {
        padding-top: 0;
    }
}
