/* ── PAINEL DE NOTAS ── */
.loud-notes-panel {
    position: fixed;
    right: 90px;
    bottom: 120px;
    width: 340px;
    max-height: 520px;
    background: #13131a;
    border: 1px solid rgba(139,92,246,.25);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    display: flex;
    flex-direction: column;
    z-index: 950;
    transition: opacity .2s, transform .2s;
}
.loud-notes-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.97);
}

/* Header arrastável */
.loud-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(139,92,246,.12);
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: .5px;
    text-transform: uppercase;
    user-select: none;
    border-radius: 14px 14px 0 0;
}
.loud-notes-header:active { cursor: grabbing; }
.loud-notes-header em { color: #8b5cf6; font-style: normal; }

.loud-notes-close {
    width: 24px; height: 24px;
    background: rgba(255,255,255,.06);
    border: none; border-radius: 6px;
    color: rgba(255,255,255,.5);
    font-size: .95rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.loud-notes-close:hover { background: rgba(255,80,80,.15); color: #ff5050; }

/* Textarea */
.loud-notes-textarea {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.85);
    font-family: 'Space Mono', 'DM Mono', monospace;
    font-size: .85rem;
    line-height: 1.65;
    resize: none;
    outline: none;
    min-height: 180px;
}
.loud-notes-textarea::placeholder { color: rgba(255,255,255,.18); }
.loud-notes-textarea::-webkit-scrollbar { width: 4px; }
.loud-notes-textarea::-webkit-scrollbar-thumb { background: rgba(139,92,246,.3); border-radius: 4px; }

/* Footer */
.loud-notes-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid rgba(139,92,246,.1);
}
.loud-notes-clear-btn {
    padding: 5px 12px;
    background: rgba(255,80,80,.08);
    border: 1px solid rgba(255,80,80,.15);
    border-radius: 7px;
    color: rgba(255,100,100,.7);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .5px;
}
.loud-notes-clear-btn:hover { background: rgba(255,80,80,.18); color: #ff5050; }

@media (max-width: 640px) {
    .loud-notes-panel {
        width: calc(100vw - 24px);
        right: 12px; left: 12px;
        bottom: 90px;
        max-height: 380px;
    }
}
