/* YUME DESIGN v16.9 – responsive desktop window controls */
@media (min-width:851px) and (hover:hover) and (pointer:fine){
  dialog.yume-window:not([open]){display:none!important}
  dialog.yume-window[open]{position:fixed!important;inset:auto!important;left:var(--yw-left)!important;top:var(--yw-top)!important;width:var(--yw-width)!important;height:var(--yw-height)!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;resize:none!important;transform:none!important;transition:none!important;contain:layout!important;}
  dialog.yume-window.yw-animate[open]{transition:left .18s ease-out,top .18s ease-out,width .18s ease-out,height .18s ease-out!important}
  .yume-window>.commerce-heading,.yume-window>.yume-store-head,.yume-window>.yume-ex-head{flex:0 0 auto;min-height:58px;display:flex;align-items:center;gap:10px;padding:12px 18px!important;margin:0!important;cursor:grab!important;user-select:none;touch-action:none;}
  .yume-window.yw-moving>.commerce-heading,.yume-window.yw-moving>.yume-store-head,.yume-window.yw-moving>.yume-ex-head{cursor:grabbing!important}
  .yume-window>.commerce-heading :is(button,input,a),.yume-window>.yume-store-head :is(button,input,a),.yume-window>.yume-ex-head :is(button,input,a){cursor:pointer!important}
  .yume-window>.purchase-content,.yume-window>.inquiry-content,.yume-window>.orders-content,.yume-window>.yume-storefront-body,.yume-window>.yume-ex-panel{overflow:auto!important;min-height:0!important;flex:1 1 auto!important;overscroll-behavior:contain;}
  .yume-window>.purchase-content,.yume-window>.inquiry-content,.yume-window>.orders-content{padding:18px 22px!important;}
  .yume-window>.yume-ex-message{flex:0 0 auto}
  .yume-window .yw-tools{display:flex;align-items:center;gap:5px;margin-left:auto;flex-shrink:0;white-space:nowrap;}
  .yume-window .yw-tools button{width:32px;height:32px;min-height:32px;padding:0!important;display:grid;place-items:center;background:#ffffffdd;color:#5b3673;border:1px solid #d5bde3;border-radius:9px;font:700 19px/1 system-ui;box-shadow:none;}
  .yume-window .yw-tools button:hover{background:#eadcf6;color:#452357}
  .yume-window .yw-tools button:focus-visible,.yume-window .yw-handle:focus-visible{outline:3px solid #a47cbe;outline-offset:2px}
  .yume-window .yw-tools [data-yw-max]{font-size:17px}
  .yume-window>.commerce-heading>button[data-close-dialog],.yume-window>.yume-store-head>button[data-close-store],.yume-window>.yume-ex-head>button[data-ex-close]{order:10;flex-shrink:0;margin-left:0!important}
  .yume-window .yw-handle{position:absolute;z-index:9;user-select:none;touch-action:none;border:0;background:transparent;padding:0;outline-offset:-4px;}
  .yume-window .yw-handle[data-edge="n"]{top:0;left:12px;right:12px;height:7px;cursor:ns-resize!important}
  .yume-window .yw-handle[data-edge="s"]{bottom:0;left:12px;right:12px;height:8px;cursor:ns-resize!important}
  .yume-window .yw-handle[data-edge="e"]{right:0;top:12px;bottom:12px;width:8px;cursor:ew-resize!important}
  .yume-window .yw-handle[data-edge="w"]{left:0;top:12px;bottom:12px;width:8px;cursor:ew-resize!important}
  .yume-window .yw-handle[data-edge="ne"]{top:0;right:0;width:15px;height:15px;cursor:nesw-resize!important}
  .yume-window .yw-handle[data-edge="sw"]{bottom:0;left:0;width:15px;height:15px;cursor:nesw-resize!important}
  .yume-window .yw-handle[data-edge="nw"]{top:0;left:0;width:15px;height:15px;cursor:nwse-resize!important}
  .yume-window .yw-handle[data-edge="se"]{bottom:0;right:0;width:22px;height:22px;cursor:nwse-resize!important;background:linear-gradient(135deg,transparent 56%,#b38fcb 57%,#b38fcb 61%,transparent 62%,transparent 70%,#b38fcb 71%,#b38fcb 75%,transparent 76%);border-bottom-right-radius:15px}
  body.yume-window-interacting,body.yume-window-interacting *{user-select:none!important}
  body.yume-window-interacting dialog.yume-window{box-shadow:0 18px 45px #20172c66!important}
  dialog.yume-window::backdrop{backdrop-filter:none!important;background:rgba(36,22,50,.47)!important;}
}
/* Keep the familiar full-width, scrollable modal on mobile/touch devices. */
@media (max-width:850px),(hover:none),(pointer:coarse){.yw-tools,.yw-handle{display:none!important}}
.yume-leftguard-popup{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #e5cce7;border-radius:20px;background:#fff9ff;box-shadow:0 14px 55px #2d174570;width:min(380px,calc(100vw - 36px));max-height:calc(100dvh - 30px);color:#4c355b;}
.yume-leftguard-popup::backdrop{background:#29143b77}
.yume-leftguard-content{padding:24px;text-align:center;display:grid;gap:11px}
.yume-leftguard-content h2{font-size:20px;margin:0}.yume-leftguard-content p{line-height:1.7;font-size:14px;margin:0}.yume-leftguard-content button{margin:auto;min-height:40px;padding:7px 25px;border:0;border-radius:12px;background:#7c57a1;color:#fff;font-weight:700;cursor:pointer}
.yume-leftguard-popup[open]{animation:yw-pop .18s ease-out both}
@keyframes yw-pop{from{opacity:.6;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.yume-leftguard-popup[open]{animation:none}}

@media (hover:hover) and (pointer:fine){body.yume-leftclick-protected{cursor:not-allowed!important}body.yume-leftclick-protected :is(button,a,[role="button"]){cursor:not-allowed!important}body.yume-leftclick-protected #yume-leftguard-dialog :is(button,a){cursor:pointer!important}}

@media (prefers-reduced-motion:reduce){dialog.yume-window[open]{transition:none!important}}
