/* Context-Menu für FolderTree (Right-Click). * Floating, ARIA-menu, Backdrop-Click + ESC schließen. */ .backdrop { position: fixed; inset: 0; z-index: 1000; background: transparent; } .menu { position: fixed; z-index: 1001; min-width: 200px; max-width: 320px; background: var(--color-bg-elevated, #ffffff); border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12)); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); padding: 4px 0; font-size: 13px; color: var(--color-text-primary, #222); user-select: none; } .header { padding: 4px 12px 6px; font-size: 11px; font-weight: 600; color: var(--color-text-secondary, #888); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .divider { height: 1px; margin: 4px 0; background: var(--color-border, rgba(0, 0, 0, 0.08)); } .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px; border: none; background: none; cursor: pointer; color: inherit; text-align: left; font: inherit; line-height: 1.2; } .item:hover, .item:focus-visible { background: var(--color-bg-hover, rgba(25, 118, 210, 0.08)); outline: none; } .item.danger { color: var(--color-error, #d32f2f); } .item.danger:hover, .item.danger:focus-visible { background: var(--color-bg-error, rgba(211, 47, 47, 0.08)); } .icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; font-size: 13px; flex-shrink: 0; } .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .shortcut { flex-shrink: 0; font-size: 11px; color: var(--color-text-secondary, #999); font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace; padding-left: 12px; } .empty { padding: 8px 12px; font-size: 12px; color: var(--color-text-secondary, #999); font-style: italic; }