/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE LAYOUT — Drill-down navigation UX
   Components render these classes only when IMobileLayoutService.IsMobile == true.
   Desktop never sees this markup (no CSS-only hiding).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile Page Header (back button + title) ────────────────────────── */
.mobile-page-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--linkooc-border-color, #dee2e6);
    position: sticky;
    top: 0;
    background: var(--linkooc-bg, #fff);
    z-index: 10;
    min-height: 48px;
    flex-shrink: 0;
}

.mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 44px;
    height: 44px;
    padding: 0 0.5rem 0 0.25rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 1.25rem;
    color: var(--linkooc-text, #212529);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    max-width: 50%;
}

.mobile-back-btn:active {
    background: var(--linkooc-surface-hover, #f5f5f5);
}

.mobile-back-label {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-page-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: var(--linkooc-text, #212529);
}

.mobile-count-badge {
    font-size: 0.8125rem;
    color: var(--linkooc-text-muted, #6d6d6d);
    flex-shrink: 0;
}

/* ── Mobile Full-Screen Panels ───────────────────────────────────────── */
.linkooc-mobile-list,
.linkooc-mobile-detail,
.menu-editor-mobile-tree,
.menu-editor-mobile-detail {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.linkooc-mobile-list .linkooc-list-container,
.linkooc-mobile-detail,
.menu-editor-mobile-tree,
.menu-editor-mobile-detail {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Touch-Friendly List Items ───────────────────────────────────────── */
.linkooc-mobile-list .linkooc-list-item {
    min-height: 52px;
    padding: 0.75rem 1rem;
}

/* ── Mobile Tabs: horizontal scroll ──────────────────────────────────── */
@media (max-width: 768px) {
    .linkooc-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .linkooc-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .linkooc-tabs {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .linkooc-tab {
        white-space: nowrap;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    /* Item detail tabs: horizontal scroll instead of wrapping */
    .linkooc-detail-container>.nav-tabs {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .linkooc-detail-container>.nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .linkooc-detail-container>.nav-tabs .nav-item {
        flex-shrink: 0;
    }

    .linkooc-detail-container>.nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    /* Page header: stack title/actions vertically */
    .linkooc-page-header .d-flex.justify-content-between {
        flex-direction: row;
        gap: 0.5rem;
    }

    /* Mobile detail: hide duplicate item name (already in MobilePageHeader) */
    .linkooc-mobile-detail .linkooc-detail-title {
        display: none;
    }

    .linkooc-mobile-detail .linkooc-detail-header-row1 {
        justify-content: flex-start;
    }

    .linkooc-mobile-detail .linkooc-panel-header--two-rows {
        padding: 0.5rem 0.75rem;
    }

    /* Mobile detail: fix detail container to fill remaining space and allow scroll */
    .linkooc-mobile-detail .linkooc-detail-container {
        flex: 1;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .linkooc-mobile-detail .linkooc-detail-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    /* M3: Hide toolbar controls on mobile */
    .linkooc-toolbar .linkooc-toolbar-reload,
    .linkooc-toolbar .linkooc-toolbar-view-toggle {
        display: none !important;
    }

    .linkooc-toolbar .linkooc-toolbar-filter-text {
        display: none;
    }
}

/* ── Mobile Compact Establishment List (M1) ─────────────────────────── */
.linkooc-mobile-establishment-list {
    display: flex;
    flex-direction: column;
}

.linkooc-mobile-est-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--linkooc-border-color, #eee);
    cursor: pointer;
    min-height: 56px;
    /* M5: 44px minimum touch target */
    -webkit-tap-highlight-color: transparent;
}

.linkooc-mobile-est-row:active {
    background: var(--linkooc-surface-hover, #f8f9fa);
}

.linkooc-mobile-est-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--linkooc-primary, #2e7d32);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.linkooc-mobile-est-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    /* allow text-truncate to work */
}

.linkooc-mobile-est-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--linkooc-text, #212529);
}

.linkooc-mobile-est-meta {
    font-size: 0.8125rem;
    color: var(--linkooc-text-muted, #6d6d6d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkooc-mobile-est-meta i {
    font-size: 0.75rem;
    margin-right: 0.125rem;
}

/* ── Additional mobile overrides ─────────────────────────────────────── */
@media (max-width: 768px) {
    .linkooc-title-right {
        flex-wrap: wrap;
    }

    /* Sticky save bar full width */
    .sticky-save-bar {
        left: 0 !important;
        width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE DRILL-DOWN NAVIGATION (duplicated from RCL menu-editor.css
   because RCL static asset fingerprinting serves stale compressed version)
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-drill-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--me-bg, #fff);
}

.mobile-drill-detail-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drill-hide-panel-header .linkooc-panel-header {
    display: none !important;
}

.mobile-drill-search {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--me-border, #dee2e6bf);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-drill-search .mobile-drill-search-box {
    flex: 1;
    min-width: 0;
}

.mobile-drill-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-drill-search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--me-text-muted, #6d6d6d);
    font-size: 0.875rem;
    pointer-events: none;
}

.mobile-drill-search-input {
    width: 100%;
    padding: 0.625rem 2.25rem 0.625rem 2.25rem;
    border: 1px solid var(--me-border, #dee2e6bf);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: var(--me-bg, #fff);
    color: var(--me-text, #000601);
    outline: none;
    -webkit-appearance: none;
}

.mobile-drill-search-input:focus {
    border-color: var(--me-primary, #08781B);
    box-shadow: 0 0 0 2px var(--me-primary-subtle, #e7f1e8);
}

.mobile-drill-search-input::placeholder {
    color: var(--me-text-muted, #6d6d6d);
}

.mobile-drill-search-clear {
    position: absolute;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--me-text-muted, #6d6d6d);
    cursor: pointer;
    border-radius: 4px;
}

.mobile-drill-search-clear:active {
    background: var(--me-bg-hover, #F7F7F8);
}

.mobile-drill-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-drill-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 56px;
    padding: 0.625rem 1rem;
    border: none;
    border-bottom: 1px solid var(--me-border, #dee2e6bf);
    background: var(--me-bg, #fff);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 120ms ease;
}

.mobile-drill-row:active {
    background: var(--me-bg-hover, #F7F7F8);
}

.mobile-drill-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    font-size: 1rem;
}

.mobile-drill-row-icon--folder {
    background: var(--me-primary-subtle, #e7f1e8);
    color: var(--me-primary, #08781B);
}

.mobile-drill-row-icon--item {
    background: var(--me-bg-hover, #F7F7F8);
    color: var(--me-text-muted, #6d6d6d);
}

.mobile-drill-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mobile-drill-row-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--me-text, #000601);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-drill-row-meta {
    font-size: 0.8125rem;
    color: var(--me-text-muted, #6d6d6d);
}

.mobile-drill-row-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--me-text, #000601);
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-drill-row-chevron {
    color: var(--me-text-muted, #6d6d6d);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mobile-drill-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--me-text-muted, #6d6d6d);
    text-align: center;
}

.mobile-drill-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.mobile-drill-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

.mobile-drill-add-wrapper {
    padding: 0.5rem 1rem 1rem;
}

.mobile-drill-actions-container {
    position: relative;
    flex-shrink: 0;
}

.mobile-drill-actions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 1.25rem;
    color: var(--me-text, #000601);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drill-actions-btn:active {
    background: var(--me-bg-hover, #F7F7F8);
}

.mobile-drill-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 180px;
    background: var(--me-bg, #fff);
    border: 1px solid var(--me-border, #dee2e6bf);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.mobile-drill-actions-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--me-text, #000601);
    cursor: pointer;
    text-align: left;
}

.mobile-drill-actions-item:active {
    background: var(--me-bg-hover, #F7F7F8);
}

.mobile-drill-actions-danger {
    color: #dc3545;
}

.mobile-drill-actions-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.mobile-drill-rename-input {
    flex: 1;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--me-primary, #08781B);
    border-radius: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--me-text, #000601);
    outline: none;
    background: var(--me-bg, #fff);
}

/* ── Hide inline-add when FAB is visible (visually hidden, still in DOM) ── */
.mobile-drill-add-wrapper--fab-hidden {
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: height 200ms ease;
}

.mobile-drill-add-wrapper--fab-hidden.mobile-drill-add-active {
    height: auto;
    overflow: visible;
    padding: 0.5rem 1rem 1rem;
}

/* ── FAB (Floating Action Button) ────────────────────────────────── */
.mobile-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--me-primary, #08781B);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.mobile-fab:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Item row ⋮ actions button ───────────────────────────────────── */
.mobile-drill-row-actions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 1.125rem;
    color: var(--me-text-muted, #6d6d6d);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mobile-drill-row-actions-btn:active {
    background: var(--me-bg-hover, #F7F7F8);
}

/* ── Bottom Action Sheet ─────────────────────────────────────────── */
.mobile-action-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 150ms ease;
}

.mobile-action-sheet {
    width: 100%;
    max-width: 420px;
    background: var(--me-bg, #fff);
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    animation: slideUp 200ms ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-action-sheet-header {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--me-border, #dee2e6bf);
}

.mobile-action-sheet-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--me-text, #000601);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-action-sheet-body {
    padding: 0.5rem 0;
}

.mobile-action-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--me-text, #000601);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.mobile-action-sheet-item:active {
    background: var(--me-bg-hover, #F7F7F8);
}

.mobile-action-sheet-item i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.mobile-action-sheet-danger {
    color: #dc3545;
}

.mobile-action-sheet-footer {
    border-top: 1px solid var(--me-border, #dee2e6bf);
    padding: 0.5rem;
}

.mobile-action-sheet-cancel {
    width: 100%;
    padding: 0.875rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--me-primary, #08781B);
    cursor: pointer;
    border-radius: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-action-sheet-cancel:active {
    background: var(--me-bg-hover, #F7F7F8);
}

/* ── Edit mode (reorder) ─────────────────────────────────────────── */
.mobile-edit-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--me-primary-subtle, #e7f1e8);
    border-bottom: 1px solid var(--me-border, #dee2e6bf);
}

.mobile-edit-mode-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--me-text, #000601);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mobile-edit-mode-done {
    border: none;
    background: var(--me-primary, #08781B);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-edit-mode-done:active {
    opacity: 0.85;
}

/* ── Drag handle ─────────────────────────────────────────────────── */
.mobile-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 44px;
    color: var(--me-text-muted, #6d6d6d);
    font-size: 1.25rem;
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.mobile-drag-handle:active {
    cursor: grabbing;
    color: var(--me-primary, #08781B);
}

/* ── SortableJS mobile ghost/chosen/drag classes ─────────────────── */
.mobile-sortable-ghost {
    opacity: 0.4;
    background: var(--me-primary-subtle, #e7f1e8) !important;
    border: 2px dashed var(--me-primary, #08781B) !important;
    border-radius: 0.5rem;
}

.mobile-sortable-chosen {
    background: var(--me-bg-hover, #F7F7F8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TELERIK-WINDOW RESPONSIVE — Makes ALL TelerikWindow dialogs mobile-friendly
   Below 768px: force full-width, limit height, scroll content.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

    /* ── Container: full-width on mobile ─────────────────────────────── */
    .k-window.telerik-blazor {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh !important;
        min-height: unset !important;
        margin: 0 auto;
    }

    /* ── Content area: scrollable ─────────────────────────────────────── */
    .k-window.telerik-blazor .k-window-content {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Title bar: compact ──────────────────────────────────────────── */
    .k-window.telerik-blazor .k-window-titlebar {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9375rem;
    }

    /* ── Footer: wrap buttons ────────────────────────────────────────── */
    .k-window.telerik-blazor .k-window-footer .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* ── Image preview lightboxes: true fullscreen ───────────────────── */
    .k-window.telerik-blazor[style*="80vw"] {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    /* ── Tables inside windows: horizontal scroll ────────────────────── */
    .k-window.telerik-blazor .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* ── Multi-column forms: stack on mobile ─────────────────────────── */
    .k-window.telerik-blazor .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* ── Window file picker: reduce fixed dimensions ────────────────── */
    .k-window.window-file-picker {
        height: 85vh !important;
    }

    /* ── Inline buttons (d-flex justify-content-between) wrap ─────── */
    .k-window.telerik-blazor .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    /* ── Input groups: stack on narrow screens ────────────────────── */
    .k-window.telerik-blazor .input-group {
        flex-wrap: wrap;
    }

    .k-window.telerik-blazor .input-group>.form-control,
    .k-window.telerik-blazor .input-group>.btn {
        flex: 1 1 auto;
    }

    /* ── TelerikGrid inside windows: reduce height ───────────────── */
    .k-window.telerik-blazor .k-grid {
        max-height: 40vh;
    }

    /* ── Pairing dialog cards: single column ─────────────────────── */
    .k-window.k-window-size-50 .col-md-6.mb-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* ── Add-establishment form: fix legacy TextBox inside dialogs ── */
    .add-establishment-form .k-input.k-input-solid.nav-link {
        padding: 0.5rem 0.75rem !important;
        min-height: 2.75rem;
    }

    .add-establishment-form .k-input.k-input-solid.nav-link input {
        padding-left: 0.5rem !important;
        width: 100% !important;
        font-size: 1rem;
    }

    /* ── Hide copy icon on mobile inside creation forms ─────────── */
    .add-establishment-form .visibleonhover,
    .add-establishment-form .parentvisibleonhover:hover .visibleonhover {
        display: none !important;
    }
}

.mobile-sortable-drag {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

/* ── Reorder button (next to search bar) ─────────────────────────── */
.mobile-reorder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--me-border, #dee2e6bf);
    background: var(--me-bg, #fff);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--me-text-muted, #6d6d6d);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mobile-reorder-btn:active {
    background: var(--me-bg-hover, #F7F7F8);
    color: var(--me-primary, #08781B);
}

/* ── Move-to category picker ─────────────────────────────────────── */
.mobile-move-picker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--me-bg, #fff);
    border-radius: 1rem 1rem 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease-out;
    z-index: 1001;
}

.mobile-move-picker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--me-border, #dee2e6bf);
    flex-shrink: 0;
}

.mobile-move-picker-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-move-picker-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-move-picker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9375rem;
    color: var(--me-text, #000601);
    cursor: pointer;
    border-bottom: 1px solid var(--me-border-subtle, #f0f0f0);
}

.mobile-move-picker-item:active {
    background: var(--me-bg-hover, #F7F7F8);
}

/* ── Dropdown menus: scrollable on mobile ─────────────────────────────── */
@media (max-width: 768px) {
    .linkooc-dropdown-menu {
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}