/* Floating tools leave the current workspace in place. */
.floating-tool-open{display:block!important;position:fixed!important;right:auto!important;bottom:auto!important;width:min(380px,calc(100vw - 16px));height:min(550px,calc(100dvh - 16px));min-width:220px;min-height:170px;max-width:calc(100vw - 8px)!important;max-height:calc(100dvh - 8px)!important;overflow:auto!important;box-sizing:border-box!important;margin:0!important;padding:12px!important;border:1px solid #9fc3b6!important;border-radius:14px!important;background:#fff!important;box-shadow:0 16px 48px #15333f55!important;animation:tool-appear .12s ease-out}
.floating-tool-open>.work-close,.floating-tool-open>.owner-work-close{display:none!important}
.floating-tool-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;margin:-12px -12px 12px;background:#15333f;color:#fff;border-radius:12px 12px 0 0;cursor:move;touch-action:none;user-select:none;font-weight:700}
.floating-tool-open .floating-tool-close{display:inline-flex!important;width:32px!important;height:32px!important;min-height:32px!important;align-items:center;justify-content:center;padding:0!important;border:0!important;border-radius:6px;background:#e9f4ef!important;color:#173d3a!important;font-size:22px!important;cursor:pointer}
.floating-tool-resize{position:sticky;float:right;bottom:0;right:0;z-index:2;width:28px;height:28px;margin:0 -5px -5px 0;cursor:nwse-resize;touch-action:none;border-radius:5px;background:#e9f4ef url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"%3E%3Cpath d="M5 5 L23 23 M5 12 V5 H12 M16 23 H23 V16" fill="none" stroke="%230b8588" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/24px 24px no-repeat}
.compact-cash-detail>.cash-fly-content{position:fixed;z-index:95;width:min(330px,calc(100vw - 20px));max-height:min(320px,55dvh);overflow:auto;box-sizing:border-box;padding:12px;background:#fff;color:#203e4b;border:1px solid #aacfc1;border-radius:10px;box-shadow:0 12px 32px #15333f38;animation:cash-fly-in .12s ease-out}
.compact-cash-detail>.cash-fly-content p{margin:4px 0}.compact-cash-detail>summary{cursor:pointer}
@keyframes cash-fly-in{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tool-appear{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.floating-tool-open,.compact-cash-detail>.cash-fly-content{animation:none}}

.floating-edge{position:fixed;display:none;touch-action:none;user-select:none}
.floating-edge-n,.floating-edge-s{cursor:ns-resize}
.floating-edge-e,.floating-edge-w{cursor:ew-resize}
.floating-edge-nw,.floating-edge-se{cursor:nwse-resize}
.floating-edge-ne,.floating-edge-sw{cursor:nesw-resize}
