/* Lucian UX/UI #435 / #436 by Seokwoooo, MIT (assets/plugins/lucian/LICENSE).
 * Source: github.com/Seokwoooo/lucian-uxui-prompt @ 8749838ddc0987a0f7356ba9e2968fe419e7e06a.
 * Original spring, stack, swipe, check and trash-can keyframes retained. */
.u435, .u436 {
    --ux-surface: var(--jn-paper);
    --ux-surface-2: var(--jn-paper-muted);
    --ux-surface-3: var(--jn-line);
    --ux-line-2: var(--jn-line);
    --ux-ink: var(--jn-ink);
    --ux-ink-2: var(--jn-muted);
    --ux-ink-3: var(--jn-muted);
    --ux-accent: var(--jn-blue);
    --ux-mint: var(--jn-success);
    --ux-danger: var(--jn-danger);
    --ux-shadow: rgba(16, 35, 65, .12);
    --ux-shadow-strong: rgba(8, 20, 38, .35);
    --ux-ease: cubic-bezier(.2, .7, .3, 1);
    color: var(--ux-ink);
    font-family: var(--jn-font-ui);
}
.u435 { position: fixed; right: 20px; bottom: 20px; z-index: 10900; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.u435-rg { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; }
.u435-t {
    position: absolute; left: 0; right: 0; bottom: 0; min-height: 64px;
    display: flex; align-items: center; gap: 11px; padding: 14px 10px 14px 16px;
    border-radius: 16px; background: var(--ux-surface);
    box-shadow: 0 0 0 1px var(--ux-line-2), 0 14px 30px -14px var(--ux-shadow-strong), 0 2px 6px -2px var(--ux-shadow);
    transform-origin: 50% 100%; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--s, 1));
    opacity: var(--o, 1); transition: transform .62s cubic-bezier(.3, 1.42, .52, 1), opacity .3s var(--ux-ease);
    touch-action: pan-y; cursor: grab; pointer-events: auto;
}
.u435-t.is-drag { transition: opacity .3s var(--ux-ease); cursor: grabbing; }
.u435-t > * { transition: opacity .25s var(--ux-ease); }
.u435-t.is-back > * { opacity: 0; }
.u435-t[data-type="error"] { --ux-mint: var(--jn-danger); }
.u435-t[data-type="warning"] { --ux-mint: var(--jn-warning); }
.u435-t[data-type="info"] { --ux-mint: var(--jn-info); }
.u435-ic { position: relative; flex: none; width: 24px; height: 24px; }
.u435-ic > span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; transition: opacity .25s var(--ux-ease), transform .45s cubic-bezier(.34, 1.6, .5, 1); }
.u435-ic .ok { background: var(--ux-mint); color: var(--ux-surface); }
.u435-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.u435-ic .ok path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: u435-draw .4s var(--ux-ease) .22s forwards; }
.u435-t.is-in .u435-ic .ok { animation: u435-pop .5s cubic-bezier(.34, 1.7, .5, 1) .08s both; }
@keyframes u435-draw { to { stroke-dashoffset: 0; } }
@keyframes u435-pop { from { transform: scale(.3); } }
.u435-tx { flex: 1; min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.u435-tx b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.4; }
.u435-tx span { color: var(--ux-ink-2); font-size: 12.5px; line-height: 1.45; }
.u435-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; background: none; color: var(--ux-ink-3); cursor: pointer; transition: background-color .15s, color .15s; }
.u435-x:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.u435-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.u435 .u435-x:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 1px; }
.u435-pb { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; }
.u435-pb i { display: block; height: 100%; border-radius: inherit; background: var(--ux-mint); opacity: .75; transform-origin: 0 50%; animation: u435-pb linear forwards; }
@keyframes u435-pb { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.u435-rg.is-paused .u435-pb i { animation-play-state: paused; }
.u435-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.u436 { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow-y: auto; border: 0; border-radius: 20px; background: transparent; }
.u436::backdrop { background: rgba(8, 20, 38, .62); backdrop-filter: blur(3px); }
.u436-d { padding: 24px; border-radius: 20px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line-2), 0 28px 56px -24px var(--ux-shadow-strong), 0 4px 12px -4px var(--ux-shadow); outline: none; transition: transform .55s cubic-bezier(.3, 1.45, .5, 1), opacity .3s var(--ux-ease); }
.u436.is-gone .u436-d { transform: translateY(10px) scale(.92); opacity: 0; transition: transform .32s cubic-bezier(.5, 0, .75, 0), opacity .26s var(--ux-ease); }
.u436.is-pre .u436-d { transform: translateY(14px) scale(.9); opacity: 0; transition: none; }
.u436-ic { width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--ux-danger) 12%, transparent); color: var(--ux-danger); }
.u436-ic svg { width: 38px; height: 38px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.u436-ic .lid { transform-box: view-box; transform-origin: 6px 9.5px; }
.u436-ic .bd { transform-box: view-box; transform-origin: 16px 27px; }
.u436-ic .doc { opacity: 0; }
.u436-ic .doc path { fill: var(--ux-surface); stroke: currentColor; stroke-width: 1.5; }
.u436.is-del .u436-ic .lid { animation: u436-lid 1.25s cubic-bezier(.3, 1.3, .5, 1); }
.u436.is-del .u436-ic .doc { animation: u436-doc 1.25s cubic-bezier(.5, 0, .6, 1); }
.u436.is-del .u436-ic .bd { animation: u436-bd 1.25s ease-out; }
.u436.is-del .u436-ic { animation: u436-tile 1.25s ease-out; }
@keyframes u436-lid { 0% { transform: none; } 22%,58% { transform: rotate(-38deg); } 74% { transform: rotate(7deg); } 86%,100% { transform: none; } }
@keyframes u436-doc { 0%,14% { opacity: 0; transform: translateY(-14px) rotate(-8deg); } 26% { opacity: 1; transform: translateY(-12px) rotate(-4deg); } 52% { opacity: 1; transform: translateY(9px) rotate(0); } 60%,100% { opacity: 1; transform: translateY(14px); } }
@keyframes u436-bd { 0%,72% { transform: none; } 80% { transform: scale(1.07,.9); } 90% { transform: scale(.97,1.04); } 100% { transform: none; } }
@keyframes u436-tile { 0%,74% { transform: none; } 80% { transform: translateY(2px); } 90% { transform: translateY(-1px); } 100% { transform: none; } }
.u436-d h3 { margin: 0; color: var(--ux-ink); font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.u436-d p { margin: 8px 0 20px; font-size: 14px; line-height: 1.6; color: var(--ux-ink-2); overflow-wrap: anywhere; }
.u436-d .u436-error { color: var(--jn-danger); font-weight: 600; }
.u436-bs { display: flex; gap: 8px; }
.u436-bs button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 650; cursor: pointer; transform: scale(var(--k,1)); transition: transform .45s cubic-bezier(.34,1.7,.5,1), background-color .15s, opacity .2s; }
.u436-bs button:active:not(:disabled) { --k: .94; transition: transform .1s var(--ux-ease); }
.u436-no { background: transparent; box-shadow: inset 0 0 0 1px var(--ux-line-2); color: var(--ux-ink); }
.u436-no:hover:not(:disabled) { background: var(--ux-surface-2); }
.u436-ok { background: #d9304a; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.u436-ok:hover:not(:disabled) { background: #c2253e; }
.u436-bs button:disabled { cursor: wait; opacity: .6; }
.u436 button:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; }
.u436 .u436-ok:focus-visible { outline-color: var(--ux-danger); }
.jn-save-busy { cursor: wait; opacity: .7; }
@media (max-width: 575.98px) { .u435 { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } .u435-x { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .u435 *, .u436 * { animation-duration: .01ms !important; transition-duration: .01ms !important; } .u435-pb { display: none; } }
