.ps-debug-overlay {
    position: fixed;
    top: 0rem;
    right: 2rem;
    width: 17rem;
    height: 28rem;
    background: rgba(20, 23, 37, 0.85);
    color: #f4f5f7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.85rem;
    z-index: 2147483647;
    border-radius: 0.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    backdrop-filter: blur(6px);
    user-select: none;
}

.ps-debug-overlay__header {
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(12, 15, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-debug-overlay__title {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.ps-debug-overlay__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(12, 15, 30, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-debug-overlay__select {
    flex: 1;
    background: rgba(14, 18, 30, 0.85);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.35rem;
    padding: 0.35rem 0.5rem;
}

.ps-debug-overlay__textarea {
    height: 100%;
    width: 100%;
    background: transparent;
    color: inherit;
    border: none;
    outline: none;
    font: inherit;
    resize: none;
    white-space: pre;
}

.ps-debug-overlay__body {
    height: calc(100% - 4.5rem);
    padding: 0.75rem;
    overflow: auto;
    user-select: text;
    color: #f4f5f7;
}

.ps-debug-overlay__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(12, 15, 30, 0.6);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-debug-overlay__button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: inherit;
    border-radius: 0.35rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.15s ease;
}

.ps-debug-overlay__button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ps-debug-overlay__resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.35) 100%);
    opacity: 0.7;
}

.ps-debug-overlay__pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    color: #f4f5f7;
    background: transparent;
    line-height: 1.4;
}

.ps-debug-overlay__hidden {
    display: none;
}

.ps-debug-overlay__toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2147483646;
    background: rgba(20, 23, 37, 0.85);
    color: #f4f5f7;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.ps-debug-overlay__toggle:hover {
    background: rgba(20, 23, 37, 0.95);
}
