/* Project identity stays above the independently scrolling construction controls. */
body > .panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100dvh;
}
.panel > .app-header { flex: 0 0 auto; }
.panel #configForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.panel #projectDataSection { flex: 0 0 auto; }
.project-settings-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}
/* Expanded details can scroll on short screens without losing the project number. */
#projectDataContent { max-height: 32dvh; overflow-y: auto; }
#productionPlantField[hidden], .save-files-menu .production-heading-row #productionDrawingStandardToggle[hidden] { display: none; }
.panel #configForm #productionPlantField.is-rapmet select {
    color: #fff;
    background-color: #2563eb;
    background-image: url('/assets/icons/night/menu-dropdown.png');
    border-color: color-mix(in srgb, #60a5fa 86%, transparent);
}
.panel #configForm #productionPlant option { color: var(--text); background: var(--field); }
.panel #configForm #productionPlant option[value="rapmet"] { color: #fff; background: #2563eb; }
.production-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.save-files-menu .production-heading-row .production-standard-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    min-height: 24px;
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: none;
}
.production-standard-track {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 16px;
    flex: 0 0 30px;
    border: 1px solid var(--muted);
    border-radius: 10px;
    background: var(--field);
}
.production-standard-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 120ms ease;
}
.production-standard-toggle[aria-checked="true"] .production-standard-track { background: #2563eb; border-color: #60a5fa; }
.production-standard-toggle[aria-checked="true"] .production-standard-track::after { transform: translateX(14px); background: #fff; }
.production-standard-toggle:focus-visible { outline: 2px solid var(--muted); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .production-standard-track::after { transition: none; } }
@media (max-width: 900px) { body > .panel { height: calc(100dvh - var(--mobile-topbar-height)); } }
