#menu_physics {
    padding: 0;
}

#menu_physics > button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 4px 10px 4px 8px;
    color: inherit;
    font: inherit;
    text-shadow: inherit;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

#menu_physics svg,
.potree-physics-actions svg {
    width: 17px;
    height: 17px;
    flex: none;
}

#menu_physics > button::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    margin-right: 3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

#menu_physics > button[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.potree-physics-content {
    padding: 12px 16px 15px;
    font-size: 13px;
}

.potree-physics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.potree-physics-actions button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: var(--bg-color-2, #344456);
    color: var(--font-color-2, #fff);
    font: inherit;
    cursor: pointer;
}

.potree-physics-actions button:hover:not(:disabled) {
    filter: brightness(1.25);
}

.potree-physics-actions button:disabled {
    opacity: 0.5;
    cursor: default;
}

#menu_physics button:focus-visible,
#potree-physics-controls :is(button, input):focus-visible {
    outline: 2px solid #35c8ff;
    outline-offset: -2px;
}

.potree-physics-status {
    margin: 10px 0 14px;
}

.potree-physics-settings > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 7px;
}

.potree-physics-settings output {
    font-variant-numeric: tabular-nums;
}

.potree-physics-settings input {
    grid-column: 1 / -1;
    width: 100%;
    margin: 3px 0;
}

.potree-physics-floor {
    display: block;
    margin-top: 10px;
}

#physics-ground-z {
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 10px;
}

.potree-physics-checks label {
    display: block;
    margin: 3px 0;
}

.potree-physics-tool-active {
    cursor: crosshair !important;
}

.potree-point-tools h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.potree-point-tools h4:last-child {
    margin: 14px 0 7px;
    padding-top: 10px;
    border-top: 1px solid #75949a;
}

.potree-point-tools button[aria-pressed="true"] {
    background: #184957;
    color: #a8edff;
}

.potree-point-tools [hidden] {
    display: none;
}

.point-tool-settings label {
    display: grid;
    grid-template-columns: 1fr minmax(0, 80px);
    align-items: center;
    gap: 5px;
    margin: 5px 0;
}

.point-tool-settings input {
    box-sizing: border-box;
    width: 100%;
}

.point-tool-instructions,
.point-tool-status {
    line-height: 1.35;
    margin: 7px 0;
}

.point-tool-status:empty {
    display: none;
}
