/* Custom right-click menu (context-menu.js). Follows the page's light / dark mode. */
:root {
    --acm-bg: rgba(255, 255, 255, .94);
    --acm-text: #0b0b0c;
    --acm-line: rgba(11, 11, 12, .1);
    --acm-hover: rgba(255, 214, 10, .3);
    --acm-toast-bg: #0b0b0c;
    --acm-toast-text: #ffffff;
}
html[data-theme="dark"] {
    --acm-bg: rgba(24, 24, 27, .94);
    --acm-text: #f4f4f5;
    --acm-line: rgba(255, 255, 255, .12);
    --acm-hover: rgba(255, 214, 10, .18);
    --acm-toast-bg: #f4f4f5;
    --acm-toast-text: #0b0b0c;
}
.acm {
    position: fixed;
    z-index: 2147483000;
    min-width: 232px;
    max-width: 320px;
    padding: 6px;
    border: 1px solid var(--acm-line);
    border-radius: 14px;
    background: var(--acm-bg);
    color: var(--acm-text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    font: 500 14px/1.2 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: -.006em;
    opacity: 0;
    transform: scale(.96);
    transform-origin: var(--ox, 0) var(--oy, 0);
    transition: opacity .12s ease, transform .16s cubic-bezier(.2, .7, .2, 1);
    user-select: none;
}
.acm.is-in { opacity: 1; transform: none; }
.acm-i {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.acm-i svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.acm-i:hover, .acm-i:focus-visible { background: var(--acm-hover); outline: 0; }
.acm-i:hover svg, .acm-i:focus-visible svg { opacity: 1; }
.acm-i:disabled { opacity: .38; cursor: default; background: transparent; }
.acm-sep { height: 1px; margin: 6px 4px; background: var(--acm-line); }
.acm-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2147483001;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--acm-toast-bg);
    color: var(--acm-toast-text);
    font: 500 14px/1 'Geist', 'Inter', system-ui, sans-serif;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity .18s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
.acm-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
    .acm, .acm-toast { transition: none; }
}
@media print { .acm, .acm-toast { display: none !important; } }
