.aysa-agentmarkup {
    overflow: hidden;
}

.aysa-agentmarkup__intro {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.aysa-agentmarkup__intro > div {
    max-width: 760px;
}

.aysa-agentmarkup__eyebrow,
.aysa-agentmarkup__label {
    margin: 0 0 5px;
    color: #46627d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.aysa-agentmarkup__license {
    max-width: 330px;
    margin: 0;
    color: #566882;
    font-size: 13px;
}

.aysa-agentmarkup__form {
    margin-top: 24px;
}

.aysa-agentmarkup__form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.aysa-agentmarkup__submit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.aysa-agentmarkup__submit-row input {
    width: 100%;
    min-width: 0;
}

.aysa-agentmarkup__authorization {
    margin: 8px 0 0;
    color: #566882;
}

.aysa-agentmarkup__status {
    min-height: 22px;
    margin-top: 16px;
    padding: 0;
}

.aysa-agentmarkup__status.is-loading,
.aysa-agentmarkup__status.is-success,
.aysa-agentmarkup__status.is-error {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.aysa-agentmarkup__status.is-success {
    border-color: #86c79a;
    background: #effaf2;
}

.aysa-agentmarkup__status.is-error {
    border-color: #e5a7a7;
    background: #fff3f3;
}

.aysa-agentmarkup__results {
    margin-top: 18px;
    outline: none;
}

.aysa-agentmarkup__result-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
}

.aysa-agentmarkup__result-head strong {
    overflow-wrap: anywhere;
}

.aysa-agentmarkup__counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aysa-agentmarkup__count {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2f6;
    white-space: nowrap;
}

.aysa-agentmarkup__count.is-pass { background: #e6f7ea; color: #166534; }
.aysa-agentmarkup__count.is-warning { background: #fff7d6; color: #854d0e; }
.aysa-agentmarkup__count.is-error { background: #feecec; color: #991b1b; }

.aysa-agentmarkup__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.aysa-agentmarkup__group {
    min-width: 0;
}

.aysa-agentmarkup__group > h3 {
    margin: 0 0 10px;
}

.aysa-agentmarkup__finding {
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid #d8e1ea;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere;
}

.aysa-agentmarkup__finding.is-pass { border-left-color: #2d8a4e; }
.aysa-agentmarkup__finding.is-warning { border-left-color: #c18b13; }
.aysa-agentmarkup__finding.is-error { border-left-color: #c43d3d; }

.aysa-agentmarkup__finding-heading {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.aysa-agentmarkup__finding h4 {
    margin: 2px 0 0;
    font-size: 14px;
}

.aysa-agentmarkup__badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f6;
    font-size: 11px;
    font-weight: 700;
}

.aysa-agentmarkup__evidence,
.aysa-agentmarkup__action {
    margin: 9px 0 0;
}

.aysa-agentmarkup__action {
    color: #334155;
}

.aysa-agentmarkup__sampled {
    margin-top: 16px;
}

.aysa-agentmarkup__sampled li {
    overflow-wrap: anywhere;
}

.aysa-agentmarkup__submit-row button:focus-visible,
.aysa-agentmarkup__form input:focus-visible,
.aysa-agentmarkup a:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .aysa-agentmarkup__groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .aysa-agentmarkup__intro,
    .aysa-agentmarkup__result-head {
        display: block;
    }

    .aysa-agentmarkup__license,
    .aysa-agentmarkup__counts {
        margin-top: 14px;
    }

    .aysa-agentmarkup__submit-row {
        grid-template-columns: 1fr;
    }

    .aysa-agentmarkup__submit-row button {
        width: 100%;
    }
}
