/* Gaussian beams tool specifics (layout and colours come from the shared optics theme) */
.tool-page .gb-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.gb-lens {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

.gb-lens h4 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gb-note {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gb-solve {
    width: 100%;
    margin-top: 6px;
}

.gb-solutions p {
    margin: 10px 0 6px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.gb-solutions .gb-apply {
    display: block;
    width: 100%;
    margin-top: 6px;
    text-align: left;
    white-space: normal;
}

.preset-note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.preset-note:empty {
    display: none;
}

#envCanvas {
    touch-action: none;
}

.optics-related {
    margin: 28px 0;
}

.optics-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.optics-related li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
}

.optics-related li span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#lensTable td,
#lensTable th {
    white-space: nowrap;
}

.optics-badge[hidden] {
    display: none !important;
}