/* Part 5 — walk, symbol, curves, and the silicon cut on one screen. */

body.cl-page {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.cl-page .ai-header,
body.cl-page .mt-series-mount,
body.cl-page .ai-site-footer { flex-shrink: 0; }

body.cl-page .control-loops-series-nav--bottom { display: none; }

body.cl-page .cl-workspace {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    overflow: hidden;
}

body.cl-page .cl-walk { max-height: 100%; }

body.cl-page .cl-lab {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.fet-panel {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fet-regime {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    width: 11rem;
    flex: 0 0 11rem;
}

.fet-regime-pill {
    display: block;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.fet-regime-pill.is-cutoff { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.fet-regime-pill.is-linear { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.fet-regime-pill.is-sat { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }

.fet-regime-note {
    font-size: 0.72rem;
    color: var(--ai-gray-600);
    line-height: 1.3;
}

.fet-bias-bar {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--ai-gray-200);
    border-radius: 10px;
}

.fet-bias-bar .im-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 12px;
    margin: 0;
}

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

.fet-views {
    flex: 1.15 1 0;
    min-height: 140px;
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(180px, 0.8fr);
    gap: 8px;
}

.fet-views > div,
.fet-xsec-row {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fet-xsec-row { flex: 0.9 1 0; min-height: 120px; margin: 0; }

.fet-views .im-canvas-wrap,
.fet-xsec-row .im-canvas-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    margin: 0;
}

.fet-views canvas,
.fet-xsec-row canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.fet-eq {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    font-size: 0.8rem;
}

.fet-eq .im-eq-row { margin: 0; }

@media (max-width: 1100px) {
    body.cl-page {
        height: auto;
        max-height: none;
        display: block;
        overflow: auto;
    }
    body.cl-page .cl-workspace { overflow: visible; height: auto; }
    .fet-views, .fet-bias-bar .im-controls { grid-template-columns: 1fr 1fr; }
    .fet-views canvas, .fet-xsec-row canvas { height: 220px; }
}
