* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

.plot-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.plots-wrap {
    flex: 1;
    min-height: 0;
}

.plots {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 380px;
    min-height: 100%;
}

.plots.separate {
    width: max-content;
    min-width: min-content;
}

.plot {
    flex: 1 1 auto;
    height: calc(100vh - 108px);
    min-height: 600px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
}

.plots.separate .plot {
    flex: 0 0 300px;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

.curve-row.loaded {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.12), 0 8px 20px rgba(21, 32, 40, 0.05);
}

.curve-row.loaded .curve-label::after {
    content: "\2713";
    color: #0f766e;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
}

.curve-row .swatch {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

input[type="file"]::file-selector-button {
    margin-right: 0.6rem;
    border: 1px solid #cfd9df;
    border-radius: 0.5rem;
    background: #f4f7f8;
    padding: 0.25rem 0.6rem;
    font-size: 11px;
    font-weight: 600;
    color: #2f3b43;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: #e6ecef;
}
