#deep_data .deep-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

#deep_data .deep-intro p {
    margin-bottom: 6px;
    color: var(--mdc-text-muted);
    max-width: 860px;
}

#deep_data .deep-nfo-picker {
    display: flex;
    align-items: center;
    flex: 1 0 100%;
    min-width: 0;
    margin-left: 0;
}

#deep_data .deep-nfo-form {
    flex: 1 1 210px;
    min-width: 0;
    margin: 0;
}

#deep_data .deep-nfo-form .form-select {
    width: 100%;
}

#deep_data #map_div {
    flex: 0 0 auto;
    height: 640px;
    margin-bottom: 16px;
}

#deep_data #map {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

#deep_data .deep-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    padding: 8px 6px 10px;
    border-bottom: 1px solid var(--bs-border-color);
}

#deep_data .deep-map-legend .deep-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-primary-dark);
    cursor: pointer;
    user-select: none;
}

#deep_data .deep-map-legend input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--bs-primary);
}

#deep_data .deep-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: var(--bs-primary);
}

#deep_data .deep-legend-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #8a5a2b;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #8a5a2b;
}

#deep_data .deep-legend-shot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4b5563;
}

#deep_data .deep-legend-profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 6px 10px;
    font-size: 12px;
    color: var(--mdc-text-muted);
}

#deep_data .deep-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#deep_data .deep-profile-chip .swatch {
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

#deep_data .deep-map-status {
    min-height: 22px;
    padding: 4px 6px;
    font-size: 12px;
    color: var(--mdc-text-muted);
}

#deep_data .deep-dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

#deep_data a.deep-dataset {
    display: block;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--mdc-radius-sm);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--mdc-elevation-1);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

#deep_data a.deep-dataset:hover {
    box-shadow: var(--mdc-elevation-3);
    transform: translateY(-2px);
    border-color: var(--bs-primary);
    color: inherit;
}

#deep_data .deep-dataset-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#deep_data .deep-dataset-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-primary-dark);
    line-height: 1.3;
}

#deep_data .deep-dataset-count {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bs-primary-light);
    color: var(--bs-primary-dark);
    font-weight: 700;
    font-size: 14px;
}

#deep_data .deep-dataset-desc {
    font-size: 13px;
    color: var(--mdc-text-muted);
    margin-bottom: 12px;
}

#deep_data .deep-dataset-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #555;
}

#deep_data .deep-dataset-meta .formats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

#deep_data .deep-format-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f6;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
}

#deep_data .deep-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--bs-primary);
    background: var(--bs-primary-light);
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

#deep_data .deep-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    #deep_data #map_div {
        height: 460px;
    }
    #deep_data .deep-nfo-picker {
        width: 100%;
    }
}
