.aishe-registry-section {
    padding: 64px 0 80px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
    border-top: 1px solid #e8edf7;
}

.aishe-registry-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 26px;
}

.aishe-registry-intro h2 {
    margin: 8px 0 12px;
    color: #15213b;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.aishe-registry-intro p {
    margin: 0;
    color: #58647a;
    line-height: 1.75;
}

.aishe-source-panel {
    padding: 22px;
    border: 1px solid #dfe7f5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(32, 56, 110, 0.08);
}

.aishe-source-panel strong {
    display: block;
    color: #182643;
    margin-bottom: 8px;
}

.aishe-source-panel p {
    font-size: 0.9rem;
    line-height: 1.65;
}

.aishe-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px 220px auto;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #dfe7f5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(32, 56, 110, 0.07);
}

.aishe-controls input,
.aishe-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #ced8ea;
    border-radius: 13px;
    background: #ffffff;
    color: #1e2a43;
    font: inherit;
}

.aishe-controls input:focus,
.aishe-controls select:focus {
    outline: 3px solid rgba(36, 91, 232, 0.13);
    border-color: #245be8;
}

.aishe-controls button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: #245be8;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.aishe-controls button:hover {
    background: #1749ca;
}

/* Keep the public directory focused on search and institution results.
   Source-quality rules remain enforced by the data pipeline and validators. */
.uni-search-panel > .library-source-note {
    display: none !important;
}

.aishe-snapshot-note,
.aishe-results-summary {
    color: #5c6880;
    font-size: 0.9rem;
    line-height: 1.6;
}

.aishe-snapshot-note {
    margin: 0 0 8px;
}

.aishe-results-summary {
    min-height: 24px;
    margin: 0 0 18px;
}

.aishe-registry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.aishe-registry-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border: 1px solid #dfe7f5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 13px 32px rgba(32, 56, 110, 0.07);
}

.aishe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.aishe-registry-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff5dc;
    color: #8a5a00;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.aishe-card-head code {
    color: #245be8;
    font-size: 0.78rem;
    font-weight: 700;
}

.aishe-registry-card h3 {
    margin: 0 0 10px;
    color: #17233d;
    font-size: 1.08rem;
    line-height: 1.45;
}

.aishe-location,
.aishe-affiliation,
.aishe-warning {
    margin: 0 0 12px;
    color: #5c6880;
    font-size: 0.86rem;
    line-height: 1.6;
}

.aishe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.aishe-meta span {
    padding: 6px 9px;
    border-radius: 9px;
    background: #f1f5fb;
    color: #44516a;
    font-size: 0.75rem;
}

.aishe-warning {
    margin-top: auto;
    padding: 11px 12px;
    border-left: 3px solid #e4a11b;
    border-radius: 8px;
    background: #fffaf0;
    color: #765617;
}

.aishe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.aishe-actions a,
.aishe-link-disabled,
.aishe-official-fallback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #245be8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.aishe-link-disabled {
    color: #8a94a7;
}

.aishe-loading,
.aishe-official-fallback {
    grid-column: 1 / -1;
    min-height: 100px;
    justify-content: center;
    padding: 30px;
    border: 1px dashed #cbd6e8;
    border-radius: 18px;
    background: #ffffff;
}

.aishe-registry-empty {
    margin-top: 18px;
    padding: 28px;
    border: 1px dashed #cbd6e8;
    border-radius: 18px;
    text-align: center;
    color: #5c6880;
}

@media (max-width: 1000px) {
    .aishe-controls {
        grid-template-columns: 1fr 1fr;
    }

    .aishe-registry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .aishe-registry-section {
        padding: 48px 0 64px;
    }

    .aishe-registry-intro,
    .aishe-controls,
    .aishe-registry-grid {
        grid-template-columns: 1fr;
    }

    .aishe-controls {
        padding: 13px;
    }

    .aishe-registry-card {
        padding: 18px;
    }
}
