﻿/**, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #1e293b;
    min-height: 100vh;
}*/

/* ── Top toolbar ──────────────────────────────────────────────────────── */
/*#toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

    #toolbar h1 {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        margin-right: 4px;
        white-space: nowrap;
    }

.sep {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    margin: 0 6px;
    flex-shrink: 0;
}

.grp-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    white-space: nowrap;
}

.btn {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #334155;
    transition: all .15s;
    white-space: nowrap;
    user-select: none;
}

    .btn:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .btn.on {
        background: #2563eb;
        color: #fff;
        border-color: #1d4ed8;
    }

        .btn.on:hover {
            background: #1d4ed8;
        }*/

    /* theme buttons keep their own active class */
    /*.btn.theme-active {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
    }*/

/* ── Settings panels ──────────────────────────────────────────────────── */
/*#panels {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    flex-wrap: wrap;
}

.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 280px;
    flex: 1;
}

.panel-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.field-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 10px;
}

.field-label {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.field-val {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #94a3b8;
    text-align: right;
    min-width: 28px;
}

input[type="color"] {
    width: 30px;
    height: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 2px;
    cursor: pointer;
    background: #fff;
}

input[type="range"] {
    width: 100%;
    accent-color: #2563eb;
    cursor: pointer;
}

select {
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}*/

/* Zone colour swatches row */
/*.swatch-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}*/



#chart-container {
    width: 100%;
    height: 560px;
    background: #fff;
    /*border: 1px solid #e2e8f0;*/
    border-radius: 10px;
    /*box-shadow: 0 2px 10px rgba(0,0,0,.06);*/
}

/* ── Status bar ───────────────────────────────────────────────────────── */
#status {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 10px;
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

/* ── Export dropdown ──────────────────────────────────────────────────── */
.export-item {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .1s;
}

    .export-item:hover {
        background: #f0f7ff;
        color: #1d4ed8;
    }

    .export-item + .export-item {
        border-top: 1px solid #f1f5f9;
    }

.export-icon {
    font-size: 14px;
    line-height: 1;
}

.export-note {
    margin-left: auto;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 400;
}

body.dark .export-item {
    color: #cbd5e1;
}

    body.dark .export-item:hover {
        background: #1e3a5f;
        color: #60a5fa;
    }

body.dark #export-menu {
    background: #1e293b;
    border-color: #334155;
}

body.dark .export-note {
    color: #475569;
}

/* ── Dark mode ────────────────────────────────────────────────────────── */
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

    body.dark #toolbar {
        background: #1e293b;
        border-color: #334155;
    }

    body.dark .grp-label {
        color: #475569;
    }

    body.dark .btn {
        background: #1e293b;
        color: #cbd5e1;
        border-color: #334155;
    }

        body.dark .btn:hover {
            background: #334155;
        }

        body.dark .btn.on {
            background: #2563eb;
        }

    body.dark .panel {
        background: #1e293b;
        border-color: #334155;
    }

    body.dark .field-label {
        color: #94a3b8;
    }

    body.dark select {
        background: #1e293b;
        color: #cbd5e1;
        border-color: #334155;
    }

    body.dark #chart-container {
        background: #1e293b;
        border-color: #334155;
    }

    body.dark #status {
        background: #1e293b;
        border-color: #334155;
        color: #64748b;
    }
