.aegis-query-root {
    max-width: 720px;
    margin: 24px auto;
    padding: 0 16px 32px;
}

.aegis-query-card {
    background: #ffffff;
    border: 1px solid #e6e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(38, 51, 77, 0.06);
}

.aegis-query-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.aegis-query-form .aegis-query-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aegis-query-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd3df;
    border-radius: 8px;
    font-size: 1rem;
}

.aegis-query-form button[type="submit"] {
    padding: 10px 16px;
    background: #1f6feb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.aegis-query-form button[type="submit"]:hover {
    background: #1a5ec7;
}

.aegis-query-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e6e8f0;
    background: #f8f9fb;
}

.aegis-query-result .aegis-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
}

.aegis-query-result .status-safe {
    background: #e6f6f0;
    color: #0f7a4f;
}

.aegis-query-result .status-warn {
    background: #fff5e6;
    color: #c36a0b;
}

.aegis-query-meta {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.aegis-query-meta .aegis-label {
    color: #506176;
}

.aegis-query-empty {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff5e6;
    color: #a55b00;
    border: 1px solid #ffdfb3;
}

.aegis-query-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff0f3;
    color: #a5243c;
    border: 1px solid #ffc2c9;
}

.aegis-query-cert {
    margin-top: 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.aegis-query-cert a {
    color: #1f6feb;
    text-decoration: none;
    font-weight: 600;
}

.aegis-query-cert a:hover {
    text-decoration: underline;
}

.aegis-query-helper {
    color: #6b7b8c;
    margin-top: 8px;
}

@media (max-width: 520px) {
    .aegis-query-card {
        padding: 14px;
    }

    .aegis-query-form .aegis-query-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aegis-query-form button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}
