        #tts2audio-panel {
            position: fixed;
            top: max(48px, env(safe-area-inset-top));
            right: max(24px, env(safe-area-inset-right));
            width: min(980px, calc(100vw - 32px));
            height: min(820px, calc(100vh - 72px));
            min-width: min(420px, calc(100vw - 16px));
            min-height: 320px;
            z-index: 77;
            overflow: visible;
        }
        #tts2audio-frame {
            display: block;
            width: 100%;
            height: 100%;
            min-width: 0;
            min-height: 0;
        }
        .tts2audio-resize-handle { position: absolute; z-index: 3; touch-action: none; }
        .tts2audio-resize-n { top: -5px; left: 12px; right: 12px; height: 10px; cursor: ns-resize; }
        .tts2audio-resize-s { bottom: -5px; left: 12px; right: 12px; height: 10px; cursor: ns-resize; }
        .tts2audio-resize-e { top: 12px; right: -5px; bottom: 12px; width: 10px; cursor: ew-resize; }
        .tts2audio-resize-w { top: 12px; left: -5px; bottom: 12px; width: 10px; cursor: ew-resize; }
        .tts2audio-resize-ne { top: -6px; right: -6px; width: 16px; height: 16px; cursor: nesw-resize; }
        .tts2audio-resize-se { right: -6px; bottom: -6px; width: 18px; height: 18px; cursor: nwse-resize; }
        .tts2audio-resize-sw { left: -6px; bottom: -6px; width: 16px; height: 16px; cursor: nesw-resize; }
        .tts2audio-resize-nw { top: -6px; left: -6px; width: 16px; height: 16px; cursor: nwse-resize; }
