.viewport-context-menu {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 140px;
    display: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.context-menu-button {
    padding: 8px 12px;
    cursor: pointer;
    color: #e0e0e0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #444;
}

.context-menu-button:hover {
    background: #404040;
}

.context-menu-label {
    padding: 6px 12px 4px;
    color: #bbb;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.tools-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(2, auto); */
    gap: 1px;
    background: #444;
    padding: 1px;
    margin: 4px;
    border-radius: 2px;
}

.context-menu-tool {
    padding: 8px;
    cursor: pointer;
    color: #e0e0e0;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    font-size: 14px;
    min-height: 32px;
}

.context-menu-tool:hover {
    background: #404040;
}

.context-menu-tool.selected {
    background: #4a90e2;
    color: white;
}

.context-menu-tool.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.viewports-menu {
    display: flex;
    background: #2a2a2a;
}