.ds-note,
.ds-expect {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--g-ink-3);
}

.ds-expect {
    margin-top: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-left: 2px solid var(--g-gold);
    background: var(--g-panel-2);
    color: var(--g-ink-2);
}

.ds-note.is-warning {
    color: var(--g-ember);
    font-weight: 600;
}

.ds-select {
    width: 100%;
    max-width: 100%;
    padding: 0.45rem 0.6rem;
    font: inherit;
    font-size: 0.88rem;
}

.ds-zoom,
.ds-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ds-zoom {
    margin-top: 0.5rem;
}

.ds-zoom .action-btn,
.ds-resample {
    flex: 1 1 auto;
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
}

.ds-resample {
    margin-top: 0.5rem;
    width: 100%;
}

.ds-actions {
    margin: 0;
    padding: 0;
}

.ds-speed {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--g-ink-2);
}

.ds-speed .ds-select {
    width: auto;
    padding: 0.3rem 0.4rem;
}

body.tool-optics-lab .ds-readouts {
    margin-top: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
    gap: 8px 16px;
}

body.tool-optics-lab .ds-readouts>div {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1px;
    padding: 4px 0;
    border-bottom: 1px solid var(--g-rule);
}

body.tool-optics-lab .ds-readouts dd {
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.tool-optics-lab .ds-readouts>div.is-warning dd {
    color: var(--g-ember);
}

body.tool-optics-lab .ds-readouts>div.is-bad dd {
    color: var(--g-rose);
    font-weight: 700;
}

#ordersTable tr.ds-missing td {
    font-style: italic;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

#plotCanvas,
#detCanvas {
    cursor: crosshair;
}

#regimeWarn a {
    font-weight: 600;
}

body.tool-optics-lab .ds-related {
    margin: 32px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--g-rule-strong);
}

body.tool-optics-lab .ds-related h2 {
    margin: 0 0 10px;
    font-family: var(--g-font-display);
    font-size: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--g-ink);
}

body.tool-optics-lab .ds-related ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.tool-optics-lab .ds-related li {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--g-rule);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--g-ink-3);
}

body.tool-optics-lab .ds-related a {
    color: var(--g-ink);
    font-weight: 500;
    text-decoration: none;
}

body.tool-optics-lab .ds-related a:hover {
    color: var(--g-gold);
    text-decoration: underline;
}

body.tool-optics-lab .ds-related {
    margin: 40px 0 24px;
}

body.tool-optics-lab .ds-related li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.tool-optics-lab .ds-related span {
    font-size: 0.82rem;
    color: var(--g-ink-3);
}