
.network-section{border:1px solid #a7bcb2;background:#edf4ef;border-radius:9px;padding:11px;margin:12px 0}.network-section h3{margin:7px 0}.network-section label{display:block;margin-top:7px;font-size:12px}.network-section input,.network-section select{width:100%}.network-section input[type=checkbox]{width:auto}.network-section .row button{flex:1}.network-section .netresult{background:white;border:1px solid #cbd9cf;padding:9px;border-radius:7px;white-space:pre-wrap;font-size:12px;line-height:1.5}.netroads{max-height:150px;overflow:auto;background:white;border-radius:5px}.netroads div{padding:5px;border-bottom:1px solid #ddd;font-size:12px}
/* CHART — Central map drawing toolbar */

.map-toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f3ed;
    border-bottom: 1px solid #c9c7bf;
    flex-shrink: 0;
}

.map-toolbar .tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.map-toolbar .tools button {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 12px;
    white-space: nowrap;
}

.map-toolbar #instruction {
    font-size: 12px;
    padding: 4px 8px;
    margin: 0;
}

/* ==========================================
   CHART — Historical Feature Palette Colours
   ========================================== */

/* Main category buttons */

#featurePalette .palette-categories button {
    border: 1px solid #cbd5d1;
    background: #f4f5f2;
    color: #33443c;
    font-weight: 600;
    transition: background 0.15s ease;
}

/* Selected main category */

#featurePalette .palette-categories button.active {
    background: var(--category-color);
    border-color: var(--category-color);
    color: #ffffff;
}

/* Feature buttons belonging to selected category */

#featurePalette .palette-features {
    background: color-mix(
        in srgb,
        var(--category-color) 12%,
        white
    );

    border: 1px solid var(--category-color);
    border-radius: 8px;
    padding: 10px;
}

/* Individual feature buttons */

#featurePalette .palette-features button {
    background: #ffffff;
    border: 1px solid var(--category-color);
    color: #263b34;
}

/* Hover effect */

#featurePalette .palette-features button:hover {
    background: color-mix(
        in srgb,
        var(--category-color) 18%,
        white
    );
}

/* Selected historical feature */

#featurePalette .palette-features button.active {
    background: var(--category-color);
    border-color: var(--category-color);
    color: #ffffff;
    font-weight: 600;
}
/* ==========================================
   CHART — Map Layout and Visible Controls
   ========================================== */

/* Keep the central map within the available screen height */

.mapwrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Allow the historical feature toolbar to scroll
   if it becomes too tall */

.map-toolbar {
    flex: 0 0 auto;
    max-height: 38vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Allow the map to use the remaining space */

.mapwrap > svg#map {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

/* Keep zoom buttons visible in the map area */

.mapwrap .zoom {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 10;
}

/* ==========================================
   CHART — Empty Map Workspace
   ========================================== */

.empty-map-message {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: #eef0ec;

    z-index: 5;
}

.empty-map-message.hidden {
    display: none;
}

.empty-map-content {
    max-width: 420px;
    text-align: center;

    padding: 30px;

    background: #ffffff;
    border: 1px solid #d4ddd5;
    border-radius: 12px;

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.empty-map-content h2 {
    margin-top: 0;
    color: #263f35;
}

.empty-map-content p {
    line-height: 1.6;
}

.empty-map-content button {
    margin-top: 12px;

    padding: 10px 18px;

    background: #315d4b;
    color: white;

    border: none;
    border-radius: 6px;

    cursor: pointer;
}
