.tgp-live-position-layer {
    position: absolute;
    inset: 0;
    z-index: 14;
    pointer-events: none;
    overflow: hidden;
}

.tgp-live-position-entry,
.tgp-live-position-handle {
    position: absolute;
    right: 76px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    background: rgba(7, 13, 23, 0.86);
    color: #dff8ff;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.tgp-live-position-entry {
    padding: 0 8px;
    color: #bff6ff;
    border-color: rgba(34, 211, 238, 0.42);
    pointer-events: auto;
    cursor: ns-resize;
    user-select: none;
    touch-action: none;
}

.tgp-live-position-entry.is-sell {
    color: #ead7ff;
    border-color: rgba(192, 132, 252, 0.42);
}

.tgp-live-position-entry span {
    font-weight: 900;
}

.tgp-live-position-entry strong {
    font-weight: 700;
    color: rgba(226, 232, 240, 0.9);
}

.tgp-live-position-entry:hover,
.tgp-live-position-entry:focus-visible {
    outline: 0;
    filter: brightness(1.08);
    transform: translateX(-2px);
}

.tgp-live-position-handle {
    min-width: 104px;
    justify-content: space-between;
    padding: 0 8px 0 0;
    border: 0;
    cursor: ns-resize;
    pointer-events: auto;
    user-select: none;
}

.tgp-live-position-handle__kind {
    align-self: stretch;
    min-width: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    color: #fff;
    font-weight: 900;
}

.tgp-live-position-handle__price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 800;
}

.tgp-live-position-handle.is-sl {
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #fee2e2;
}

.tgp-live-position-handle.is-sl .tgp-live-position-handle__kind {
    background: rgba(239, 68, 68, 0.9);
}

.tgp-live-position-handle.is-tp {
    border: 1px solid rgba(34, 197, 94, 0.34);
    color: #dcfce7;
}

.tgp-live-position-handle.is-tp .tgp-live-position-handle__kind {
    background: rgba(34, 197, 94, 0.9);
}

.tgp-live-position-handle:hover,
.tgp-live-position-handle:focus-visible {
    outline: 0;
    filter: brightness(1.08);
    transform: translateX(-2px);
}

body.tgp-live-position-dragging {
    cursor: ns-resize;
    user-select: none;
}

@media (max-width: 768px) {
    .tgp-live-position-entry,
    .tgp-live-position-handle {
        right: 10px;
    }

    .tgp-live-position-entry {
        height: 22px;
        font-size: 9px;
        padding: 0 6px;
    }

    .tgp-live-position-handle {
        min-width: 84px;
        height: 24px;
        font-size: 9px;
    }
}
