.fpv-root {
    direction: rtl;
    font-family: system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif
}

.fpv-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 800/500;
    line-height: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    overflow: hidden;
    background: #f8fafc;
    touch-action: none
}

    .fpv-stage.edit {
        border: 2px solid #22c55e;
        box-shadow: 0 10px 30px rgba(34,197,94,.25)
    }

    .fpv-stage.read {
        border: 1px solid #1e293b
    }

.fpv-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none
}

.fpv-status {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    margin-top: 10px
}

    .fpv-status > div {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 10px;
        padding: 8px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center
    }

    .fpv-status .k {
        font-size: 12px;
        color: #94a3b8
    }

    .fpv-status .v {
        font-size: 18px;
        font-weight: 700;
        color: #7dd3fc;
        direction: ltr
    }

.fpv-edit {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 10px 14px;
    background: #0f2a1f;
    border: 1px solid #22c55e;
    border-radius: 10px;
    font-size: 14px;
    color: #bbf7d0
}

    .fpv-edit .lbl {
        font-weight: 700;
        color: #22c55e
    }

    .fpv-edit input {
        width: 100px;
        padding: 7px 10px;
        border-radius: 8px;
        background: #0b1220;
        border: 1px solid #22c55e;
        color: #bbf7d0;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        direction: ltr
    }

.fpv-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit
}

    .fpv-btn:hover {
        background: #273449
    }

    .fpv-btn.danger {
        background: #7f1d1d;
        border-color: #b91c1c;
        color: #fecaca
    }

        .fpv-btn.danger:hover {
            background: #991b1b
        }
