
.am-lab02 {
    background: #f2f4f7;
    padding: 28px;
    border-radius: 18px;
    margin: 24px 0;
}

.am-lab02-shell {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.am-lab02-header {
    margin-bottom: 20px;
}

.am-lab02-intro,
.am-lab02-note,
.am-lab02-mode-description,
.am-lab02-observation p {
    color: #334155;
}

.am-lab02-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.am-lab02-main {
    display: grid;
    gap: 18px;
}

.am-lab02-controls,
.am-lab02-canvas-wrap,
.am-lab02-system-state,
.am-lab02-legend {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 18px;
}

.am-lab02-controls h3,
.am-lab02-legend h3,
.am-lab02-system-state h3,
.am-lab02-observation h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.am-lab02-observation h4 {
    font-size: 15px;
    margin-top: 14px;
}

.am-lab02-control-row {
    margin-bottom: 16px;
}

.am-lab02-control-row select,
.am-lab02-control-row input[type="range"] {
    width: 100%;
}

.am-lab02-controls label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.am-lab02-strength-readout {
    margin: 2px 0 8px;
    font-size: 13px;
    color: #475569;
}

.am-lab02-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.am-lab02-buttons .am-btn {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    background: #006f76;
}

.am-lab02-buttons .am-btn:hover {
    filter: brightness(0.94);
}

.am-lab02-mode-title {
    font-size: 20px;
    font-weight: 700;
    color: #006f76;
    margin-bottom: 6px;
}

.am-lab02-canvas-wrap canvas {
    width: 100%;
    height: auto;
    display: block;
}

.am-lab02-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.am-lab02-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.am-lab02-stat span {
    color: #334155;
}

.am-lab02-stat strong {
    color: #0f172a;
    text-align: right;
}

.am-lab02-legend div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
}

.am-lab02-swatch {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 3px;
}

.am-lab02-swatch.am-origin { background: #c06b00; }
.am-lab02-swatch.am-pass { background: #939597; }
.am-lab02-swatch.am-intervene { background: #0f9d58; }
.am-lab02-swatch.am-impact { background: #dc2626; }
.am-lab02-swatch.am-marker { background: #006f76; border-radius: 999px; }

@media (max-width: 980px) {
    .am-lab02-layout,
    .am-lab02-lower {
        grid-template-columns: 1fr;
    }
}


.am-lab02-controls {
    margin-top: 20px;
}

.am-lab02-case-list {
    display: grid;
    gap: 10px;
}

.am-lab02-case-option {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.am-lab02-case-option:hover {
    border-color: rgba(0, 111, 118, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 111, 118, 0.08);
}

.am-lab02-case-option.is-active {
    border-color: #006f76;
    background: rgba(0, 111, 118, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 111, 118, 0.10);
}

.am-lab02-case-option-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.25;
}

.am-lab02-case-option-text {
    display: block;
    font-size: 13px;
    color: #475569;
    line-height: 1.35;
}

.am-lab02-stage-inner {
    display: flex;
    justify-content: center;
}

.am-lab02-barrier-row {
    margin-left: auto;
    margin-right: auto;
}
