.iot-orchestration-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #070707;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

#iot-orchestration-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.orch3d-label-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 6;
}

.iot-orchestration-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(10,10,10,0.78);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 8px 14px;
}

.iot-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.iot-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.iot-orchestration-stats {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    gap: 8px;
}

.iot-stat-box {
    background: rgba(10,10,10,0.85);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 84px;
    text-align: center;
}

.iot-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
}

.iot-stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #ffb000;
}

.orch3d-node-label {
    pointer-events: none;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
}

.orch3d-tag {
    background: rgba(10,10,10,0.8);
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    color: #9fcaff;
    letter-spacing: .5px;
}

.orch3d-title {
    display: inline-block;
    background: rgba(10,10,10,0.85);
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffb000;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.orch3d-platform-label .orch3d-title {
    font-size: 12px;
    padding: 5px 12px;
}

.orch3d-twin-label {
    pointer-events: none;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
}

.orch3d-twin-row {
    margin-top: 4px;
    font-size: 10px;
    color: #9fcaff;
    background: rgba(10,10,10,0.7);
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
}

.orch3d-twin-row span {
    color: #fff;
    font-weight: 700;
    margin-left: 4px;
}

.orch3d-ai-label {
    pointer-events: none;
}

.orch3d-ai-status {
    margin-top: 4px;
    font-size: 9px;
    color: #ffc24d;
    background: rgba(10,10,10,0.75);
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .iot-orchestration-canvas-wrapper {
        height: 360px;
    }
    .iot-orchestration-legend {
        gap: 8px;
        padding: 6px 10px;
        max-width: calc(100% - 32px);
    }
    .iot-legend-item {
        font-size: 9px;
    }
    .iot-orchestration-stats {
        flex-wrap: wrap;
        max-width: calc(100% - 32px);
        justify-content: flex-end;
    }
    .iot-stat-box {
        min-width: 70px;
        padding: 6px 8px;
    }
    .iot-stat-value {
        font-size: 13px;
    }
    .orch3d-title {
        font-size: 9px;
        padding: 3px 7px;
    }
}