/* ========================================
   Forest OS｜寫作室手機簡繁選單 Pilot V1

   The conversion trigger is the first item in the mobile toolbar.
   Its menu therefore opens from the left edge toward the screen,
   while the trailing more-tools menu remains right-aligned.
======================================== */

@media (max-width: 780px) {
    .writing-editor-toolbar {
        overflow: visible;
    }

    #writingConversionMenu:not([hidden]) {
        right: auto;
        left: 0;
        z-index: 40;
        width: min(260px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
    }

    #editorMoreMenu:not([hidden]) {
        right: 0;
        left: auto;
        z-index: 40;
        width: min(210px, 70vw);
    }

    #writingConversionMenu button {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
}
