.catalog-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

.catalog-header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-bottom: 2px solid #e94560;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-header h1 {
    color: #e94560;
    font-size: 1.4rem;
    font-weight: 600;
}

.catalog-header .subtitle {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.back-link {
    color: #4fc3f7;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #4fc3f7;
    border-radius: 4px;
    transition: background 0.2s;
}

.back-link:hover {
    background: rgba(79, 195, 247, 0.15);
}

.lang-switcher {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}

.lang-btn {
    padding: 0.25rem 0.6rem;
    border: none;
    background: #16213e;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #e94560;
    color: #fff;
}

.init-screen {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    background: #16213e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
}

.init-screen h2 {
    color: #e94560;
    margin-bottom: 1.5rem;
    text-align: center;
}

.init-btn {
    display: block;
    margin: 0 auto 1.5rem;
    padding: 0.7rem 2rem;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.init-btn:hover {
    background: #d63851;
}

.init-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-container {
    display: none;
}

.progress-bar-outer {
    width: 100%;
    height: 24px;
    background: #0f3460;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #4fc3f7);
    border-radius: 12px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.progress-log {
    max-height: 200px;
    overflow-y: auto;
    background: #0a0a1a;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #6b7b8d;
}

.progress-log .step-done {
    color: #4CAF50;
}

.progress-log .step-active {
    color: #4fc3f7;
}

.tab-nav {
    display: flex;
    background: #16213e;
    border-bottom: 1px solid #2a2a4a;
    padding: 0 2rem;
    gap: 0;
}

.tab-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    background: transparent;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #e0e0e0;
    background: rgba(233, 69, 96, 0.08);
}

.tab-btn.active {
    color: #e94560;
    border-bottom-color: #e94560;
}

.tab-content {
    display: none;
    padding: 1.5rem 2rem;
}

.tab-content.active {
    display: block;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-align: center;
}

.summary-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e94560;
}

.summary-card .card-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

.venus-map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #0a0a1a;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.map-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 0.4rem;
}

.btn-toggle {
    background: rgba(22, 33, 62, 0.85);
    border: 1px solid #2a2a4a;
    color: #8899aa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle:hover {
    background: rgba(40, 60, 100, 0.9);
    color: #aabbcc;
}

.btn-toggle.active {
    background: rgba(30, 80, 140, 0.9);
    border-color: #4488cc;
    color: #ccddff;
}

.venus-map-container canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.map-zoom-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 0.3rem;
}

.map-zoom-controls button {
    width: 32px;
    height: 32px;
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid #2a2a4a;
    color: #ccc;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.map-zoom-controls button:hover {
    background: rgba(40, 60, 100, 0.95);
    color: #fff;
    border-color: #4488cc;
}

.map-zoom-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(22, 33, 62, 0.85);
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    color: #7f8c8d;
}

.map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(22, 33, 62, 0.92);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.72rem;
}

.legend-toggle {
    cursor: pointer;
    color: #4fc3f7;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.15rem 0;
    margin-bottom: 0.3rem;
    user-select: none;
    white-space: nowrap;
}

.legend-toggle:hover {
    color: #81d4fa;
}

.legend-toggle-icon {
    font-size: 0.65rem;
    display: inline-block;
    margin-right: 2px;
}

.map-legend.collapsed {
    max-height: none;
    overflow: visible;
}

.map-legend.collapsed .legend-items {
    display: none;
}

.map-legend.collapsed .legend-toggle {
    margin-bottom: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
}

.legend-item.hidden {
    opacity: 0.35;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scientific-summary {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.scientific-summary h3 {
    color: #e94560;
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.scientific-summary p {
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.scientific-summary p:last-child {
    margin-bottom: 0;
}

.scientific-summary strong {
    color: #d0d0d0;
}

.scientific-summary em {
    color: #e94560;
    font-style: italic;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.filter-bar select,
.filter-bar input {
    padding: 0.4rem 0.6rem;
    background: #0f3460;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 0.8rem;
}

.filter-bar select {
    min-width: 140px;
}

.filter-bar input[type="text"] {
    min-width: 160px;
}

.filter-count {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-left: auto;
}

.reset-btn {
    padding: 0.35rem 0.8rem;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
}

.export-btn {
    padding: 0.35rem 0.8rem;
    background: #0f3460;
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
}

.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.data-table th {
    background: #16213e;
    color: #e94560;
    padding: 0.6rem 0.7rem;
    text-align: left;
    border-bottom: 2px solid #2a2a4a;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.data-table th:hover {
    background: #1d2b4a;
}

.data-table th .sort-arrow {
    margin-left: 4px;
    font-size: 0.65rem;
    opacity: 0.4;
}

.data-table th.sorted .sort-arrow {
    opacity: 1;
}

.data-table td {
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid #1a1a3a;
    white-space: nowrap;
}

.data-table tr:hover {
    background: rgba(79, 195, 247, 0.06);
    cursor: pointer;
}

.data-table .correct-yes {
    color: #4CAF50;
    font-weight: 600;
}

.data-table .correct-no {
    color: #F44336;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.pagination button {
    padding: 0.3rem 0.7rem;
    background: #16213e;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.pagination button:hover {
    background: #1d2b4a;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .page-info {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.detail-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    height: 100vh;
    background: #16213e;
    border-left: 2px solid #e94560;
    overflow-y: auto;
    transition: right 0.3s;
    z-index: 1000;
    padding: 1.5rem;
}

.detail-panel.open {
    right: 0;
}

.detail-panel .close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #e94560;
    font-size: 1.5rem;
    cursor: pointer;
}

.detail-panel h3 {
    color: #e94560;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-patch-img {
    width: 256px;
    height: 256px;
    image-rendering: pixelated;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-info-item {
    background: #0f3460;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
}

.detail-info-item .label {
    font-size: 0.7rem;
    color: #7f8c8d;
}

.detail-info-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
}

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
}

.feature-bars {
    margin-bottom: 1rem;
}

.feature-bar-item {
    margin-bottom: 0.4rem;
}

.feature-bar-label {
    font-size: 0.72rem;
    color: #7f8c8d;
    margin-bottom: 0.15rem;
}

.feature-bar-outer {
    height: 14px;
    background: #0a0a1a;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

.feature-bar-fill {
    height: 100%;
    border-radius: 7px;
    background: #e94560;
    transition: width 0.3s;
}

.feature-bar-avg {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: #4fc3f7;
}

.neighbors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.neighbor-thumb {
    width: 100%;
    aspect-ratio: 1;
    image-rendering: pixelated;
    border-radius: 4px;
    border: 1px solid #2a2a4a;
    cursor: pointer;
}

.shap-force-plot {
    margin: 1rem 0;
    background: #0a0a1a;
    border-radius: 8px;
    padding: 1rem;
}

.shap-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
}

.shap-bar .feat-name {
    width: 120px;
    color: #7f8c8d;
    flex-shrink: 0;
}

.shap-bar .bar-container {
    flex: 1;
    height: 14px;
    position: relative;
    display: flex;
    align-items: center;
}

.shap-bar .bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 3px;
}

.shap-bar .bar-fill.positive {
    background: #4CAF50;
    left: 50%;
}

.shap-bar .bar-fill.negative {
    background: #F44336;
    right: 50%;
}

.shap-bar .bar-center {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: #555;
}

.shap-bar .shap-val {
    width: 55px;
    text-align: right;
    color: #b0b0b0;
    flex-shrink: 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cat-card {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cat-card:hover {
    border-color: #e94560;
}

.cat-card .cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.cat-card .cat-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.cat-card .cat-count {
    color: #e94560;
    font-weight: 700;
    font-size: 1.1rem;
}

.cat-card .cat-thumbs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.cat-card .cat-thumb {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    border-radius: 4px;
    border: 1px solid #2a2a4a;
}

.cat-card .cat-sil {
    font-size: 0.72rem;
    color: #7f8c8d;
}

.scatter-container {
    width: 100%;
    height: 500px;
    margin-bottom: 1.5rem;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    overflow: hidden;
}

.scatter-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.scatter-controls button {
    padding: 0.35rem 1rem;
    background: #16213e;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.scatter-controls button.active {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

.heatmap-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.section-title {
    color: #e94560;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #2a2a4a;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.model-table th {
    background: #16213e;
    color: #e94560;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid #2a2a4a;
}

.model-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #1a1a3a;
}

.model-table tr.best-model {
    background: rgba(233, 69, 96, 0.12);
}

.model-table tr.best-model td:first-child::before {
    content: "★ ";
    color: #FFD700;
}

.metric-cell {
    font-weight: 600;
}

.metric-high {
    color: #4CAF50;
}

.metric-mid {
    color: #FF9800;
}

.metric-low {
    color: #F44336;
}

.cm-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.cm-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    justify-content: center;
}

.cm-toggle button {
    padding: 0.3rem 0.8rem;
    background: #16213e;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
}

.cm-toggle button.active {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

.per-class-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}

.per-class-table th {
    background: #16213e;
    color: #e94560;
    padding: 0.5rem 0.7rem;
    text-align: left;
    border-bottom: 2px solid #2a2a4a;
}

.per-class-table td {
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid #1a1a3a;
}

.shap-section {
    margin-bottom: 1.5rem;
}

.shap-importance-chart {
    margin-bottom: 1rem;
}

.shap-imp-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.shap-imp-bar .feat-label {
    width: 150px;
    font-size: 0.78rem;
    color: #b0b0b0;
    flex-shrink: 0;
}

.shap-imp-bar .bar-outer {
    flex: 1;
    height: 18px;
    background: #0a0a1a;
    border-radius: 4px;
    overflow: hidden;
}

.shap-imp-bar .bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #ff7043);
    border-radius: 4px;
    transition: width 0.4s;
}

.shap-imp-bar .imp-value {
    width: 60px;
    text-align: right;
    font-size: 0.78rem;
    color: #7f8c8d;
    flex-shrink: 0;
}

.methodology-panel {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.methodology-panel h3 {
    color: #e94560;
    margin-bottom: 1rem;
    cursor: pointer;
}

.methodology-panel h4 {
    color: #4fc3f7;
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
}

.methodology-panel p,
.methodology-panel li {
    color: #b0b0b0;
    font-size: 0.82rem;
    line-height: 1.6;
}

.methodology-panel ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.limitations-box {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.8rem;
}

.limitations-box h4 {
    color: #FF9800 !important;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a2a4a;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    .detail-panel {
        width: 100%;
        right: -100%;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.overlay-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay-bg.visible {
    display: block;
}

.shap-per-class-select {
    padding: 0.35rem 0.6rem;
    background: #0f3460;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.interpretation-text {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0.8rem 0;
    font-size: 0.82rem;
    color: #a5d6a7;
    line-height: 1.5;
}

.validation-warning {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0.8rem 0;
    font-size: 0.82rem;
    color: #ffe0b2;
}

.fisher-chart {
    margin-bottom: 1rem;
}

.spatial-layout {
    display: flex;
    gap: 1.5rem;
}

.spatial-main {
    flex: 1;
    min-width: 0;
}

.spatial-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
}

.spatial-sidebar h4 {
    color: #4fc3f7;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.spatial-controls {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.preset-buttons {
    margin-bottom: 1rem;
}

.control-label {
    color: #b0b0b0;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 0.4rem;
}

.preset-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.preset-btn {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    color: #4fc3f7;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
    background: rgba(79, 195, 247, 0.25);
    border-color: #4fc3f7;
}

.roi-minimap-wrapper {
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid rgba(79,195,247,0.25);
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a1a;
}

.roi-minimap-wrapper canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.roi-minimap-coords {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
    font-family: monospace;
}

.roi-minimap-label {
    color: #b0b0b0;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roi-minimap-label .info-icon {
    font-size: 0.9rem;
}

.coord-inputs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.coord-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coord-group label {
    color: #b0b0b0;
    font-size: 0.82rem;
    white-space: nowrap;
}

.coord-group input[type="number"] {
    width: 70px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.coord-group span {
    color: #666;
    font-size: 0.8rem;
}

.spatial-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group label {
    color: #b0b0b0;
    font-size: 0.82rem;
    white-space: nowrap;
}

.option-group select, .option-group input[type="number"] {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.option-group input[type="range"] {
    width: 100px;
}

.spatial-run-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.estimate-text {
    color: #4fc3f7;
    font-size: 0.8rem;
}

.heatmap-controls {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.layer-toggle {
    display: flex;
    gap: 0;
}

.layer-toggle button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #b0b0b0;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-toggle button:first-child { border-radius: 6px 0 0 6px; }
.layer-toggle button:last-child { border-radius: 0 6px 6px 0; }

.layer-toggle button.active {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.heatmap-options {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.heatmap-options label {
    color: #b0b0b0;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.heatmap-options select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.heatmap-plot-container {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

.agreement-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.agreement-pct {
    font-size: 2rem;
    font-weight: 700;
    color: #4fc3f7;
}

.agreement-label {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.compact-table th {
    background: rgba(255,255,255,0.05);
    color: #4fc3f7;
    padding: 0.4rem 0.5rem;
    text-align: left;
    font-weight: 600;
}

.compact-table td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #b0b0b0;
}

.candidates-list {
    max-height: 300px;
    overflow-y: auto;
}

.candidate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem;
}

.cand-cat { font-weight: 600; min-width: 120px; }
.cand-conf { color: #4fc3f7; min-width: 40px; text-align: right; }
.cand-loc { color: #888; min-width: 100px; text-align: right; }
.cand-dist { color: #666; min-width: 60px; text-align: right; font-size: 0.72rem; }

.geojson-controls {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.methodology-note {
    color: #888;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.5;
    padding: 0.8rem;
    border-left: 3px solid rgba(255, 152, 0, 0.4);
    background: rgba(255, 152, 0, 0.05);
    border-radius: 0 6px 6px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
}

.stat-label { color: #888; }
.stat-value { color: #e0e0e0; font-weight: 600; }

.sidebar-chart {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .spatial-layout {
        flex-direction: column;
    }
    .spatial-sidebar {
        width: 100%;
    }
    .coord-inputs {
        flex-direction: column;
    }
}

.cnn-section {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

.cnn-status-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
}

.cnn-desc {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cnn-metrics-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.cnn-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.cnn-metric-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
}

.cnn-metric-label {
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.2rem;
}

.cnn-comparison-box {
    margin-top: 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1rem;
}

.gradcam-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gradcam-category {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
}

.gradcam-cat-title {
    margin: 0 0 0.8rem 0;
    font-size: 0.95rem;
}

.gradcam-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gradcam-item {
    flex: 0 0 auto;
}

.gradcam-images {
    display: flex;
    gap: 0.3rem;
}

.gradcam-img-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gradcam-img-wrap img {
    width: 96px;
    height: 96px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    image-rendering: pixelated;
}

.gradcam-img-wrap span {
    font-size: 0.65rem;
    color: #888;
    margin-top: 0.2rem;
}

.gradcam-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-size: 0.72rem;
}

.gradcam-conf {
    color: #4fc3f7;
    font-weight: 600;
}

.gradcam-label {
    color: #b0b0b0;
}

.prediction-source-toggle {
    margin-bottom: 1rem;
}

.scale-weights-panel {
    background: rgba(79, 195, 247, 0.05);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.scale-weight-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}

.scale-weight-row label {
    color: #b0b0b0;
    min-width: 50px;
}

.scale-weight-row input[type="range"] {
    flex: 1;
    max-width: 150px;
}

.scale-weight-row span {
    color: #4fc3f7;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    font-size: 0.78rem;
}

.spatial-cv-section {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

.spatial-cv-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
}

.spatial-cv-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
}

.spatial-cv-controls .init-btn {
    margin: 0;
}

.gap-card {
    margin: 1rem 0;
}

.gap-card-inner {
    border: 2px solid #4fc3f7;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
}

.gap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-label {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
}

.gap-delta {
    font-size: 1.8rem;
    font-weight: 700;
}

.gap-interpretation {
    font-weight: 500;
}

.cv-fold-map {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    min-height: 350px;
}

.smoothing-controls {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.toggle-group-label {
    color: #b0b0b0;
    font-size: 0.82rem;
    white-space: nowrap;
}

.toggle-buttons {
    display: flex;
    gap: 0;
}

.toggle-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #b0b0b0;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:first-child { border-radius: 6px 0 0 6px; }
.toggle-btn:last-child { border-radius: 0 6px 6px 0; }

.toggle-btn.active {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.smoothing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
}

.smoothing-stats-panel {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.smoothing-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}

.smoothing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
}

.smoothing-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4fc3f7;
}

.smoothing-stat-label {
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.2rem;
    text-align: center;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    font-size: 11px;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    line-height: 1;
}

.info-icon:hover {
    background: rgba(79, 195, 247, 0.35);
    color: #fff;
}

.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: infoFadeIn 0.2s ease;
}

.info-modal-overlay.open {
    display: flex;
}

@keyframes infoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-modal-content {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: infoSlideIn 0.25s ease;
}

@keyframes infoSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #2a2a4a;
    flex-shrink: 0;
}

.info-modal-header h3 {
    color: #e94560;
    font-size: 1rem;
    margin: 0;
}

.info-modal-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.info-modal-close:hover {
    color: #e94560;
}

.info-modal-body {
    padding: 1.2rem;
    overflow-y: auto;
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.7;
}

.info-modal-body p {
    margin: 0 0 0.8rem 0;
}

.info-modal-body p:last-child {
    margin-bottom: 0;
}

.info-modal-body ul {
    margin: 0.5rem 0 0.8rem 1.2rem;
    padding: 0;
}

.info-modal-body li {
    margin-bottom: 0.3rem;
}

.info-modal-body b {
    color: #e0e0e0;
}

.atlas-init-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.atlas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.atlas-filters {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.atlas-filters input[type="text"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
}

.atlas-filters select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.diameter-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #aaa;
    font-size: 0.85rem;
}

.diameter-filter input[type="number"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.atlas-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.atlas-table {
    width: 100%;
}

.atlas-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.atlas-table th.sortable:hover {
    color: #6ea8fe;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.btn-small {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(110,168,254,0.2);
    color: #6ea8fe;
    border-color: #6ea8fe;
}

.btn-small.btn-spatial {
    font-size: 0.9rem;
    padding: 2px 6px;
}

.atlas-map-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.atlas-map-container canvas {
    width: 100%;
    display: block;
}

.atlas-map-tooltip {
    position: absolute;
    background: rgba(20,20,40,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

.atlas-detail-panel {
    max-width: 600px;
}

.atlas-detail-header {
    margin-bottom: 1rem;
}

.atlas-detail-header h2 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.atlas-patch-container {
    margin: 1rem 0;
}

.atlas-patch-container h4 {
    color: #aaa;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.atlas-patch-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    image-rendering: pixelated;
}

.atlas-detail-info {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.atlas-detail-info .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #ccc;
    font-size: 0.9rem;
}

.atlas-detail-info .detail-label {
    color: #888;
}

.atlas-description {
    margin: 1rem 0;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.atlas-detail-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.atlas-map-container .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 0.75rem;
    color: #aaa;
    cursor: default;
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(110,168,254,0.15);
    color: #6ea8fe;
    border-color: #6ea8fe;
}

.tab-description {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.tab-desc-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    color: #4fc3f7;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s;
}

.tab-desc-toggle:hover {
    background: rgba(79, 195, 247, 0.08);
}

.tab-desc-toggle .toggle-icon {
    transition: transform 0.2s;
    font-size: 0.7rem;
}

.tab-description.open .tab-desc-toggle .toggle-icon {
    transform: rotate(90deg);
}

.tab-desc-body {
    display: none;
    padding: 0 1rem 1rem;
}

.tab-description.open .tab-desc-body {
    display: block;
}

.tab-desc-section {
    margin-bottom: 0.8rem;
}

.tab-desc-section:last-child {
    margin-bottom: 0;
}

.tab-desc-section h4 {
    color: #e94560;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-desc-section p,
.tab-desc-section li {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.tab-desc-section ul {
    padding-left: 1.2rem;
    margin: 0.3rem 0 0;
}

.tab-desc-edu {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.tab-desc-edu h4 {
    color: #4CAF50 !important;
}

.tab-desc-edu p {
    color: #a8c8a8;
}

.ann-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ann-toolbar-left, .ann-toolbar-right {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-secondary {
    background: rgba(79, 195, 247, 0.15);
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(79, 195, 247, 0.3); }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: border-color 0.2s;
}

.btn-outline:hover { border-color: #4fc3f7; color: #4fc3f7; }

.ann-import-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.ann-detect-config {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.detect-config-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
    font-size: 0.82rem;
}

.detect-config-row label {
    min-width: 140px;
}

.detect-config-row input[type="range"] {
    flex: 1;
    max-width: 200px;
    accent-color: #4fc3f7;
}

.detect-config-row span {
    color: #4fc3f7;
    font-weight: 600;
    min-width: 32px;
}

.ann-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 0.8rem;
    min-height: 500px;
}

.ann-list-panel {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem;
    overflow-y: auto;
    max-height: 600px;
}

.ann-filters {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.ann-filters select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.ann-batch-actions {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.btn-accept {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.btn-accept:hover { background: rgba(76, 175, 80, 0.4); }

.btn-reject {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #F44336;
}

.btn-reject:hover { background: rgba(244, 67, 54, 0.4); }

.btn-reset-draft {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #FFC107;
    color: #FFC107;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.btn-reset-draft:hover { background: rgba(255, 193, 7, 0.4); }

.ann-table {
    font-size: 0.72rem;
}

.ann-table td { padding: 0.25rem 0.3rem; }

.ann-row { cursor: pointer; transition: background 0.15s; }
.ann-row:hover { background: rgba(79, 195, 247, 0.08); }
.ann-row-selected { background: rgba(79, 195, 247, 0.15) !important; }

.cat-chip {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    color: #fff;
    font-size: 0.68rem;
    white-space: nowrap;
}

.ann-badge {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

.ann-status-draft { background: rgba(255, 152, 0, 0.25); color: #FF9800; }
.ann-status-reviewed { background: rgba(33, 150, 243, 0.25); color: #2196F3; }
.ann-status-accepted { background: rgba(76, 175, 80, 0.25); color: #4CAF50; }
.ann-status-rejected { background: rgba(244, 67, 54, 0.25); color: #F44336; }

.summary-card-draft .card-value { color: #FF9800; }
.summary-card-accepted .card-value { color: #4CAF50; }
.summary-card-rejected .card-value { color: #F44336; }
.summary-card-retrain .card-value { color: #00BCD4; }
.summary-card-retrain { border-left: 3px solid #00BCD4; }

.ann-th-check, .ann-td-check { width: 28px; text-align: center; padding: 0.2rem !important; }
.ann-td-check input[type="checkbox"] { cursor: pointer; accent-color: #4fc3f7; }
.ann-td-by { font-size: 0.65rem; color: #888; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }

.ann-select-all-label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #aaa; cursor: pointer; margin-right: 8px; }
.ann-select-all-label input { accent-color: #4fc3f7; cursor: pointer; }

.ann-batch-count { font-size: 0.72rem; color: #4fc3f7; margin-left: 6px; }

.retrain-ready-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(0, 188, 212, 0.15);
    color: #666;
    margin-left: 6px;
    vertical-align: middle;
}
.retrain-ready-badge.retrain-ready-active {
    background: rgba(0, 188, 212, 0.3);
    color: #00BCD4;
}

.ann-review-history {
    margin-top: 8px;
    padding: 8px;
    background: rgba(33, 150, 243, 0.08);
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}
.review-history-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.review-history-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #aaa;
    flex-wrap: wrap;
}
.review-by { color: #bbb; }
.review-date { color: #666; font-size: 0.65rem; }

.ann-list-info {
    color: #666;
    font-size: 0.72rem;
    text-align: center;
    margin-top: 0.4rem;
}

.ann-canvas-panel {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
}

.ann-canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ann-tool-btn {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.15s;
    min-width: 44px;
    min-height: 36px;
}

.ann-tool-btn.active {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.ann-tool-btn:hover { border-color: #4fc3f7; }

.ann-tool-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.2rem;
}

.ann-cat-select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.ann-context-toggle, .ann-zoom-label {
    color: #aaa;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ann-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0e1a;
    border-radius: 6px;
    overflow: hidden;
    min-height: 400px;
}

.ann-canvas-container canvas {
    max-width: 100%;
    image-rendering: pixelated;
}

.ann-canvas-info {
    color: #666;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.4rem;
    font-family: monospace;
}

.ann-detail-panel {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.8rem;
    overflow-y: auto;
    max-height: 600px;
}

.ann-detail-panel h4 {
    color: #4fc3f7;
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}

.ann-no-selection {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    padding: 2rem 0;
}

.ann-detail-info {
    font-size: 0.78rem;
    color: #b0b0b0;
    margin-bottom: 0.8rem;
}

.ann-detail-info div {
    margin-bottom: 0.3rem;
}

.ann-detail-info strong {
    color: #ddd;
}

.ann-detail-field {
    margin-bottom: 0.5rem;
}

.ann-detail-field label {
    display: block;
    color: #888;
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
}

.ann-detail-field select, .ann-detail-field textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.ann-detail-field textarea {
    resize: vertical;
    font-family: inherit;
}

.ann-detail-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.ann-detail-buttons button {
    flex: 1;
    min-width: 44px;
    min-height: 40px;
    font-size: 0.78rem;
}

.ann-next-btn {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 44px;
    font-size: 0.85rem;
}

.ann-stats-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ann-stats-section h4 {
    color: #4fc3f7;
    margin: 0 0 0.8rem;
}

.ann-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.ann-chart-container {
    min-height: 250px;
}

.ann-navigate-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ann-navigate-inputs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ann-navigate-inputs label {
    color: #b0b0b0;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ann-navigate-inputs input[type="number"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
}

.ann-tool-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    margin: 0 0.3rem;
}

.btn-sm {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.78rem !important;
}

.ann-training-stats {
    padding: 0.5rem 0.8rem;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(79, 195, 247, 0.15);
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    color: #b0b0b0;
}

.ann-stats-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ann-stat-highlight {
    color: #4fc3f7;
    font-weight: 600;
}

.ann-stat-pending {
    color: #ff9800;
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .catalog-body {
        overflow-x: hidden;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.75rem;
        gap: 0.3rem;
    }

    .catalog-header h1 {
        font-size: 1.05rem;
    }

    .catalog-header .subtitle {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tab-nav {
        padding: 0 0.5rem;
        flex-wrap: wrap;
        gap: 0;
    }

    .tab-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.72rem;
        flex: 1;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }

    .tab-content {
        padding: 0.75rem;
    }

    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.5rem;
    }

    .summary-card {
        padding: 0.6rem;
    }

    .summary-card .card-value {
        font-size: 1.3rem;
    }

    .summary-card .card-label {
        font-size: 0.65rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        font-size: 0.72rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.35rem 0.4rem;
    }

    .model-table,
    .per-class-table,
    .compact-table {
        font-size: 0.7rem;
    }

    .model-table th,
    .model-table td,
    .per-class-table th,
    .per-class-table td {
        padding: 0.3rem 0.35rem;
    }

    .detail-panel {
        width: 100%;
        right: -100%;
        padding: 1rem;
    }

    .detail-panel .close-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .atlas-detail-panel {
        max-width: 100%;
    }

    .atlas-detail-header h2 {
        font-size: 1.2rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }

    .venus-map-container {
        height: 300px;
    }

    .venus-map-container canvas {
        touch-action: none;
    }

    .map-toolbar {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .scatter-container {
        height: 350px;
    }

    .spatial-layout {
        flex-direction: column;
    }

    .spatial-sidebar {
        width: 100%;
    }

    .coord-inputs {
        flex-direction: column;
    }

    .heatmap-plot-container {
        min-height: 280px;
    }

    .heatmap-options {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .layer-toggle {
        flex-wrap: wrap;
    }

    .cnn-metrics-row {
        flex-direction: column;
    }

    .tab-desc-accordion {
        padding: 0.5rem 0.75rem;
    }

    .tab-desc-content {
        padding: 0.5rem;
    }

    .tab-desc-section {
        padding: 0.4rem 0;
    }

    .feature-bars .bar-label {
        font-size: 0.65rem;
    }

    .progress-bar-outer {
        height: 18px;
    }

    .spatial-controls label {
        font-size: 0.75rem;
    }

    .spatial-controls input,
    .spatial-controls select {
        font-size: 0.75rem;
    }

    .agreement-pct {
        font-size: 1.5rem;
    }

    .atlas-toolbar {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .atlas-toolbar input,
    .atlas-toolbar select {
        width: 100%;
        min-width: 0;
    }

    .info-modal-content {
        width: 95vw;
        max-height: 85vh;
    }

    .shap-per-class-select {
        width: 100%;
    }

    .interpretation-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .ann-main-layout {
        grid-template-columns: 1fr;
    }

    .ann-list-panel {
        max-height: 300px;
    }

    .ann-canvas-container {
        min-height: 280px;
    }

    .ann-detail-panel {
        max-height: none;
    }

    .ann-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ann-canvas-toolbar {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .ann-stats-grid {
        grid-template-columns: 1fr;
    }

    .detect-config-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .catalog-header h1 {
        font-size: 0.9rem;
    }

    .catalog-header .subtitle {
        font-size: 0.58rem;
    }

    .tab-btn {
        padding: 0.4rem 0.35rem;
        font-size: 0.62rem;
        border-bottom-width: 2px;
    }

    .tab-content {
        padding: 0.5rem;
    }

    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }

    .summary-card .card-value {
        font-size: 1.1rem;
    }

    .data-table {
        font-size: 0.65rem;
    }

    .detail-panel {
        padding: 0.75rem;
    }

    .venus-map-container {
        height: 240px;
    }

    .scatter-container {
        height: 280px;
    }

    .heatmap-plot-container {
        min-height: 220px;
    }

    .atlas-patch-img {
        max-width: 100%;
    }

    .cnn-status-panel {
        padding: 0.75rem;
    }

    .cnn-desc {
        font-size: 0.75rem;
    }
}

.terrain3d-section {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
}

.terrain3d-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.terrain3d-controls .option-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terrain3d-controls label {
    color: #b0b0b0;
    font-size: 0.82rem;
    white-space: nowrap;
}

.terrain3d-controls select,
.terrain3d-controls input[type="range"] {
    background: rgba(0,0,0,0.3);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
}

.terrain3d-canvas-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.terrain3d-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.terrain3d-info-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: #e0e0e0;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    pointer-events: none;
    z-index: 10;
}

.terrain3d-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.5rem;
    z-index: 10;
    max-width: 160px;
}

.terrain3d-legend .legend-title {
    color: #4fc3f7;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.terrain3d-legend .legend-gradient {
    height: 12px;
    border-radius: 3px;
    margin-bottom: 0.2rem;
}

.terrain3d-legend .legend-labels {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.65rem;
}

.terrain3d-load-btn {
    background: linear-gradient(135deg, #00897b, #00695c);
    border: 1px solid rgba(0,137,123,0.4);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.terrain3d-load-btn:hover {
    background: linear-gradient(135deg, #00a08a, #00897b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,137,123,0.3);
}

.terrain3d-load-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.terrain3d-status {
    color: #aaa;
    font-size: 0.78rem;
    margin-left: 0.8rem;
}

.terrain3d-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.terrain3d-toolbar button {
    background: rgba(79,195,247,0.1);
    border: 1px solid rgba(79,195,247,0.25);
    color: #4fc3f7;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.terrain3d-toolbar button:hover {
    background: rgba(79,195,247,0.2);
}

.terrain3d-toolbar button.active {
    background: rgba(79,195,247,0.3);
    border-color: #4fc3f7;
}

.terrain3d-overlays {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    flex-wrap: wrap;
}

.terrain3d-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #b0b0c0;
    font-size: 0.78rem;
}

.terrain3d-toggle input[type="checkbox"] {
    accent-color: #4fc3f7;
    cursor: pointer;
}

.terrain3d-marker-popup {
    position: absolute;
    background: rgba(10, 10, 25, 0.92);
    border: 1px solid rgba(79, 195, 247, 0.5);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 100;
    max-width: 260px;
    backdrop-filter: blur(4px);
    line-height: 1.4;
}

.terrain3d-marker-popup .popup-title {
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 3px;
}

.terrain3d-marker-popup .popup-detail {
    color: #a0a0b0;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8d6e5;
    font-size: 0.82rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}
.role-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.role-admin { background: rgba(231,76,60,0.25); color: #e74c3c; }
.role-expert { background: rgba(52,152,219,0.25); color: #3498db; }
.role-citizen { background: rgba(46,204,113,0.25); color: #2ecc71; }
.nav-btn-logout {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}
.nav-btn-logout:hover { background: rgba(231,76,60,0.3); }
.nav-btn-small {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #c8d6e5;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
}
.nav-btn-small:hover { background: rgba(255,255,255,0.15); }

.terrain3d-stats {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #b0c4d8;
    font-family: monospace;
    flex-wrap: wrap;
}
.terrain3d-stats span { white-space: nowrap; }

.terrain3d-scale-bar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.terrain3d-scale-bar .scale-bar-line {
    width: 80px;
    height: 4px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.6);
    border-radius: 1px;
}
.terrain3d-scale-bar .scale-bar-label {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    margin-top: 2px;
    font-family: monospace;
}

.terrain3d-profile-status {
    padding: 0.4rem 0.7rem;
    background: rgba(255,193,7,0.15);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 6px;
    color: #FFC107;
    font-size: 0.78rem;
    margin-top: 0.5rem;
}

.terrain3d-profile-chart {
    margin-top: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(79,195,247,0.15);
    border-radius: 6px;
    min-height: 200px;
}

#terrain3dProfileBtn.active {
    background: rgba(255,193,7,0.3) !important;
    border-color: #FFC107 !important;
    color: #FFC107 !important;
}

.terrain3d-draw-toolbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0;
}
.terrain3d-draw-toolbar button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #c8d6e5;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.terrain3d-draw-toolbar button:hover {
    background: rgba(255,255,255,0.15);
}
.terrain3d-draw-toolbar button.active {
    background: rgba(244,67,54,0.3) !important;
    border-color: #F44336 !important;
    color: #F44336 !important;
}

/* ── Climate Model Tab ── */
.climate-container { max-width: 1200px; margin: 0 auto; }
.climate-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.climate-section .section-title {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0 0 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.climate-section .section-desc {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
}
.climate-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.climate-chart-box {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 0.8rem;
}
.climate-chart-box h4 {
    margin: 0 0 0.5rem 0;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
}
.climate-layers-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.climate-layer-card {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 0.8rem;
}
.climate-layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.climate-layer-header strong { color: #e0e0e0; font-size: 0.9rem; }
.climate-layer-alt { color: #888; font-size: 0.8rem; font-family: monospace; }
.climate-layer-desc { color: #aaa; font-size: 0.8rem; margin: 0 0 0.5rem 0; line-height: 1.4; }
.climate-layer-species { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.species-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #bbb;
    font-family: monospace;
}
.climate-model-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}
.climate-params-panel {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 1rem;
}
.climate-params-panel h4 { margin: 0 0 0.8rem 0; color: #aaa; font-size: 0.85rem; }
.climate-param {
    margin-bottom: 0.6rem;
}
.climate-param label {
    display: block;
    color: #bbb;
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.climate-param input[type="range"] {
    width: 100%;
    accent-color: #FF6B35;
}
.climate-param input[type="number"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.85rem;
}
.climate-param span {
    color: #FF6B35;
    font-family: monospace;
    font-size: 0.8rem;
}
.climate-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.climate-status.loading { color: #f39c12; }
.climate-status.success { color: #2ecc71; }
.climate-status.warning { color: #f39c12; }
.climate-status.error { color: #e74c3c; }
.climate-results-panel { min-width: 0; }
.climate-model-summary {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}
.climate-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.summary-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
.summary-label { display: block; color: #888; font-size: 0.7rem; margin-bottom: 0.2rem; }
.summary-value { display: block; color: #e0e0e0; font-size: 1rem; font-weight: 600; }
.summary-value.highlight { color: #FF6B35; font-size: 1.2rem; }
.climate-surface-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
}
.climate-surface-controls {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 1rem;
}
.climate-surface-stats {
    margin-top: 0.8rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
.surf-stat { color: #bbb; font-size: 0.8rem; margin-bottom: 0.3rem; }
.surf-stat strong { color: #aaa; }
.climate-surface-map { min-width: 0; }
.climate-comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.climate-comparison th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    background: rgba(255,255,255,0.03);
}
.climate-comparison td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #bbb;
}
.climate-comparison td.param-label { color: #aaa; font-weight: 500; }
.climate-comparison tr:hover td { background: rgba(255,255,255,0.03); }

@media (max-width: 900px) {
    .climate-charts-row, .climate-layers-diagram { grid-template-columns: 1fr; }
    .climate-model-layout, .climate-surface-layout { grid-template-columns: 1fr; }
    .climate-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
