.btop-prohibition {
    --btop-check-ink: #17294b;
    --btop-check-muted: #4d5f7c;
    --btop-check-blue: #164fca;
    --btop-check-border: #dbe5f6;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--btop-check-border);
    border-radius: 14px;
    background: #f2f6fd;
    color: var(--btop-check-ink);
}

.btop-prohibition-heading,
.btop-prohibition-heading > div,
.btop-prohibition-controls,
.btop-prohibition-actions,
.btop-prohibition-filters,
.btop-prohibition-references {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.btop-prohibition-heading,
.btop-prohibition-controls {
    justify-content: space-between;
}

.btop-prohibition-heading {
    margin-bottom: 12px;
}

.btop-prohibition-heading h2 {
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #1883ea;
    color: var(--btop-check-ink);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
}

.btop-prohibition p {
    margin: 0;
}

.btop-prohibition-heading p,
.btop-prohibition-controls small,
.btop-prohibition-results > p {
    color: var(--btop-check-muted);
    font-size: 13px;
}

.btop-prohibition a {
    color: var(--btop-check-blue);
    font-size: 13px;
    font-weight: 600;
}

.btop-prohibition a:hover {
    text-decoration: underline;
}

.btop-prohibition-layout {
    display: grid;
    grid-template-columns: minmax(145px, 186px) minmax(0, 1fr);
    gap: 12px;
}

.btop-prohibition-metrics,
.btop-prohibition-form {
    padding: 14px;
    border: 1px solid var(--btop-check-border);
    border-radius: 10px;
}

.btop-prohibition-metrics {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-color: #b9d0fa;
    background: linear-gradient(135deg, #dceaff, #edf4ff);
    color: var(--btop-check-blue);
    font-size: 14px;
}

.btop-prohibition-metrics strong {
    font-size: 32px;
    line-height: 1;
}

.btop-prohibition-metrics small {
    color: var(--btop-check-muted);
}

.btop-prohibition-form {
    min-width: 0;
    margin: 0;
    background: #fff;
}

.btop-prohibition-form label {
    margin: 0 0 6px;
    color: var(--btop-check-ink);
    font-weight: 650;
}

.btop-prohibition-input-header,
.btop-prohibition-imports {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btop-prohibition-input-header {
    justify-content: space-between;
    margin-bottom: 8px;
}

#btop-prohibition-heading {
    scroll-margin-top: 85px;
}

.btop-prohibition-input-header > label,
.btop-prohibition-form .btop-prohibition-upload {
    margin: 0;
}

.btop-prohibition-form .btop-prohibition-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid #c1d3f2;
    border-radius: 7px;
    background: #fff;
    color: #2356a4;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.btop-prohibition-form .btop-prohibition-upload.is-image {
    border-color: #aec8f2;
    background: #eaf2ff;
    color: #18488f;
}

.btop-prohibition-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.btop-prohibition-upload:hover {
    text-decoration: underline;
}

.btop-prohibition-upload:focus-within {
    outline: 2px solid #1768db;
    outline-offset: 2px;
}

.btop-prohibition-upload:has(input:disabled) {
    opacity: .64;
    cursor: wait;
}

.btop-prohibition-form .btop-prohibition-ocr-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--btop-check-muted);
    font-size: 13px;
    font-weight: 500;
}

.btop-prohibition-ocr-choice input {
    accent-color: var(--btop-check-blue);
}

.btop-prohibition .btop-prohibition-import-status:not(:empty) {
    margin: 0 0 8px;
    color: #2356a4;
    font-size: 13px;
    font-weight: 650;
}

.btop-prohibition textarea {
    display: block;
    width: 100%;
    min-height: 74px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #bdcde7;
    border-radius: 7px;
    background: #fff;
    color: var(--btop-check-ink);
    font-size: 14px;
    resize: vertical;
}

.btop-prohibition textarea.is-file-over {
    outline: 2px dashed #1768db;
    outline-offset: -3px;
    background: #eaf2ff;
}

.btop-prohibition button {
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid #c1d3f2;
    border-radius: 7px;
    background: #fff;
    color: var(--btop-check-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btop-prohibition button[type="submit"],
.btop-prohibition button[aria-pressed="true"] {
    border-color: var(--btop-check-blue);
    background: var(--btop-check-blue);
    color: #fff;
}

.btop-prohibition button:disabled {
    opacity: .64;
    cursor: default;
}

.btop-prohibition :is(button, a, textarea, summary):focus-visible {
    outline: 2px solid #1768db;
    outline-offset: 2px;
}

.btop-prohibition [hidden] {
    display: none !important;
}

.btop-prohibition-status:not(:empty) {
    margin-top: 10px;
    font-weight: 650;
}

.btop-prohibition-results {
    margin-top: 6px;
    color: var(--btop-check-ink);
}

.btop-prohibition-filters,
.btop-prohibition-list,
.btop-prohibition-more {
    margin-top: 8px;
}

.btop-prohibition-list details {
    padding: 8px;
    border-top: 1px solid var(--btop-check-border);
    overflow-wrap: anywhere;
}

.btop-prohibition-list summary {
    cursor: pointer;
}

.btop-prohibition-list summary > * {
    margin-right: 8px;
}

.btop-prohibition-list details p {
    margin-top: 6px;
    color: var(--btop-check-muted);
}

.btop-prohibition-references {
    margin-top: 8px;
}

.btop-prohibition-level {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff0f5;
    font-size: 12px;
}

.btop-prohibition-level.is-high {
    background: #fde9eb;
    color: #9f1239;
}

.btop-prohibition-level.is-review {
    background: #fff0ce;
    color: #794415;
}

.btop-prohibition-level.is-evidence {
    background: #e7efff;
    color: #164387;
}

@media (max-width: 700px) {
    .btop-prohibition {
        margin-bottom: 14px;
        padding: 12px;
    }

    .btop-prohibition-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .btop-prohibition-metrics {
        display: block;
        padding: 9px 12px;
    }

    .btop-prohibition-metrics strong {
        margin-right: 3px;
        font-size: 22px;
    }

    .btop-prohibition-metrics small {
        display: block;
    }

    .btop-prohibition-form {
        padding: 10px;
    }

    .btop-prohibition textarea {
        font-size: 16px;
    }

    .btop-prohibition-imports {
        width: 100%;
    }

    .btop-prohibition-form .btop-prohibition-upload {
        min-height: 42px;
    }

    .btop-prohibition-actions {
        margin-left: auto;
    }
}

.btop-prohibition-actions a {display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #c1d3f2;border-radius:7px;color:#164fca;}
.btop-prohibition-results > a {display:inline-block;margin:6px 0;}
