.toolbox-mobile-actions, .toolbox-mobile-actions-space { display: none; }
@media screen and (max-width: 768px) {
    .toolbox-mobile-actions:not([hidden]) {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--toolbox-actions-bottom, 0px);
        z-index: 1049;
        padding: 10px 12px calc(10px + var(--toolbox-actions-safe, 0px));
        background: #fffcf7;
        color: #29221c;
        border-top: 1px solid #ddcdbb;
        box-shadow: 0 -3px 14px #39261014;
    }
    .toolbox-mobile-actions-row { display: flex; gap: 8px; }
    .toolbox-mobile-actions-row button {
        flex: 1 1 0;
        min-width: 44px;
        min-height: 44px;
        padding: 8px 6px;
        border: 1px solid #ddcdbb;
        border-radius: 8px;
        background: #fff;
        color: #574330;
        font: 600 14px/1.3 system-ui, sans-serif;
        white-space: nowrap;
        touch-action: manipulation;
    }
    .toolbox-mobile-actions-row button.is-primary { flex-grow: 1.6; background: #92400e; border-color: #92400e; color: #fff; }
    .toolbox-mobile-actions-row button:disabled { opacity: .65; cursor: wait; }
    .toolbox-mobile-actions-row button:focus-visible { outline: 3px solid #d97706; outline-offset: 2px; }
    .toolbox-mobile-actions-row button[aria-pressed="true"] { background: #ffedd5; border-color: #c45d15; color: #7c2d12; }
    .toolbox-mobile-actions-feedback { max-height: 24vh; overflow-y: auto; }
    .toolbox-mobile-actions-feedback .toolbox-download-status { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
    .toolbox-mobile-actions-feedback .toolbox-download-status:empty { display: none; }
    .toolbox-mobile-actions-feedback a { color: inherit; }
    .toolbox-mobile-actions-space { display: block; pointer-events: none; }
    body.toolbox-mobile-actions-active .toolbox-download-panel,
    body.toolbox-mobile-actions-active .zt-mobile-preview-actions { visibility: hidden; }
    body.toolbox-mobile-actions-active #siteFeedbackTrigger {
        bottom: calc(var(--toolbox-actions-bottom, 0px) + var(--toolbox-actions-height, 64px) + 10px);
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
    }
    body.toolbox-mobile-actions-active #siteFeedbackTrigger span { display: none; }
    [data-theme="dark"] .toolbox-mobile-actions { background: #2b2521; color: #f5ece3; border-color: #806a58; }
    [data-theme="dark"] .toolbox-mobile-actions-row button { background: #3b3028; border-color: #947b66; color: #f5ece3; }
    [data-theme="dark"] .toolbox-mobile-actions-row button.is-primary { background: #efb16f; border-color: #efb16f; color: #321c0d; }
    [data-theme="dark"] .toolbox-mobile-actions-row button[aria-pressed="true"] { background: #77502b; }
}
@media print { .toolbox-mobile-actions, .toolbox-mobile-actions-space { display: none !important; } }
@media screen and (max-width: 360px) {
    .toolbox-mobile-actions:not([hidden]) { padding-inline: 8px; }
    .toolbox-mobile-actions-row { gap: 6px; }
    .toolbox-mobile-actions-row button { padding-inline: 4px; font-size: 13px; }
}
