/* Schematic of the plant on a template page. */
.schematic svg {
    width: 100%;
    max-width: 640px;
    height: auto;
}

.schematic .rail {
    stroke: var(--pico-muted-border-color, #cccccc);
    stroke-width: 2;
}

.schematic .wire {
    stroke: var(--pico-muted-color, #888888);
    stroke-width: 2;
}

.schematic rect {
    fill: var(--pico-card-background-color, #f5f5f5);
    stroke: var(--pico-primary, #555555);
    stroke-width: 1.5;
}

.schematic text {
    fill: var(--pico-color, #333333);
    font-size: 14px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.schematic .rail-label {
    fill: var(--pico-muted-color, #888888);
    font-size: 12px;
    text-anchor: start;
}

/* Reserved for greying disabled components once the schematic is interactive. */
.schematic .component.disabled {
    opacity: 0.35;
}

/* Form action buttons (Solve / Reset) in a row rather than Pico's default full width. */
.actions {
    display: flex;
    gap: 0.75rem;
}

.actions button {
    width: auto;
}

/* Headline numbers above the charts. */
.numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.numbers article {
    margin: 0;
    padding: 1rem;
}

.numbers small {
    display: block;
    color: var(--pico-muted-color, #888888);
}

/* Solved energy-balance chart (ECharts mounts into this div; needs an explicit size). */
.result-plot {
    max-width: 760px;
    height: 380px;
    margin-bottom: 1.5rem;
}

/* Live run console: streamed log lines, capped height with scroll-back. */
.run .console {
    max-height: 12rem;
    overflow-y: auto;
    margin: 0;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
}
