.stock-mc-scene .stock-m-content { gap: 10px; }

.stock-mc-math {
    margin: 0;
    border-radius: 7px;
    padding: 6px 9px;
    background: #ebe5d6;
    color: var(--stock-m-muted);
    font-size: clamp(11px, 1.6vw, 13px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.stock-mc-math strong { color: var(--stock-m-ink); }

.stock-mc-waterfall {
    display: grid;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.stock-mc-waterfall > li {
    display: grid;
    grid-template-columns: minmax(4.3rem, 7rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    font-size: clamp(11px, 1.75vw, 14px);
}
.stock-mc-waterfall > li:nth-child(2) { --stock-mc-delay: .07s; }
.stock-mc-waterfall > li:nth-child(3) { --stock-mc-delay: .14s; }
.stock-mc-waterfall > li:nth-child(4) { --stock-mc-delay: .21s; }
.stock-mc-waterfall > li:nth-child(5) { --stock-mc-delay: .28s; }
.stock-mc-waterfall strong { text-align: end; white-space: nowrap; }
.stock-mc-track {
    position: relative;
    height: 12px;
    border-radius: 3px;
    background: #e4dfd0;
}
.stock-mc-track > i {
    position: absolute;
    inset: 0 auto 0 var(--stock-mc-start);
    width: var(--stock-mc-width);
    border-radius: inherit;
    background: var(--stock-m-cash);
    animation: stock-mc-enter .42s ease-out both;
    animation-delay: var(--stock-mc-delay, 0s);
}
.stock-mc-track > i.is-decrease { background: #ab6040; }
@keyframes stock-mc-enter {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

.stock-mc-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 7px;
    overflow: hidden;
    background: var(--stock-m-paper);
    font-size: clamp(11px, 1.7vw, 14px);
    text-align: end;
}
.stock-mc-table :is(th, td) {
    padding: 5px clamp(4px, 1.4vw, 10px);
    border-bottom: 1px solid #e7e6d9;
    line-height: 1.3;
}
.stock-mc-table tr > :first-child { text-align: start; }
.stock-mc-table td { white-space: nowrap; }
.stock-mc-table thead { background: #e8eee0; color: var(--stock-m-muted); }
.stock-mc-table tbody tr:last-child > * { border: 0; }
.stock-mc-table .stock-mc-main { background: #f6e9d9; color: #713a25; font-weight: 790; }
.stock-mc-insight {
    display: grid;
    gap: 4px;
    margin: 0;
    border-left: 3px solid #849b82;
    padding: 6px 9px;
    background: #e8eee0;
    border-radius: 0 7px 7px 0;
    color: var(--stock-m-muted);
    line-height: 1.4;
    font-size: clamp(11px, 1.7vw, 13px);
}
.stock-mc-insight strong { color: var(--stock-m-ink); }

.stock-mc-steps {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(3px, 1.3vw, 10px);
}
.stock-mc-steps .stock-m-tile strong { white-space: nowrap; }
.stock-mc-lab .stock-m-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stock-mc-timing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 9px;
    min-width: 0;
    color: var(--stock-m-muted);
    font-size: clamp(11px, 1.7vw, 13px);
}
.stock-mc-timing label { font-weight: 720; }
.stock-mc-timing select {
    min-height: 29px;
    padding: 3px 8px;
    border: 1px solid var(--stock-m-line);
    border-radius: 6px;
    background: var(--stock-m-paper);
    color: var(--stock-m-ink);
    font: inherit;
    cursor: pointer;
}
.stock-mc-lab :is(input, select, button):focus-visible {
    outline: 2px solid var(--stock-m-cash);
    outline-offset: 2px;
}
.stock-mc-readout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.stock-mc-readout > div {
    display: grid;
    gap: 2px;
    align-content: start;
    min-width: 0;
    padding: 6px;
    border: 1px solid #adbfaa;
    border-radius: 7px;
    background: var(--stock-m-green);
}
.stock-mc-readout span { color: var(--stock-m-muted); font-size: clamp(10px, 1.5vw, 12px); }
.stock-mc-readout strong {
    font-size: clamp(12px, 2vw, 17px);
    overflow-wrap: anywhere;
}
.stock-mc-lab .stock-m-outcome { line-height: 1.42; }

@media (max-width: 480px) {
    .stock-mc-scene .stock-m-content { gap: 7px; }
    .stock-mc-waterfall > li { grid-template-columns: minmax(4.6rem, 6.1rem) minmax(0, 1fr) auto; }
    .stock-mc-lab .stock-m-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .stock-mc-track > i { animation: none; }
}
