.pyqp-search-wrapper {
    background: #f6f7f9;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pyqp-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.pyqp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pyqp-field label {
    font-weight: 600;
    color: #1f2937;
}

.pyqp-field input,
.pyqp-field select,
.pyqp-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    color: #111827;
}

.pyqp-actions {
    display: flex;
    align-items: end;
}

.pyqp-button,
.pyqp-link {
    display: inline-block;
    background: #0f766e;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.pyqp-link {
    background: transparent;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
}

.pyqp-results-wrapper {
    margin-top: 24px;
}

.pyqp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.pyqp-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pyqp-card-body {
    padding: 18px;
}

.pyqp-meta,
.pyqp-card-meta {
    margin: 0 0 10px;
    color: #475569;
    font-size: 0.9em;
}

.pyqp-card h3 {
    margin: 0 0 10px;
    font-size: 1.15em;
    line-height: 1.4;
}

.pyqp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pyqp-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pyqp-pdf-viewer {
    margin-top: 16px;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    overflow: hidden;
}

.pyqp-pdf-viewer iframe {
    width: 100%;
    min-height: 700px;
    border: none;
}

.pyqp-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.pyqp-recent-papers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pyqp-recent-papers li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

@media (max-width: 768px) {
    .pyqp-search-grid,
    .pyqp-results-grid {
        grid-template-columns: 1fr;
    }
}
