.cas-search-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cas-mode-toggle {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cas-mode-toggle label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cas-input-row {
    display: flex;
    gap: 0.5rem;
}

.cas-query {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.cas-submit {
    padding: 0.75rem 1.5rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.cas-submit:hover {
    background: #135e96;
}

.cas-results {
    margin-top: 1.5rem;
}

.cas-result-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cas-result-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.cas-result-item h3 a {
    color: #1d2327;
    text-decoration: none;
}

.cas-result-item h3 a:hover {
    color: #2271b1;
}

.cas-result-meta {
    font-size: 0.85rem;
    color: #646970;
    margin-bottom: 0.4rem;
}

.cas-ai-content {
    line-height: 1.6;
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.cas-ai-content h1,
.cas-ai-content h2,
.cas-ai-content h3,
.cas-ai-content h4 {
    margin-top: 1.2rem;
}

.cas-error {
    color: #d63638;
    padding: 1rem;
    background: #fcf0f1;
    border-radius: 4px;
}

.cas-loading {
    text-align: center;
    padding: 1rem;
    color: #646970;
}