/* Visualization Panel */
.visualization-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.visualization-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Log Visualization */
.log-visualization {
    min-height: 400px;
    background: var(--bg-color);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.log-viz-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-secondary);
}

.log-viz-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* D3 Log Column */
.log-column {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.log-column .axis {
    font-size: 11px;
}

.log-column .axis path,
.log-column .axis line {
    stroke: var(--border-color);
    shape-rendering: crispEdges;
}

.log-column .axis text {
    fill: var(--text-primary);
}

.log-column .grid line {
    stroke: var(--border-color);
    stroke-opacity: 0.3;
    shape-rendering: crispEdges;
}

.log-column .grid path {
    stroke-width: 0;
}

/* Interval Rectangles */
.interval-rect {
    stroke: #333;
    stroke-width: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
}

.interval-rect:hover {
    stroke: var(--primary-color);
    stroke-width: 2.5;
    filter: brightness(1.1);
}

/* Interval Labels */
.interval-label {
    font-size: 11px;
    font-weight: 500;
    fill: var(--text-primary);
    pointer-events: none;
}

.interval-label.depth {
    font-size: 10px;
    fill: var(--text-secondary);
}

/* Legend */
.legend {
    font-size: 11px;
}

.legend-item {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.legend-item:hover {
    opacity: 0.8;
}

.legend-item rect {
    stroke: #333;
    stroke-width: 1;
}

.legend-item text {
    fill: var(--text-primary);
}

/* Tooltip */
.d3-tooltip {
    position: absolute;
    background: var(--text-primary);
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    max-width: 250px;
}

.d3-tooltip.show {
    opacity: 0.95;
}

.d3-tooltip h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.d3-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
}

.d3-tooltip .tooltip-label {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 1rem;
}

.d3-tooltip .tooltip-value {
    font-weight: 500;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface-color);
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--bg-color);
}

.zoom-btn:active {
    background: var(--border-color);
}

.zoom-btn svg {
    width: 20px;
    height: 20px;
}

/* ===================================================================
   Cross Section Explorer
   A compact, fit-to-window layout: toolbar, hole strip, chart with a
   legend row, and fixed-height detail panels that scroll internally.
   =================================================================== */

/* Fit-to-window mode is only on while the Cross Section view is active,
   so every other view keeps its normal page scroll. */
body.cs-fit {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.cs-fit .site-header {
    flex: none;
    margin-bottom: 0;
}

body.cs-fit .app-container {
    flex: 1 1 auto;
    min-height: 0;
}

body.cs-fit .main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

body.cs-fit #cross-section-view.active {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Toolbar */
.cs-toolbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.5rem 1.25rem;
    min-width: 0;
}

.cs-orientation {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-orient-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    background: var(--surface-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.cs-orient-btn svg {
    transition: transform 0.3s ease;
}

.cs-view[data-orientation="ns"] .cs-orient-btn svg {
    transform: rotate(90deg);
}

.cs-orient-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.cs-orient-btn:focus-visible,
.hole-card:focus-visible,
.cs-legend-item:focus-visible,
.cs-legend-reset:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cs-orient-label {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.cs-title {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 0.75rem;
}

.cs-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.cs-title .dataset-meta {
    font-size: 0.85rem;
    min-width: 0;
    white-space: nowrap;
}

.cs-title .dataset-description {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-hint {
    margin-left: auto;
    max-width: 24rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-secondary);
    text-align: right;
}

/* Body: strip above the chart (E–W) or down the left (N–S) */
.cs-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}

.cs-view[data-orientation="ns"] .cs-body {
    grid-template-columns: 136px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.cs-strip {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
}

.cs-view[data-orientation="ns"] .cs-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.4rem;
}

.cs-strip-end {
    flex: none;
    align-self: center;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
}

.hole-selection-grid {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    gap: 0.35rem;
    padding: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.cs-view[data-orientation="ns"] .hole-selection-grid {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.hole-card {
    flex: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    font: inherit;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hole-card:hover {
    border-color: var(--primary-color);
}

.hole-card.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
}

.hole-card-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.hole-card-depth {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.hole-card.selected .hole-card-depth {
    color: var(--primary-color);
}

.hole-selection-grid .cross-section-empty {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.hole-selection-grid .cross-section-empty svg {
    width: 20px;
    height: 20px;
}

/* Chart card */
.cs-main {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cross-section-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem 0.25rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
}

.cs-legend {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    max-height: 3.7rem;
    overflow-y: auto;
}

.cs-legend[hidden] {
    display: none;
}

.cs-legend-title {
    margin-right: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cs-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.5rem 0.1rem 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.45;
    cursor: pointer;
    transition: var(--transition);
}

.cs-legend-item:hover {
    border-color: var(--primary-color);
}

.cs-legend-swatch {
    flex: none;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, 0.35);
}

.cs-legend-item.is-off {
    border-style: dashed;
    background: var(--bg-color);
    color: var(--text-secondary);
}

.cs-legend-item.is-off .cs-legend-text {
    text-decoration: line-through;
}

.cs-legend-item.is-off .cs-legend-swatch {
    opacity: 0.2;
}

.cs-legend-reset {
    border: none;
    background: none;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

.cross-section-viz {
    flex: 1 1 auto;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

/* Absolutely positioned so the SVG never feeds back into the box size. */
.cross-section-viz > svg {
    position: absolute;
    inset: 0;
    display: block;
}

.cross-section-viz .cross-section-empty {
    height: 100%;
}

.cross-section-svg {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.cross-section-svg .axis path,
.cross-section-svg .axis line {
    stroke: #94a3b8;
    shape-rendering: crispEdges;
}

.cross-section-svg .axis text {
    fill: var(--text-secondary);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.cross-section-svg .grid line {
    stroke: var(--border-color);
    shape-rendering: crispEdges;
}

.cs-axis-title {
    fill: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.cs-datum {
    stroke: #64748b;
    stroke-width: 1.5;
    shape-rendering: crispEdges;
}

.cs-hole-trace {
    stroke: #334155;
    stroke-width: 1.5;
    stroke-dasharray: 3 2;
}

.cross-section-interval {
    stroke: #1e293b;
    stroke-width: 1;
    cursor: pointer;
    transition: filter 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.cross-section-interval:hover {
    filter: brightness(1.08);
    stroke-width: 1.8;
}

.cross-section-interval.primary-highlight {
    stroke-width: 2.6;
    filter: brightness(1.15);
}

.cross-section-interval.secondary-highlight {
    stroke-width: 2;
    stroke-dasharray: 4, 2;
    filter: brightness(1.05);
}

.cross-section-interval.is-muted {
    opacity: 0.1;
}

.cs-collar-marker {
    fill: #64748b;
}

.cs-collar-marker.is-offset {
    fill: #d97706;
}

.cs-labels {
    pointer-events: none;
}

.cs-label-leader {
    stroke: #94a3b8;
    stroke-width: 1;
}

.cross-section-hole-label {
    fill: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}

.cross-section-depth-label {
    fill: var(--text-secondary);
    font-size: 10px;
}

/* Detail panels: fixed height, scroll inside */
.cross-section-highlights {
    flex: none;
    height: 150px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.highlight-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
}

.primary-highlight-card {
    border-color: var(--primary-color);
}

.highlight-card-header {
    flex: none;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    white-space: nowrap;
}

.highlight-card-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.highlight-card-header h4 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.highlight-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.highlight-card-body.is-empty {
    color: var(--text-secondary);
}

.highlight-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
}

.highlight-chip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.highlight-details {
    display: grid;
    gap: 0.15rem;
}

.highlight-details span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
}

.highlight-matches {
    display: flex;
    flex-direction: column;
}

.highlight-matches .match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
}

.highlight-matches .match-item:last-child {
    border-bottom: none;
}

.match-item strong {
    color: var(--text-primary);
}

.match-item span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.cross-section-empty,
.plane-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
}

.cross-section-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.plane-container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    border-radius: 0.4rem;
}

.plane-container > svg {
    position: absolute;
    inset: 0;
    display: block;
}

.plane-empty {
    height: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.plane-projections line {
    stroke: #cbd5e1;
    stroke-dasharray: 2 2;
}

.plane-section-line {
    stroke: var(--primary-color);
    stroke-width: 2;
}

.plane-arrow-head {
    fill: var(--primary-color);
}

.plane-collar {
    fill: var(--text-primary);
    stroke: #fff;
    stroke-width: 1;
}

.plane-north path {
    fill: var(--text-secondary);
}

.plane-north text {
    fill: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .cs-hint {
        display: none;
    }
}

@media (max-height: 800px) {
    .cross-section-highlights {
        height: 118px;
    }
}

/* Phones and narrow tablets: fall back to a normal scrolling page. */
@media (max-width: 900px) {
    body.cs-fit {
        height: auto;
        overflow: visible;
        display: block;
    }

    body.cs-fit #cross-section-view.active {
        display: block;
    }

    .cs-toolbar {
        flex-wrap: wrap;
        margin-bottom: 0.6rem;
    }

    .cs-title {
        grid-template-columns: minmax(0, 1fr);
    }

    .cs-title h2,
    .cs-title .dataset-meta {
        white-space: normal;
    }

    .cs-view[data-orientation="ns"] .cs-body {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .cs-view[data-orientation="ns"] .cs-strip {
        max-height: 70vh;
    }

    .cross-section-viz {
        height: 420px;
    }

    .cross-section-highlights {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .highlight-card {
        height: 150px;
    }
}

/* Visualization Toolbar */
.viz-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.viz-toolbar-left {
    display: flex;
    gap: 0.5rem;
}

.viz-toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.viz-btn {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.viz-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.viz-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.viz-btn svg {
    width: 14px;
    height: 14px;
}

/* Scale Selector */
.scale-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scale-selector label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.scale-selector select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    background: var(--surface-color);
    cursor: pointer;
}

/* Pattern Fills for Lithology */
.lithology-pattern {
    stroke: none;
}

/* Cross-section View */
.cross-section {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.log-column-wrapper {
    flex: 1;
    min-width: 200px;
}

.log-column-header {
    background: var(--bg-color);
    padding: 0.75rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 2px solid var(--border-color);
}

.log-column-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.log-column-header .meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Statistics Panel */
.stats-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.stats-panel h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.stat-item {
    text-align: center;
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Loading Animation */
.viz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.viz-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.viz-loading p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Export Preview */
.export-preview {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
}

.export-preview .log-header {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.export-preview .log-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.export-preview .log-meta {
    font-size: 0.875rem;
    color: #666;
}

/* Responsive Visualization */
@media (max-width: 768px) {
    .log-visualization {
        padding: 0.5rem;
    }

    .cross-section {
        flex-direction: column;
    }

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

    .viz-toolbar-left,
    .viz-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .zoom-controls {
        flex-direction: row;
    }

    .d3-tooltip {
        max-width: 200px;
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .visualization-panel {
        border: none;
        box-shadow: none;
    }

    .viz-toolbar,
    .zoom-controls {
        display: none;
    }

    .log-visualization {
        background: white;
    }
}

/* SVG Specific Styles */
svg.log-viz-svg {
    display: block;
    margin: 0 auto;
}

svg.log-viz-svg text {
    user-select: none;
}

/* Color Scale Legend */
.color-scale {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

.color-scale-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.color-scale-swatch {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

/* Depth Markers */
.depth-marker {
    stroke: var(--text-secondary);
    stroke-width: 1;
    stroke-dasharray: 2, 2;
}

.depth-marker-label {
    font-size: 10px;
    fill: var(--text-secondary);
    font-weight: 500;
}

/* Minimap */
.minimap {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 80px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.minimap svg {
    width: 100%;
    height: auto;
}

.minimap-viewport {
    fill: rgba(37, 99, 235, 0.2);
    stroke: var(--primary-color);
    stroke-width: 1;
    cursor: move;
}
