/* Moonlight floating panels — opt in; keep regular document flow by default. */
.yf-panel[hidden],.yf-dock button[hidden],.yf-app-dock button[hidden]{display:none!important}
.yf-panel{box-sizing:border-box;min-width:0}
.yf-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-height:38px;margin:-6px -5px 12px;padding:4px 0;border-bottom:1px solid #e9d8f0;position:relative;z-index:1}
.yf-grip{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#72528d;font-size:12px;font-weight:750;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.yf-toolbar [data-yf-action]{display:grid!important;place-items:center;flex:0 0 29px;width:29px;min-width:29px;min-height:30px;height:30px;padding:0!important;border:1px solid #e3cced!important;border-radius:9px!important;background:#fff7ff!important;color:#805b99!important;box-shadow:none!important;font-size:17px;font-weight:800;line-height:1}
.yf-toolbar [data-yf-action]:focus-visible,.yf-dock button:focus-visible,.yf-app-tools button:focus-visible,.yf-app-dock button:focus-visible{outline:3px solid #956bc0;outline-offset:2px}
.yf-floating{position:fixed!important;inset:auto!important;left:var(--yf-x)!important;top:var(--yf-y)!important;right:auto!important;bottom:auto!important;width:var(--yf-w)!important;max-width:calc(100vw - 16px)!important;height:var(--yf-h)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;overscroll-behavior:contain;box-shadow:0 20px 48px #48315d5c!important;touch-action:pan-y;background:#fffaff!important}
.yf-floating .yf-grip{cursor:grab}
.yf-collapsed>*:not(.yf-toolbar):not(h2){display:none!important}
.yf-collapsed{height:auto!important;min-height:70px!important;max-height:none!important;overflow:hidden!important}
.yf-floating.yf-collapsed{height:auto!important;min-height:78px!important}
.yf-placeholder{height:68px;min-width:0;border:1px dashed #d8bfe5;border-radius:13px;background:#fff7ff66}
.yf-placeholder[hidden]{display:none!important}
.yf-dock{position:fixed;z-index:660;left:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;gap:7px;flex-wrap:wrap;max-width:calc(100vw - 24px);pointer-events:none}
.yf-dock button,.yf-app-dock button{pointer-events:auto;min-height:42px;border:1px solid #eac9f1;border-radius:999px;padding:8px 12px;background:linear-gradient(130deg,#fff7ff,#f3e9ff);color:#76528a;font-size:12px;font-weight:750;box-shadow:0 6px 18px #704a8852}
.yf-utility-size{min-width:28px!important;min-height:29px!important;width:28px!important;height:29px!important;padding:0!important;display:grid!important;place-items:center!important;font-size:17px!important}
.yume-hub-panel-head{touch-action:none;cursor:grab}
.yume-bgm-panel-head{touch-action:none!important;cursor:grab!important}
.yf-app-dock{position:fixed;z-index:1000;bottom:calc(90px + env(safe-area-inset-bottom,0px));left:12px;right:12px;display:flex;gap:7px;flex-wrap:wrap;pointer-events:none}
.yf-app-tools{display:flex;align-items:center;gap:3px;margin-left:auto;flex-shrink:0}
.yf-app-tools button{padding:0!important;width:29px!important;height:32px!important;min-width:29px!important;min-height:32px!important;display:grid;place-items:center;border:1px solid #dec8ec!important;border-radius:9px!important;background:#fff8ff!important;color:#78538f!important;font-size:18px!important}
.yf-app-drag-head{touch-action:none!important;cursor:grab;user-select:none}
dialog.yf-app-window[open]{position:fixed!important;inset:auto!important;margin:0!important;left:var(--yf-x)!important;top:var(--yf-y)!important;width:var(--yf-w)!important;height:var(--yf-h)!important;min-height:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:18px!important}
dialog.yf-app-window .mobile-chat-layout{height:100%!important;max-height:100%!important;min-height:0!important}
dialog.yf-app-window .sheet-inner{height:100%;overflow:auto;overscroll-behavior:contain}
dialog.yf-app-window .app-community-header{flex-shrink:0;gap:4px}
dialog.yf-app-window iframe{height:calc(100% - 52px)!important}
@media(max-width:700px){.yf-toolbar{gap:2px}.yf-toolbar [data-yf-action]{min-height:32px;height:32px;flex-basis:31px;width:31px}.yf-grip{font-size:11px}.yf-dock{bottom:calc(11px + env(safe-area-inset-bottom,0px))}.yf-app-tools{gap:2px}.yf-app-tools button{width:28px!important;min-width:28px!important}.app-community-header strong{font-size:12px}.yf-floating{border-radius:18px!important}}
@media(prefers-reduced-motion:reduce){.yf-panel,.yf-app-window{transition:none!important;animation:none!important}}
/* The site's order, inquiry and gallery windows already have desktop controls.
   Expose those same controls on touch devices instead of the old desktop-only restriction. */
@media(max-width:850px),(hover:none),(pointer:coarse){
 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-height:0!important;min-width:0!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important}
 .yume-window>.commerce-heading,.yume-window>.yume-store-head,.yume-window>.yume-ex-head{display:flex;align-items:center;gap:3px;flex:0 0 auto;min-height:56px;cursor:grab;touch-action:none;user-select:none}
 .yume-window>.purchase-content,.yume-window>.inquiry-content,.yume-window>.orders-content,.yume-window>.yume-storefront-body,.yume-window>.yume-ex-panel{flex:1 1 auto;min-height:0;overflow:auto!important;overscroll-behavior:contain}
 .yume-window .yw-tools{display:flex!important;align-items:center;gap:3px;margin-left:auto;flex:0 0 auto}
 .yume-window .yw-tools button{display:grid;place-items:center;min-width:29px;width:29px;height:32px;min-height:32px;padding:0!important;border:1px solid #d9c4e7;border-radius:9px;background:#fff7fd;color:#705184;font:700 18px/1 system-ui}
 .yume-window .yw-handle{display:block!important;position:absolute;z-index:10;padding:0;border:0;background:transparent;touch-action:none}
 .yume-window .yw-handle[data-edge="se"]{bottom:0;right:0;height:27px;width:27px;background:linear-gradient(135deg,transparent 65%,#a987c6 66%,#a987c6 72%,transparent 73%);cursor:nwse-resize}
 .yume-window .yw-handle:not([data-edge="se"]){display:none!important}
}

.yw-minimized-dock{position:fixed;z-index:670;bottom:calc(64px + env(safe-area-inset-bottom,0px));left:12px;display:flex;flex-wrap:wrap;gap:7px;max-width:calc(100vw - 24px);pointer-events:none}
.yw-minimized-dock button{pointer-events:auto;min-height:42px;padding:8px 12px;border:1px solid #e4c7ee;border-radius:999px;background:#fff7ff;color:#744b8b;font-size:12px;font-weight:750;box-shadow:0 6px 16px #714e8955}
.yw-minimized-dock button[hidden]{display:none!important}

/* Shared icon-shaped tools, not extra independent accordion states. */
.yf-toolbar [data-yf-action="collapse"]{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important;border-radius:999px!important;font-size:23px!important;touch-action:manipulation}
.yf-icon-dock{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;font-size:22px!important;touch-action:manipulation}
.yf-icon-dock[hidden]{display:none!important}
.yf-dock,.yf-app-dock{gap:9px}
@media(max-width:700px){.yf-toolbar [data-yf-action="collapse"]{height:44px!important;min-height:44px!important;width:44px!important;min-width:44px!important;flex-basis:44px!important}}
